:root {
  /* Logo-derived brand palette */
  --logo-red-50: #fef1f0;
  --logo-red-100: #f8d9d7;
  --logo-red-300: #d96f6a;
  --logo-red-500: #c6403a;
  --logo-red-600: #b22a25;
  --logo-red-700: #92231f;
  --logo-red-900: #3f120f;

  --logo-cyan-100: #d6fcfe;
  --logo-cyan-300: #74f3f9;
  --logo-cyan-500: #0fecf7;
  --logo-cyan-700: #0cb4bc;

  --logo-ink-900: #000000;
  --logo-ink-700: #1a1a1a;
  --logo-white: #ffffff;

  --brand-600: var(--logo-red-600);
  --brand-700: var(--logo-red-700);
  --accent-500: var(--logo-cyan-500);
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --footer-bg: var(--logo-red-600);
  --footer-text: #fff7f6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--surface);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.custom-logo-link img,
.custom-logo {
  width: auto;
  max-height: 64px;
}

.th-menu,
.th-footer-menu,
.th-mobile-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.th-menu > li > a,
.th-footer-menu > li > a,
.th-mobile-menu > li > a {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.45rem 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.th-mobile-menu > li > a {
  display: flex;
  border-radius: 0.5rem;
}

.th-menu > li.current-menu-item > a,
.th-menu > li.current_page_item > a,
.th-menu > li > a:hover,
.th-footer-menu > li > a:hover,
.th-mobile-menu > li.current-menu-item > a,
.th-mobile-menu > li > a:hover {
  color: var(--brand-600);
  background: rgba(178, 42, 37, 0.08);
}

/* ── Desktop dropdown subnav ──────────────────────────────── */
.th-menu > li.menu-item-has-children {
  position: relative;
}

.th-menu > li.menu-item-has-children > a {
  gap: 0.3rem;
}

/* Chevron indicator */
.th-menu > li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 0.42em;
  height: 0.42em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.15em);
  transition: transform 0.2s ease;
}

.th-menu > li.menu-item-has-children.is-open > a::after {
  transform: rotate(-135deg) translateY(-0.15em);
}

/* Dropdown panel */
.th-menu .sub-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.375rem;
  list-style: none;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 200;
}

.th-menu > li.menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.th-menu .sub-menu > li > a {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.th-menu .sub-menu > li > a:hover,
.th-menu .sub-menu > li.current-menu-item > a,
.th-menu .sub-menu > li.current_page_item > a {
  color: var(--brand-600);
  background: rgba(178, 42, 37, 0.08);
}

/* ── Mobile accordion subnav ──────────────────────────────── */
.th-mobile-menu .sub-menu {
  list-style: none;
  margin: 0.25rem 0 0.25rem 0.75rem;
  padding: 0 0 0 0.75rem;
  border-left: 2px solid var(--border);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.th-mobile-menu > li.is-open > .sub-menu {
  max-height: 600px;
  opacity: 1;
}

.th-mobile-menu > li.menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.th-mobile-subnav-toggle {
  background: none;
  border: none;
  padding: 0.15rem 0.3rem;
  margin-left: auto;
  cursor: pointer;
  color: inherit;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border-radius: 0.375rem;
  transition: background-color 0.15s ease;
}

.th-mobile-subnav-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
}

.th-mobile-subnav-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s ease;
}

.th-mobile-menu > li.is-open > a > .th-mobile-subnav-toggle svg {
  transform: rotate(180deg);
}

.th-mobile-menu .sub-menu > li > a {
  display: flex;
  padding: 0.375rem 0.6rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.th-mobile-menu .sub-menu > li > a:hover,
.th-mobile-menu .sub-menu > li.current-menu-item > a {
  color: var(--brand-600);
  background: rgba(178, 42, 37, 0.08);
}

.th-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.th-social i {
  font-size: 0.95rem;
  line-height: 1;
}

.th-social:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
  background: rgba(178, 42, 37, 0.05);
}

.th-site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
}

/* ── Footer layout ──────────────────────────────────────── */
.th-footer-grid {
  display: grid;
  gap: 3rem 4rem;
  justify-content: center;
  /* grid-template-columns: 1fr; */
}

@media (min-width: 768px) {
  .th-footer-grid {
    /* grid-template-columns: minmax(220px, 300px) 1fr; */
    align-items: start;
  }
}

/* Brand / contact column */
.th-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.th-footer-logo-link {
  display: inline-block;
}

.th-footer-logo-link .custom-logo,
.th-footer-logo-link img.th-footer-logo {
  max-height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.th-footer-business-name {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  letter-spacing: 0.02em;
}

.th-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.th-footer-contact li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}

.th-footer-contact li i {
  font-size: 0.75rem;
  opacity: 0.7;
  flex-shrink: 0;
  position: relative;
  top: -0.05em;
}

.th-footer-contact li a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease;
}

.th-footer-contact li a:hover {
  color: var(--logo-cyan-500);
}

.th-footer-contact li span {
  line-height: 1.4;
}

/* Footer menu — column-based, parent items as section headers */
.th-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
}

.th-footer-menu > li {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.th-footer-menu > li > a {
  display: inline;
  padding: 0;
  border-radius: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.95);
  transition: color 0.2s ease;
}
.th-footer-menu > li > a:hover {
  color: var(--logo-cyan-500);
  background: none;
}
.th-footer-menu > li.current-menu-item > a,
.th-footer-menu > li.current_page_item > a {
  text-decoration: underline;
  background: none;
}

.th-footer-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.th-footer-menu .sub-menu > li > a {
  display: inline;
  padding: 0;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.th-footer-menu .sub-menu > li > a:hover,
.th-footer-menu .sub-menu > li.current-menu-item > a {
  color: rgba(255, 255, 255, 0.9);
  background: none;
}

/* ── Bottom bar ─────────────────────────────────────────── */
.th-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.th-footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.th-footer-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.th-footer-copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.th-site-footer .th-social {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.th-site-footer .th-social:hover {
  border-color: var(--logo-cyan-500);
  color: var(--logo-ink-900);
  background: var(--logo-cyan-500);
}

.prose img {
  border-radius: 0.75rem;
}

.wp-block-image,
.wp-block-embed,
.wp-block-gallery {
  margin-bottom: 1.5rem;
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

.alignwide {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
}

@media (max-width: 767px) {
  .custom-logo-link img,
  .custom-logo {
    max-height: 56px;
  }
}

/* Legacy block compatibility (from 2025 ACF blocks). */
.container {
  width: min(1200px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.padding-top-small {
  padding-top: 2rem;
}

.padding-bottom-small {
  padding-bottom: 2rem;
}

.padding-top-medium {
  padding-top: 4rem;
}

.padding-bottom-medium {
  padding-bottom: 4rem;
}

.padding-top-large {
  padding-top: 6rem;
}

.padding-bottom-large {
  padding-bottom: 6rem;
}

.hero-block {
  position: relative;
  min-height: 38rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-block .inner-content {
  position: relative;
  z-index: 2;
  max-width: 42rem;
  color: #fff;
}

.hero-block .overlay-dark,
.hero-block .overlay-dark-50,
.hero-block .overlay-light,
.hero-block .overlay-light-50 {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-block .overlay-dark {
  background: rgba(15, 23, 42, 0.35);
}

.hero-block .overlay-dark-50 {
  background: rgba(15, 23, 42, 0.55);
}

.hero-block .overlay-light {
  background: rgba(255, 255, 255, 0.2);
}

.hero-block .overlay-light-50 {
  background: rgba(255, 255, 255, 0.45);
}

.hero-block [class*='uk-position-'] {
  position: relative;
}

.gallery-block .gallery-image p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.carousel-block .slick-slide {
  padding: 0 0.5rem;
}

.carousel-block .carousel-item img,
.carousel-block .carousel-item video,
.carousel-block .carousel-item iframe {
  border-radius: 0.75rem;
}

/* WooCommerce */
@media screen and (min-width: 600px) {
  [name="update_cart"] {
    position: absolute;
    right: 1em;
    top: 25%;
  } 
}
.actions {
  position: relative;
}
.th-cart-button {
  position: relative;
}

.th-cart-count {
  position: absolute;
  top: -0.4rem;
  right: -0.45rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.24rem;
  border-radius: 9999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

.th-site-footer .th-cart-count {
  background: var(--accent-500);
  color: var(--logo-ink-900);
}

.th-financing-message {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.35;
}

.th-financing-message--single {
  margin: 0.35rem 0 0.95rem;
  font-size: 0.92rem;
}

.th-financing-message .affirm-as-low-as,
.th-financing-message p {
  margin: 0;
}

.th-financing-message a {
  color: var(--brand-700);
  font-weight: 600;
}

.th-woo-shell {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

@media (min-width: 768px) {
  .th-woo-shell {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.th-woo-archive-header {
  margin-bottom: 1.5rem;
}

.th-woo-breadcrumb {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.th-woo-breadcrumb a {
  color: var(--text-muted);
}

.th-woo-breadcrumb a:hover {
  color: var(--brand-600);
}

.th-woo-breadcrumb__sep {
  margin: 0 0.35rem;
  opacity: 0.65;
}

.th-woo-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.th-woo-archive-description {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.th-woo-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: #fff;
}

.th-woo-toolbar .woocommerce-result-count {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.th-woo-toolbar .woocommerce-notices-wrapper {
  width: 90%;
  max-width: 1000px;
}

.th-woo-toolbar .woocommerce-ordering {
  margin: 0;
}

.th-woo-toolbar .woocommerce-ordering select {
  min-width: 210px;
  border-radius: 0.6rem;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

@media (min-width: 680px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product.th-product-card {
  margin: 0;
  width: 100%;
}

.th-product-card__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.th-product-card__inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.13);
}

.th-product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #f8fafc;
}

.th-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.th-product-card__inner:hover .th-product-card__media img {
  transform: scale(1.06);
}

.th-product-card .onsale {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  min-height: auto;
  min-width: auto;
  margin: 0;
  border-radius: 9999px;
  padding: 0.24rem 0.6rem;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.74rem;
  line-height: 1.2;
}

.th-product-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.th-product-card__cats {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.th-product-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.th-product-card__title a:hover {
  color: var(--brand-600);
}

.th-product-card__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.th-product-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.th-product-card__meta .price {
  color: var(--brand-700);
  font-size: 1.05rem;
  font-weight: 700;
}

.th-product-card__meta .star-rating {
  color: #f59e0b;
}

.th-product-card__actions {
  margin-top: auto;
  padding-top: 0.4rem;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.added_to_cart {
  border: 2px solid var(--brand-600);
  border-radius: 9999px;
  background: var(--brand-600);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  line-height: 1.3;
  transition: all 0.2s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.added_to_cart:hover {
  border-color: var(--brand-700);
  background: var(--brand-700);
  color: #fff !important;
  text-decoration: none !important;
}

.woocommerce .button.alt {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff !important;
}

.woocommerce .quantity .qty,
.woocommerce input.input-text,
.woocommerce select,
.woocommerce textarea {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.55rem 0.65rem;
  max-width: 100%;
  box-sizing: border-box;
}

.woocommerce .quantity .qty:focus,
.woocommerce input.input-text:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(178, 42, 37, 0.14);
}

.woocommerce .wac-quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.woocommerce .wac-qty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
  line-height: 1;
}

.woocommerce .wac-qty-button:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}

.woocommerce .wac-quantity .qty {
  width: 4.4rem;
  text-align: center;
}

.woocommerce-notices-wrapper {
  width: 90%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ── Base notice style ────────────────────────────── */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid;
  border-left-width: 4px;
  padding: 0.9rem 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  list-style: none;
}

/* FA icon prefix — overrides WC's default pseudo */
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce-error::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  display: block;
}

/* ── Info — neutral slate (no jarring blue) ────────── */
.woocommerce-info {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.woocommerce-info::before {
  content: "\f05a"; /* fa-circle-info */
  color: #64748b;
}

.woocommerce-info .woocommerce-Button,
.woocommerce-info a {
  color: #334155;
  font-weight: 700;
  text-decoration: underline;
}

/* ── Message / success — green ─────────────────────── */
.woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.woocommerce-message::before {
  content: "\f058"; /* fa-circle-check */
  color: #22c55e;
}

.woocommerce-message .woocommerce-Button,
.woocommerce-message a {
  color: #166534;
  font-weight: 700;
  text-decoration: underline;
}

/* ── Error — brand red ─────────────────────────────── */
.woocommerce-error,
li.woocommerce-error,
ul.woocommerce-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

/* ul.woocommerce-error: stack li items vertically, icon per-li */
ul.woocommerce-error {
  flex-direction: column;
  gap: 0.35rem;
}

/* Hide the ::before on ul — icon goes on each li instead */
ul.woocommerce-error::before {
  display: none;
}

/* Single li.woocommerce-error (rare) */
.woocommerce-error::before {
  content: "\f06a"; /* fa-circle-exclamation */
  color: var(--brand-600);
}

/* Each error li gets its own icon */
ul.woocommerce-error li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: #9f1239;
  margin: 0;
  list-style: none;
}

ul.woocommerce-error li::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f06a"; /* fa-circle-exclamation */
  color: var(--brand-600);
  font-size: 0.88rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.woocommerce-error .woocommerce-Button,
.woocommerce-error a {
  color: #881337;
  font-weight: 700;
  text-decoration: underline;
}

/* ── Notice inside checkout payment card ───────────── */
/* "No payment methods available" sits inside #payment */
.woocommerce-checkout #payment .woocommerce-info,
.woocommerce-checkout #payment .woocommerce-error {
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.th-single-product {
  display: block;
}

.th-single-product__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 980px) {
  .th-single-product__top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.th-single-summary h1.product_title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: clamp(1.65rem, 2.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.th-single-summary .price {
  display: inline-block;
  color: var(--brand-700);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.3rem 0 0.6rem;
  line-height: 1.1;
}

.th-single-summary .woocommerce-product-details__short-description {
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.th-single-summary .woocommerce-product-details__short-description p {
  margin: 0 0 0.75rem;
}

.th-single-summary .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

.th-single-summary form.cart {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.th-single-summary .product_meta {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.th-single-summary .product_meta a {
  color: var(--brand-700);
}

/* ── Gallery card wrapper ──────────────────────────────────────────────── */
.th-single-gallery .woocommerce-product-gallery__wrapper {
  border: 1px solid var(--border);
  background: var(--surface-muted);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  border-radius: 1rem;
  overflow: hidden; /* must stay hidden — clips FlexSlider's off-canvas slides */
  /* space between the main slide and the thumbnail strip */
  padding-bottom: 0.75rem;
}

/* ── Main slide image: border-radius applied directly to flex-viewport ──
   The browser won't reliably clip a deeply-nested flex-viewport through a
   grandparent's overflow:hidden, so we set the radius here instead. */
.th-single-gallery .flex-viewport {
  border-radius: 0.875rem;
  overflow: hidden;
}

.th-single-gallery .woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Thumbnail strip ────────────────────────────────────────────────────── */
.th-single-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0 0.75rem;
}

.th-single-gallery .flex-control-thumbs li {
  margin: 0;
}

.th-single-gallery .flex-control-thumbs img {
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  display: block;
  width: 100%;
  height: auto;
}

/* ── Gallery: hide WC-injected trigger button + FlexSlider dots ──── */
/* WooCommerce JS injects a <a class="woocommerce-product-gallery__trigger">
   zoom/lightbox button and FlexSlider injects pager dots — hide both since
   we use the thumbnail strip for navigation and have no photoswipe setup. */
.woocommerce-product-gallery__trigger {
  display: none !important;
}

.th-single-gallery .flex-control-nav.flex-control-paging {
  display: none !important;
}

/* ── Zoom icon overlay on product gallery ─────────────────── */
.th-single-gallery .woocommerce-product-gallery__image {
  position: relative;
}

.th-single-gallery .woocommerce-product-gallery__image::after {
  content: '';
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--brand-600);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='white'%3E%3Cpath d='M225.5 3C159 3 103.5 58.5 103.5 125c0 35.7 15.7 69 41.8 93.1 5.1 4.7 8.1 11.1 8.4 18 2.8 61.5-35.6 116.2-91.9 131C22.8 377.6 0 412.4 0 450c0 74.4 60.6 135 135 135 66.5 0 121-54.5 121-121 0-35.7-15.7-69-41.8-93.1-5.1-4.7-8.1-11.1-8.4-18-2.8-61.5 35.6-116.2 91.9-131 39-10.4 61.8-45.2 61.8-80.9C379.5 58.5 324 3 257.5 3zm0 416c-49.7 0-90-40.3-90-90s40.3-90 90-90 90 40.3 90 90-40.3 90-90 90z'/%3E%3C/svg%3E");
  background-size: 55%;
  background-repeat: no-repeat;
  background-position: center;
}

.th-single-gallery .woocommerce-product-gallery__image:hover::after {
  opacity: 1;
}

.th-single-product__bottom .woocommerce-tabs {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
}

.th-single-product__bottom .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
  padding: 0;
  background: var(--surface-muted);
}

.th-single-product__bottom .woocommerce-tabs ul.tabs li {
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  margin: 0;
  padding: 0;
}

.th-single-product__bottom .woocommerce-tabs ul.tabs li a {
  padding: 0.85rem 1.35rem;
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.th-single-product__bottom .woocommerce-tabs ul.tabs li a:hover {
  color: var(--brand-600);
  background: rgba(178, 42, 37, 0.05);
}

.th-single-product__bottom .woocommerce-tabs ul.tabs li.active {
  background: #fff;
  border-bottom: 2px solid var(--brand-600);
}

.th-single-product__bottom .woocommerce-tabs ul.tabs li.active a {
  color: var(--brand-600);
  font-weight: 700;
}

.th-single-product__bottom .woocommerce-tabs .panel {
  padding: 1.75rem 2rem;
}

.th-related-products {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.th-related-products__title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.35rem, 1.6vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.th-woo-pagination nav.woocommerce-pagination {
    margin-top: 3.2rem;
    margin-left: 4em;
    display: table;
    margin-inline: auto;
    position: relative;
    left: -10px;
}

.th-woo-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--border);
  gap: 1rem;
}

.th-woo-pagination .page-numbers.current {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table {
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
  width: 100%;
  float: none;
}

/* Full-bleed background for checkout — shell constraints removed on this page */
.woocommerce-checkout .th-woo-shell {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

.woocommerce-checkout .woocommerce {
  display: block;
}

/* ============================================================
   Cart page
   ============================================================ */

.th-cart-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
}

.th-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.th-cart-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0 !important;
}

.th-cart-continue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-600);
  transition: gap 0.2s ease;
}

.th-cart-continue:hover {
  gap: 0.65rem;
}

/* ── Empty cart ───────────────────────────────────── */
.th-cart-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
}

.th-cart-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: var(--logo-red-50);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.th-cart-empty__icon i {
  font-size: 1.75rem;
  color: var(--brand-600);
}

.th-cart-empty__title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.th-cart-empty__desc {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

/* ── Cart table ───────────────────────────────────── */
.woocommerce-cart-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.woocommerce-cart-form table.shop_table {
  margin: 0;
  border: none;
  border-radius: 0;
}

.woocommerce-cart-form table.shop_table thead th {
  background: var(--surface-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.woocommerce-cart-form table.shop_table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.woocommerce-cart-form table.shop_table tr:last-child td {
  border-bottom: none;
}

.woocommerce-cart-form table.shop_table tr:hover td {
  background: rgba(248, 250, 252, 0.6);
}

/* Product thumbnail */
.woocommerce-cart-form .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
}

/* Product name */
.woocommerce-cart-form .product-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.woocommerce-cart-form .product-name a {
  color: var(--text);
}

.woocommerce-cart-form .product-name a:hover {
  color: var(--brand-600);
}

/* Product price */
.woocommerce-cart-form .product-price {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* Product subtotal */
.woocommerce-cart-form .product-subtotal {
  font-weight: 700;
  color: var(--brand-700);
  white-space: nowrap;
}

/* Quantity input */
.woocommerce-cart-form .product-quantity .quantity {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.woocommerce-cart-form .product-quantity input.input-text {
  width: 3.2rem;
  text-align: center;
  padding: 0.4rem 0.3rem;
  font-weight: 600;
  border-radius: 0.5rem;
}

/* Remove button */
.woocommerce-cart-form .product-remove a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.woocommerce-cart-form .product-remove a:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* ── Cart actions row ─────────────────────────────── */
.woocommerce-cart-form table.shop_table tr.actions td {
  padding: 1rem 1.25rem;
  background: var(--surface-muted);
}

.woocommerce-cart-form table.shop_table tr.actions {
  background: var(--surface-muted);
}

.woocommerce-cart-form .coupon {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.woocommerce-cart-form .coupon input.input-text {
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  min-width: 200px;
  transition: border-color 0.2s ease;
}

.woocommerce-cart-form .coupon input.input-text:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(178, 42, 37, 0.1);
}

.woocommerce-cart-form .coupon .button {
  border: 2px solid var(--brand-600);
  background: var(--brand-600);
  color: #fff;
  border-radius: 9999px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.woocommerce-cart-form .coupon .button:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
}

.woocommerce-cart-form .button[name="update_cart"] {
  border: 2px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 9999px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  margin-left: auto;
}

.woocommerce-cart-form .button[name="update_cart"]:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
  background: #fff;
}

/* ── Cart totals panel ────────────────────────────── */
.cart-collaterals {
  margin-top: 1.5rem;
}

.cart_totals {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.cart_totals h2 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.cart_totals table.shop_table {
  border: none;
  margin: 0;
}

.cart_totals table.shop_table th {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.cart_totals table.shop_table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  text-align: right;
  font-weight: 600;
}

.cart_totals table.shop_table tr:last-child th,
.cart_totals table.shop_table tr:last-child td {
  border-bottom: none;
}

.cart_totals table.shop_table tr.order-total th,
.cart_totals table.shop_table tr.order-total td {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand-700);
  padding-top: 1rem;
}

/* ── Proceed to checkout button ───────────────────── */
.wc-proceed-to-checkout {
  margin-top: 1.25rem;
}

.wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--brand-600);
  border: 2px solid var(--brand-600);
  border-radius: 9999px;
  color: #fff !important;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.wc-proceed-to-checkout .checkout-button:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(178, 42, 37, 0.3);
}

/* ── Shipping calculator ───────────────────────────── */
.woocommerce-shipping-calculator {
  margin-top: 0.5rem;
}

.woocommerce-shipping-calculator .shipping-calculator-form {
  margin-top: 0.75rem;
}

.woocommerce-shipping-calculator select,
.woocommerce-shipping-calculator input.input-text {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.woocommerce-shipping-calculator select:focus,
.woocommerce-shipping-calculator input.input-text:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(178, 42, 37, 0.1);
}

/* ── Buttons (primary + outline) ─────────────────── */
.th-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  background: var(--brand-600);
  border: 2px solid var(--brand-600);
  border-radius: 9999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.th-btn-primary:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(178, 42, 37, 0.25);
}

.th-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 9999px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.th-btn-outline:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}

/* ============================================================
   Checkout page
   ============================================================ */

.th-checkout-wrap {
  background: var(--surface-muted);
  padding: 2rem 1rem 5rem;
  min-height: 50vh;
}

/* ── Step breadcrumb ──────────────────────────────── */
.th-checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 440px;
  margin: 0 auto 2.5rem;
}

.th-checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.th-checkout-step__dot {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.th-checkout-step--done .th-checkout-step__dot {
  background: var(--brand-600);
  color: #fff;
}

.th-checkout-step--done .th-checkout-step__label {
  color: var(--brand-600);
}

.th-checkout-step--done:hover .th-checkout-step__label {
  text-decoration: underline;
}

.th-checkout-step--active .th-checkout-step__dot {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(178, 42, 37, 0.15);
}

.th-checkout-step--active .th-checkout-step__label {
  color: var(--text);
  font-weight: 700;
}

.th-checkout-step__line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 2rem;
  max-width: 5rem;
  margin: 0 0.3rem 1.35rem;
}

/* ── Two-column checkout layout ───────────────────── */
.th-checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 900px) {
  .th-checkout-layout {
    grid-template-columns: 1fr 380px;
  }
}

@media (min-width: 1120px) {
  .th-checkout-layout {
    grid-template-columns: 1fr 420px;
  }
}

/* ── Checkout cards ───────────────────────────────── */
.th-checkout-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
  margin-bottom: 1rem;
}

.th-checkout-main > .th-checkout-card:last-child {
  margin-bottom: 0;
}

.th-checkout-card__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.th-checkout-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 9999px;
  background: var(--brand-600);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
}

.th-checkout-card__title i {
  color: var(--brand-600);
  font-size: 0.95rem;
}

/* Hide WooCommerce's own section headings — we use our card titles */
.woocommerce-billing-fields > h3,
.woocommerce-account-fields > h3 {
  display: none;
}

/* ── Billing / shipping field wrapper grids ───────── */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 1rem;
}

@media (min-width: 580px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

.woocommerce-billing-fields__field-wrapper .form-row-wide,
.woocommerce-shipping-fields__field-wrapper .form-row-wide {
  grid-column: 1 / -1;
}

/* ── Checkout form fields ─────────────────────────── */
.woocommerce-checkout .form-row {
  margin-bottom: 0.85rem;
}

.woocommerce-checkout .form-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.woocommerce-checkout .form-row label .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.65;
}

.woocommerce-checkout .form-row label .required {
  color: var(--brand-600);
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.woocommerce-checkout .form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(178, 42, 37, 0.1);
}

.woocommerce-checkout .form-row input.input-text::placeholder {
  color: #94a3b8;
}

.woocommerce-checkout .form-row.woocommerce-invalid input.input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select,
.woocommerce-checkout .form-row.woocommerce-invalid textarea {
  border-color: #ef4444;
}

/* ── Shipping card: "Ship to different address?" ──── */
.th-checkout-card--shipping .woocommerce-shipping-fields h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.th-checkout-card--shipping .woocommerce-shipping-fields h3 label {
  font-size: 1rem !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--text) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.th-checkout-card--shipping .woocommerce-shipping-fields h3 input[type="checkbox"] {
  accent-color: var(--brand-600);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  cursor: pointer;
}

/* Order notes / additional fields */
.woocommerce-additional-fields > h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Create account ───────────────────────────────── */
.woocommerce-checkout .create-account {
  margin-top: 0.5rem;
}

.woocommerce-checkout .create-account label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--text) !important;
  cursor: pointer;
}

.woocommerce-checkout .create-account input[type="checkbox"] {
  accent-color: var(--brand-600);
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  cursor: pointer;
}

/* ── Checkout sidebar ─────────────────────────────── */
.th-checkout-sidebar {
  position: sticky;
  top: 88px;
}

.th-checkout-summary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
  margin-bottom: 1rem;
}

/* ── Order review table ────────────────────────────── */
.woocommerce-checkout-review-order table.shop_table {
  margin: 0;
  border: none;
  width: 100%;
  border-collapse: collapse;
}

.woocommerce-checkout-review-order table.shop_table thead th {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 0 0.65rem;
  border-bottom: 1px solid var(--border);
}

.woocommerce-checkout-review-order table.shop_table td {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.woocommerce-checkout-review-order table.shop_table tr.cart_item:last-child td,
.woocommerce-checkout-review-order table.shop_table tbody tr:last-child td {
  border-bottom: none;
}

.woocommerce-checkout-review-order .product-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.woocommerce-checkout-review-order .product-name strong {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.8rem;
  display: block;
  margin-top: 0.15rem;
}

.woocommerce-checkout-review-order .product-total {
  text-align: right;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
}

.woocommerce-checkout-review-order table.shop_table tfoot {
  border-top: 1px solid var(--border);
}

.woocommerce-checkout-review-order table.shop_table tfoot th {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0;
  text-align: left;
}

.woocommerce-checkout-review-order table.shop_table tfoot td {
  padding: 0.4rem 0;
  text-align: right;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.woocommerce-checkout-review-order table.shop_table tfoot tr.order-total th,
.woocommerce-checkout-review-order table.shop_table tfoot tr.order-total td {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ── Payment section ──────────────────────────────── */
.woocommerce-checkout #payment {
  background: transparent;
  border-radius: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0.75rem;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border-bottom: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.woocommerce-checkout #payment ul.payment_methods li {
  margin-bottom: 0;
  background: var(--surface-muted);
  border: 1.5px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) {
  border-color: var(--brand-600);
  background: var(--logo-red-50);
}

.woocommerce-checkout #payment ul.payment_methods label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  color: var(--text);
}

.woocommerce-checkout #payment .wc_payment_method input[type="radio"] {
  accent-color: var(--brand-600);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.woocommerce-checkout #payment .payment_box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 0.9rem;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.woocommerce-checkout #payment .payment_box::before {
  display: none;
}

/* Place order button */
.woocommerce-checkout #payment #place_order,
.woocommerce-checkout #payment .button.alt {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--brand-600);
  border: none;
  border-radius: 9999px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  font-family: inherit;
  text-align: center;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 1.25rem;
}

.woocommerce-checkout #payment #place_order:hover,
.woocommerce-checkout #payment .button.alt:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(178, 42, 37, 0.28);
}

.woocommerce-checkout #payment #place_order:active,
.woocommerce-checkout #payment .button.alt:active {
  transform: translateY(0);
}

/* ── Trust badges below order summary ─────────────── */
.th-checkout-trust-list {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.th-checkout-trust-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.th-checkout-trust-list li i {
  color: var(--brand-600);
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

/* ── Checkout login form (returning customer) ─────── */
.woocommerce-checkout .login {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
  font-size: 0.9rem;
}

.woocommerce-checkout .login .woocommerce-form-login__submit {
  margin-right: 0.75rem;
}

/* ── Coupon / notices banners ─────────────────────── */
.woocommerce-checkout form.checkout .woocommerce-notices-wrapper,
.woocommerce-checkout form.checkout > .woocommerce-info {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

/* ── Checkout entrance animations ────────────────── */
@keyframes th-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes th-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.th-checkout-steps {
  animation: th-fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.05s;
}

.th-checkout-card {
  animation: th-fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.th-checkout-main > .th-checkout-card:nth-child(1) { animation-delay: 0.12s; }
.th-checkout-main > .th-checkout-card:nth-child(2) { animation-delay: 0.22s; }

.th-checkout-summary {
  animation: th-fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.18s;
}

.th-checkout-trust-list {
  animation: th-fade-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.28s;
}

/* Card hover lift */
.th-checkout-card,
.th-checkout-summary {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.th-checkout-card:hover,
.th-checkout-summary:hover {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
}

/* Payment method selection pulse */
@keyframes th-radio-select {
  0%   { box-shadow: 0 0 0 0 rgba(178, 42, 37, 0.3); }
  100% { box-shadow: 0 0 0 6px rgba(178, 42, 37, 0); }
}

.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) {
  animation: th-radio-select 0.4s ease forwards;
}

/* Place order button pulse on hover */
@keyframes th-btn-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.woocommerce-checkout #payment #place_order {
  background-image: linear-gradient(
    105deg,
    var(--brand-600) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    var(--brand-600) 60%
  );
  background-size: 200% auto;
}

.woocommerce-checkout #payment #place_order:hover {
  animation: th-btn-shimmer 0.85s linear;
  background-image: linear-gradient(
    105deg,
    var(--brand-700) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    var(--brand-700) 60%
  );
}

/* Step dot bounce when active */
@keyframes th-dot-pop {
  0%   { transform: scale(0.8); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.th-checkout-step--active .th-checkout-step__dot {
  animation: th-dot-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: 0.3s;
}

/* Form field focus micro-animation */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  transform: translateY(-1px);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .th-checkout-steps,
  .th-checkout-card,
  .th-checkout-summary,
  .th-checkout-trust-list,
  .th-checkout-step--active .th-checkout-step__dot,
  .woocommerce-checkout #payment #place_order {
    animation: none !important;
  }

  .th-checkout-card,
  .th-checkout-summary,
  .woocommerce-checkout #payment #place_order,
  .woocommerce-checkout .form-row input.input-text,
  .woocommerce-checkout .form-row select,
  .woocommerce-checkout .form-row textarea {
    transition: none !important;
  }
}

/* ── Thankyou / order received ────────────────────── */
.woocommerce-order-received .woocommerce-thankyou-order-received {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid #22c55e;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.woocommerce-thankyou-order-details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.woocommerce-thankyou-order-details li {
  font-size: 0.88rem;
  color: var(--text-muted);
  list-style: none;
  margin: 0;
}

.woocommerce-thankyou-order-details li strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0.25rem;
}

/* ============================================================
   Mini-cart dropdown
   ============================================================ */

.th-mini-cart {
  padding: 0;
}

.th-mini-cart__empty {
  text-align: center;
  padding: 1.5rem;
}

.th-mini-cart__empty i {
  font-size: 2rem;
  color: var(--border);
  margin-bottom: 0.75rem;
  display: block;
}

.th-mini-cart__empty p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.th-mini-cart__items {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 380px;
  overflow-y: auto;
}

.th-mini-cart__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.th-mini-cart__item:last-child {
  border-bottom: none;
}

.th-mini-cart__thumb {
  flex-shrink: 0;
}

.th-mini-cart__thumb img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

.th-mini-cart__details {
  flex: 1;
  min-width: 0;
}

.th-mini-cart__name {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.th-mini-cart__name a {
  color: var(--text);
}

.th-mini-cart__name a:hover {
  color: var(--brand-600);
}

.th-mini-cart__price {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.th-mini-cart__remove a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 9999px;
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.th-mini-cart__remove a:hover {
  background: #fee2e2;
  color: #ef4444;
}

.th-mini-cart__footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface-muted);
  border-radius: 0 0 0.75rem 0.75rem;
}

.th-mini-cart__totals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.th-mini-cart__total-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.th-mini-cart__total-amount {
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-700);
}

.th-mini-cart__buttons {
  display: flex;
  gap: 0.5rem;
}

.th-mini-cart__buttons .th-btn-outline,
.th-mini-cart__buttons .th-btn-primary {
  flex: 1;
  font-size: 0.82rem;
  padding: 0.5rem 0.75rem;
  text-align: center;
  justify-content: center;
}

/* ── Thankyou / order received ─────────────────────── */
.th-thankyou-shell {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1rem 5rem;
  text-align: center;
}

.th-thankyou-success {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);
}

.th-thankyou-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: #dcfce7;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.th-thankyou-success__icon i {
  font-size: 2.25rem;
  color: #22c55e;
}

.th-thankyou-success__title {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.th-thankyou-success__desc {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

.th-thankyou-failed {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 3rem 2rem;
  box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);
}

.th-thankyou-failed__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: #fee2e2;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.th-thankyou-failed__icon i {
  font-size: 2.25rem;
  color: #ef4444;
}

.th-thankyou-failed__title {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.th-thankyou-failed__desc {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

.th-thankyou-failed__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Shared blog / post utilities
   ============================================================ */

.th-meta-sep {
  opacity: 0.45;
}

/* Category pill */
.th-post-cat-pill {
  display: inline-block;
  background: rgba(178, 42, 37, 0.09);
  color: var(--brand-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 0.22rem 0.7rem;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.th-post-cat-pill:hover {
  background: var(--brand-600);
  color: #fff;
}

/* Tag pill */
.th-post-tag-pill {
  display: inline-block;
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.28rem 0.8rem;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.th-post-tag-pill:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}

/* ============================================================
   Post card (blog loop)
   ============================================================ */

.th-post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.th-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.th-post-card__media {
  display: block;
  overflow: hidden;
  background: var(--surface-muted);
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
}

.th-post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.th-post-card:hover .th-post-card__img {
  transform: scale(1.04);
}

.th-post-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.th-post-card__body {
  padding: 1.1rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.th-post-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.th-post-card__title a:hover {
  color: var(--brand-600);
}

.th-post-card__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.th-post-card__meta {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   Blog archive
   ============================================================ */

.th-blog-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.th-blog-archive__header {
  margin-bottom: 2rem;
}

.th-blog-archive__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

.th-blog-archive__desc {
  color: var(--text-muted);
  max-width: 52rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Featured (first) post */
.th-blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  margin-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .th-blog-featured--has-image {
    grid-template-columns: 55% 1fr;
  }
}

.th-blog-featured__media {
  display: block;
  overflow: hidden;
  background: var(--surface-muted);
  min-height: 16rem;
}

.th-blog-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.th-blog-featured:hover .th-blog-featured__img {
  transform: scale(1.03);
}

.th-blog-featured__body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 2rem 1.75rem;
  justify-content: center;
}

.th-blog-featured__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.th-blog-featured__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.th-blog-featured__title a {
  color: var(--text);
}

.th-blog-featured__title a:hover {
  color: var(--brand-600);
}

.th-blog-featured__excerpt {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.th-blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.th-blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-600);
  transition: gap 0.2s ease, color 0.2s ease;
}

.th-blog-featured__cta:hover {
  gap: 0.6rem;
  color: var(--brand-700);
}

/* Grid of remaining cards */
.th-blog-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.4rem;
}

@media (min-width: 640px) {
  .th-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .th-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.th-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.th-blog-pagination a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-600);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.48rem 1.1rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.th-blog-pagination a:hover {
  background: rgba(178, 42, 37, 0.07);
  border-color: var(--brand-600);
}

/* ============================================================
   Single blog post
   ============================================================ */

.th-single-post-shell {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

.th-single-post-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.th-single-post-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
}

.th-single-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.th-single-post-thumb {
  margin-bottom: 2rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.th-single-post-thumb__img {
  width: 100%;
  height: auto;
  display: block;
}

.th-single-post-content {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text);
}

.th-single-post-content h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.th-single-post-content h3 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
}

.th-single-post-content p {
  margin: 0 0 1.5rem;
}

.th-single-post-content a {
  color: var(--brand-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.th-single-post-content a:hover {
  color: var(--brand-700);
}

.th-single-post-content blockquote {
  border-left: 4px solid var(--brand-600);
  margin: 1.75rem 0;
  padding: 0.75rem 1.25rem;
  background: rgba(178, 42, 37, 0.04);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

.th-single-post-content ul,
.th-single-post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.th-single-post-content li {
  margin-bottom: 0.45rem;
}

.th-single-post-content img {
  border-radius: 0.75rem;
  max-width: 100%;
  height: auto;
}

/* Tags */
.th-single-post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.th-post-tags-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Author bio */
.th-author-bio {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 2rem;
}

.th-author-bio__avatar {
  width: 64px;
  height: 64px;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.th-author-bio__content {
  flex: 1;
}

.th-author-bio__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.2rem;
}

.th-author-bio__name {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.th-author-bio__desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Post navigation */
.th-post-nav {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.75rem 1.25rem;
  border-top: 1px solid var(--border);
}

.th-post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.th-post-nav__item--next {
  text-align: right;
}

.th-post-nav__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.th-post-nav__title a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-600);
  line-height: 1.4;
}

.th-post-nav__title a:hover {
  color: var(--brand-700);
  text-decoration: underline;
}

/* Related posts */
.th-related-posts {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  border-top: 1px solid var(--border);
}

.th-related-posts__title {
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.th-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .th-related-posts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .th-related-posts__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ============================================================
   Single product – trust badges & sticky summary
   ============================================================ */

.th-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 1.25rem 0 0.5rem;
}

.th-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.6rem;
  text-align: center;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

.th-trust-badge i {
  color: var(--brand-600);
  font-size: 1.25rem;
  flex-shrink: 0;
}

@media (min-width: 980px) {
  .th-single-summary {
    position: sticky;
    top: 5.5rem;
    align-self: start;
  }
}

/* ============================================================
   Shared interior page components
   ============================================================ */

.th-page-hero {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.th-page-hero .eyebrow {
  color: #b22925;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  display: block;
}
.th-page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}
.th-page-hero > p {
  margin: 0 auto 1.75rem;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  color: #94a3b8;
  line-height: 1.6;
  max-width: 42rem;
}
.th-page-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.th-hero-btn-primary {
  background: #b22925;
  color: #fff !important;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
}
.th-hero-btn-outline {
  background: transparent;
  color: #fff !important;
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,.5);
}

.th-shop-cta {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}
.th-shop-cta h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}
.th-shop-cta > p {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: #fdd5d4;
  line-height: 1.6;
}
.th-shop-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
@media (min-width: 480px) {
  .th-shop-cta-btns { flex-direction: row; justify-content: center; }
}
.th-cta-white {
  background: #fff;
  color: #b22925 !important;
  text-decoration: none;
  padding: 0.8rem 1.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 800;
}
.th-cta-ghost {
  background: transparent;
  color: #fff !important;
  text-decoration: none;
  padding: 0.8rem 1.75rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,.6);
}

.th-section { padding-inline: 1.5rem; }
.th-section-head { text-align: center; margin-bottom: 2rem; }
.th-section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.3rem, 4vw, 1.85rem);
  font-weight: 800;
  color: #1c1a18;
}
.th-section-head p { margin: 0; font-size: 0.95rem; color: #6b6863; }

.th-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 640px) { .th-split { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.th-split img { width: 100%; border-radius: 10px; display: block; }
.th-split h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.3rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: #1c1a18;
}
.th-split p { margin: 0 0 1rem; font-size: 0.95rem; color: #6b6863; line-height: 1.65; }
.th-split ul { margin: 0 0 1.5rem; padding-left: 1.1rem; }
.th-split ul li { font-size: 0.93rem; color: #1c1a18; line-height: 1.6; margin-bottom: 0.35rem; }
.th-split-btn {
  display: inline-block;
  background: #1c1a18;
  color: #fff !important;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 700;
}
.th-split-btn-red { background: #b22925; }

.th-eyebrow-sm {
  color: #b22925;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  display: block;
}

.th-feat-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 540px) { .th-feat-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .th-feat-cards { grid-template-columns: repeat(3, 1fr); } }
.th-feat-card {
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid #b22925;
  padding: 1.25rem 1.25rem 1.25rem 1.1rem;
}
.th-feat-card h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 700; color: #1c1a18; }
.th-feat-card p { margin: 0; font-size: 0.88rem; color: #6b6863; line-height: 1.55; }

.th-steps { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 1.5rem; }
.th-steps .th-step { display: flex; gap: 1rem; align-items: flex-start; }
.th-step-num {
  background: #b22925;
  color: #fff;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  min-width: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.th-step-body h3 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 700; color: #1c1a18; }
.th-step-body p { margin: 0; font-size: 0.9rem; color: #6b6863; line-height: 1.55; }

.th-review-card-row {
  background: #fff;
  border-radius: 10px;
  border-left: 4px solid #b22925;
  padding: 1.25rem 1.25rem 1.25rem 1.1rem;
}
.th-review-stars { color: #b22925; font-size: 0.95rem; margin-bottom: 0.6rem; }
.th-review-text { font-size: 0.9rem; color: #1c1a18; line-height: 1.65; margin: 0 0 0.75rem; }
.th-review-author { font-size: 0.78rem; color: #6b6863; font-weight: 600; }

.th-areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) { .th-areas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .th-areas { grid-template-columns: repeat(3, 1fr); } }
.th-area-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #d6d4d0;
  padding: 1.1rem 1.25rem;
}
.th-area-card h3 { margin: 0 0 0.3rem; font-size: 0.95rem; font-weight: 700; color: #1c1a18; }
.th-area-card p { margin: 0; font-size: 0.85rem; color: #6b6863; line-height: 1.5; }

.th-compare-wrap { overflow-x: auto; }
.th-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.th-compare th {
  background: #1c1a18;
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
}
.th-compare th:first-child { background: #b22925; }
.th-compare td { padding: 0.7rem 1rem; border-bottom: 1px solid #d6d4d0; color: #1c1a18; vertical-align: middle; }
.th-compare tr:nth-child(even) td { background: #f3f2f0; }
.th-compare .yes { color: #16a34a; font-weight: 700; }
.th-compare .no { color: #dc2626; }

.th-faq-item { border-bottom: 1px solid #d6d4d0; padding: 1.1rem 0; }
.th-faq-item:first-child { border-top: 1px solid #d6d4d0; }
.th-faq-q { font-size: 1rem; font-weight: 700; color: #1c1a18; margin: 0 0 0.5rem; }
.th-faq-a { font-size: 0.92rem; color: #6b6863; line-height: 1.65; margin: 0; }

.th-size-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .th-size-grid { grid-template-columns: repeat(4, 1fr); } }
.th-size-card {
  background: #f3f2f0;
  border: 2px solid #d6d4d0;
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}
.th-size-card h3 { margin: 0 0 0.25rem; font-size: 1.1rem; font-weight: 800; color: #b22925; }
.th-size-card p { margin: 0; font-size: 0.82rem; color: #6b6863; }

.th-feat-bar-row i {
    color: #b22925;
}

.th-feat-bar-row {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}
@media (min-width: 640px) { .th-feat-bar-row { grid-template-columns: repeat(4, 1fr); } }
.th-feat-bar-item { display: flex; align-items: center; gap: 0.6rem; }
.th-feat-bar-item .fi { font-size: 1.25rem; flex-shrink: 0; }
.th-feat-bar-item span { font-size: 0.85rem; font-weight: 600; color: #1c1a18; line-height: 1.3; }

/* ============================================================
   Shop archive hero
   ============================================================ */

.th-shop-hero {
  background: linear-gradient(160deg, #0f1923 0%, #1a2a3a 100%);
  padding: 4rem 1.5rem 3.25rem;
  text-align: center;
}

.th-shop-hero__inner {
  max-width: 60rem;
  margin: 0 auto;
}

.th-shop-hero .th-eyebrow-sm {
  color: var(--logo-cyan-500);
}

.th-shop-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  letter-spacing: -0.025em;
}

.th-shop-hero__desc {
  color: #94a3b8;
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  line-height: 1.65;
  max-width: 42rem;
  margin: 0 auto;
}

.th-shop-hero__desc p { margin: 0; }

/* ============================================================
   Single product — stock badge & star rating
   ============================================================ */

.th-single-summary .stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.th-single-summary .stock.in-stock {
  background: #dcfce7;
  color: #16a34a;
}

.th-single-summary .stock.out-of-stock {
  background: #fee2e2;
  color: #dc2626;
}

.th-single-summary .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.1rem 0 0.5rem;
}

.th-single-summary .star-rating {
  color: #f59e0b;
  font-size: 0.9rem;
}

.th-single-summary .woocommerce-review-link {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.th-single-summary .woocommerce-review-link:hover {
  color: var(--brand-600);
}

/* Bigger add-to-cart button on single product */
.th-single-summary form.cart .single_add_to_cart_button {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 9999px;
  letter-spacing: 0.01em;
  color: #fff !important;
  text-decoration: none !important;
}

/* Product meta refinement */
.th-single-summary .product_meta {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.th-single-summary .product_meta span {
  display: block;
}

/* ============================================================
   WooCommerce breadcrumb refinement for product pages
   ============================================================ */

.woocommerce-breadcrumb.th-woo-breadcrumb {
  padding: 0.1rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

/* ============================================================
   Product archive toolbar refinement
   ============================================================ */

.th-woo-toolbar {
  border-radius: 0.75rem;
  background: var(--surface-muted);
  border-color: var(--border);
}

/* ============================================================
   Mobile-only: stack trust badges in a row
   ============================================================ */

@media (max-width: 480px) {
  .th-trust-badges {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  .th-trust-badge {
    padding: 0.65rem 0.35rem;
    font-size: 0.68rem;
  }
  .th-trust-badge i {
    font-size: 1rem;
  }
}

.woocommerce.columns-3 {
  display: block;
  columns: 1;
}
.woocommerce.columns-3 ul.products {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
.woocommerce.columns-3 .products {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .woocommerce.columns-3 .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

:where(.wp-block-group.has-background) {
  padding: inherit;
}

.prose-headings\:font-bold :is(:where(h1, h2, h3, h4, h5, h6, th):not(:where([class~="not-prose"],[class~="not-prose"] *))) {
  margin-top: 0 !important;
}

.th-shop-categories .wp-block-buttons {
  justify-content: center;
}
.th-shop-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* ============================================================
   Cart page – redesigned two-column layout
   ============================================================ */

/* The cart page reuses the checkout's gray background + step bar */
.woocommerce-cart .th-woo-shell {
  max-width: 100%;
  width: 100%;
  padding: 0;
}

.woocommerce-cart .woocommerce {
  display: block;
}

.th-cart-wrap {
  background: var(--surface-muted);
  padding: 2rem 1rem 5rem;
  min-height: 50vh;
}

/* Empty cart centered */
.th-cart-empty-wrap {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding-top: 1rem;
}

/* Two-column layout — mirrors checkout */
.th-cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 900px) {
  .th-cart-layout {
    grid-template-columns: 1fr 380px;
  }
}

@media (min-width: 1120px) {
  .th-cart-layout {
    grid-template-columns: 1fr 420px;
  }
}

/* Cart card overrides — form inside card needs no background */
.th-cart-items-card .woocommerce-cart-form {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  padding: 0;
}

/* ── Cart item rows ───────────────────────────────── */
.th-cart-items {
  display: flex;
  flex-direction: column;
}

@keyframes th-item-remove {
  to { opacity: 0; transform: translateX(12px) scaleY(0.8); max-height: 0; padding: 0; margin: 0; }
}

.th-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s ease;
}

.th-cart-item:last-child {
  border-bottom: none;
}

.th-cart-item.is-removing {
  animation: th-item-remove 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
  overflow: hidden;
}

/* Remove button */
.th-cart-item__remove {
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.th-cart-item__remove .remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.th-cart-item__remove .remove:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* Thumbnail */
.th-cart-item__thumb {
  flex-shrink: 0;
}

.th-cart-item__thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.2s ease;
}

.th-cart-item__thumb a:hover img {
  transform: scale(1.04);
}

/* Item body */
.th-cart-item__body {
  flex: 1;
  min-width: 0;
}

.th-cart-item__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.th-cart-item__name a {
  color: var(--text);
  transition: color 0.15s ease;
}

.th-cart-item__name a:hover {
  color: var(--brand-600);
}

.th-cart-item__backorder {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

/* Controls row: qty + pricing */
.th-cart-item__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.6rem;
}

.th-cart-item__qty .quantity {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.th-cart-item__qty input.qty {
  width: 3rem;
  text-align: center;
  padding: 0.35rem 0.3rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 0.45rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.th-cart-item__qty input.qty:focus {
  outline: none;
  border-color: var(--brand-600);
}

/* AJAX cart +/- buttons (wooajaxcart plugin) */
.th-cart-item__qty .wac-qty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.35rem;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none !important;
  padding: 0;
  line-height: 1;
}

.th-cart-item__qty .wac-qty-button:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

/* Pricing: unit price + subtotal */
.th-cart-item__pricing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.th-cart-item__unit-price {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.th-cart-item__unit-label {
  font-size: 0.75rem;
  opacity: 0.7;
}

.th-cart-item__subtotal {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
  white-space: nowrap;
}

/* ── Cart actions: coupon + update ────────────────── */
.th-cart-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.th-cart-coupon {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 220px;
}

.th-cart-coupon i {
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.th-cart-coupon input.input-text {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.th-cart-coupon input.input-text:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(178, 42, 37, 0.1);
}

.th-cart-coupon__btn {
  border: 2px solid var(--text);
  background: var(--text);
  color: #fff;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.th-cart-coupon__btn:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

/* Update cart button — visually subtle, AJAX plugin makes it rarely needed */
.th-cart-update-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.th-cart-update-btn:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}

/* Cart totals sidebar: hide the default "Cart totals" heading */
.th-checkout-summary .cart_totals > h2,
.th-checkout-summary .cart_totals > h2 ~ .shipping-calculator-button {
  display: none;
}

/* Cart totals table inside sidebar */
.th-checkout-summary .cart_totals {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Entrance animations for cart items */
.th-cart-item {
  animation: th-fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.th-cart-item:nth-child(1) { animation-delay: 0.08s; }
.th-cart-item:nth-child(2) { animation-delay: 0.14s; }
.th-cart-item:nth-child(3) { animation-delay: 0.20s; }
.th-cart-item:nth-child(4) { animation-delay: 0.26s; }
.th-cart-item:nth-child(5) { animation-delay: 0.32s; }

.th-cart-items-card {
  animation: th-fade-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

/* ============================================================
   Cart Drawer
   ============================================================ */

/* Body scroll-lock when drawer open */
body.th-drawer-active {
  overflow: hidden;
}

.th-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  visibility: hidden;
}

.th-cart-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

/* Overlay */
.th-cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.th-cart-drawer.is-open .th-cart-drawer__overlay {
  opacity: 1;
}

/* Panel */
.th-cart-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(430px, 100vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -12px 0 48px rgba(15, 23, 42, 0.14);
}

.th-cart-drawer.is-open .th-cart-drawer__panel {
  transform: translateX(0);
}

/* Header */
.th-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.th-cart-drawer__heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.th-cart-drawer__heading i {
  color: var(--brand-600);
  font-size: 0.95rem;
}

.th-cart-drawer__count {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Close button */
.th-cart-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.th-cart-drawer__close:hover {
  background: var(--surface-muted);
  color: var(--text);
  border-color: var(--text-muted);
}

/* Body (scrollable) */
.th-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Mini-cart inside drawer: override max-height (drawer scrolls instead) */
.th-cart-drawer__body .th-mini-cart__items {
  max-height: none;
}

/* Footer buttons in drawer: stretch to full width */
.th-cart-drawer__body .th-mini-cart__footer {
  border-radius: 0;
}

.th-cart-drawer__body .th-mini-cart__buttons .th-btn-outline,
.th-cart-drawer__body .th-mini-cart__buttons .th-btn-primary {
  flex: 1;
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}

/* ============================================================
   Cross-document page transitions (View Transitions API)
   ============================================================ */

@view-transition {
  navigation: auto;
}

@keyframes th-page-slide-in {
  from {
    opacity: 0;
    translate: 0 8px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes th-page-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

::view-transition-new(root) {
  animation: th-page-slide-in 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

::view-transition-old(root) {
  animation: th-page-fade-out 0.22s ease both;
}

/* Freeze the header so it doesn't jump during navigation */
header {
  view-transition-name: site-header;
}

::view-transition-new(site-header),
::view-transition-old(site-header) {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root),
  ::view-transition-old(root),
  ::view-transition-new(site-header),
  ::view-transition-old(site-header) {
    animation: none !important;
  }
}

/* ============================================================
   Mobile Fixes
   ============================================================ */

/* Cart actions: stack vertically on narrow screens so Apply isn't clipped */
@media (max-width: 520px) {
  .th-cart-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .th-cart-coupon {
    min-width: 0;
    flex: 1 1 100%;
    width: 100%;
  }

  .th-cart-coupon input.input-text {
    min-width: 0;
    flex: 1;
  }

  .th-cart-update-btn {
    width: 100%;
    justify-content: center;
  }

  /* Wrap pricing below controls on narrow phones */
  .th-cart-item__pricing {
    margin-left: 0;
  }

  .th-cart-item__controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Checkout steps: tighter on very small screens */
  .th-checkout-steps {
    gap: 0;
  }

  .th-checkout-step__label {
    font-size: 0.7rem;
  }
}

/* Cart item thumb: slightly larger on mobile for easier tap */
@media (max-width: 479px) {
  .th-cart-item__thumb img {
    width: 64px;
    height: 64px;
  }
}

/* ============================================================
   Mobile Menu — Animated Slide
   ============================================================ */

/* Override Tailwind hidden so our animation can play */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}

#mobile-menu.is-open {
  max-height: 700px;
  opacity: 1;
}

/* Stagger mobile nav items on open */
#mobile-menu.is-open .th-mobile-menu > li {
  animation: th-fade-up 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#mobile-menu.is-open .th-mobile-menu > li:nth-child(1) { animation-delay: 0.06s; }
#mobile-menu.is-open .th-mobile-menu > li:nth-child(2) { animation-delay: 0.10s; }
#mobile-menu.is-open .th-mobile-menu > li:nth-child(3) { animation-delay: 0.14s; }
#mobile-menu.is-open .th-mobile-menu > li:nth-child(4) { animation-delay: 0.18s; }
#mobile-menu.is-open .th-mobile-menu > li:nth-child(5) { animation-delay: 0.22s; }
#mobile-menu.is-open .th-mobile-menu > li:nth-child(6) { animation-delay: 0.26s; }

/* Hamburger → X morphing */
.th-bar-1,
.th-bar-2,
.th-bar-3 {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s ease,
              stroke-dashoffset 0.3s ease;
}

.th-bar-1 { transform-origin: 12px 6px; }
.th-bar-2 { transform-origin: 12px 12px; }
.th-bar-3 { transform-origin: 12px 18px; }

#mobile-menu-toggle.is-open .th-bar-1 {
  transform: translateY(6px) rotate(45deg);
}

#mobile-menu-toggle.is-open .th-bar-2 {
  opacity: 0;
  transform: scaleX(0);
}

#mobile-menu-toggle.is-open .th-bar-3 {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   Scroll Reveal System
   ============================================================ */

.th-will-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.th-will-reveal.th-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Enhanced Micro-interactions & Animations
   ============================================================ */

/* ── Nav: underline sweep ─────────────────────────── */
.th-menu > li > a {
  position: relative;
}

.th-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--brand-600);
  border-radius: 9999px;
  transition: left 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              right 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.th-menu > li > a:hover::after,
.th-menu > li.current-menu-item > a::after,
.th-menu > li.current_page_item > a::after {
  left: 0.6rem;
  right: 0.6rem;
}

/* Dropdown arrow uses ::after too — reset it to not conflict */
.th-menu > li.menu-item-has-children > a::after {
  display: none;
}

/* ── Social icons: springy hover ─────────────────── */
.th-social {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease,
              color 0.2s ease !important;
}

.th-social:hover {
  transform: scale(1.18) translateY(-1px) !important;
}

/* ── Buttons: satisfying press/active ─────────────── */
.th-btn-primary:active,
.th-btn-outline:active,
.woocommerce a.button:active,
.woocommerce button.button:active,
.th-cart-coupon__btn:active,
.woocommerce-checkout #payment #place_order:active {
  transform: scale(0.96) !important;
  transition-duration: 0.08s !important;
}

/* ── Product card: spring lift ────────────────────── */
.th-product-card__inner {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease !important;
}

.th-product-card__inner:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.14) !important;
}

.th-product-card__media img {
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.th-product-card__inner:hover .th-product-card__media img {
  transform: scale(1.08) !important;
}

/* ── Add to cart: success pulse ───────────────────── */
@keyframes th-btn-added {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  60%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.woocommerce a.button.added {
  animation: th-btn-added 0.7s ease-out;
  border-color: #22c55e !important;
  background: #22c55e !important;
  color: #fff !important;
}

/* ── Cart count: bounce when updated ─────────────── */
@keyframes th-count-pop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.65); }
  60%  { transform: scale(0.85); }
  80%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.th-cart-count.is-animating {
  display: inline-block;
  animation: th-count-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Remove button: spring scale ─────────────────── */
.th-cart-item__remove .remove {
  transition: background 0.18s ease,
              color 0.18s ease,
              border-color 0.18s ease,
              transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.th-cart-item__remove .remove:hover {
  transform: scale(1.18) !important;
}

/* ── Trust badges: float icon + lift card ─────────── */
.th-trust-badge {
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
  cursor: default;
}

.th-trust-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  border-color: var(--brand-600);
}

@keyframes th-icon-float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-4px); }
}

.th-trust-badge:hover i {
  animation: th-icon-float 0.7s ease-in-out;
}

/* Checkout trust list: slide on hover */
.th-checkout-trust-list li {
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
              color 0.2s ease;
  cursor: default;
}

.th-checkout-trust-list li:hover {
  transform: translateX(4px);
  color: var(--brand-600);
}

/* ── Active checkout step: ambient pulse ──────────── */
@keyframes th-step-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(178, 42, 37, 0.45); }
  50%       { box-shadow: 0 0 0 7px rgba(178, 42, 37, 0);    }
}

.th-checkout-step--active .th-checkout-step__dot {
  animation: th-step-pulse 2.2s ease-in-out infinite;
}

/* ── Hero text: staggered entrance ───────────────── */
.th-page-hero .eyebrow {
  animation: th-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both 0.08s;
}

.th-page-hero h1 {
  animation: th-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both 0.18s;
}

.th-page-hero > p {
  animation: th-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both 0.28s;
}

.th-page-hero-btns {
  animation: th-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both 0.38s;
}

/* ── Shop CTA section ─────────────────────────────── */
.th-shop-cta h2,
.th-shop-cta > p,
.th-shop-cta-btns {
  animation: th-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.th-shop-cta > p   { animation-delay: 0.1s; }
.th-shop-cta-btns  { animation-delay: 0.2s; }

/* ── Footer menu links: underline sweep ───────────── */
.th-footer-menu > li > a {
  position: relative;
  transition: color 0.2s ease;
}

.th-footer-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  right: 50%;
  height: 1.5px;
  background: currentColor;
  border-radius: 9999px;
  opacity: 0.6;
  transition: left 0.24s cubic-bezier(0.16, 1, 0.3, 1),
              right 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.th-footer-menu > li > a:hover::after {
  left: 0.3rem;
  right: 0.3rem;
}

/* ── wac qty +/- buttons: spring on click ─────────── */
.th-cart-item__qty .wac-qty-button {
  transition: background 0.15s ease,
              border-color 0.15s ease,
              color 0.15s ease,
              transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.th-cart-item__qty .wac-qty-button:active {
  transform: scale(0.88) !important;
}

/* ── Mini-cart item entrance ─────────────────────── */
.th-mini-cart__item {
  animation: th-fade-up 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.th-mini-cart__item:nth-child(1) { animation-delay: 0.04s; }
.th-mini-cart__item:nth-child(2) { animation-delay: 0.09s; }
.th-mini-cart__item:nth-child(3) { animation-delay: 0.14s; }

/* ── Cart drawer panel: subtle inner shadow reveal ── */
.th-cart-drawer__panel {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ── Reduced motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .th-will-reveal,
  .th-page-hero .eyebrow,
  .th-page-hero h1,
  .th-page-hero > p,
  .th-page-hero-btns,
  .th-shop-cta h2,
  .th-shop-cta > p,
  .th-shop-cta-btns,
  .th-mini-cart__item,
  #mobile-menu.is-open .th-mobile-menu > li {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .th-will-reveal.th-revealed {
    opacity: 1;
    transform: none;
  }

  .th-checkout-step--active .th-checkout-step__dot,
  .th-trust-badge:hover i,
  .th-count-pop,
  .woocommerce a.button.added {
    animation: none !important;
  }

  .th-bar-1, .th-bar-2, .th-bar-3 {
    transition: none !important;
  }

  #mobile-menu {
    transition: none !important;
  }
}

/* ============================================================
   Announcement bar
   ============================================================ */

.th-announce-bar {
  background: var(--text);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 1rem;
  text-align: center;
  z-index: 60;
  position: relative;
}

.th-announce-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.1rem;
  max-width: 80rem;
  margin: 0 auto;
}

.th-announce-bar i {
  color: var(--logo-cyan-500);
  margin-right: 0.25rem;
}

.th-announce-sep {
  opacity: 0.35;
}

/* Hide non-critical items on small screens */
@media (max-width: 639px) {
  .th-announce-sep,
  .th-announce-desktop {
    display: none;
  }
}

/* "Shop Now →" button in the desktop header */
.th-announce-shop-btn,
a.th-announce-shop-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  background: var(--brand-600);
  border: 2px solid var(--brand-600);
  border-radius: 9999px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
  white-space: nowrap;
}

.th-announce-shop-btn:hover,
a.th-announce-shop-btn:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(178, 42, 37, 0.28);
}

/* ============================================================
   Product card — "Ships Free" badge & "View Details" button
   ============================================================ */

.th-product-card__ship-badge {
  position: absolute;
  bottom: 0.6rem;
  left: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(15, 23, 42, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  pointer-events: none;
}

.th-product-card__ship-badge i {
  color: var(--logo-cyan-500);
  font-size: 0.65rem;
}

/* "View Kit Details →" link replacing loop add-to-cart */
.th-product-card__view-btn,
a.th-product-card__view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  justify-content: center;
  padding: 0.6rem 1rem;
  background: var(--brand-600);
  border: 2px solid var(--brand-600);
  border-radius: 9999px;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
}

.th-product-card__view-btn:hover,
a.th-product-card__view-btn:hover {
  background: var(--brand-700);
  border-color: var(--brand-700);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(178, 42, 37, 0.25);
}

/* ============================================================
   Shop archive — category tab strip
   ============================================================ */

.th-shop-cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.35rem 1.5rem 1rem;
  background: #0f1923;
}

.th-shop-cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease,
              transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.th-shop-cat-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.th-shop-cat-tab.is-active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  font-weight: 700;
}

/* ============================================================
   Shop archive — trust strip
   ============================================================ */

.th-shop-trust-strip {
  background: #0b141c;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.85rem 1.5rem 1.1rem;
}

.th-shop-trust-strip__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 1.5rem;
  font-size: 0.79rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.th-shop-trust-strip i {
  color: var(--logo-cyan-500);
  margin-right: 0.3rem;
}

.th-shop-trust-strip .th-sep {
  opacity: 0.28;
}

@media (max-width: 640px) {
  .th-shop-trust-strip .th-sep {
    display: none;
  }
}

/* ============================================================
   Single product — Installation choice panel
   ============================================================ */

.th-install-section {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  margin-top: 0;
}

.th-install-section__heading {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.th-install-section__heading i {
  color: var(--brand-600);
  font-size: 0.85rem;
}

.th-install-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 680px) {
  .th-install-options {
    grid-template-columns: 1fr 1fr;
  }
}

.th-install-option {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.35rem 1.25rem;
  display: flex;
  gap: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.th-install-option--diy {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 1px var(--brand-600);
}

.th-install-option__icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  background: var(--logo-red-50);
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-600);
  font-size: 1rem;
}

.th-install-option--pro .th-install-option__icon {
  background: #f0f9ff;
  color: #0369a1;
}

.th-install-option__body h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  line-height: 1.3;
}

.th-install-badge {
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--brand-600);
  color: #fff;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.th-install-option__body > p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0 0 0.8rem;
  line-height: 1.6;
}

.th-install-option__body ul {
  font-size: 0.83rem;
  color: var(--text);
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
  line-height: 1.65;
}

.th-install-option__body li {
  margin-bottom: 0.25rem;
}

.th-install-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-600);
  transition: gap 0.2s ease;
}

.th-install-link:hover {
  color: var(--brand-700);
  gap: 0.5rem;
}

.th-install-link i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.th-install-link:hover i {
  transform: translateX(2px);
}

.th-install-option__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.th-install-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  align-self: flex-start;
  border: 2px solid transparent;
}

/* .th-install-cta--utah removed — Utah install now uses a phone callout, not a quote button */

/* ============================================================
   Single product — Promoted Basketball Hoops section
   ============================================================ */

.th-promoted-section {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 3.5rem;
}

.th-promoted-section__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.th-promoted-section__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.th-promoted-section__heading {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.6rem;
  line-height: 1.2;
}

.th-promoted-section__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.th-promoted-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .th-promoted-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.th-promoted-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: inherit;
}

.th-promoted-card:hover {
  border-color: var(--brand-600);
  box-shadow: 0 6px 24px rgba(178, 42, 37, 0.12);
  transform: translateY(-2px);
  color: inherit;
}

.th-promoted-card__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-muted);
}

.th-promoted-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.th-promoted-card:hover .th-promoted-card__img img {
  transform: scale(1.04);
}

.th-promoted-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.th-promoted-card__title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}

.th-promoted-card__price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-600);
}

.th-promoted-card__price del {
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 0.3rem;
}

.th-promoted-card__excerpt {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0.1rem 0 0;
}

.th-promoted-card__cta {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-600);
  transition: gap 0.2s ease;
  gap: 0.15rem;
}

.th-promoted-card:hover .th-promoted-card__cta {
  gap: 0.35rem;
}

/* ============================================================
   Reduced-motion additions for new components
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .th-announce-shop-btn,
  .th-product-card__view-btn,
  .th-shop-cat-tab,
  .th-install-cta,
  .th-install-link,
  .th-promoted-card,
  .th-promoted-card__img img {
    transition: none !important;
    transform: none !important;
  }
}


/* ============================================================================
 * Trampoline Holes 2026 — Product + Checkout
 * Append to assets/css/main.css (or enqueue separately).
 * Variables map to the brand tokens already declared at the top of main.css.
 * ========================================================================== */

/* ── Buttons (shared between product + checkout) ──────────────────────── */
.th-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  border: none; border-radius: .625rem;
  font: inherit; font-weight: 700; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .05s;
  padding: .9rem 1.4rem; font-size: .95rem;
}
.th-btn:active { transform: translateY(1px); }
.th-btn:focus-visible { outline: 3px solid var(--logo-red-100); outline-offset: 2px; }

.th-btn--primary { background: var(--brand-600); color: #fff; }
.th-btn--primary:hover { background: var(--brand-700); color: #fff; }

.th-btn--dark { background: #0a0a0a; color: #fff; }
.th-btn--dark:hover { background: #1f1f23; }

.th-btn--ghost {
  background: #fff; color: #0f172a;
  border: 1.5px solid #e2e8f0;
}
.th-btn--ghost:hover { border-color: #475569; }

.th-btn--lg { padding: 1.1rem 1.6rem; font-size: 1rem; }
.th-btn--block { width: 100%; }

/* ============================================================================
 * PRODUCT PAGE — Direction A
 * ========================================================================== */

.th-product {
  --th-text: #0f172a;
  --th-text-muted: #475569;
  --th-border: #e2e8f0;
  color: var(--th-text);
}

/* ── Buy box ─────────────────────────────────────────────────────────── */
.th-product__buy { display: flex; flex-direction: column; gap: 1.25rem; }

.th-product__eyebrow {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin: 0;
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--th-text-muted);
}
.th-product__eyebrow i { color: var(--brand-600); }
.th-product__eyebrow a { color: inherit; text-decoration: none; }
.th-product__eyebrow a:hover { color: var(--brand-600); }
.th-product__eyebrow-sep { color: #cbd5e1; }

.th-product__title {
  font-family: inherit;
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.th-product__rating {
  display: flex; align-items: center; gap: .625rem; flex-wrap: wrap;
}
.th-product__rating .star-rating { color: #f5b50a; }
.th-product__rating-meta {
  font-size: .8rem; color: var(--th-text-muted); font-weight: 600;
  text-decoration: none;
}
.th-product__rating-meta:hover { color: var(--brand-600); }

/* Price row */
.th-product__price-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .75rem;
}
.th-product__price { font-size: clamp(1.75rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: #0f172a; }
.th-product__price .woocommerce-Price-amount { font-weight: 800; }
.th-product__price del { color: #94a3b8; font-size: 1rem; font-weight: 600; }
.th-product__price ins { background: transparent; color: #0f172a; text-decoration: none; }
.th-product__save {
  background: var(--logo-red-50); color: var(--brand-700);
  padding: .25rem .625rem; border-radius: 999px;
  font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.th-product__price-sub {
  margin: 0; font-size: .8125rem; color: var(--th-text-muted); display: flex; align-items: center; gap: .5rem;
}
.th-product__price-sub i { color: var(--brand-600); }

/* ── Add-to-cart styling (works with WC default + variations form) ──── */
.th-product__addtocart .stock { font-size: .8125rem; color: #10b981; font-weight: 600; }
.th-product__addtocart .stock.out-of-stock { color: #dc2626; }
.th-product__addtocart .cart {
  display: flex; flex-direction: column; gap: 1rem; margin: 0;
}
.th-product__addtocart .single_variation_wrap { display: contents; }
.th-product__addtocart .variations {
  width: 100%; border-spacing: 0;
  display: flex; flex-direction: column; gap: 1rem;
}
.th-product__addtocart .variations tbody { display: contents; }
.th-product__addtocart .variations tr { display: flex; flex-direction: column; gap: .5rem; }
.th-product__addtocart .variations label,
.th-product__addtocart .variations th {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #1f2937; text-align: left;
  padding: 0;
}
.th-product__addtocart .variations td.value { padding: 0; }
.th-product__addtocart .variations select {
  width: 100%;
  padding: .8125rem .875rem;
  border: 1.5px solid var(--th-border); border-radius: .625rem;
  font: inherit; font-size: .9rem; font-weight: 600;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.th-product__addtocart .variations select:focus {
  outline: none; border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--logo-red-50);
}
.th-product__addtocart .reset_variations {
  font-size: .75rem; color: var(--brand-600); margin-left: .5rem;
}

/* Variations rendered as chips by JS (data-th-variation-chips applied). */
.th-product__addtocart .th-chip-group {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .625rem;
}
.th-product__addtocart .th-chip {
  border: 1.5px solid var(--th-border);
  border-radius: .75rem;
  padding: .875rem;
  background: #fff;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.th-product__addtocart .th-chip:hover { border-color: #71717a; }
.th-product__addtocart .th-chip[aria-checked="true"] {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 1px #0a0a0a inset;
}
.th-product__addtocart .th-chip[aria-checked="true"]::after {
  content: '✓';
  position: absolute; top: .5rem; right: .625rem;
  font-weight: 800; font-size: .8rem; color: #0a0a0a;
}
.th-product__addtocart .th-chip__name { font-size: .875rem; font-weight: 700; color: #0f172a; }

/* Qty + ATC row */
.th-product__addtocart .quantity {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--th-border); border-radius: .625rem;
  overflow: hidden; margin: 0;
}
.th-product__addtocart .quantity input.qty {
  border: 0; background: transparent;
  width: 2.5rem; text-align: center;
  font: inherit; font-weight: 800; font-size: .95rem;
  padding: .875rem 0;
  -moz-appearance: textfield;
}
.th-product__addtocart .quantity input.qty::-webkit-outer-spin-button,
.th-product__addtocart .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.th-product__addtocart .quantity .th-qty-btn {
  width: 2.75rem; height: 3rem;
  background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: #475569; transition: background .15s, color .15s;
}
.th-product__addtocart .quantity .th-qty-btn:hover { background: #f1f5f9; color: #0f172a; }

.th-product__addtocart .single_add_to_cart_button {
  flex: 1;
  background: var(--brand-600); color: #fff;
  font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: .01em;
  padding: 1.1rem 1.4rem; border: 0; border-radius: .625rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  transition: background-color .15s, transform .05s;
}
.th-product__addtocart .single_add_to_cart_button:hover { background: var(--brand-700); }
.th-product__addtocart .single_add_to_cart_button:active { transform: translateY(1px); }

/* The cart form's natural layout. */
.th-product__addtocart .cart > .quantity,
.th-product__addtocart .cart > .single_add_to_cart_button { display: inline-flex; }
.th-product__addtocart .cart {
  flex-direction: row; flex-wrap: wrap; align-items: stretch; gap: .75rem;
}
.th-product__addtocart .cart .variations,
.th-product__addtocart .cart .single_variation_wrap { flex: 1 0 100%; }
.th-product__addtocart .single_variation .price { display: none; }
.th-product__addtocart .woocommerce-variation-availability { font-size: .8125rem; color: #475569; padding-top: .25rem; }

/* ── Install picker (in buy box) ──────────────────────────────────────── */
.th-install-picker { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.th-install-picker__legend {
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #1f2937; padding: 0; margin-bottom: .25rem;
}
.th-install-picker__opt {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1rem;
  border: 1.5px solid var(--th-border); border-radius: .75rem;
  background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.th-install-picker__opt:has(input:checked) {
  border-color: #0a0a0a; background: #f8fafc;
}
.th-install-picker__opt input { position: absolute; opacity: 0; pointer-events: none; }
.th-install-picker__bullet {
  width: 18px; height: 18px;
  border: 2px solid #cbd5e1; border-radius: 999px;
  position: relative; flex: 0 0 auto;
}
.th-install-picker__opt:has(input:checked) .th-install-picker__bullet { border-color: #0a0a0a; }
.th-install-picker__opt:has(input:checked) .th-install-picker__bullet::after {
  content: ''; position: absolute; inset: 3px; background: #0a0a0a; border-radius: 999px;
}
.th-install-picker__body { flex: 1; display: flex; flex-direction: column; gap: .125rem; }
.th-install-picker__body strong { font-size: .9rem; font-weight: 700; color: #0f172a; }
.th-install-picker__body small { font-size: .75rem; color: #475569; }
.th-install-picker__price { font-size: .875rem; font-weight: 700; color: #0f172a; white-space: nowrap; }

/* ── Bullets ──────────────────────────────────────────────────────────── */
.th-product__bullets {
  list-style: none; padding: 1.25rem 0 0; margin: 0;
  border-top: 1px solid var(--th-border);
  display: flex; flex-direction: column; gap: .625rem;
}
.th-product__bullets li { display: flex; gap: .625rem; font-size: .875rem; color: #334155; align-items: flex-start; }
.th-product__bullets li i {
  margin-top: 3px;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--logo-red-50); color: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem;
  flex: 0 0 auto;
}

/* ── Trust row ───────────────────────────────────────────────────────── */
.th-trust-row { list-style: none; padding: 0; margin: 0; }
.th-trust-row li {
  display: flex; align-items: center; gap: .5rem;
  background: #f8fafc; border: 1px solid var(--th-border);
  border-radius: .625rem;
  padding: .625rem .75rem;
  font-size: .75rem; font-weight: 600; color: #334155;
}
.th-trust-row li i { color: var(--brand-600); font-size: .8rem; }

/* ── Section wrappers ────────────────────────────────────────────────── */
.th-pp-section { padding: 2.5rem 0; }
@media (min-width: 768px) { .th-pp-section { padding: 4rem 0; } }
.th-pp-section--alt { background: #f8fafc; }
.th-pp-section__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.75rem;
}
.th-pp-section__title {
  font-size: clamp(1.5rem, 3vw, 1.625rem); font-weight: 800; letter-spacing: -0.02em;
  margin: 0; line-height: 1.15;
}
.th-pp-section__sub { font-size: .9rem; color: #475569; margin: .375rem 0 0; max-width: 60ch; }
.th-pp-eyebrow { font-size: .6875rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-600); }

/* ── What's in the box ──────────────────────────────────────────────── */
.th-box-grid { list-style: none; padding: 0; margin: 0; }
.th-box-item {
  background: #fff; border: 1px solid var(--th-border);
  border-radius: .875rem; padding: 1.125rem; text-align: center;
}
.th-box-item__img {
  aspect-ratio: 1/1; background: #f8fafc;
  border-radius: .625rem; margin-bottom: .75rem;
  display: flex; align-items: center; justify-content: center;
  color: #a1a1aa; font-size: 1.75rem;
}
.th-box-item__name { font-size: .8125rem; font-weight: 700; color: #0f172a; }
.th-box-item__meta { font-size: .72rem; color: #64748b; margin-top: .15rem; }

/* ── Specs (dl) ─────────────────────────────────────────────────────── */
.th-spec-table { margin: 0; }
.th-spec-row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--th-border);
}
.th-spec-row dt { color: #64748b; font-weight: 600; font-size: .875rem; margin: 0; }
.th-spec-row dd { color: #0f172a; font-weight: 700; font-size: .875rem; margin: 0; text-align: right; }

/* ── FAQ (uses <details>) ──────────────────────────────────────────── */
.th-faq__lede { color: #475569; line-height: 1.6; font-size: .95rem; margin: .75rem 0 0; }
.th-faq__cta { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }

.th-faq-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--th-border); }
.th-faq-item { border-bottom: 1px solid var(--th-border); padding: 0; }
.th-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  font-size: 1rem; font-weight: 700; color: #0f172a;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.th-faq-item summary::-webkit-details-marker { display: none; }
.th-faq-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; color: #94a3b8; flex: 0 0 auto; }
.th-faq-item__icon .fa-minus { display: none; }
.th-faq-item[open] .th-faq-item__icon .fa-plus { display: none; }
.th-faq-item[open] .th-faq-item__icon .fa-minus { display: inline-block; }
.th-faq-item__body { padding: 0 0 1.25rem; color: #475569; font-size: .9375rem; line-height: 1.6; }
.th-faq-item__body p:first-child { margin-top: 0; }
.th-faq-item__body p:last-child { margin-bottom: 0; }

/* ── Sticky mobile add-to-cart bar ─────────────────────────────────── */
.th-sticky-atc {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--th-border);
  box-shadow: 0 -10px 32px -16px rgba(15, 23, 42, .16);
  transform: translateY(100%);
  transition: transform .25s ease;
  pointer-events: none;
}
.th-sticky-atc.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}
.th-sticky-atc__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .625rem 1rem;
}
.th-sticky-atc__info { display: flex; align-items: center; gap: .75rem; min-width: 0; flex: 1; }
.th-sticky-atc__thumb {
  width: 44px; height: 44px;
  background: #f1f5f9; border-radius: .5rem; overflow: hidden;
  flex: 0 0 auto;
}
.th-sticky-atc__thumb img { width: 100%; height: 100%; object-fit: cover; }
.th-sticky-atc__text { display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.th-sticky-atc__name {
  font-size: .8125rem; font-weight: 700; color: #0f172a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.th-sticky-atc__price { font-size: .75rem; color: #475569; }
.th-sticky-atc__price .woocommerce-Price-amount { color: #0f172a; font-weight: 700; }
.th-sticky-atc .th-btn--primary { padding: .75rem 1.125rem; font-size: .875rem; white-space: nowrap; }

/* On wider screens we hide it; the in-page buy box is always visible. */
@media (min-width: 1024px) { .th-sticky-atc { display: none; } }

/* ============================================================================
 * CHECKOUT — Direction B (stepped accordion)
 * ========================================================================== */

.th-checkout {
  --th-text: #0f172a;
  --th-text-muted: #475569;
  --th-border: #e2e8f0;
  --th-surface: #ffffff;
  --th-surface-muted: #f8fafc;
  color: var(--th-text);
}

.th-checkout__header { display: block; }

/* Back to cart + secure badge row */
.th-checkout__back {
  font-size: .8125rem; color: #64748b; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: .375rem;
  transition: color .15s;
}
.th-checkout__back:hover { color: var(--brand-600); }
.th-checkout__secure {
  font-size: .8125rem; font-weight: 600; color: #64748b;
  display: inline-flex; align-items: center; gap: .375rem;
}
.th-checkout__secure i { color: #22c55e; }

/* Title */
.th-checkout__title {
  margin: 1rem 0 0;
  font-size: clamp(1.5rem, 5vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #0f172a;
}

/* ── Progress stepper ─────────────────────────────────────────────────
   Connected-dots style: numbered circles joined by a horizontal line,
   step label beneath each circle. Kills ol list counters completely.  */
.th-checkout__progress {
  list-style: none !important;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  align-items: flex-start;
  position: relative;
  counter-reset: checkout-step;
}

/* Connector line running through all circles */
.th-checkout__progress::before {
  content: '';
  position: absolute;
  top: 14px; /* vertically center on the circles */
  left: calc(100% / 8);   /* start at centre of first item */
  right: calc(100% / 8);  /* end at centre of last item */
  height: 1.5px;
  background: #e2e8f0;
  z-index: 0;
}

.th-checkout__progress li {
  list-style: none !important;
  counter-increment: checkout-step;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  position: relative;
  z-index: 1;
}

/* Numbered circle via CSS counter */
.th-checkout__progress li::before {
  content: counter(checkout-step);
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  font-size: .75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s, color .2s;
  flex-shrink: 0;
}

/* Step label */
.th-checkout__progress li {
  font-size: .625rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: #94a3b8;
  text-align: center;
  transition: color .2s;
}

/* Done: brand filled circle with checkmark */
.th-checkout__progress li.is-done::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: .6rem;
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}
.th-checkout__progress li.is-done { color: var(--brand-700); }

/* Active: dark filled circle */
.th-checkout__progress li.is-active::before {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(15,23,42,.08);
}
.th-checkout__progress li.is-active { color: #0f172a; font-weight: 800; }

/* ── Grid: steps (left) + summary (right) on md+; stacked on mobile ──── */
.th-checkout__grid {
  margin-top: 1.5rem;
  display: grid; grid-template-columns: 1fr; gap: 1rem;
}
/* Tablet (768px): 2 columns, compact summary */
@media (min-width: 768px) {
  .th-checkout__grid {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    grid-template-areas:
      'step1    summary'
      'step2    summary'
      'step3    summary'
      'step4    summary'
      'buffer   buffer';
    column-gap: 1.5rem; row-gap: .875rem;
  }
  .th-checkout__grid > [data-th-step="1"] { grid-area: step1; }
  .th-checkout__grid > [data-th-step="2"] { grid-area: step2; }
  .th-checkout__grid > [data-th-step="3"] { grid-area: step3; }
  .th-checkout__grid > [data-th-step="4"] { grid-area: step4; }
  .th-checkout__grid > .th-checkout__summary { grid-area: summary; align-self: start; position: sticky; top: 6rem; }
}
/* Desktop (1024px): wider layout */
@media (min-width: 1024px) {
  .th-checkout__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
    column-gap: 2.5rem;
  }
}

/* The hidden WC AJAX buffer that holds the review-order template output. */
.th-checkout__review-buffer {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
  grid-area: buffer;
}

/* ── Accordion step ──────────────────────────────────────────────────── */
.th-step {
  background: #fff; border: 1px solid var(--th-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.th-step[data-state="active"] { border-color: #0f172a; box-shadow: 0 4px 16px -8px rgba(15,23,42,.12); }
.th-step[data-state="done"] { border-color: var(--th-border); }
.th-step[data-state="pending"] { border-color: var(--th-border); background: #fff; }

.th-step__head {
  display: flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  padding: .75rem 3.5rem .75rem 1.25rem; /* right padding leaves room for Edit button */
  cursor: pointer;
  user-select: none;
  position: relative;
}
.th-step__head:focus { outline: none; }
.th-step__head:focus-visible { background: #f8fafc; }
.th-step[data-state="pending"] .th-step__head { cursor: not-allowed; }
.th-step[data-state="active"]  .th-step__head { cursor: default; }

/* Step eyebrow label — "STEP N" text, no circle */
.th-step__num {
  display: inline-flex; align-items: center;
  font-size: .625rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: #cbd5e1;
  transition: color .2s;
}
.th-step__num::before { content: 'STEP\00a0'; } /* "STEP " prefix */

.th-step[data-state="active"]  .th-step__num { color: var(--brand-600); }
.th-step[data-state="done"]    .th-step__num { color: var(--brand-600); font-size: 0; }
.th-step[data-state="done"]    .th-step__num::before {
  content: '✓\00a0 DONE';
  font-family: inherit; font-weight: 800;
  font-size: .625rem; letter-spacing: .12em; text-transform: uppercase;
}

.th-step__titlewrap { display: flex; flex-direction: column; gap: .125rem; width: 100%; min-width: 0; }
.th-step__title { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: #0f172a; line-height: 1.2; }
.th-step[data-state="pending"] .th-step__title { color: #94a3b8; font-weight: 700; }
.th-step[data-state="done"]    .th-step__title { color: #64748b; font-size: 1rem; font-weight: 700; }
.th-step__summary {
  font-size: .8125rem; color: #64748b; margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.th-step__summary:empty { display: none; }

/* Edit button — absolute top-right of the head */
.th-step__edit {
  position: absolute; top: .875rem; right: .875rem;
  background: transparent; border: 0; cursor: pointer;
  color: var(--brand-600); font-weight: 700; font-size: .8125rem;
  padding: .25rem .5rem; border-radius: .375rem;
}
.th-step__edit:hover { background: var(--logo-red-50); }

/* Body: animated open/close (max-height with transitioned padding so the
   closed state collapses fully and the open state grows to any height) */
.th-step__body {
  max-height: 4000px;
  overflow: hidden;
  border-top: 1px solid #f1f5f9;
  padding: .875rem 1.25rem .875rem;
  display: flex; flex-direction: column; gap: .625rem;
  transition: max-height .35s ease, padding-top .25s ease, padding-bottom .25s ease, border-top-color .2s;
}
.th-step[data-state="pending"] .th-step__body,
.th-step[data-state="done"]    .th-step__body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
}

.th-step__intro { margin: 0; font-size: .875rem; color: #475569; line-height: 1.5; }
.th-step__actions { display: flex; gap: .625rem; flex-wrap: wrap; margin-top: .25rem; }

/* ── Checkout field grid (WC form-row) ────────────────────────────── */
.th-fieldgrid { display: grid; grid-template-columns: 1fr; gap: .625rem; }
@media (min-width: 640px) {
  .th-fieldgrid {
    grid-template-columns: 1fr 1fr;
  }
  .th-fieldgrid .form-row-wide,
  .th-fieldgrid .th-checkout-field.form-row-wide,
  .th-fieldgrid .form-row.address-field { grid-column: 1 / -1; }
  .th-fieldgrid .form-row-first { grid-column: 1; }
  .th-fieldgrid .form-row-last  { grid-column: 2; }
}

/* WC's .form-row is the field wrapper */
.th-checkout .form-row { margin: 0; padding: 0; display: flex; flex-direction: column; gap: .375rem; }
.th-checkout .form-row label {
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #1f2937; margin: 0;
}
.th-checkout .form-row label .required { color: var(--brand-600); text-decoration: none; }
.th-checkout .form-row label .optional { color: #94a3b8; font-weight: 600; font-size: .6875rem; letter-spacing: 0; text-transform: none; margin-left: .25rem; }
.th-checkout .form-row .input-text,
.th-checkout .form-row select,
.th-checkout .form-row .select2-selection {
  width: 100%;
  padding: .8125rem .875rem !important;
  border: 1.5px solid var(--th-border) !important;
  border-radius: .625rem !important;
  font: inherit; font-size: .9375rem; font-weight: 500;
  background: #fff;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
}
.th-checkout .form-row .input-text:focus,
.th-checkout .form-row select:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--logo-red-50);
}
.th-checkout .form-row .select2-selection { height: auto; padding: .5rem .875rem !important; }
.th-checkout .form-row .select2-selection__rendered { padding: 0 !important; line-height: 1.5; font-weight: 500; }
.th-checkout .form-row .select2-selection__arrow { top: .9375rem; right: .75rem; }
.th-checkout .form-row.woocommerce-invalid .input-text {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.th-checkout .form-row.woocommerce-validated .input-text:not(:placeholder-shown) {
  border-color: #10b981 !important;
}
.th-checkout .woocommerce-input-wrapper { display: contents; }

/* Inline checkbox style */
.th-checkbox--inline {
  display: flex; align-items: flex-start; gap: .625rem;
  font-size: .875rem; color: #334155; line-height: 1.45;
  cursor: pointer;
}
.th-checkbox--inline input { margin-top: .15rem; accent-color: var(--brand-600); flex: 0 0 auto; }

/* Ship to different address heading */
.th-checkout__shipto-title { font-size: .9375rem; margin: .5rem 0; font-weight: 700; color: #0f172a; }
.th-checkout__shipto-title input { accent-color: var(--brand-600); margin-right: .375rem; }

/* ── Shipping rates ─────────────────────────────────────────────────── */
.th-shipping-pkg { border: 0; padding: 0; margin: 0; }
.th-shipping-rates { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .625rem; }
.th-shipping-rate { display: block; }
.th-shipping-rate label {
  display: flex; align-items: center; gap: .875rem;
  padding: .875rem 1rem;
  border: 1.5px solid var(--th-border); border-radius: .75rem;
  background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.th-shipping-rate.is-selected label,
.th-shipping-rate:has(input:checked) label {
  border-color: #0a0a0a; background: #f8fafc;
}
.th-shipping-rate input { position: absolute; opacity: 0; pointer-events: none; }
.th-shipping-rate__bullet {
  width: 18px; height: 18px;
  border: 2px solid #cbd5e1; border-radius: 999px;
  position: relative; flex: 0 0 auto;
}
.th-shipping-rate.is-selected .th-shipping-rate__bullet,
.th-shipping-rate:has(input:checked) .th-shipping-rate__bullet { border-color: #0a0a0a; }
.th-shipping-rate.is-selected .th-shipping-rate__bullet::after,
.th-shipping-rate:has(input:checked) .th-shipping-rate__bullet::after {
  content: ''; position: absolute; inset: 3px; background: #0a0a0a; border-radius: 999px;
}
.th-shipping-rate__body { flex: 1; display: flex; flex-direction: column; gap: .125rem; min-width: 0; }
.th-shipping-rate__body strong { font-size: .9375rem; font-weight: 700; color: #0f172a; }
.th-shipping-rate__body small { font-size: .8125rem; color: #64748b; }
.th-shipping-rate__price { font-size: .9375rem; font-weight: 700; color: #0f172a; white-space: nowrap; }
.th-free { color: var(--brand-600); font-weight: 800; }
.th-shipping-empty { font-size: .875rem; color: #475569; padding: 1rem; background: #f8fafc; border-radius: .625rem; margin: 0; }

/* ── Payment methods ────────────────────────────────────────────────── */
.th-payment-methods { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.th-payment-methods .wc_payment_method {
  border: 1.5px solid var(--th-border); border-radius: .75rem;
  background: #fff; overflow: hidden;
}
.th-payment-methods .wc_payment_method > label {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .375rem .5rem;
  padding: .75rem 1rem; cursor: pointer; margin: 0;
  font-weight: 700; color: #0f172a; font-size: .9375rem;
}
.th-payment-methods .wc_payment_method input[type="radio"] { accent-color: #0a0a0a; flex: 0 0 auto; }
.th-payment-methods .wc_payment_method:has(input:checked) {
  border-color: #0a0a0a;
  background: #f8fafc;
}
/* Icons: force inline, push the whole group to the right of the label text.
   order:2 moves them after the text node (anonymous flex item, order:0)
   regardless of their position in the source HTML. */
.th-payment-methods .payment_method_image,
.th-payment-methods .wc_payment_method > label img {
  max-height: 22px; width: auto;
  display: inline-flex !important;
  flex-shrink: 0; margin: 0;
  order: 2;
}
.th-payment-methods .wc_payment_method > label img:first-of-type {
  margin-left: auto; /* push the entire icon group to the right edge */
}
.th-payment-methods .payment_box {
  padding: .625rem .875rem .75rem; margin: 0 .875rem .75rem;
  background: #fff; border-radius: .5rem;
  border: 1px dashed var(--th-border);
  font-size: .8125rem; color: #475569;
}
.th-payment-methods .payment_box p:first-child { margin-top: 0; }
.th-payment-methods .payment_box p:last-child { margin-bottom: 0; }
.th-payment-methods .payment_box input.input-text,
.th-payment-methods .payment_box select {
  padding: .625rem .75rem;
  border: 1.5px solid var(--th-border); border-radius: .5rem;
  font-size: .875rem;
}

/* Password strength meter (WooCommerce account creation at checkout) */
.woocommerce-password-strength {
  display: inline-flex; align-items: center;
  padding: .2rem .625rem;
  border-radius: 9999px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
}
.woocommerce-password-strength.short,
.woocommerce-password-strength.bad      { background: #fee2e2; color: #b91c1c; }
.woocommerce-password-strength.good     { background: #fef9c3; color: #854d0e; }
.woocommerce-password-strength.strong   { background: #dcfce7; color: #166534; }
.woocommerce-password-hint {
  font-size: .75rem; color: #94a3b8; margin: .125rem 0 0;
}
.woocommerce-password-hint small { font-size: inherit; }

.th-place-order { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.th-place-order__btn { width: 100%; padding: 1.25rem 1.4rem !important; font-size: 1.0625rem !important; }
.th-place-order__legal { font-size: .75rem; color: #64748b; text-align: center; margin: 0; line-height: 1.5; }
.th-place-order__legal a { color: var(--brand-600); font-weight: 600; }

/* WC's terms paragraph */
.th-checkout .woocommerce-terms-and-conditions-wrapper { font-size: .8125rem; color: #475569; }
.th-checkout .woocommerce-terms-and-conditions-wrapper input { accent-color: var(--brand-600); }

/* ── Summary sidebar ────────────────────────────────────────────────── */
.th-checkout__summary {
  background: #fff; border: 1px solid var(--th-border);
  border-radius: 1rem;
  padding: 1.25rem;
}
.th-checkout__summary-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.th-checkout__summary-head h2 {
  margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: #0f172a;
}
.th-checkout__summary-toggle {
  display: none;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; color: #0f172a; font-weight: 700;
  align-items: center; gap: .5rem;
}
.th-checkout__summary-toggle i { transition: transform .2s; }
.th-checkout__summary-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

.th-summary-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.th-summary-item {
  display: grid; grid-template-columns: 56px 1fr auto;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}
.th-summary-item:last-child { border-bottom: 0; }
.th-summary-item__thumb {
  position: relative;
  width: 56px; height: 56px;
  border-radius: .5rem;
  background: #f1f5f9;
  overflow: hidden;
}
.th-summary-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.th-summary-item__qty {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  background: #0a0a0a; color: #fff;
  border-radius: 999px;
  font-size: .65rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
}
.th-summary-item__info { min-width: 0; display: flex; flex-direction: column; gap: .125rem; }
.th-summary-item__info strong { font-size: .8125rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.th-summary-item__info small { font-size: .75rem; color: #64748b; line-height: 1.3; }
.th-summary-item__info small p { margin: 0; display: inline; }
.th-summary-item__price { font-size: .8125rem; font-weight: 700; color: #0f172a; white-space: nowrap; }

/* Promo / coupon */
.th-summary-promo { margin: .75rem 0 0; }
.th-summary-coupon {
  display: flex; align-items: center; gap: .5rem;
  background: var(--logo-red-50); color: var(--brand-700);
  border: 1px solid rgba(178, 42, 37, .15);
  padding: .625rem .75rem; border-radius: .5rem;
  font-size: .8125rem; font-weight: 600;
}
.th-summary-coupon i { color: var(--brand-600); }

.th-summary-totals {
  margin: .875rem 0 0;
  padding-top: .875rem;
  border-top: 1px solid var(--th-border);
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .8125rem;
}
.th-summary-totals__row { display: flex; justify-content: space-between; color: #475569; margin: 0; }
.th-summary-totals__row dt, .th-summary-totals__row dd { margin: 0; }
.th-summary-totals__row--discount dd { color: var(--brand-600); font-weight: 700; }
.th-summary-totals__row--grand {
  margin-top: .25rem;
  padding-top: .75rem;
  border-top: 1px solid var(--th-border);
  font-size: 1.0625rem; font-weight: 800; color: #0f172a; letter-spacing: -0.01em;
}

/* Trust list under summary (desktop only) */
.th-checkout__trust { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: .375rem; }
.th-checkout__trust li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; color: #475569;
  padding: .375rem 0;
}
.th-checkout__trust li i { color: var(--brand-600); }
.th-checkout__trust a { color: inherit; text-decoration: none; }

/* ── Mobile pay bar + summary sheet ─────────────────────────────────── */
.th-checkout__mobilebar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  background: #fff;
  border-top: 2px solid #f1f5f9;
  box-shadow: 0 -4px 24px rgba(15,23,42,.1);
  padding: .5rem 1.25rem env(safe-area-inset-bottom, .5rem);
  display: block;
}
.th-checkout__mobilebar-total {
  display: flex; align-items: center; gap: .625rem;
  width: 100%; background: transparent; border: 0; cursor: pointer;
  font: inherit; padding: .375rem 0;
}
/* "TOTAL" label */
.th-checkout__mobilebar-total span {
  font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: #94a3b8; font-weight: 700;
}
/* price */
.th-checkout__mobilebar-total strong {
  font-size: 1.0625rem; font-weight: 800; color: #0f172a;
}
/* "View order" hint text */
.th-checkout__mobilebar-total::after {
  content: 'View order';
  margin-left: auto;
  margin-right: .25rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--brand-600);
  white-space: nowrap;
}
.th-checkout__mobilebar-total i {
  color: var(--brand-600);
  font-size: .75rem;
  transition: transform .2s;
  flex-shrink: 0;
}
.th-checkout__mobilebar-total[aria-expanded="true"] i { transform: rotate(180deg); }
.th-checkout__mobilebar-total[aria-expanded="true"]::after { content: 'Hide order'; }

/* ── Mobile overrides (< 768px — single-column, no sidebar) ─────────── */
@media (max-width: 767.98px) {
  /* Header: override Tailwind's pt-6 to keep header compact */
  .th-checkout__header {
    padding-top: 1rem !important;
    padding-bottom: 0.5rem !important;
  }

  /* Grid: bottom padding so fixed pay bar never covers content */
  .th-checkout__grid {
    padding-bottom: 5rem;
  }

  /* Step body: tighter padding on small screens */
  .th-step__body {
    padding: 1rem 1rem 1.25rem;
  }

  /* Summary: collapsed until toggled (mobile bottom-sheet style) */
  .th-checkout__summary {
    order: -1;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .th-checkout__summary-head { display: none; }
  .th-checkout__summary-body {
    display: none;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--th-border);
    border-radius: 1rem;
    margin-bottom: .5rem;
  }
  .th-checkout__summary.is-expanded .th-checkout__summary-body { display: block; }
  .th-checkout__trust {
    padding: 0 .25rem;
    /* show trust bullets even when summary is collapsed on mobile */
    display: flex;
  }
}

/* ── Mobile pay bar (< 640px only — already hidden on desktop) ── */
@media (max-width: 639px) {
  .th-checkout__header {
    padding-top: 0.875rem !important;
  }

  /* Tighter step head on very small screens */
  .th-step__head {
    padding: 0.875rem 3rem 1rem 1rem;
  }
  .th-step__title {
    font-size: 1.125rem;
  }
}

/* Hide mobile bar when sidebar is visible (768px+) */
@media (min-width: 768px) {
  .th-checkout__mobilebar { display: none; }
}

/* Hide form-row clear divs WC inserts */
.th-checkout .clear { display: none; }

/* WC notices inside checkout */
.th-checkout .woocommerce-notices-wrapper:empty { display: none; }
.th-checkout .woocommerce-error,
.th-checkout .woocommerce-info,
.th-checkout .woocommerce-message {
  background: #fff; border-radius: .75rem; padding: 1rem 1.25rem;
  border-left: 4px solid;
  list-style: none;
  margin: 0 0 1rem;
  font-size: .9375rem;
}
.th-checkout .woocommerce-error { border-left-color: #dc2626; color: #7f1d1d; background: #fef2f2; }
.th-checkout .woocommerce-info  { border-left-color: var(--brand-600); color: var(--brand-700); background: var(--logo-red-50); }
.th-checkout .woocommerce-message { border-left-color: #10b981; color: #065f46; background: #ecfdf5; }
