/*
Theme Name: TradeFayre
Description: Custom TradeFayre storefront — design tokens, Plus Jakarta Sans, shop trust bar.
Version: 1.1.23
Author: TradeFayre
*/

:root {
  /* Brand DNA from brand_specs.json */
  --tf-blue: #24519D;
  --tf-red: #E40046;
  --tf-green: #209740;
  --tf-yellow: #FFE600;
  /* House navy: headings, drawer, hero (WC “Clean Bill of Health” UI) */
  --tf-navy: #003366;
  /* System UI from index.html blueprint */
  --tf-text: #122033;
  --tf-muted: #64748B;
  --tf-surface: #F4F7FB;
  --tf-white: #ffffff;
  --tf-line: color-mix(in srgb, var(--tf-blue) 14%, transparent);
  
  /* Layout Constants */
  --container: 72rem;
  --tf-section-gap: clamp(2rem, 4vw, 3rem);
  /* One vertical line for header logo + shop hero H1 (pairs with the .container 100% - 2.5rem cap). */
  --tf-gutter: 2.5rem;
  /* Site footer (darker than headings navy). */
  --tf-footer-bg: #002244;
  --header-h: 4.25rem;
  --focus: 2px solid var(--tf-red);
  --shadow: 0 20px 50px color-mix(in srgb, var(--tf-blue) 8%, transparent);
}

/* ==========================================================================
   Priority 2 Brand Fix 9 — Shop pagination
   ========================================================================== */
.woocommerce-pagination a, .woocommerce-pagination span,
.page-numbers a, .page-numbers span {
  color: var(--tf-blue);
}
.woocommerce-pagination .current, .page-numbers .current {
  background: var(--tf-blue); color: var(--tf-white);
}

/* ==========================================================================
   Priority 2 Brand Fix 10 — PDP review form (tab chrome: entry-summary rules in PDP block)
   ========================================================================== */
#review_form .submit { background: var(--tf-blue); color: var(--tf-white); border-radius: 0.75rem; font-weight: 800; }
#review_form .stars a { color: var(--tf-blue); }

/* ==========================================================================
   Priority 2 Brand Fix 11 — Order confirmation headings + table prices
   ========================================================================== */
body.woocommerce-order-received h2,
body.woocommerce-thankyou h2 {
  color: var(--tf-navy); font-weight: 800;
}
.woocommerce-order-details .woocommerce-Price-amount {
  color: var(--tf-navy); font-weight: 700;
}

/* ==========================================================================
   Priority 2 Brand Fix 12 — Continue shopping button
   ========================================================================== */
body.woocommerce-order-received .button,
body.woocommerce-thankyou .button {
  background: var(--tf-blue); color: var(--tf-white);
  border-radius: 0.75rem; font-weight: 800;
}

/* ==========================================================================
   Priority 2 Brand Fix 13 — Cart remove link
   ========================================================================== */
.wc-block-cart-item__remove-link,
.wc-block-cart-item__remove-link:hover {
  color: var(--tf-muted);
}

/* ==========================================================================
   Priority 2 Brand Fix 14 — My Account login form inputs
   ========================================================================== */
body.woocommerce-account .woocommerce-form-row input {
  border: 1px solid var(--tf-line);
}
body.woocommerce-account .woocommerce-form-row input:focus {
  border-color: var(--tf-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tf-blue) 14%, transparent);
}

/* ==========================================================================
   Priority 2 Brand Fix 15 — Order history table links
   ========================================================================== */
.woocommerce-orders-table td a {
  color: var(--tf-blue);
}
.woocommerce-orders-table td a:hover {
  color: var(--tf-navy);
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--tf-surface);
  color: var(--tf-text);
}

.tf-trust-authority {
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.tf-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 720px) {
  .tf-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }
}
.tf-trust-grid .tf-trust-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  box-sizing: border-box;
}
.tf-trust-item strong {
  display: block;
  color: var(--tf-blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  line-height: 1.25;
}
.tf-trust-item span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--tf-muted);
}
/* Centre stats panel: subtle lift without competing with checkout red or promo yellow. */
.tf-trust-grid .tf-trust-item--seller-stats {
  padding: 0.85rem 0.75rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--tf-blue) 6%, var(--tf-surface));
  border: 1px solid color-mix(in srgb, var(--tf-blue) 12%, var(--tf-line));
}
.tf-trust-item--seller-stats span {
  color: var(--tf-navy);
}

/* Container class used by the trust bar (Woo/Storefront often use .col-full or theme containers; align to common widths) */
.tf-trust-authority .container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* No-hero pages: breathing room below sticky header when trust bar is first content. */
body.woocommerce-shop #tf-wc-wrap,
body.post-type-archive-product #tf-wc-wrap,
body.tax-product_cat #tf-wc-wrap,
body.tax-product_tag #tf-wc-wrap {
  padding-top: 40px;
  padding-left: var(--tf-gutter);
  padding-right: var(--tf-gutter);
  box-sizing: border-box;
}

/* Shop main archive H1 — below trust bar, above department pills */
body.woocommerce-shop .tf-shop-page-title {
  color: #24519D;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
}

/* Search results catalogue title — match shop title band */
.tf-search-page-title {
  color: #24519D;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
}

body.woocommerce.search #tf-wc-wrap {
  padding-top: 40px;
  box-sizing: border-box;
}

body.woocommerce.search .woocommerce-products-header {
  display: none !important;
}

body.tax-product_cat .woocommerce-products-header__title,
body.tax-product_tag .woocommerce-products-header__title {
  color: #24519D;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.75rem 0 0.5rem;
}

body.page-contact .tf-main .tf-trust-authority,
body.page-delivery-returns .tf-main .tf-trust-authority,
body.page-delivery .tf-main .tf-trust-authority,
body.page-terms-conditions .tf-main .tf-trust-authority,
body.page-privacy-policy .tf-main .tf-trust-authority,
body.woocommerce-cart .tf-main .tf-trust-authority,
body.woocommerce-checkout .tf-main .tf-trust-authority,
body.woocommerce-account .tf-main .tf-trust-authority {
  margin-top: 24px;
  box-sizing: border-box;
}

/* ─── Sticky header (web_assets/homepage/index.html) ─── */
.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}
.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
.tf-skip {
  position: absolute;
  left: -9999px;
  z-index: 100;
}
.tf-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--tf-white);
  box-shadow: var(--shadow);
}
.head {
  background: var(--tf-white);
  border-bottom: 1px solid var(--tf-line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--tf-blue) 5%, transparent);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* Vertical rail: full-width bar; `var(--tf-gutter)` matches the hero (no viewport-width breakouts). */
.head__rail {
  position: relative;
  left: auto;
  right: auto;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
  /* Aligned to .tf-hero-cinema: same --tf-gutter. */
  padding-left: var(--tf-gutter) !important;
  padding-right: var(--tf-gutter) !important;
}
.head__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.8rem;
  padding: 0.6rem 0;
  min-height: var(--header-h);
}
@media (min-width: 960px) {
  .head__row {
    flex-wrap: nowrap;
    gap: 1.5rem;
    justify-content: flex-start;
  }
}
.head__cluster {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  min-width: 0;
  flex: 0 0 auto; /* keep logo + menu bar pinned to the start of the container (Clean Rail) */
}
.tf-custom-logo-wrap .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}
.tf-custom-logo-wrap .custom-logo {
  width: auto;
  max-width: 168px;
  max-height: 50px;
  object-fit: contain;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  text-decoration: none;
  color: var(--tf-text);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand__text {
  line-height: 1.2;
}
.brand__img {
  display: block;
  max-width: 100%;
  height: auto;
}
.head__menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--tf-line);
  background: var(--tf-white);
  border-radius: 0.5rem;
  padding: 0.45rem 0.6rem 0.45rem 0.5rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--tf-navy);
}
.head__menu-btn:hover {
  background: color-mix(in srgb, var(--tf-navy) 4%, #fff);
}
.head__menu-icon {
  display: block;
  flex-shrink: 0;
}
.head__nav {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
  max-width: 32rem;
}
@media (min-width: 960px) {
  .head__nav {
    display: flex;
  }
}
.head__nav a {
  padding: 0.4rem 0.65rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.5rem;
  color: var(--tf-text);
  text-decoration: none;
}
.head__nav a[aria-current="page"],
.head__nav a:hover {
  background: color-mix(in srgb, var(--tf-blue) 7%, #fff);
  color: var(--tf-blue);
}
.head__search {
  display: none;
  flex: 0 0 auto;
  position: relative;
}
@media (min-width: 720px) {
  .head__search {
    display: block;
    min-width: 0;
    flex: 1 1 0;
    max-width: 22rem;
    margin-left: auto;
    margin-right: 1rem;
  }
}
.head__search .search {
  display: flex;
  align-items: center;
  border: 1px solid var(--tf-line);
  border-radius: 999px;
  background: var(--tf-surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.head__search .search:focus-within {
  border-color: color-mix(in srgb, var(--tf-blue) 42%, var(--tf-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tf-blue) 16%, transparent);
}
.head__search .search input {
  border: 0;
  background: transparent;
  flex: 1;
  min-width: 0;
  padding: 0.45rem 1rem;
  font: inherit;
}
.head__search .search input:focus,
.head__search .search input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.head__search .search button {
  background: var(--tf-blue);
  color: var(--tf-white);
  border: 0;
  border-left: 1px solid var(--tf-line);
  padding: 0.5rem 1rem;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
}
.head__search .search button:hover {
  filter: brightness(1.05);
}
.tf-live-search__results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 95;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--tf-line);
  border-radius: 0.8rem;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--tf-blue) 16%, transparent);
  overflow: hidden;
}
.tf-live-search__scroll {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
}
.tf-live-search__item {
  display: flex;
  align-items: flex-start;
  gap: 0.72rem;
  text-decoration: none;
  color: var(--tf-text);
  padding: 0.62rem 0.72rem;
  border-bottom: 1px solid var(--tf-line);
  min-width: 0;
}
.tf-live-search__item:hover {
  background: color-mix(in srgb, var(--tf-blue) 7%, #fff);
}
.tf-live-search__thumb-wrap {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 0.45rem;
  overflow: hidden;
  border: 1px solid var(--tf-line);
  background: #fff;
  display: block;
}
.tf-live-search__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
}
.tf-live-search__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.12rem;
}
.tf-live-search__title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tf-live-search__price {
  font-size: 0.8rem;
  color: var(--tf-blue);
  font-weight: 800;
}
.tf-live-search__all {
  display: block;
  padding: 0.6rem 0.8rem;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--tf-blue);
  background: color-mix(in srgb, var(--tf-blue) 5%, #fff);
}
.tf-live-search__all:hover {
  background: color-mix(in srgb, var(--tf-blue) 10%, #fff);
}
.tf-live-search__empty {
  padding: 0.75rem 0.8rem;
  font-size: 0.82rem;
  color: var(--tf-muted);
}
.head__act {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  flex: 0 0 auto;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.65rem;
  border: 1px solid var(--tf-line);
  background: var(--tf-white);
  padding: 0.45rem 0.6rem;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--tf-text);
  text-decoration: none;
  min-height: 2.5rem;
  cursor: pointer;
}
.icon-btn--cart {
  position: relative;
  border-color: color-mix(in srgb, var(--tf-red) 30%, #fff);
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--tf-red) 4%, #fff));
  color: inherit;
}
.icon-btn--cart::after {
  content: attr(data-count);
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: var(--tf-red);
  color: var(--tf-white);
  font-size: 0.65rem;
  display: grid;
  place-items: center;
  padding: 0 0.2rem;
  line-height: 1.2;
}
.icon-btn--cart[data-count="0"]::after {
  content: "";
  display: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  padding: 0.7rem 1.25rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  border: 0;
  font: inherit;
  text-align: center;
  text-decoration: none;
  min-height: 2.85rem;
  transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
  white-space: nowrap;
  box-sizing: border-box;
}
.btn:active {
  transform: scale(0.98);
}
/* TradeFayre Red CTA for Checkout — brand_specs.json secondary / --tf-red */
.btn--tf-checkout,
a.btn--tf-checkout {
  background: #e40046;
  background: var(--tf-red);
  color: var(--tf-white);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--tf-red) 28%, transparent);
}
.btn--tf-checkout:hover {
  color: var(--tf-white);
  filter: brightness(1.06);
}
a:focus-visible,
button:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}
.tf-main {
  min-height: 40vh;
}

/* WooCommerce inner wrapper — replaces core nested <main> (see tradefayre_replace_woocommerce_content_wrappers). */
.tf-wc-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  clear: both;
  box-sizing: border-box;
}

/* Cart, checkout, account: no cinema hero — sensible top spacing below sticky header */
body.woocommerce-cart #tf-wc-wrap,
body.woocommerce-checkout #tf-wc-wrap,
body.woocommerce-account #tf-wc-wrap {
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
  box-sizing: border-box;
}

body.woocommerce-cart .tf-page > .tf-mission,
body.woocommerce-checkout .tf-page > .tf-mission,
body.woocommerce-account .tf-page > .tf-mission {
  padding-top: 0;
}

/* ─── Woo Cart + Checkout: transactional layout (Blocks on page.php shell) ─── */
body.woocommerce-cart .tf-page,
body.woocommerce-checkout .tf-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.woocommerce-cart .tf-page > .tf-mission,
body.woocommerce-checkout .tf-page > .tf-mission {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--tf-gutter);
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-sizing: border-box;
}

body.woocommerce-cart .tf-page > .tf-mission > .container,
body.woocommerce-checkout .tf-page > .tf-mission > .container {
  width: min(var(--container), 100%);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
}

body.woocommerce-cart .tf-page > .tf-mission > .container > .tf-page-editor,
body.woocommerce-checkout .tf-page > .tf-mission > .container > .tf-page-editor {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: clamp(1.15rem, 2.2vw, 1.85rem) clamp(1rem, 2vw, 1.5rem);
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: 1rem;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--tf-blue) 4%, transparent);
  overflow: visible;
  box-sizing: border-box;
}

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Empty cart “New in store” cross-sell — Woo Blocks grid (not shop p-card loop). */
body.woocommerce-cart .wp-block-woocommerce-cart .add_to_cart_button,
body.woocommerce-cart .wp-block-woocommerce-cart a.wp-block-button__link,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-button__button {
  background: var(--tf-blue) !important;
  color: var(--tf-white) !important;
  border: 0;
  border-radius: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
}
body.woocommerce-cart .wp-block-woocommerce-cart .add_to_cart_button:hover,
body.woocommerce-cart .wp-block-woocommerce-cart a.wp-block-button__link:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-button__button:hover {
  color: var(--tf-white) !important;
  filter: brightness(1.05);
}
body.woocommerce-cart .wp-block-woocommerce-cart .add_to_cart_button:focus-visible,
body.woocommerce-cart .wp-block-woocommerce-cart a.wp-block-button__link:focus-visible,
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-button__button:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

/* Empty cart “New in store” — product card shell (opaque; scoped to empty-cart / product-new only). */
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__products,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block ul.wc-block-product-template,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new ul.wc-block-product-template {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: clamp(0.95rem, 2.5vw, 1.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block li.wc-block-product,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new li.wc-block-product {
  display: flex;
  flex-direction: column;
  flex: 0 1 min(16.5rem, 100%);
  width: min(16.5rem, 100%);
  max-width: 16.5rem;
  min-height: 23.5rem;
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--tf-blue) 4%, transparent);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

@media (hover: hover) {
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product:hover,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block li.wc-block-product:hover,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new li.wc-block-product:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
  }
}

/* Product image — legacy grid + components template */
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-image,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-image,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-image {
  margin: 0;
  padding: 0.35rem 0.35rem 0;
  background: var(--tf-white);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image a,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-image a,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-image a,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-image a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
  text-decoration: none;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--tf-white);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-image img,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-image img,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: var(--tf-white);
}

/* Titles */
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-title,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-title,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-title {
  margin: 0;
  padding: 0.9rem 1rem 0.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--tf-text);
  min-height: 4.5rem;
  max-height: 4.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title a,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-title a,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-title a,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-title a {
  color: var(--tf-navy) !important;
  text-decoration: none !important;
  font-weight: inherit;
  line-height: inherit;
}

/* Title wrappers in some Woo Blocks variants (do not apply to broad product link wrapper). */
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-name,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-name,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-post-title,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wp-block-post-title {
  margin: 0;
  padding: 0.9rem 1rem 0.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--tf-text);
  min-height: 4.5rem;
  max-height: 4.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title a:visited,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-title a:visited,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-title a:visited,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-title a:visited {
  color: var(--tf-navy) !important;
  text-decoration: none !important;
}

/* Woo Blocks variants in live markup (title link wrappers and product-name links). */
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-link,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-name a,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-name a,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-post-title a,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wp-block-post-title a {
  color: var(--tf-navy) !important;
  text-decoration: none !important;
  font-weight: 800;
  line-height: 1.25;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link:visited,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-link:visited,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-name a:visited,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-name a:visited,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-post-title a:visited,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wp-block-post-title a:visited {
  color: var(--tf-navy) !important;
  text-decoration: none !important;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title a:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-title a:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-title a:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-title a:hover {
  color: var(--tf-blue) !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-link:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-name a:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-name a:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-post-title a:hover,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wp-block-post-title a:hover {
  color: var(--tf-blue) !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Prices */
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-price,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-price,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-price {
  margin: 0;
  padding: 0 1rem 0.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--tf-blue);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price .amount,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-price .amount,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-price .amount,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-price .amount,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price ins,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-price ins,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-price ins,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-price ins {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price del,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-price del,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-price del,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-price del {
  color: var(--tf-muted);
  font-weight: 600;
  font-size: 0.9em;
}

/* Add to cart row — structure alignment only; button colours unchanged above */
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-add-to-cart,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-button,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-button {
  margin: 0;
  margin-top: auto;
  padding: 0.35rem 1rem 1rem;
  display: flex;
  align-items: stretch;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .add_to_cart_button,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-add-to-cart .add_to_cart_button,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-button .wc-block-components-product-button__button,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-button .wc-block-components-product-button__button,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-add-to-cart .wp-block-button__link {
  width: 100%;
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  padding: 0.6rem 1rem;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-onsale,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-onsale,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-sale-badge,
body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-sale-badge {
  background: var(--tf-red);
  color: var(--tf-white);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 0.25rem 0.5rem;
}

@media (max-width: 430px) {
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block li.wc-block-product,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new li.wc-block-product {
    flex-basis: min(15rem, 100%);
    width: min(15rem, 100%);
    max-width: 15rem;
    min-height: 22.75rem;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-title,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-title,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-title {
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    min-height: 4.2rem;
    max-height: 4.2rem;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-name,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-name,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-post-title,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wp-block-post-title {
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    min-height: 4.2rem;
    max-height: 4.2rem;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-price,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-price,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-price {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-grid__product-add-to-cart,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-components-product-button,
  body.woocommerce-cart .wp-block-woocommerce-cart .wp-block-woocommerce-product-new .wc-block-components-product-button {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }
}

body.woocommerce-cart .wp-block-woocommerce-cart *,
body.woocommerce-cart .wp-block-woocommerce-cart *::before,
body.woocommerce-cart .wp-block-woocommerce-cart *::after,
body.woocommerce-checkout .wp-block-woocommerce-checkout *,
body.woocommerce-checkout .wp-block-woocommerce-checkout *::before,
body.woocommerce-checkout .wp-block-woocommerce-checkout *::after {
  box-sizing: border-box;
}

body.woocommerce-cart .wc-block-components-sidebar-layout,
body.woocommerce-checkout .wc-block-components-sidebar-layout {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  gap: clamp(1.25rem, 3vw, 2rem);
  box-sizing: border-box;
}

body.woocommerce-cart .wc-block-components-main,
body.woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-checkout .wc-block-components-main,
body.woocommerce-checkout .wc-block-components-sidebar {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-order-summary {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.woocommerce-cart .wc-block-cart-items__row {
  align-items: flex-start;
  gap: 0.75rem 1rem;
}

body.woocommerce-cart .wc-block-cart-item__image {
  flex: 0 0 auto;
}

body.woocommerce-cart .wc-block-cart-item__product,
body.woocommerce-cart .wc-block-cart-item__wrap,
body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-checkout .wc-block-components-order-summary-item,
body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-product-name,
body.woocommerce-checkout .wc-block-components-product-metadata {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Filled cart line items — product name link */
body.woocommerce-cart .wc-block-cart-items__row
  .wc-block-components-product-name,
body.woocommerce-cart .wc-block-cart-item__product
  .wc-block-components-product-name {
  color: #24519D;
  color: var(--tf-blue);
  font-weight: 700;
  text-decoration: none;
}
body.woocommerce-cart .wc-block-cart-items__row
  .wc-block-components-product-name:hover,
body.woocommerce-cart .wc-block-cart-item__product
  .wc-block-components-product-name:hover {
  color: color-mix(in srgb, var(--tf-blue) 88%, #000);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Cart line item price */
body.woocommerce-cart
  .wc-block-cart-item__total-price,
body.woocommerce-cart
  .wc-block-components-product-price {
  color: var(--tf-blue);
  font-weight: 700;
}

/* Cart totals — Proceed to Checkout button */
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart
  .wc-block-components-proceed-to-checkout-button,
body.woocommerce-cart
  .wp-block-woocommerce-proceed-to-checkout-block
  .wc-block-components-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  color: var(--tf-white) !important;
  background: #24519D !important;
  background: var(--tf-blue) !important;
  border: 0 !important;
  border-radius: 0.75rem;
  box-shadow: 0 8px 22px
    color-mix(in srgb, var(--tf-blue) 24%, transparent);
  box-sizing: border-box;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart
  .wc-block-components-proceed-to-checkout-button:hover,
body.woocommerce-cart
  .wp-block-woocommerce-proceed-to-checkout-block
  .wc-block-components-button:hover {
  color: var(--tf-white) !important;
  filter: brightness(1.04);
  text-decoration: none !important;
}
body.woocommerce-cart .wc-block-cart__submit-button:focus-visible,
body.woocommerce-cart
  .wc-block-components-proceed-to-checkout-button:focus-visible,
body.woocommerce-cart
  .wp-block-woocommerce-proceed-to-checkout-block
  .wc-block-components-button:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

/* Checkout — Place Order button */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-checkout__place-order-button,
body.woocommerce-checkout .wc-block-components-button[type="submit"],
body.woocommerce-checkout button.wc-block-components-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  color: var(--tf-white) !important;
  background: #24519D !important;
  background: var(--tf-blue) !important;
  border: 0 !important;
  border-radius: 0.75rem;
  box-shadow: 0 8px 22px
    color-mix(in srgb, var(--tf-blue) 24%, transparent);
  box-sizing: border-box;
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout .wc-block-checkout__place-order-button:hover,
body.woocommerce-checkout .wc-block-components-button[type="submit"]:hover,
body.woocommerce-checkout button.wc-block-components-button:hover {
  color: var(--tf-white) !important;
  filter: brightness(1.04);
  text-decoration: none !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible,
body.woocommerce-checkout .wc-block-checkout__place-order-button:focus-visible,
body.woocommerce-checkout .wc-block-components-button[type="submit"]:focus-visible,
body.woocommerce-checkout button.wc-block-components-button:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

/* Place Order height override — beats Woo Blocks
   button defaults on <button> element */
body.woocommerce-checkout
  .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout
  .wc-block-checkout__place-order-button {
  min-height: 2.75rem !important;
  height: auto !important;
  padding: 0.65rem 1.15rem !important;
  font-size: 0.9rem !important;
  line-height: 1.2 !important;
}

/* Place Order width — match Proceed column cap
   on desktop (≥720px), full width on mobile */
@media (min-width: 720px) {
  body.woocommerce-checkout .wc-block-checkout__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  body.woocommerce-checkout
    .wc-block-components-checkout-place-order-button,
  body.woocommerce-checkout
    .wc-block-checkout__place-order-button {
    width: 100%;
    max-width: min(100%, 22rem);
  }
}

/* Checkout section headings */
body.woocommerce-checkout
  .wc-block-components-checkout-step__title,
body.woocommerce-checkout
  .wc-block-checkout__form-title,
body.woocommerce-checkout
  .wc-block-components-checkout-step__heading {
  color: var(--tf-navy);
  font-weight: 800;
}

/* Checkout input focus — branded blue ring */
body.woocommerce-checkout
  .wc-block-components-text-input input:focus,
body.woocommerce-checkout
  .wc-block-components-text-input input:focus-visible {
  border-color: color-mix(
    in srgb, var(--tf-blue) 42%, var(--tf-line)
  );
  box-shadow: 0 0 0 3px color-mix(
    in srgb, var(--tf-blue) 14%, transparent
  );
  outline: none;
}

/* Checkout legal links (Terms, Privacy) */
body.woocommerce-checkout
  .wc-block-components-checkbox__label a,
body.woocommerce-checkout
  .wc-block-checkout__terms a {
  color: var(--tf-blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
body.woocommerce-checkout
  .wc-block-components-checkbox__label a:hover,
body.woocommerce-checkout
  .wc-block-checkout__terms a:hover {
  color: color-mix(in srgb, var(--tf-blue) 80%, #000);
}

/* Checkout sidebar — PayPal Pay Later messaging */
body.woocommerce-checkout .ppcp-messages,
body.woocommerce-checkout
  .ppcp-messages .message__content {
  color: var(--tf-text);
  font-size: 0.8125rem;
  line-height: 1.4;
}
body.woocommerce-checkout .ppcp-messages a,
body.woocommerce-checkout
  .ppcp-messages .message__content a {
  color: var(--tf-blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
body.woocommerce-checkout .ppcp-messages a:hover {
  color: color-mix(in srgb, var(--tf-blue) 80%, #000);
}

body.woocommerce-cart .ppcp-messages,
body.woocommerce-cart
  .ppcp-messages .message__content {
  color: var(--tf-text);
  font-size: 0.8125rem;
  line-height: 1.4;
}
body.woocommerce-cart .ppcp-messages a,
body.woocommerce-cart
  .ppcp-messages .message__content a {
  color: var(--tf-blue);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Order confirmation — product name links */
body.woocommerce-order-received .woocommerce-order .woocommerce-table--order-details td.product-name a,
body.woocommerce-order-received .woocommerce-order-details .woocommerce-table td.product-name a,
body.woocommerce-order-received .entry-content .woocommerce-order td.product-name a,
body.woocommerce-order-received .wc-block-order-confirmation-totals .wc-block-components-product-name,
body.woocommerce-order-received .wc-block-order-confirmation-totals .wc-block-components-product-name a,
body.woocommerce-thankyou .woocommerce-order .woocommerce-table--order-details td.product-name a,
body.woocommerce-thankyou .woocommerce-order-details .woocommerce-table td.product-name a,
body.woocommerce-thankyou .entry-content .woocommerce-order td.product-name a,
body.woocommerce-thankyou .wc-block-order-confirmation-totals .wc-block-components-product-name,
body.woocommerce-thankyou .wc-block-order-confirmation-totals .wc-block-components-product-name a {
  color: #24519D;
  color: var(--tf-blue);
  font-weight: 700;
  text-decoration: none;
}
body.woocommerce-order-received .woocommerce-order .woocommerce-table--order-details td.product-name a:hover,
body.woocommerce-order-received .woocommerce-order-details .woocommerce-table td.product-name a:hover,
body.woocommerce-order-received .entry-content .woocommerce-order td.product-name a:hover,
body.woocommerce-order-received .wc-block-order-confirmation-totals .wc-block-components-product-name:hover,
body.woocommerce-order-received .wc-block-order-confirmation-totals .wc-block-components-product-name a:hover,
body.woocommerce-thankyou .woocommerce-order .woocommerce-table--order-details td.product-name a:hover,
body.woocommerce-thankyou .woocommerce-order-details .woocommerce-table td.product-name a:hover,
body.woocommerce-thankyou .entry-content .woocommerce-order td.product-name a:hover,
body.woocommerce-thankyou .wc-block-order-confirmation-totals .wc-block-components-product-name:hover,
body.woocommerce-thankyou .wc-block-order-confirmation-totals .wc-block-components-product-name a:hover {
  color: color-mix(in srgb, var(--tf-blue) 88%, #000);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* WooCommerce notices — brand styled */
.woocommerce-message,
.woocommerce-info {
  border-color: var(--tf-line);
  color: var(--tf-text);
  background: var(--tf-white);
}
.woocommerce-message .button,
.woocommerce-message a.button,
.woocommerce-message .wc-forward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--tf-blue) !important;
  color: var(--tf-white) !important;
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  text-decoration: none !important;
  border: 0 !important;
}
.woocommerce-message .button:hover,
.woocommerce-message a.button:hover,
.woocommerce-message .wc-forward:hover {
  filter: brightness(1.04);
  color: var(--tf-white) !important;
}
.woocommerce-error {
  border-color: var(--tf-red);
  color: var(--tf-text);
}
.woocommerce-error li::before {
  color: var(--tf-red);
}

body.woocommerce-cart .wc-block-components-quantity-selector,
body.woocommerce-cart .wc-block-cart-item__quantity {
  flex-shrink: 0;
}

body.woocommerce-cart .wc-block-cart-item__remove-link,
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-checkout .wc-block-components-product-price {
  flex-shrink: 0;
}

body.woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wc-block-components-combobox,
body.woocommerce-checkout .wc-block-components-select,
body.woocommerce-checkout .wc-block-components-textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 720px) {
  body.woocommerce-cart .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  body.woocommerce-cart .wc-block-components-main,
  body.woocommerce-checkout .wc-block-components-main {
    flex: 1 1 58%;
    width: auto;
    max-width: none;
  }

  body.woocommerce-cart .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-components-sidebar {
    flex: 0 1 38%;
    width: auto;
    max-width: 22rem;
  }
}

@media (max-width: 719px) {
  body.woocommerce-cart main.tf-main,
  body.woocommerce-checkout main.tf-main {
    overflow-x: clip;
  }

  body.woocommerce-cart .tf-page > .tf-mission,
  body.woocommerce-checkout .tf-page > .tf-mission {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  body.woocommerce-cart .tf-page > .tf-mission > .container,
  body.woocommerce-checkout .tf-page > .tf-mission > .container {
    width: 100%;
    max-width: 100%;
  }

  body.woocommerce-cart .tf-page > .tf-mission > .container > .tf-page-editor,
  body.woocommerce-checkout .tf-page > .tf-mission > .container > .tf-page-editor {
    padding: 0.85rem 0.65rem;
    border-radius: 0.85rem;
  }

  body.woocommerce-cart .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 1.25rem !important;
  }

  body.woocommerce-cart .wc-block-components-main,
  body.woocommerce-cart .wc-block-components-sidebar,
  body.woocommerce-checkout .wc-block-components-main,
  body.woocommerce-checkout .wc-block-components-sidebar {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body.woocommerce-cart .wc-block-cart-items__row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    row-gap: 0.5rem !important;
    column-gap: 0.75rem !important;
  }

  body.woocommerce-cart .wc-block-cart-item__image {
    flex: 0 0 4rem;
    width: 4rem;
    max-width: 4.25rem;
  }

  body.woocommerce-cart .wc-block-cart-item__product {
    flex: 1 1 calc(100% - 5rem);
    min-width: 0;
  }

  body.woocommerce-cart .wc-block-cart-item__quantity,
  body.woocommerce-cart .wc-block-cart-item__total,
  body.woocommerce-cart .wc-block-cart-item__remove-link {
    flex: 1 1 100%;
    max-width: 100%;
    padding-left: calc(4rem + 0.75rem);
    box-sizing: border-box;
  }

  body.woocommerce-cart .wc-block-cart-item__remove-link {
    padding-left: calc(4rem + 0.75rem);
  }

  body.woocommerce-checkout .wc-block-components-order-summary-item {
    display: grid !important;
    grid-template-columns: minmax(3rem, 3.75rem) minmax(0, 1fr);
    column-gap: 0.65rem;
    align-items: start;
  }

  body.woocommerce-checkout .wc-block-components-order-summary-item__image {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body.woocommerce-checkout .wc-block-components-order-summary-item__description,
  body.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
    grid-column: 2;
    min-width: 0;
  }
}

/* ─── Woo product loop: p-card (web_assets/homepage/index.html) ─── */
.woocommerce ul.products {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  padding: 0 !important;
}
@media (min-width: 560px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}
.woocommerce ul.products li.product {
  width: 100% !important;
  max-width: none;
  float: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.woocommerce .p-card {
  width: 100%;
  min-height: 0;
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: 0.9rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 14px color-mix(in srgb, var(--tf-blue) 5%, transparent);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
  position: relative;
}
@media (hover: hover) {
  .woocommerce .p-card:hover {
    box-shadow: 0 12px 34px color-mix(in srgb, var(--tf-blue) 14%, transparent);
    transform: translateY(-2px);
  }
}
.p-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.p-card__link:visited {
  color: inherit;
}
.p-card__media {
  aspect-ratio: 1 / 1;
  background: color-mix(in srgb, var(--tf-surface) 45%, #fff);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.p-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--tf-blue) 8%, transparent);
  border-radius: inherit;
}
.p-card__img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}
.woocommerce ul.products li.product img,
.woocommerce .products .product img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  background: #ffffff;
}
.p-card__img--placeholder {
  display: block;
  width: 50%;
  height: 50%;
  min-height: 4rem;
  background: color-mix(in srgb, var(--tf-blue) 8%, transparent);
  border-radius: 0.4rem;
}
.single-product .woocommerce-product-gallery {
  max-width: 42rem;
}
.single-product .tf-gcs-gallery-main {
  border-radius: 0.85rem;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--tf-line);
}
.single-product .tf-gcs-gallery-main a {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
}
.single-product .tf-gcs-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.single-product .tf-gcs-gallery-thumbs {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0.15rem 0.05rem 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
}
.single-product .tf-gcs-gallery-thumb {
  flex: 0 0 auto;
}
.single-product .tf-gcs-gallery-thumb-btn {
  width: 80px;
  height: 80px;
  border: 1px solid var(--tf-line);
  border-radius: 0.55rem;
  background: #fff;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.single-product .tf-gcs-gallery-thumb-btn:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--tf-blue) 40%, var(--tf-line));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tf-blue) 14%, transparent);
}
.single-product .tf-gcs-gallery-thumb.is-active .tf-gcs-gallery-thumb-btn {
  border-color: var(--tf-blue);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--tf-blue) 25%, transparent);
}
.single-product .tf-gcs-gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Hide operational product tags (BOTH, WEB_ONLY, EBAY_ONLY) from public single-product UI only; taxonomy stays in DB for bridge/Veeqo. */
.single-product .product_meta .tagged_as {
  display: none !important;
}

/* ─── Single product (PDP) — brand polish v2; scoped to body.single-product only ─── */
body.single-product #tf-wc-wrap {
  padding-top: clamp(0.65rem, 1.8vw, 1.1rem);
  padding-left: var(--tf-gutter);
  padding-right: var(--tf-gutter);
  box-sizing: border-box;
}

body.single-product .entry-summary .woocommerce-tabs {
  margin-top: 1.25rem;
  width: 100%;
  border: 1px solid var(--tf-line);
  border-radius: 0.65rem;
  overflow: hidden;
  background: var(--tf-surface);
}

body.single-product .entry-summary .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0.35rem 0.35rem 0;
  list-style: none;
  background: var(--tf-surface);
  border-bottom: 1px solid var(--tf-line);
  font-size: 0.92rem;
}

body.single-product .entry-summary .woocommerce-tabs ul.tabs::before,
body.single-product .entry-summary .woocommerce-tabs ul.tabs::after {
  display: none;
}

body.single-product .entry-summary .woocommerce-tabs ul.tabs li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.single-product .entry-summary .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.5rem 0.85rem;
  margin: 0 0.15rem 0 0;
  border: 1px solid var(--tf-line);
  border-bottom: 0;
  border-radius: 0.5rem 0.5rem 0 0;
  background: var(--tf-white);
  color: var(--tf-blue);
  font-weight: 700;
  text-decoration: none;
}

body.single-product .entry-summary .woocommerce-tabs ul.tabs li a:hover {
  background: color-mix(in srgb, var(--tf-blue) 7%, var(--tf-white));
  border-color: color-mix(in srgb, var(--tf-blue) 35%, var(--tf-line));
  color: var(--tf-navy);
}

body.single-product .entry-summary .woocommerce-tabs ul.tabs li.active {
  background: transparent;
}

body.single-product .entry-summary .woocommerce-tabs ul.tabs li.active a {
  background: var(--tf-blue);
  border-color: var(--tf-blue);
  color: var(--tf-white);
}

body.single-product .entry-summary .woocommerce-tabs .woocommerce-Tabs-panel {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--tf-white);
  color: var(--tf-text);
  font-size: 0.9rem;
  line-height: 1.55;
}

body.single-product .entry-summary .woocommerce-tabs .woocommerce-Tabs-panel h2 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--tf-navy);
  margin: 0 0 0.65rem;
}

body.single-product .woocommerce-breadcrumb,
body.single-product nav.woocommerce-breadcrumb {
  display: block;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.7rem;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 0.75rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--tf-muted);
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: 0.5rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

body.single-product .woocommerce-breadcrumb a {
  color: var(--tf-blue);
  text-decoration: none;
  font-weight: 600;
}

body.single-product .woocommerce-breadcrumb a:hover {
  color: color-mix(in srgb, var(--tf-blue) 78%, var(--tf-navy));
  text-decoration: underline;
}

body.single-product .woocommerce-breadcrumb .delimiter,
body.single-product .woocommerce-breadcrumb [class^='separator'] {
  color: color-mix(in srgb, var(--tf-muted) 70%, var(--tf-blue));
  margin: 0 0.2rem;
  font-weight: 400;
}

body.single-product .woocommerce div.product {
  max-width: 100%;
  box-sizing: border-box;
}

body.single-product section.related.products,
body.single-product section.upsells.products {
  clear: both;
  width: 100%;
}

body.single-product section.related.products > h2 {
  margin-top: 2rem;
}

body.single-product .summary.entry-summary,
body.single-product div.product .summary {
  padding: 0 0 1.35rem;
  box-sizing: border-box;
}

body.single-product .product_title,
body.single-product h1.product_title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.12rem, 1.6vw + 0.55rem, 1.42rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--tf-blue);
  max-width: 36ch;
}

body.single-product .woocommerce-product-details__short-description {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--tf-text);
  max-width: 52ch;
}

body.single-product .summary .stock {
  margin: 0 0 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tf-muted);
}

body.single-product .summary .stock.in-stock {
  color: var(--tf-green);
}

body.single-product div.product p.price,
body.single-product p.price,
body.single-product span.price,
body.single-product .summary .price {
  display: block;
  margin: 0 0 0.15rem;
  padding: 0;
  font-size: clamp(1.2rem, 1.4vw + 0.65rem, 1.48rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--tf-navy) !important;
}

body.single-product div.product p.price .woocommerce-Price-amount,
body.single-product div.product p.price .amount,
body.single-product div.product p.price bdi,
body.single-product div.product p.price span,
body.single-product p.price .woocommerce-Price-amount,
body.single-product p.price .amount,
body.single-product p.price bdi,
body.single-product span.price .woocommerce-Price-amount {
  color: var(--tf-navy) !important;
  font-weight: 800;
}

body.single-product p.price del,
body.single-product p.price del .woocommerce-Price-amount,
body.single-product p.price del bdi {
  color: var(--tf-muted) !important;
  font-weight: 600;
  opacity: 0.9;
}

body.single-product p.price ins,
body.single-product p.price ins .woocommerce-Price-amount,
body.single-product p.price ins bdi {
  text-decoration: none;
  color: var(--tf-navy) !important;
  font-weight: 800;
}

body.single-product .woocommerce-product-price-tax,
body.single-product .price .woocommerce-price-suffix,
body.single-product .includes_tax,
body.single-product p.price small,
body.single-product .summary .price + small,
body.single-product .wc-gzd-additional-info,
body.single-product .legal-price-info {
  display: block;
  margin: 0.2rem 0 0.65rem;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--tf-muted) !important;
}

body.single-product .woocommerce-Price-currencySymbol {
  color: inherit !important;
}

body.single-product form.cart {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  margin: 0.65rem 0 0;
  width: fit-content;
  max-width: min(100%, 22rem);
  box-sizing: border-box;
}

body.single-product form.cart .quantity {
  flex: 0 0 auto;
  width: 4.25rem;
  max-width: 4.25rem;
}

body.single-product form.cart .quantity input.qty,
body.single-product .quantity input.qty {
  width: 100%;
  min-height: 2.75rem;
  min-width: 0;
  padding: 0.4rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--tf-text);
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: 0.65rem;
  box-sizing: border-box;
  text-align: center;
}

body.single-product form.cart .quantity input.qty:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--tf-blue) 42%, var(--tf-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tf-blue) 14%, transparent);
}

body.single-product .single_add_to_cart_button,
body.single-product form.cart button.single_add_to_cart_button,
body.single-product form.cart .single_add_to_cart_button.button,
body.single-product form.cart button.button.alt,
body.single-product .product_type_variable .single_add_to_cart_button {
  flex: 0 0 auto;
  width: auto;
  min-width: 11rem;
  max-width: 15rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--tf-white) !important;
  background: var(--tf-red) !important;
  border: 0 !important;
  border-radius: 0.75rem;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--tf-red) 24%, transparent);
  cursor: pointer;
  transition: filter 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
  box-sizing: border-box;
}

/* PDP express checkout — hidden on product pages only (cart/checkout unchanged) */
body.single-product .wcpay-payment-request-wrapper,
body.single-product #wc-stripe-payment-request-wrapper,
body.single-product #wc-stripe-express-checkout-element,
body.single-product #wc-stripe-payment-request-button,
body.single-product .wcpay-express-checkout__button-container,
body.single-product .woocommerce-PaymentRequestButtonElement,
body.single-product [id^="ppc-button-"],
body.single-product .ppc-button-wrapper,
body.single-product .ppcp-messages,
body.single-product #paypal-button-container,
body.single-product .ppcp-button-apm,
body.single-product [id^="paypal-button-"],
body.single-product .paypal-button-container,
body.single-product .wc-block-components-express-payment,
body.single-product .wp-block-woocommerce-checkout-express-payment-block {
  display: none !important;
}

body.single-product .single_add_to_cart_button:hover,
body.single-product form.cart button.single_add_to_cart_button:hover,
body.single-product form.cart .single_add_to_cart_button.button:hover,
body.single-product form.cart button.button.alt:hover {
  color: var(--tf-white) !important;
  background: color-mix(in srgb, var(--tf-red) 88%, #000) !important;
  filter: brightness(1.04);
}

body.single-product .single_add_to_cart_button:active,
body.single-product form.cart button.single_add_to_cart_button:active {
  transform: scale(0.98);
}

body.single-product .product_meta {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--tf-line);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--tf-muted);
}

body.single-product .product_meta > span,
body.single-product .product_meta .sku_wrapper,
body.single-product .product_meta .posted_in {
  display: block;
  margin: 0 0 0.28rem;
}

body.single-product .product_meta .sku,
body.single-product .product_meta .posted_in {
  color: var(--tf-muted);
}

body.single-product .product_meta a {
  color: var(--tf-blue);
  font-weight: 600;
  text-decoration: none;
}

body.single-product .product_meta a:hover {
  color: color-mix(in srgb, var(--tf-blue) 75%, var(--tf-navy));
  text-decoration: underline;
}

@media (max-width: 768px) {
  body.single-product .woocommerce div.product {
    display: block;
  }

  body.single-product .summary.entry-summary,
  body.single-product div.product .summary {
    max-width: 100%;
    overflow-x: hidden;
  }

  body.single-product .product_title,
  body.single-product h1.product_title {
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  body.single-product form.cart {
    flex-wrap: wrap;
    max-width: 100%;
    width: 100%;
  }

  body.single-product .single_add_to_cart_button,
  body.single-product form.cart button.single_add_to_cart_button {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }
}

@media (max-width: 430px) {
  body.single-product form.cart {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  body.single-product form.cart .quantity {
    width: 100%;
    max-width: 7.5rem;
  }

  body.single-product .single_add_to_cart_button,
  body.single-product form.cart button.single_add_to_cart_button {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

.woocommerce .p-card__media .onsale,
.p-card__tag {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  background: var(--tf-red);
  color: var(--tf-white);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  min-height: 0;
  min-width: 0;
  line-height: 1.2;
}
.woocommerce .p-card__media .onsale {
  right: auto;
  margin: 0;
  background: var(--tf-red);
}
.p-card__tag--in-stock {
  background: var(--tf-green);
  color: var(--tf-white);
  text-transform: uppercase;
}
.woocommerce .p-card__body {
  padding: 0.92rem 1rem 0.3rem;
  flex: 1 1 auto;
}
.woocommerce h2.p-card__name,
.p-card__name {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 0.34rem;
  line-height: 1.3;
  min-height: 2.62rem;
  max-height: 2.62rem;
  color: var(--tf-navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.woocommerce .p-card__price {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
  line-height: 1.22;
  color: var(--tf-blue);
}
.woocommerce .p-card__actions {
  padding: 0.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  margin-top: auto;
}
.woocommerce .p-card__actions .button,
.woocommerce .p-card__actions a {
  text-align: center;
  box-sizing: border-box;
  justify-content: center;
  width: 100%;
  min-height: 2.8rem;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  text-decoration: none;
  line-height: 1.2;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
}
.woocommerce .p-card__actions a.add_to_cart_button,
.woocommerce .p-card__actions .add_to_cart_button,
.woocommerce .p-card__actions a.product_type_variable,
.woocommerce .p-card__actions a.product_type_grouped,
.woocommerce .p-card__actions a.product_type_external,
.woocommerce .p-card__actions a.product_type_simple {
  /* TradeFayre Red: explicit + token */
  background: #E40046;
  background: var(--tf-red);
  color: var(--tf-white) !important;
  border: 0;
  box-shadow: 0 8px 24px color-mix(in srgb, #e40046 25%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--tf-red) 25%, transparent);
  cursor: pointer;
  transition: filter 0.12s, transform 0.12s;
}
.woocommerce .p-card__actions span.p-card__atc--oos,
.woocommerce .p-card__actions .p-card__atc--oos {
  background: color-mix(in srgb, var(--tf-blue) 8%, #fff);
  color: color-mix(in srgb, var(--tf-navy) 76%, var(--tf-muted)) !important;
  border: 1px solid var(--tf-line);
  box-shadow: none;
  width: 100%;
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: not-allowed;
  box-sizing: border-box;
  opacity: 1;
  pointer-events: none;
  margin: 0;
}
.woocommerce .p-card__actions a.add_to_cart_button:hover,
.woocommerce .p-card__actions a.product_type_variable:hover,
.woocommerce .p-card__actions a.product_type_external:hover {
  color: var(--tf-white) !important;
  filter: brightness(1.05);
}
.woocommerce .p-card__actions a.add_to_cart_button,
.woocommerce .p-card__actions a.product_type_simple {
  /* Primary CTA for purchasable simple: keep red, never grey */
  color: var(--tf-white) !important;
}
.p-card__actions a.btn--p-card-secondary,
.woocommerce .p-card__actions a.btn--p-card-secondary,
.woocommerce .p-card__actions a.button.btn--p-card-secondary {
  background: var(--tf-blue) !important;
  color: var(--tf-white) !important;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--tf-blue) 20%, transparent);
  border: 0;
  margin: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.woocommerce .p-card__actions a.btn--p-card-secondary:hover {
  color: var(--tf-white) !important;
  filter: brightness(1.05);
}
.woocommerce .p-card__actions .button.loading,
.woocommerce .p-card__actions a.loading {
  opacity: 0.85;
  pointer-events: none;
}
@media (max-width: 390px) {
  .woocommerce .p-card__body {
    padding: 0.85rem 0.9rem 0.26rem;
  }

  .woocommerce h2.p-card__name,
  .p-card__name {
    font-size: 0.88rem;
    margin-bottom: 0.28rem;
    min-height: 2.56rem;
    max-height: 2.56rem;
  }

  .woocommerce .p-card__price {
    font-size: 1.02rem;
    margin-bottom: 0.28rem;
  }

  .woocommerce .p-card__actions {
    padding: 0.2rem 0.9rem 0.9rem;
    gap: 0.44rem;
  }
}
@media (max-width: 360px) {
  .woocommerce .p-card__actions .button,
  .woocommerce .p-card__actions a {
    min-height: 2.72rem;
    font-size: 0.88rem;
    padding: 0.56rem 0.9rem;
  }
}

/* ─── Woo My Account: branded dashboard shell + tactile cards ─── */
.woocommerce-account .tf-hero-cinema + .woocommerce {
  margin-top: 0;
}
.woocommerce-account .woocommerce {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.5rem, 3.5vw, 2.4rem) 0 clamp(2.25rem, 5vw, 3.5rem);
  background: var(--tf-white);
  border-radius: 1rem;
  overflow: hidden;
  box-sizing: border-box;
}
.woocommerce-account .woocommerce::after {
  content: "";
  display: table;
  clear: both;
}
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none;
  width: 100%;
}
@media (min-width: 980px) {
  .woocommerce-account .woocommerce-MyAccount-navigation {
    float: left;
    width: 28%;
  }
  .woocommerce-account .woocommerce-MyAccount-content {
    float: right;
    width: 68%;
  }
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  margin: 0 0 0.55rem;
  padding: 0;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 0.7rem;
  border: 1px solid var(--tf-line);
  background: var(--tf-white);
  color: var(--tf-blue);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--tf-blue) 6%, transparent);
  transition: filter 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--tf-blue) 14%, transparent);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a[aria-current="page"] {
  background: var(--tf-blue);
  color: var(--tf-white);
  border-color: var(--tf-blue);
  font-weight: 800;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--tf-blue) 30%, transparent);
}
.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: 1rem;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--tf-blue) 10%, transparent);
  padding: clamp(1rem, 2.8vw, 1.6rem);
  box-sizing: border-box;
  min-height: 18rem;
}
.woocommerce-account .woocommerce-MyAccount-content p:first-child {
  margin-top: 0;
}

/* My Account actions/links aligned with TradeFayre button and link system. */
.woocommerce-account .woocommerce .button,
.woocommerce-account .woocommerce button.button,
.woocommerce-account .woocommerce input.button,
.woocommerce-account .woocommerce a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
  background: var(--tf-blue);
  color: var(--tf-white);
  border: 0;
  border-radius: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tf-blue) 16%, transparent);
  transition: filter 0.15s ease, transform 0.12s ease;
}
.woocommerce-account .woocommerce .button:hover,
.woocommerce-account .woocommerce button.button:hover,
.woocommerce-account .woocommerce input.button:hover,
.woocommerce-account .woocommerce a.button:hover {
  color: var(--tf-white);
  filter: brightness(1.07);
}

.woocommerce-account .woocommerce .lost_password a,
.woocommerce-account .woocommerce a.woocommerce-LostPassword,
.woocommerce-account .woocommerce a.woocommerce-privacy-policy-link,
.woocommerce-account .woocommerce .privacy-policy-link,
.woocommerce-account .woocommerce a[href*="privacy-policy"] {
  color: var(--tf-blue);
  font-weight: 700;
  text-decoration: none;
}
.woocommerce-account .woocommerce .lost_password a:hover,
.woocommerce-account .woocommerce a.woocommerce-LostPassword:hover,
.woocommerce-account .woocommerce a.woocommerce-privacy-policy-link:hover,
.woocommerce-account .woocommerce .privacy-policy-link:hover,
.woocommerce-account .woocommerce a[href*="privacy-policy"]:hover {
  color: var(--tf-blue);
  text-decoration: underline;
}

/* ─── 404 (404.php) ─── */
.tf-page-404 .tf-404-card {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.tf-404-lead {
  margin: 0 0 1.35rem;
}
.tf-404-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: 100%;
}
@media (min-width: 480px) {
  .tf-404-nav__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tf-page-404 .tf-404-nav__list a.btn.btn--tf-404-tile,
.tf-page-404 .tf-404-nav__list a.btn.btn--tf-404-tile:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  background: var(--tf-blue);
  color: var(--tf-white);
  border: 1px solid var(--tf-blue);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--tf-blue) 22%, transparent);
}
.tf-page-404 .tf-404-nav__list a.btn.btn--tf-404-tile:hover,
.tf-page-404 .tf-404-nav__list a.btn.btn--tf-404-tile:focus-visible {
  color: var(--tf-white);
  text-decoration: none;
  filter: brightness(1.06);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--tf-blue) 28%, transparent);
}
.tf-page-404 .tf-404-nav__list a.btn.btn--tf-404-tile:active {
  transform: scale(0.98);
}

/* ─── Static pages: About, Delivery (page-about.php, page-delivery.php) ─── */
.tf-page {
  width: 100%;
}
.tf-page-hero {
  background: var(--tf-white);
  border-bottom: 1px solid var(--tf-line);
  padding: clamp(2rem, 4vw, 3rem) 0;
  margin-bottom: 2.5rem;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--tf-blue) 4%, transparent);
}
/* Cinematic hero on About / Delivery: spacing before main content. */
.tf-page > .tf-hero-cinema {
  margin-bottom: 2.5rem;
}
/* About: gap lives on trust margin-top when trust follows hero (no double gap). */
.tf-page > .tf-hero-cinema:has(+ .tf-trust-authority) {
  margin-bottom: 0;
}
.tf-page-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tf-text);
  line-height: 1.15;
}
.tf-page-lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--tf-muted);
  max-width: 42ch;
}
.tf-page-inner {
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 100%;
}
.tf-page-editor {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.25rem;
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: 1rem;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--tf-blue) 4%, transparent);
  color: #1F2F46;
  line-height: 1.6;
}
.tf-page-editor .alignwide { max-width: 100%; }
.tf-page-editor p,
.tf-page-editor li {
  color: #1F2F46;
  line-height: 1.6;
}
.tf-page-editor h1,
.tf-page-editor h2,
.tf-page-editor h3,
.tf-page-editor h4,
.tf-page-editor h5,
.tf-page-editor h6 {
  color: var(--tf-navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tf-about-section,
.tf-delivery-section,
.tf-contact-section {
  margin-bottom: 2.75rem;
}
.tf-about-section:last-child,
.tf-delivery-section:last-child,
.tf-contact-section:last-child {
  margin-bottom: 0;
}
.tf-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .tf-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tf-contact-card {
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: 0.9rem;
  padding: 1.25rem 1.2rem 1.35rem;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--tf-blue) 4%, transparent);
}
.tf-contact-card--wide {
  grid-column: 1 / -1;
}
.tf-contact-card__title {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tf-blue);
}
.tf-contact-card__value {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}
.tf-contact-card__value a {
  color: var(--tf-blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.tf-contact-card__hint,
.tf-contact-card__address {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--tf-muted);
  font-style: normal;
}
.tf-legal-document {
  max-width: 52rem;
}
.tf-legal-updated {
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  color: var(--tf-muted);
}
.tf-legal-section {
  margin-bottom: 2rem;
  padding-bottom: 0.25rem;
}
.tf-legal-section:last-child {
  margin-bottom: 0;
}
.tf-legal-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  color: var(--tf-blue);
  letter-spacing: -0.02em;
}
.tf-legal-section p,
.tf-legal-section address {
  margin: 0 0 0.85rem;
  line-height: 1.6;
  color: var(--tf-text);
  max-width: 65ch;
}
.tf-legal-section p:last-child {
  margin-bottom: 0;
}
.tf-legal-address {
  font-style: normal;
  line-height: 1.55;
  margin-bottom: 0.85rem;
}
.tf-section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 800;
  color: var(--tf-blue);
  letter-spacing: -0.02em;
}
.tf-section-kicker {
  margin: 0 0 1.4rem;
  color: var(--tf-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 52ch;
}
.tf-prose p {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--tf-text);
  max-width: 65ch;
}
.tf-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.tf-why-grid.wp-block-group {
  display: grid;
}
@media (min-width: 700px) {
  .tf-why-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .tf-why-grid.wp-block-group {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.tf-why-card {
  background: var(--tf-white);
  border: 1px solid var(--tf-line);
  border-radius: 0.9rem;
  padding: 1.25rem 1.1rem 1.35rem;
  box-shadow: 0 2px 12px color-mix(in srgb, var(--tf-blue) 4%, transparent);
  text-align: center;
}
.tf-why-card__icon {
  margin: 0 auto 0.9rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
}
.tf-why-card__title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tf-blue);
  line-height: 1.3;
}

/* Keep mission-to-next-section spacing consistent on Home and About "twin" layouts. */
.tf-mission + .tf-cat-funnel,
.tf-mission + .tf-home-featured,
.tf-mission + .container.tf-page-inner {
  margin-top: var(--tf-section-gap);
}
.tf-why-card__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--tf-muted);
}
.tf-table-wrap {
  overflow-x: auto;
  border-radius: 0.9rem;
  border: 1px solid var(--tf-line);
  background: var(--tf-white);
  box-shadow: var(--shadow);
}
.tf-delivery-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tf-delivery-table th,
.tf-delivery-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--tf-line);
  color: var(--tf-text);
}
.tf-delivery-table thead th {
  background: color-mix(in srgb, var(--tf-blue) 7%, #fff);
  font-weight: 800;
  color: var(--tf-blue);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tf-delivery-table th[scope="row"] {
  background: var(--tf-surface);
  font-weight: 700;
  color: var(--tf-text);
  max-width: 14rem;
}
.tf-delivery-table tbody tr:last-child th,
.tf-delivery-table tbody tr:last-child td {
  border-bottom: 0;
}
.tf-table-note {
  font-size: 0.78rem;
  color: var(--tf-muted);
  font-weight: 500;
}
.tf-returns {
  max-width: 50rem;
}
.tf-returns__steps {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.tf-returns__steps li {
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--tf-blue);
  padding-left: 1.1rem;
}
.tf-returns__head {
  display: block;
  color: var(--tf-blue);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.tf-returns__p {
  margin: 0;
  line-height: 1.55;
  color: var(--tf-text);
  font-size: 0.92rem;
}
.tf-returns__note {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--tf-muted);
  padding: 0.9rem 1rem;
  background: color-mix(in srgb, var(--tf-yellow) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--tf-yellow) 32%, #0001);
  border-radius: 0.65rem;
}
body.page .tf-main {
  padding-top: 0;
}

/* ─── Cinema hero (shop + product archives) + right drawer (Lucide “Menu”) ─── */
body.tf-site--drawer {
  overflow: hidden;
}
.tf-drawer-scrim[hidden] {
  display: none;
}
.tf-drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  box-sizing: border-box;
  background: rgba(18, 32, 51, 0.5);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}
.tf-drawer-scrim.is-on {
  opacity: 1;
  pointer-events: auto;
  display: block;
}
.tf-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  visibility: hidden;
}
.tf-drawer.is-open {
  visibility: visible;
}
.tf-drawer__panel {
  pointer-events: auto;
  position: absolute;
  top: 0;
  right: 0;
  width: min(22rem, 100vw);
  max-width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.1rem 1.35rem 1.5rem 1.25rem;
  background: var(--tf-white);
  box-shadow: -12px 0 40px color-mix(in srgb, var(--tf-navy) 20%, #0000);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.2, 1);
  box-sizing: border-box;
  overflow: auto;
}
.tf-drawer.is-open .tf-drawer__panel {
  transform: translateX(0);
}
.tf-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tf-line);
}
.tf-drawer__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tf-navy);
  letter-spacing: 0.02em;
}
.tf-drawer__close {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid var(--tf-line);
  background: var(--tf-surface);
  color: var(--tf-navy);
  cursor: pointer;
}
.tf-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tf-drawer__link {
  display: block;
  padding: 0.75rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--tf-navy);
  border-bottom: 1px solid var(--tf-line);
}
.tf-drawer__link:hover,
.tf-drawer__link[aria-current="page"] {
  color: var(--tf-blue);
}
.tf-drawer__commerce {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--tf-line);
}
@media (min-width: 960px) {
  .tf-drawer__commerce {
    display: none;
  }
}
.tf-drawer__sublink {
  display: block;
  padding: 0.5rem 0;
  font-weight: 600;
  color: var(--tf-navy);
  text-decoration: none;
  font-size: 0.92rem;
}
.tf-drawer__sublink:hover {
  color: var(--tf-blue);
}
.tf-drawer__sublink--btn {
  margin-top: 0.35rem;
  text-align: center;
  padding: 0.7rem 1rem;
  border-radius: 0.65rem;
  background: var(--tf-red);
  color: var(--tf-white);
  font-weight: 800;
}
.tf-drawer__sublink--btn:hover {
  color: var(--tf-white);
  filter: brightness(1.04);
}
/* Cinematic full-width shop hero: image layer + gradient mask; copy sits in the white band (left). */
/* Hero is a sibling of .woocommerce, not inside it — :has( .tf-hero-cinema ) is on `body.woocommerce` */
body.woocommerce:has(.tf-hero-cinema) .woocommerce .woocommerce-products-header h1.woocommerce-products-header__title,
body.woocommerce:has(.tf-hero-cinema) .woocommerce .woocommerce-products-header h1.page-title,
body.woocommerce:has(.tf-hero-cinema) .woocommerce .woocommerce-page-title {
  display: none !important; /* filter should suppress; backup if template still outputs */
}
/* Hero flush to Woo shell; catalogue gap via .tf-hero-cinema + #tf-wc-wrap padding-top below. */
body.woocommerce:has(.tf-hero-cinema) .tf-hero-cinema {
  margin-bottom: 0 !important;
}
.tf-hero-cinema + .woocommerce {
  margin-top: 0 !important;
}
body.woocommerce:has(.tf-hero-cinema) .woocommerce-products-header:empty {
  display: none;
  margin: 0;
  padding: 0;
}
/* Home: hero + trust as separate cards (About reference layout). */
.tf-home-heroline .tf-hero-cinema {
  margin-bottom: 0 !important;
}
/* Hero + trust: separate cards — Home, Shop/catalogue, About, product search. */
.tf-home-heroline .tf-hero-cinema,
body.woocommerce:has(.tf-hero-cinema):not(.woocommerce-cart):not(.woocommerce-checkout) .tf-hero-cinema,
.tf-page-about > .tf-hero-cinema {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  overflow: hidden;
}
.tf-home-heroline .tf-trust-authority,
.tf-page-about .tf-trust-authority {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  margin-left: var(--tf-gutter);
  margin-right: var(--tf-gutter);
  width: auto;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
/* Woo catalogue: hero is outside #tf-wc-wrap; gap via wrap padding-top (not direct-child trust). */
body.woocommerce:has(.tf-hero-cinema):not(.woocommerce-cart):not(.woocommerce-checkout) .tf-hero-cinema + #tf-wc-wrap {
  padding-top: clamp(1rem, 2vw, 1.5rem);
  box-sizing: border-box;
}
body.woocommerce:has(.tf-hero-cinema):not(.woocommerce-cart):not(.woocommerce-checkout) #tf-wc-wrap .tf-trust-authority {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
body.woocommerce:has(.tf-hero-cinema):not(.woocommerce-cart):not(.woocommerce-checkout) .tf-product-search-results__support .tf-trust-authority {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.tf-shop-cat-nav { margin: 20px 0; text-align: center; }
.tf-dept-row, .tf-pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 15px; }

/* Parent Buttons */
.tf-shop-cat-nav__parent { 
   display: inline-block; padding: 10px 22px; border: 2px solid #24519D; 
   border-radius: 30px; color: #24519D; text-decoration: none; 
   font-weight: 700; transition: 0.3s; background: #fff;
}
.tf-shop-cat-nav__parent:hover, .tf-btn-active.tf-shop-cat-nav__parent { 
   background: #E40046; border-color: #E40046; color: #fff; 
}

/* Child Pills */
.tf-shop-cat-nav__pill { 
   display: inline-block; padding: 6px 16px; border: 1px solid #24519D; 
   border-radius: 20px; color: #24519D; text-decoration: none; 
   font-size: 0.85rem; background: #f0f5ff;
   transition: 0.3s;
}
.tf-shop-cat-nav__pill:hover, .tf-btn-active.tf-shop-cat-nav__pill { 
   background: #24519D; color: #fff; border-color: #24519D;
}

/* Shop ordering dropdown - premium tactile styling */
.woocommerce-ordering select.orderby {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  border: 2px solid #24519D;
  border-radius: 25px;
  padding: 8px 35px 8px 15px;
  color: #24519D;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2324519D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}
.woocommerce-ordering select.orderby:hover,
.woocommerce-ordering select.orderby:focus,
.woocommerce-ordering select.orderby:focus-visible {
  border-color: #E40046;
  color: #24519D;
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, #E40046 20%, transparent);
}

/* Shop pagination — TradeFayre branded */
.woocommerce-pagination .page-numbers,
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  color: var(--tf-blue);
  border-color: var(--tf-line);
  border-radius: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}
.woocommerce-pagination .page-numbers:hover,
.woocommerce nav.woocommerce-pagination ul li a:hover {
  background: var(--tf-blue);
  color: var(--tf-white);
  border-color: var(--tf-blue);
}
.woocommerce-pagination .page-numbers.current,
.woocommerce nav.woocommerce-pagination ul li
  span.current {
  background: var(--tf-blue);
  color: var(--tf-white) !important;
  border-color: var(--tf-blue);
}
/* Full-width header row: bypass 72rem .container; gutters come from .head__rail. */
.head__rail > .container,
.head > .container {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
  padding-left: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.head__cluster {
  padding-left: 0 !important;
  margin-left: 0 !important;
}
/* Hero inner: `.container` in `template-parts/hero-cinema.php` — bypass 72rem cap. Horizontal “safety” gutter is on the section. */
.tf-hero-cinema__inner {
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.tf-hero-cinema {
  position: relative;
  left: auto;
  right: auto;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0;
  margin-bottom: 0;
  min-height: 450px;
  background: #e2e8f0;
  box-sizing: border-box;
  overflow: hidden;
  /* Same as .head__rail: --tf-gutter for logo / hero title alignment. */
  padding-left: var(--tf-gutter) !important;
  padding-right: var(--tf-gutter) !important;
}
.tf-hero-cinema__media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  display: block;
}
.tf-hero-cinema__mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to right, #fff 0%, #fff 35%, transparent 100%) !important;
  pointer-events: none;
}
.tf-hero-cinema__inner {
  position: relative;
  z-index: 3;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(1.5rem, 4vw, 2.75rem) 0;
}
.tf-hero-cinema__content {
  max-width: min(36rem, 100%);
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  text-align: left;
}
@media (max-width: 600px) {
  .tf-hero-cinema__content {
    max-width: 100%;
  }
}
.tf-hero-cinema__title,
.tf-face-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.12rem, 0.7rem + 1.1vw, 1.8rem);
  line-height: 1.28;
  font-weight: 800 !important;
  letter-spacing: -0.04em;
  color: var(--tf-blue) !important;
  opacity: 1;
  /* Keep brand-blue text at full opacity while preserving readability over imagery. */
  text-shadow: 0 1px 2px color-mix(in srgb, #fff 55%, transparent);
}
.tf-hero-cinema__lede {
  margin: 0;
  color: var(--tf-muted);
  line-height: 1.5;
  font-size: 0.98rem;
  max-width: 40ch;
}
.tf-hero-cinema__breadcrumb {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  color: var(--tf-navy);
}
.tf-hero-cinema__breadcrumb .delimiter,
.tf-hero-cinema__breadcrumb [class^='separator'] {
  color: var(--tf-navy);
}
.tf-hero-cinema__breadcrumb .woocommerce-breadcrumb,
.tf-hero-cinema__breadcrumb nav.woocommerce-breadcrumb {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--tf-navy);
  font-size: 0.875rem;
  font-weight: 600;
}
.tf-hero-cinema__breadcrumb .woocommerce-breadcrumb a,
.tf-hero-cinema__breadcrumb a {
  color: var(--tf-navy) !important;
  text-decoration: none;
}
.tf-hero-cinema__breadcrumb .woocommerce-breadcrumb a:hover,
.tf-hero-cinema__breadcrumb a:hover {
  text-decoration: underline;
  color: var(--tf-navy) !important;
}
.tf-hero-cinema__actions {
  margin: 1.1rem 0 0;
  padding: 0;
}
a.tf-hero-cinema__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--tf-white);
  background: var(--tf-navy);
  border: 0;
  border-radius: 0.65rem;
  text-decoration: none;
  box-shadow: 0 10px 32px color-mix(in srgb, var(--tf-navy) 32%, transparent);
  transition: filter 0.15s ease, transform 0.12s ease;
}
a.tf-hero-cinema__cta:hover {
  color: var(--tf-white);
  filter: brightness(1.07);
}
a.tf-hero-cinema__cta:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

/* Home: wording carousel (navy, five lines per slide) + CTA; left edge aligns to --tf-gutter via .tf-hero-cinema. */
.tf-hero-cinema__content--home {
  max-width: min(44rem, 100%);
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  text-align: left;
}
.tf-hero-copy--carousel {
  margin: 0;
  width: 100%;
  text-align: left;
}
.tf-hero-copy__viewport {
  position: relative;
  min-height: clamp(11.5rem, 26vw, 15.5rem);
  width: 100%;
  box-sizing: border-box;
}
.tf-hero-copy__slide {
  display: block;
  margin: 0;
  color: #24519D;
  font-size: clamp(1.12rem, 0.7rem + 1.1vw, 1.8rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.04em;
  text-align: left;
  max-width: min(50ch, 100%);
  box-sizing: border-box;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.4s ease;
  pointer-events: none;
}
.tf-hero-copy__line {
  display: block;
}
.tf-hero-copy__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.tf-hero-cinema__content--home .tf-hero-cinema__actions {
  margin-top: 1.4rem;
}

/* Home — category funnel: --tf-gutter side padding; card grid. */
.tf-cat-funnel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(2rem, 4vw, 2.75rem) var(--tf-gutter) clamp(2.5rem, 5vw, 3.5rem);
}
.tf-cat-funnel .container {
  max-width: var(--container) !important;
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}
.tf-cat-funnel__h {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--tf-navy);
  letter-spacing: -0.02em;
}
.tf-cat-funnel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .tf-cat-funnel__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.1rem;
  }
}
@media (min-width: 960px) {
  .tf-cat-funnel__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
}
.tf-cat-funnel__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 10rem;
  margin: 0;
  padding: 1.35rem 1.3rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--tf-line);
  background: var(--tf-white);
  text-decoration: none;
  color: var(--tf-text);
  font-weight: 600;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--tf-navy) 5%, transparent);
  box-sizing: border-box;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.tf-cat-funnel__card:hover {
  box-shadow: 0 8px 32px color-mix(in srgb, var(--tf-navy) 10%, transparent);
  border-color: color-mix(in srgb, var(--tf-blue) 18%, var(--tf-line));
  transform: translateY(-1px);
}
.tf-cat-funnel__name {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--tf-navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.tf-cat-funnel__count {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--tf-muted);
  font-weight: 600;
}
a.tf-cat-funnel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--tf-white);
  background: var(--tf-navy);
  border: 0;
  border-radius: 0.55rem;
  text-decoration: none;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--tf-navy) 20%, transparent);
  transition: filter 0.15s ease, transform 0.12s ease;
}
a.tf-cat-funnel__btn:hover {
  color: var(--tf-white);
  filter: brightness(1.06);
}
a.tf-cat-funnel__btn:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

/* Homepage featured products section */
.tf-home-featured,
.tf-cart-featured {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(2rem, 4vw, 2.75rem) var(--tf-gutter) clamp(2.5rem, 5vw, 3.5rem);
}
.tf-home-featured .container,
.tf-cart-featured .container {
  max-width: var(--container) !important;
  width: 100% !important;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: 0;
  padding-right: 0;
}
.tf-home-featured__h,
.tf-cart-featured__h {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--tf-navy);
  letter-spacing: -0.02em;
}
.tf-home-featured ul.products,
.tf-cart-featured ul.products {
  margin-bottom: 0;
}

/* Empty cart featured products section */
body.woocommerce-cart .tf-cart-featured {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
body.woocommerce-cart .wp-block-woocommerce-cart .tf-cart-featured {
  margin-top: 0.5rem;
}

/* Empty-cart featured p-cards — red ATC
   overrides cart-wide blue rule (lines 609-620) */
body.woocommerce-cart .wp-block-woocommerce-cart
  .tf-cart-featured .p-card__actions a.add_to_cart_button,
body.woocommerce-cart .wp-block-woocommerce-cart
  .tf-cart-featured .p-card__actions a.product_type_simple,
body.woocommerce-cart .wp-block-woocommerce-cart
  .tf-cart-featured .p-card__actions a.product_type_variable,
body.woocommerce-cart .wp-block-woocommerce-cart
  .tf-cart-featured .p-card__actions a.product_type_grouped,
body.woocommerce-cart .wp-block-woocommerce-cart
  .tf-cart-featured .p-card__actions a.product_type_external {
  background: #E40046 !important;
  background: var(--tf-red) !important;
  color: var(--tf-white) !important;
  border: 0;
  box-shadow: 0 8px 24px
    color-mix(in srgb, var(--tf-red) 25%, transparent);
}
body.woocommerce-cart .wp-block-woocommerce-cart
  .tf-cart-featured .p-card__actions a.add_to_cart_button:hover,
body.woocommerce-cart .wp-block-woocommerce-cart
  .tf-cart-featured .p-card__actions a.product_type_variable:hover,
body.woocommerce-cart .wp-block-woocommerce-cart
  .tf-cart-featured .p-card__actions a.product_type_external:hover {
  color: var(--tf-white) !important;
  filter: brightness(1.05);
}

/* Home — mission (60/40 split) between hero band and category funnel. */
.tf-mission {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--tf-gutter) clamp(2.25rem, 4vw, 3rem);
  background: var(--tf-white);
  border-radius: 1rem;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tf-page-about .tf-mission {
  border-radius: 1rem;
}
.tf-mission__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: start;
  max-width: var(--container) !important;
  width: 100% !important;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0;
}
@media (min-width: 768px) {
  .tf-mission__inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: center;
    gap: 2rem;
  }
}
.tf-mission__h {
  margin: 0 0 0.85rem;
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem);
  font-weight: 800;
  color: var(--tf-navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tf-mission__prose {
  color: var(--tf-text);
  line-height: 1.6;
  font-size: 1.02rem;
  max-width: 60ch;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tf-mission__prose p {
  margin: 0 0 0.85rem;
}
.tf-mission__prose p:last-child {
  margin-bottom: 0;
}
.tf-mission__section {
  margin: 0 0 1.5rem;
}
.tf-mission__section:last-of-type {
  margin-bottom: 0;
}
.tf-mission__subh {
  margin: 0 0 0.5rem;
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.2rem);
  font-weight: 800;
  color: var(--tf-navy);
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tf-mission__section p {
  margin: 0 0 0.85rem;
  line-height: 1.6;
}
.tf-mission__section p:last-child {
  margin-bottom: 0;
}
.tf-mission__media {
  min-width: 0;
  width: 100%;
  min-height: 16rem;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--tf-surface);
  border: 1px solid var(--tf-line);
  aspect-ratio: 4/3;
  max-height: 20rem;
}
.tf-mission__media .wp-block-image {
  margin: 0;
  width: 100%;
  height: 100%;
}
.tf-mission__media .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tf-mission__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tf-mission__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: linear-gradient(140deg, color-mix(in srgb, var(--tf-blue) 8%, #fff) 0%, #e2e8f0 100%);
  box-sizing: border-box;
}
.tf-mission__placeholder-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tf-muted);
  padding: 0.5rem 0.9rem;
  border: 2px dashed var(--tf-line);
  border-radius: 0.5rem;
}

/* Site footer — 4-column grid: Brand | Address | Contact | Payments; 2.5rem gutters. */
.tf-site-footer {
  background: var(--tf-footer-bg);
  color: #fff;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, #fff 10%, transparent);
}
.tf-site-footer ul,
.tf-site-footer ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.tf-site-footer__gutter {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  padding: clamp(2.25rem, 4vw, 3.25rem) var(--tf-gutter) 1.5rem;
}
.tf-site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  margin: 0 0 1.5rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 600px) {
  .tf-site-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .tf-site-footer__main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    margin: 0 0 1.75rem;
  }
}
.tf-site-footer__col {
  min-width: 0;
}
.tf-site-footer__head {
  margin: 0 0 0.5rem;
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 80%, transparent);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tf-site-footer__brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.5rem;
}
.tf-site-footer__tag {
  font-size: 0.9rem;
  line-height: 1.5;
  color: color-mix(in srgb, #fff 85%, transparent);
  margin: 0;
  max-width: 28ch;
}
.tf-site-footer__address,
.tf-site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: color-mix(in srgb, #fff 92%, transparent);
}
.tf-site-footer__address li,
.tf-site-footer__contact p {
  margin: 0 0 0.2rem;
}
.tf-site-footer__address li:last-child,
.tf-site-footer__contact p:last-child {
  margin-bottom: 0;
}
.tf-site-footer__value {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}
.tf-site-footer__value--block {
  margin: 0.25rem 0 0;
  display: block;
}
.tf-site-footer__contact-block {
  min-width: 0;
}
.tf-site-footer__contact-block + .tf-site-footer__contact-block {
  margin-top: 1.1rem;
}
.tf-site-footer a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, #fff 45%, transparent);
}
.tf-site-footer a:hover,
.tf-site-footer a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}
/* Fourth column: Visa, Mastercard, PayPal in a horizontal row (same left edge as other cols). */
.tf-site-footer__col--pay {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.tf-site-footer__col--pay .tf-site-footer__head {
  text-align: left;
}
.tf-site-footer__pay-icons {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.tf-site-footer__pay-icons li {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}
.tf-site-footer__pay-icons .tf-pay-icon {
  display: block;
  height: 1.35rem;
  width: auto;
  max-width: 3.5rem;
  flex: 0 0 auto;
  vertical-align: middle;
}
.tf-site-footer__pay-icons .tf-pay-icon--mc {
  max-width: 2.2rem;
}
.tf-site-footer__pay-icons .tf-pay-icon--paypal {
  max-width: 3.6rem;
}
.tf-site-footer__pay-icons .tf-pay-icon--visa {
  max-width: 2.8rem;
}
.tf-site-footer__credits {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 600;
  color: color-mix(in srgb, #fff 60%, transparent);
  padding: 1.15rem 0 0.1rem;
  margin: 0;
  border-top: 1px solid color-mix(in srgb, #fff 10%, transparent);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
@media (min-width: 640px) {
  .tf-site-footer__credits {
    text-align: left;
  }
}
.tf-site-footer__credits a {
  color: color-mix(in srgb, #fff 85%, transparent);
}
.tf-site-footer__legal {
  display: block;
  width: 100%;
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: color-mix(in srgb, #fff 70%, transparent);
}
@media (min-width: 640px) {
  .tf-site-footer__legal {
    display: inline-block;
    width: auto;
    margin: 0 0 0 0.65rem;
    vertical-align: middle;
  }
}
.tf-site-footer__legal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  justify-content: center;
  align-items: center;
}
@media (min-width: 640px) {
  .tf-site-footer__legal-list {
    justify-content: flex-start;
  }
}
.tf-site-footer__legal-list li {
  margin: 0;
  padding: 0;
}
.tf-site-footer__legal-list a {
  color: color-mix(in srgb, #fff 85%, transparent);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.tf-site-footer__legal-list a:hover,
.tf-site-footer__legal-list a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}

/* ─── Product catalog search: dedicated shell (archive-product.php when tradefayre_is_product_catalog_search()). Grid uses global .woocommerce ul.products (same as /shop/). ─── */
.tf-product-search-results {
  width: 100%;
  clear: both;
  margin: 0 0 2.5rem;
  box-sizing: border-box;
}

.tf-product-search-results__lead.container {
  box-sizing: border-box;
}

.tf-product-search-results__catalogue {
  display: block;
  width: 100%;
  max-width: 100%;
  clear: both;
  box-sizing: border-box;
}

.tf-product-search-results__support {
  display: block;
  width: 100%;
  clear: both;
  box-sizing: border-box;
}

.tf-product-search-results__support .tf-trust-authority,
.tf-product-search-results__support .tf-shop-cat-nav {
  width: 100%;
  max-width: 100%;
}

.tf-product-search-results__header {
  margin: 0 0 1rem;
}

.tf-product-search-results__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin: 0 0 1.35rem;
  width: 100%;
  box-sizing: border-box;
}

.tf-product-search-results__toolbar .woocommerce-result-count,
.tf-product-search-results__toolbar .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
}

.tf-product-search-results__grid {
  display: flow-root;
  width: 100%;
  box-sizing: border-box;
}

.tf-product-search-results__grid--empty {
  padding: 1rem 0 2rem;
}

/* ─── Tablet + mobile header: cart-only, hide checkout (max-width: 959px) ─── */
@media (max-width: 959px) {
  .head__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0.35rem;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 0.35rem 0 0.45rem;
    box-sizing: border-box;
  }

  .head__cluster {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    max-width: 100%;
  }

  .head__act {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin-left: 0;
    width: auto;
    flex: none;
    align-self: center;
    justify-self: end;
  }

  .head__act .btn--tf-checkout,
  .head__act a.btn--tf-checkout {
    display: none !important;
  }

  .head__act .icon-btn,
  .head__act .icon-btn--cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 2.375rem;
    height: 2.375rem;
    min-height: 0;
    min-width: 0;
    padding: 0;
    border-radius: 0.5rem;
    gap: 0;
    box-shadow: none;
    border-color: var(--tf-line);
    background: var(--tf-white);
  }

  .head__act .icon-btn--cart svg {
    width: 20px;
    height: 20px;
    display: block;
  }

  .head__act .icon-btn--cart::after {
    top: -0.15rem;
    right: -0.15rem;
    min-width: 1rem;
    height: 1rem;
    font-size: 0.6rem;
  }

  .head__search {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .head__search .search {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ─── Mobile header, hero, search trust (max-width: 719px) ─── */
@media (max-width: 719px) {
  .tf-trust-authority {
    padding: 1.1rem 1rem;
    margin-bottom: 1.5rem;
  }
  .tf-trust-item strong {
    font-size: 0.8125rem;
  }
  .tf-trust-item span {
    font-size: 0.75rem;
  }
  .tf-trust-grid .tf-trust-item--seller-stats {
    padding: 0.75rem 0.65rem;
  }

  .head__rail {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .head__cluster {
    gap: 0.4rem;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand__img {
    display: block;
    width: auto;
    max-width: min(165px, 46vw);
    height: auto;
    max-height: 44px;
    object-fit: contain;
  }

  .tf-custom-logo-wrap .custom-logo {
    max-width: min(165px, 46vw);
    max-height: 44px;
  }

  .head__menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 2.375rem;
    height: 2.375rem;
    min-height: 0;
    padding: 0;
    border-radius: 0.5rem;
    line-height: 1;
  }

  .head__menu-icon {
    width: 22px;
    height: 22px;
  }

  .head__menu-txt {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .head__search .search input {
    min-width: 0;
    flex: 1 1 auto;
  }

  .head__search .search button {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Homepage hero — keep pass 3/4 layout */
  .tf-home-heroline {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .tf-home-heroline .tf-hero-cinema {
    min-height: clamp(240px, 50vh, 320px);
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }

  .tf-home-heroline .tf-hero-cinema__media {
    width: 100%;
    left: 0;
    right: 0;
  }

  .tf-home-heroline .tf-hero-cinema__inner {
    min-height: clamp(240px, 50vh, 320px);
    padding: clamp(1.15rem, 4vw, 2rem) 1rem;
    box-sizing: border-box;
  }

  .tf-home-heroline .tf-hero-cinema__mask {
    background: linear-gradient(to top, #fff 0%, #fff 48%, transparent 100%) !important;
  }

  .tf-home-heroline .tf-hero-cinema__content,
  .tf-hero-cinema__content--home {
    max-width: 100%;
  }

  /* Featured inner heroes — shop & about: image strip + white copy block */
  .tf-hero-cinema--inner.tf-hero-cinema--featured,
  .tf-hero-cinema--inner.tf-hero-cinema--shop,
  .tf-hero-cinema--inner.tf-hero-cinema--about {
    position: relative;
    display: block;
    min-height: 0;
    background: var(--tf-white);
    border-bottom: 1px solid var(--tf-line);
    padding: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--featured .tf-hero-cinema__media,
  .tf-hero-cinema--inner.tf-hero-cinema--shop .tf-hero-cinema__media,
  .tf-hero-cinema--inner.tf-hero-cinema--about .tf-hero-cinema__media {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    height: clamp(7.25rem, 32vw, 9.25rem);
    max-height: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    object-fit: cover;
    object-position: center 72%;
    z-index: 1;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--featured .tf-hero-cinema__mask,
  .tf-hero-cinema--inner.tf-hero-cinema--shop .tf-hero-cinema__mask,
  .tf-hero-cinema--inner.tf-hero-cinema--about .tf-hero-cinema__mask {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    height: clamp(7.25rem, 32vw, 9.25rem);
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 35%,
      color-mix(in srgb, var(--tf-white) 55%, transparent) 75%,
      var(--tf-white) 100%
    ) !important;
    z-index: 2;
    pointer-events: none;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--featured .tf-hero-cinema__inner,
  .tf-hero-cinema--inner.tf-hero-cinema--shop .tf-hero-cinema__inner,
  .tf-hero-cinema--inner.tf-hero-cinema--about .tf-hero-cinema__inner {
    position: relative;
    z-index: 3;
    min-height: 0;
    display: block;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.7rem 1rem 0.65rem;
    background: var(--tf-white);
    box-sizing: border-box;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--featured .tf-hero-cinema__content,
  .tf-hero-cinema--inner.tf-hero-cinema--shop .tf-hero-cinema__content,
  .tf-hero-cinema--inner.tf-hero-cinema--about .tf-hero-cinema__content {
    max-width: 100%;
    padding-bottom: 0;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--featured .tf-hero-cinema__title,
  .tf-hero-cinema--inner.tf-hero-cinema--shop .tf-hero-cinema__title {
    margin: 0 0 0.25rem;
    font-size: clamp(1rem, 0.5rem + 2.2vw, 1.28rem);
    line-height: 1.22;
    color: var(--tf-blue) !important;
    text-shadow: none;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--about .tf-hero-cinema__title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.02rem, 0.52rem + 2.3vw, 1.32rem);
    line-height: 1.22;
    color: var(--tf-blue) !important;
    text-shadow: none;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--featured .tf-hero-cinema__lede,
  .tf-hero-cinema--inner.tf-hero-cinema--shop .tf-hero-cinema__lede,
  .tf-hero-cinema--inner.tf-hero-cinema--about .tf-hero-cinema__lede {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    max-width: 42ch;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--shop .tf-hero-cinema__breadcrumb,
  .tf-hero-cinema--inner.tf-hero-cinema--search.tf-hero-cinema--featured .tf-hero-cinema__breadcrumb {
    margin-top: 0.35rem;
    font-size: 0.75rem;
  }

  /* Lightweight title band — account only (search + static pages use --featured) */
  .tf-hero-cinema--inner.tf-hero-cinema--account,
  .tf-hero-cinema--inner.tf-hero-cinema--page:not(.tf-hero-cinema--featured) {
    min-height: 0;
    background: var(--tf-white);
    border-bottom: 1px solid var(--tf-line);
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--account .tf-hero-cinema__media,
  .tf-hero-cinema--inner.tf-hero-cinema--page:not(.tf-hero-cinema--featured) .tf-hero-cinema__media {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--account .tf-hero-cinema__mask,
  .tf-hero-cinema--inner.tf-hero-cinema--page:not(.tf-hero-cinema--featured) .tf-hero-cinema__mask {
    background: var(--tf-white) !important;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--account .tf-hero-cinema__inner,
  .tf-hero-cinema--inner.tf-hero-cinema--page:not(.tf-hero-cinema--featured) .tf-hero-cinema__inner {
    min-height: 0;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0.85rem 0 0.65rem;
    box-sizing: border-box;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--account .tf-hero-cinema__content,
  .tf-hero-cinema--inner.tf-hero-cinema--page:not(.tf-hero-cinema--featured) .tf-hero-cinema__content {
    max-width: 100%;
    padding-bottom: 0;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--account .tf-hero-cinema__title,
  .tf-hero-cinema--inner.tf-hero-cinema--page:not(.tf-hero-cinema--featured) .tf-hero-cinema__title {
    margin: 0 0 0.25rem;
    font-size: clamp(1.05rem, 0.55rem + 2.5vw, 1.35rem);
    line-height: 1.22;
    color: var(--tf-blue) !important;
    text-shadow: none;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--account .tf-hero-cinema__lede,
  .tf-hero-cinema--inner.tf-hero-cinema--page:not(.tf-hero-cinema--featured) .tf-hero-cinema__lede {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    max-width: 42ch;
  }

  .tf-hero-cinema--inner.tf-hero-cinema--account .tf-hero-cinema__breadcrumb {
    margin-top: 0.35rem;
    font-size: 0.75rem;
  }

  body.woocommerce:has(.tf-hero-cinema--inner):not(.home) .tf-trust-authority {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .tf-product-search-results__lead {
    padding-top: 0;
  }

  .tf-shop-cat-nav {
    margin: 0.65rem 0 0.5rem;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
  }

  .tf-shop-cat-nav__inner.container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tf-dept-row,
  .tf-pill-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tf-shop-cat-nav__parent {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2rem;
    padding: 0.4rem 0.55rem;
    border-width: 1.5px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    box-sizing: border-box;
  }

  .tf-shop-cat-nav__pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 1.75rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.6875rem;
    line-height: 1.2;
    box-sizing: border-box;
  }

  .woocommerce-ordering select.orderby {
    min-height: 2rem;
    padding: 0.4rem 1.85rem 0.4rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-width: 1.5px;
    border-radius: 999px;
    background-size: 12px 12px;
    background-position: right 0.55rem center;
  }

  .tf-hero-copy__viewport {
    min-height: clamp(8rem, 22vw, 11rem);
  }

  .tf-hero-cinema__actions {
    margin-top: 0.85rem;
  }

  .tf-hero-cinema__content--home .tf-hero-cinema__actions {
    margin-top: 0.95rem;
  }

  a.tf-hero-cinema__cta {
    min-height: 0;
    padding: 0.65rem 1.15rem;
    font-size: 0.9375rem;
    font-weight: 800;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--tf-navy) 18%, transparent);
  }

  a.tf-hero-cinema__cta:hover {
    filter: brightness(1.05);
  }

  .tf-product-search-results__support .tf-trust-authority,
  .tf-product-search-results__support .tf-shop-cat-nav {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tf-product-search-results__support .tf-trust-authority .container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .tf-product-search-results__support .tf-trust-grid {
    box-sizing: border-box;
    max-width: 100%;
  }
}
