/*
Theme Name:   Teamdock
Theme URI:    https://teamdock.ai
Description:  Teamdock child theme for Storefront + WooCommerce.
Author:       Teamdock
Template:     storefront
Version:      2.1.0
Text Domain:  teamdock
*/

/* ─── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --blue:        #2563eb;
  --blue-dark:   #1d4ed8;
  --blue-light:  #eff6ff;
  --blue-50:     #f0f7ff;

  --slate-50:    #f8fafc;
  --slate-100:   #f1f5f9;
  --slate-200:   #e2e8f0;
  --slate-300:   #cbd5e1;
  --slate-500:   #64748b;
  --slate-600:   #475569;
  --slate-700:   #334155;
  --slate-800:   #1e293b;
  --slate-900:   #0f172a;

  --green:       #16a34a;
  --amber:       #f59e0b;
  --red:         #dc2626;

  --r-sm:  4px;
  --r:     8px;
  --r-lg:  12px;
  --r-xl:  20px;
  --r-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 8px -2px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 20px -4px rgba(0,0,0,.1), 0 4px 8px -4px rgba(0,0,0,.05);
  --shadow-xl: 0 24px 32px -8px rgba(0,0,0,.1), 0 8px 16px -8px rgba(0,0,0,.05);

  --ease:  cubic-bezier(.4, 0, .2, 1);
  --t-fast: .15s var(--ease);
  --t:      .22s var(--ease);
  --t-slow: .4s  var(--ease);

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1240px;
}

/* ─── Reset layer ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
*:focus, *:focus-visible { outline: none !important; box-shadow: none !important; }

/* overflow-x: clip stops horizontal scroll without breaking position: sticky.
   Storefront uses overflow-x: hidden on html/body which kills sticky headers. */
html { overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--slate-700);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
#page { overflow: visible !important; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .5em;
}
img { max-width: 100%; height: auto; display: block; }

/* screen-reader text */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

/* ─── Sticky header ──────────────────────────────────────────────────────────── */
header#masthead,
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.97) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
  transition: box-shadow var(--t);
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
}
.home.blog .site-header,
.home.page:not(.page-template-template-homepage) .site-header,
.home.post-type-archive-product .site-header {
  margin-bottom: 0;
}
header#masthead.is-scrolled,
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.admin-bar header#masthead,
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar header#masthead,
  .admin-bar .site-header { top: 46px; }
}

/* ─── Header layout ──────────────────────────────────────────────────────────── */
.site-header .col-full {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  min-height: 64px;
  gap: 20px;
}

/* Branding */
.site-branding { display: flex; align-items: center; }
.custom-logo { max-height: 44px !important; width: auto !important; height: auto !important; }
.site-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: -.35px;
  margin: 0 !important;
}
.site-title a { color: var(--slate-900) !important; text-decoration: none !important; }
.site-title a:hover { color: var(--blue) !important; }
.site-description { display: none; }

/* Nav */
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; gap: 2px; }
.main-navigation ul li { align-self: center; position: relative; }
.main-navigation ul li a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700) !important;
  padding: 6px 12px;
  border-radius: var(--r);
  text-decoration: none !important;
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.main-navigation ul li a:hover { background: none; color: var(--blue) !important; }
.main-navigation ul li.current-menu-item > a {
  color: var(--blue) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

/* ── Storefront injection suppression ────────────────────────────────────────
   Storefront may inject chevron indicators in several places depending on
   version. Suppress all of them:
   1. Any direct child of the <li> that is NOT the <a> or the <ul.sub-menu>
      (covers <button class="dropdown-toggle">, <span>, <svg>, or anything else
      appended as a sibling to the link)
   2. Any element child of the parent <a> itself
      (covers versions that append inside the anchor instead of after it)
   Text nodes ("Catalog") are not elements and are never matched by *.       */
.main-navigation ul li.menu-item-has-children > *:not(a):not(ul) { display: none !important; }
.main-navigation ul li.menu-item-has-children > a > *             { display: none !important; }

/* ─── Nav dropdown chevron ───────────────────────────────────────────────── */
.main-navigation ul li.menu-item-has-children { position: relative; }
/* Invisible bridge that fills the 4px gap between the nav link and the submenu panel.
   Without this the mouse briefly leaves the <li> hover area while crossing the gap,
   causing the submenu to close before the user can reach it. */
.main-navigation ul li.menu-item-has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
  background: none !important;
  z-index: 619;
}

/* Step 1 — kill Storefront's parent-theme a::after (content:'\25be' etc.)
   at the same specificity level so nothing bleeds through. */
.main-navigation ul li.menu-item-has-children > a::after {
  content: none !important;
  display: none !important;
}

/* Step 2 — redefine our chevron at HIGHER specificity (.site-header prefix
   raises the score above Storefront's rule, overriding it unconditionally). */
.site-header .main-navigation ul li.menu-item-has-children > a::after {
  content: '' !important;
  display: inline-block !important;
  margin-left: 5px;
  vertical-align: middle;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.5;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.site-header .main-navigation ul li.menu-item-has-children:hover > a::after,
.site-header .main-navigation ul li.menu-item-has-children.is-open  > a::after {
  transform: rotate(180deg);
  opacity: 0.75;
}

.main-navigation ul .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  transform: translateY(-6px);
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 32px -4px rgba(0,0,0,.12), 0 4px 12px -4px rgba(0,0,0,.07);
  padding: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  z-index: 620;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s var(--t-fast);
}
.main-navigation ul li.menu-item-has-children:hover > .sub-menu,
.main-navigation ul li.menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility 0s 0s;
}
.main-navigation ul .sub-menu li { position: static; }
.main-navigation ul .sub-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 450;
  color: var(--slate-800) !important;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid var(--slate-100);
  transition: background var(--t-fast), color var(--t-fast);
}
.main-navigation ul .sub-menu li:last-child a { border-bottom: none; }
.main-navigation ul .sub-menu li a:hover { background: var(--blue-50); color: var(--blue) !important; }
.td-submenu-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate-400);
  background: var(--slate-100);
  border-radius: var(--r-full);
  padding: 1px 7px;
  flex-shrink: 0;
  margin-left: 8px;
}
/* "All products" footer row — matches search "View all results" style */
.main-navigation ul .sub-menu li.td-submenu-all {
  border-top: 1px solid var(--slate-100);
}
.main-navigation ul .sub-menu li.td-submenu-all a {
  justify-content: center;
  color: var(--blue) !important;
  font-weight: 600;
  font-size: 13px;
  background: var(--slate-50);
  border-bottom: none;
}
.main-navigation ul .sub-menu li.td-submenu-all a:hover { background: var(--blue-light); }

/* Suppress old Storefront cart widget and nav wrapper (fallback if hooks linger) */
.site-header-cart,
.storefront-navigation-wrapper { display: none !important; }
.storefront-handheld-footer-bar { display: none !important; }

/* ─── Header right: search + cart badge + account icon ──────────────────────── */
.td-header-right {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Search */
.td-search-form {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0 !important;
}
.td-search-input {
  width: 170px;
  padding: 7px 28px 7px 12px !important;
  font-size: 13px !important;
  font-family: var(--font) !important;
  border-radius: var(--r-full) !important;
  border: 1px solid var(--slate-200) !important;
  background: var(--slate-100) !important;
  color: var(--slate-700) !important;
  text-align: left !important;
  transition: width var(--t), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast) !important;
}
/* Kill every native browser control that can appear inside a search-type input */
.td-search-input::-webkit-search-cancel-button,
.td-search-input::-webkit-search-decoration,
.td-search-input::-webkit-search-results-button,
.td-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
  width: 0;
  height: 0;
}
.td-search-input::placeholder {
  color: var(--slate-400, #94a3b8) !important;
  text-align: left;
}
.td-search-input:focus {
  width: 210px;
  outline: none !important;
  background: #fff !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
}
.td-search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  /* fixed size prevents any layout shift on hover */
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  color: var(--slate-500) !important;
  font-size: 16px;
  line-height: 1;
  opacity: 0.55;
  transition: opacity var(--t-fast) !important;
}
.td-search-clear.is-visible { display: flex; }
/* Hover: opacity change only — position, size, and transform are frozen */
.td-search-clear:hover {
  opacity: 1 !important;
  background: none !important;
  color: var(--slate-500) !important;
  transform: translateY(-50%) !important;
}

/* ─── Live search dropdown ──────────────────────────────────────────────────── */
.td-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 32px -4px rgba(0,0,0,.12), 0 4px 12px -4px rgba(0,0,0,.06);
  z-index: 620;
  display: none;
  overflow: hidden;
  min-width: 320px;
}
.td-search-dropdown.is-open { display: block; }

/* Result rows */
.td-search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none !important;
  color: var(--slate-800) !important;
  border-bottom: 1px solid var(--slate-100);
  transition: background var(--t-fast);
  cursor: pointer;
}
.td-search-result:last-of-type { border-bottom: none; }
.td-search-result:hover,
.td-search-result.is-focused { background: var(--blue-50); }
.td-search-result-img {
  width: 46px; height: 46px;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--slate-100);
  flex-shrink: 0;
}
.td-search-result-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.td-search-result-cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--slate-400);
}
.td-search-result-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--slate-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--t-fast);
}
.td-search-result:hover .td-search-result-title,
.td-search-result.is-focused .td-search-result-title { color: var(--blue); }
.td-search-result-price { font-size: 12px; font-weight: 700; color: var(--blue); }
.td-search-result-meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.td-search-sku { font-size: 10px; color: var(--slate-400,#94a3b8); letter-spacing: .02em; }
.td-stock-badge { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 20px; white-space: nowrap; }
.td-stock-in  { background: #dcfce7; color: #166534; }
.td-stock-back{ background: #fef9c3; color: #854d0e; }
.td-stock-out { background: #fee2e2; color: #991b1b; }

/* Loading skeleton */
.td-search-skeleton {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--slate-100);
}
.td-search-skeleton:last-child { border-bottom: none; }
.td-search-skeleton-img {
  width: 46px; height: 46px;
  border-radius: var(--r);
  background: var(--slate-100);
  flex-shrink: 0;
}
.td-search-skeleton-lines { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.td-search-skeleton-line {
  height: 10px;
  border-radius: 5px;
  background: var(--slate-100);
  animation: td-pulse 1.5s ease-in-out infinite;
}
.td-search-skeleton-line:nth-child(1) { width: 65%; }
.td-search-skeleton-line:nth-child(2) { width: 30%; }
.td-search-skeleton:nth-child(2) .td-search-skeleton-line { animation-delay: .15s; }
.td-search-skeleton:nth-child(3) .td-search-skeleton-line { animation-delay: .3s; }
/* ─── Request Quote button + toast ──────────────────────────────────────────── */
.td-quote-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 3em !important;
  padding: 0.75em 1.25em !important;
  border: 1px solid var(--blue) !important;
  border-radius: 4px !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--blue) !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  font-family: var(--font) !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  transition: background var(--t-fast), color var(--t-fast) !important;
}
.td-quote-btn:hover { background: var(--blue) !important; color: #fff !important; }
.td-quote-btn:disabled { opacity: 0.55 !important; cursor: not-allowed !important; }
.wc-block-checkout__actions_row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}
.td-checkout-action-group {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
  margin-left: auto !important;
}
.td-checkout-action-group .wc-block-components-checkout-place-order-button {
  min-height: 3em !important;
  padding: 0.75em 1.25em !important;
  border: 1px solid var(--blue) !important;
  border-radius: 4px !important;
  background: var(--blue) !important;
  background-image: none !important;
  color: #fff !important;
  font-size: 1em !important;
  font-weight: 600 !important;
  font-family: var(--font) !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
}
.td-checkout-action-group .wc-block-components-checkout-place-order-button:hover {
  background: var(--blue-dark) !important;
  border-color: var(--blue-dark) !important;
}
.td-quote-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 13px 22px;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  transition: opacity .25s ease, transform .25s ease;
}
.td-quote-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.td-quote-toast--success { background: #166534; }
.td-quote-toast--error   { background: #991b1b; }

@media (max-width: 560px) {
  .wc-block-checkout__actions_row {
    align-items: stretch !important;
    flex-direction: column-reverse !important;
  }
  .td-checkout-action-group {
    width: 100% !important;
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    margin-left: 0 !important;
  }
  .td-quote-btn,
  .td-checkout-action-group .wc-block-components-checkout-place-order-button {
    width: 100% !important;
  }
}

@keyframes td-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* No results */
.td-search-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 14px;
  font-size: 13px;
  color: var(--slate-500);
  margin: 0;
  text-align: center;
}
.td-search-no-results-icon { opacity: 0.3; }

/* "View all results" footer */
.td-search-viewall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue) !important;
  text-decoration: none !important;
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
  transition: background var(--t-fast);
}
.td-search-viewall strong { font-weight: 600; }
.td-search-viewall:hover { background: var(--blue-light); }

/* ─── Mobile search trigger button ──────────────────────────────────────────── */
.td-mobile-search-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--slate-600);
  border-radius: var(--r);
  transition: color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}
.td-mobile-search-btn:hover { color: var(--blue); background: var(--slate-100); }

/* ─── Mobile search modal ────────────────────────────────────────────────────── */
.td-search-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  visibility: hidden;
  pointer-events: none;
}
.td-search-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}
.td-search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .2s ease;
}
.td-search-modal.is-open .td-search-modal-backdrop { opacity: 1; }
.td-search-modal-sheet {
  position: absolute;
  top: 64px;
  left: 50%;
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: calc(100vh - 80px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-50%) scale(0.96);
  transition: opacity .2s ease, transform .2s cubic-bezier(.4, 0, .2, 1);
}
.td-search-modal.is-open .td-search-modal-sheet {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.td-search-modal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--slate-100);
  flex-shrink: 0;
}
.td-search-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important; height: 36px !important;
  padding: 0 !important;
  border: none !important;
  background: rgba(255,255,255,0.2) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: background var(--t-fast) !important;
  text-shadow: none !important;
}
.td-search-modal-close:hover { background: rgba(255,255,255,0.3) !important; }
.td-search-modal-icon { color: var(--slate-400); flex-shrink: 0; }
.td-search-modal-input {
  flex: 1;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-family: var(--font) !important;
  color: var(--slate-800) !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}
.td-search-modal-clear {
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important; height: 20px !important;
  padding: 0 !important;
  border: none !important;
  background: var(--slate-200) !important;
  background-image: none !important;
  box-shadow: none !important;
  color: var(--slate-500) !important;
  border-radius: 50% !important;
  font-size: 14px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background var(--t-fast) !important;
  text-shadow: none !important;
}
.td-search-modal-clear.is-visible { display: flex !important; }
.td-search-modal-clear:hover { background: var(--slate-300) !important; }
.td-search-modal-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

/* Cart icon */
.td-cart-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r);
  color: var(--slate-600) !important;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.td-cart-icon-btn:hover {
  background: var(--slate-100);
  color: var(--blue) !important;
}
.td-cart-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: var(--font);
  pointer-events: none;
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.td-cart-badge.is-empty {
  transform: scale(0);
  opacity: 0;
}

/* Account icon */
.td-account-icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  border-radius: var(--r);
  color: var(--slate-600) !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.td-account-icon-btn:hover {
  background: var(--slate-100);
  color: var(--blue) !important;
}
.td-account-label { font-size: 13px; }

/* ─── Mobile menu toggle ─────────────────────────────────────────────────────── */
.td-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none !important;
  border: none !important;
  border-radius: var(--r);
  color: var(--slate-600) !important;
  cursor: pointer;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0;
  transition: background var(--t-fast), color var(--t-fast);
}
.td-menu-toggle:hover {
  background: var(--slate-100) !important;
  color: var(--blue) !important;
  transform: none !important;
  box-shadow: none !important;
}
.td-icon-close { display: none; }
.td-menu-toggle[aria-expanded="true"] .td-icon-menu { display: none; }
.td-menu-toggle[aria-expanded="true"] .td-icon-close { display: block; }

/* ─── Mobile nav panel ───────────────────────────────────────────────────────── */
.td-mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--slate-200);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  z-index: 10;
}
.td-mobile-nav.is-open { display: block; }

.td-mobile-menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 4px 0 !important;
}
.td-mobile-menu li { margin: 0 !important; padding: 0 !important; }
.td-mobile-menu li a {
  display: block !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--slate-700) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--slate-100) !important;
  white-space: nowrap !important;
  transition: background var(--t-fast), color var(--t-fast) !important;
}
.td-mobile-menu li:last-child a { border-bottom: none !important; }
.td-mobile-menu li a:hover { background: var(--slate-50) !important; color: var(--blue) !important; }
.td-mobile-menu li.current-menu-item > a {
  color: var(--blue) !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
/* Mobile accordion: sub-menu hidden by default, shown when parent li.is-open */
.td-mobile-menu .sub-menu { display: none !important; }
.td-mobile-menu li.is-open > .sub-menu {
  display: block !important;
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}
.td-mobile-menu li.is-open > .sub-menu li {
  list-style: none !important;
}
.td-mobile-menu li.is-open > .sub-menu li a {
  padding-left: 40px !important;
  font-size: 13.5px !important;
  color: var(--slate-600) !important;
  border-bottom: 1px solid var(--slate-100) !important;
  position: relative !important;
}
.td-mobile-menu li.is-open > .sub-menu li a::before {
  content: '–';
  position: absolute;
  left: 20px;
  color: var(--slate-400);
}
.td-mobile-menu li.is-open > .sub-menu li:last-child a { border-bottom: none !important; }
.td-mobile-menu li.is-open > .sub-menu li a:hover { color: var(--blue) !important; background: var(--blue-50) !important; }

/* Chevron for mobile items with children */
.td-mobile-menu li.menu-item-has-children > a {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.td-mobile-chevron {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  transition: transform var(--t-fast);
}
.td-mobile-menu li.is-open > a .td-mobile-chevron { transform: rotate(180deg); }

.td-mobile-nav-search {
  padding: 8px 16px 12px;
  border-top: 1px solid var(--slate-100);
}
.td-mobile-nav-search form {
  display: flex;
  align-items: center;
  background: var(--slate-100);
  border-radius: var(--r-full);
  border: 1px solid var(--slate-200);
  padding: 0 8px 0 14px;
  gap: 4px;
}
.td-mobile-nav-search input[type="search"] {
  flex: 1 !important;
  border: none !important;
  background: transparent !important;
  padding: 10px 0 !important;
  font-size: 14px !important;
  color: var(--slate-700) !important;
  outline: none !important;
  box-shadow: none !important;
  width: auto !important;
  cursor: pointer !important;
}
.td-mobile-nav-search button[type="submit"] {
  background: none !important;
  border: none !important;
  padding: 6px !important;
  color: var(--slate-500) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  box-shadow: none !important;
  transform: none !important;
  flex-shrink: 0;
}
.td-mobile-nav-search button[type="submit"]:hover {
  color: var(--blue) !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────────── */
/* Shared base */
.button,
button,
input[type="submit"],
input[type="button"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .cart .button,
.woocommerce .checkout-button,
.woocommerce #respond input#submit {
  font-family: var(--font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: var(--blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--r) !important;
  padding: 11px 22px !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast) !important;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .cart .button:hover,
.woocommerce .checkout-button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--blue-dark) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37,99,235,.35) !important;
  transform: translateY(-1px) !important;
}
.button:active { transform: translateY(0) !important; box-shadow: none !important; }

/* Add-to-cart button: always visible, secondary style */
.woocommerce ul.products li.product .button.add_to_cart_button {
  background: var(--slate-100) !important;
  color: var(--slate-700) !important;
  border: 1px solid var(--slate-200) !important;
  width: calc(100% - 28px) !important;
  display: flex !important;
  justify-content: center !important;
  margin: 0 14px 14px !important;
  box-shadow: none !important;
  transform: none !important;
}
.woocommerce ul.products li.product .button.add_to_cart_button:hover {
  background: var(--blue) !important;
  color: #fff !important;
  border-color: var(--blue) !important;
  box-shadow: none !important;
  transform: none !important;
}
.woocommerce ul.products li.product .button.add_to_cart_button.loading { opacity: .65; }
.woocommerce ul.products li.product .button.add_to_cart_button.added {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: #fff !important;
}

/* Hero buttons */
.td-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #fff;
  color: var(--blue) !important;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--r-full);
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  transition: transform var(--t), box-shadow var(--t);
}
.td-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.22); }

.td-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: #fff !important;
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--r-full);
  border: 2px solid rgba(255,255,255,.45);
  text-decoration: none !important;
  transition: background var(--t), border-color var(--t), transform var(--t);
}
.td-btn-ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.75);
  transform: translateY(-2px);
}

/* ─── Form inputs ─────────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
  font-family: var(--font) !important;
  font-size: 14px !important;
  color: var(--slate-900) !important;
  background: #fff !important;
  border: 1px solid var(--slate-300) !important;
  border-radius: var(--r) !important;
  padding: 10px 14px !important;
  outline: none !important;
  transition: border-color var(--t-fast), box-shadow var(--t-fast) !important;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12) !important;
}
::placeholder { color: var(--slate-500) !important; opacity: 1; }

/* ─── Hero ────────────────────────────────────────────────────────────────────── */
.td-hero {
  position: relative;
  background: linear-gradient(140deg, #1e3a8a 0%, var(--blue) 55%, #0ea5e9 100%);
  overflow: hidden;
  padding: 88px 24px 96px;
  margin-bottom: 0;
  text-align: center;
}
/* Hero with uploaded background image — suppress gradient, add dark overlay for readability */
.td-hero--img { background: none; }
.td-hero--img::before {
  background: rgba(0,0,0,.45) !important;
}
/* subtle radial highlights */
.td-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 20%, rgba(255,255,255,.09) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(0,0,0,.08) 0%, transparent 60%);
  pointer-events: none;
}
.td-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}
.td-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 20px;
}
.td-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.08;
  margin: 0 0 18px;
}
.td-hero p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  margin: 0 0 36px;
}
.td-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── USP bar ─────────────────────────────────────────────────────────────────── */
.td-usp-bar {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 16px 0;
  margin-bottom: 56px;
}
.td-usp-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.td-usp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 28px;
  font-size: 13px;
  color: var(--slate-700);
  font-weight: 500;
  border-right: 1px solid var(--slate-200);
}
.td-usp-item:last-child { border-right: none; }
.td-usp-icon {
  font-size: 18px;
  line-height: 1;
}
.td-usp-item strong { font-weight: 700; color: var(--slate-900); }

/* ─── Section scaffold ────────────────────────────────────────────────────────── */
.td-section { margin-bottom: 64px; }
.td-section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.td-section-hd h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 0;
}
.td-section-hd a {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.td-section-hd a:hover { text-decoration: underline; }

.td-products-heading {
  font-size: 22px !important;
  font-weight: 800 !important;
  font-family: var(--font) !important;
  letter-spacing: -.3px;
  color: var(--slate-900);
  margin: 0 !important;
}

/* ─── Homepage product carousel ──────────────────────────────────────────────── */
/* Buttons sit half-outside the carousel so product cards align with the section
   heading. padding: 0 on the carousel means the track fills edge-to-edge;
   negative left/right offsets push each button to straddle the carousel edge. */
.td-carousel {
  position: relative;
  padding: 0;
  overflow: visible;
  margin-bottom: 64px; /* match inter-section gap used by .td-section, .td-testimonials, .td-newsletter */
}
.td-carousel-track-wrap {
  overflow: hidden;
  touch-action: pan-y;
}
.td-carousel-prev,
.td-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) translateX(0);
  z-index: 2;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  border: none !important;
  background: rgba(15, 23, 42, 0.55) !important;
  color: #ffffff !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  box-shadow: none !important;
  text-indent: 0 !important;
  transition: background var(--t-fast), opacity var(--t-fast), transform var(--t-fast);
}
.td-carousel-prev svg,
.td-carousel-next svg { width: 24px; height: 24px; }
.td-carousel-prev { left: -42px; }
.td-carousel-next { right: -42px; }
.td-carousel-prev:hover { background: rgba(15, 23, 42, 0.8) !important; transform: translateY(-50%) translateX(-3px) !important; }
.td-carousel-next:hover { background: rgba(15, 23, 42, 0.8) !important; transform: translateY(-50%) translateX(3px) !important; }
.td-carousel-prev.is-disabled,
.td-carousel-next.is-disabled { opacity: 0 !important; cursor: default; pointer-events: none; }
/* Sacrifice shim that absorbs the orphaned </div> from Storefront hooks */
.td-wc-shim { display: none !important; }

@media (max-width: 900px) {
  /* Swipe-affordance indicators — visible edge arrows */
  .td-carousel-prev,
  .td-carousel-next {
    width: 36px !important;
    height: 36px !important;
    z-index: 3;
    background: rgba(15, 23, 42, 0.5) !important;
  }
  .td-carousel-prev svg,
  .td-carousel-next svg { width: 16px !important; height: 16px !important; }
  .td-carousel-prev { left: 8px; }
  .td-carousel-next { right: 8px; }
  .td-carousel-track-wrap { overflow-x: hidden; }
}

/* ─── Product grid (WooCommerce shop loop) ────────────────────────────────────── */
/* auto-fill so grid reflows without media queries */
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
/* Storefront clearfix pseudo-elements become ghost grid cells — hide them */
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex !important;
  flex-direction: column !important;
  transition: box-shadow var(--t), transform var(--t);
}
.woocommerce ul.products li.product:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* ─── Carousel overrides — must come AFTER general grid rules above ──────────── */
/* .td-carousel wraps the ul.products on the home page; targeting it directly    */
/* avoids the body.home.woocommerce descendant-selector trap.                    */
.td-carousel ul.products {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
  grid-template-columns: unset !important;
  transition: transform 0.42s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.td-carousel ul.products li.product {
  flex: 0 0 calc((100% - 64px) / 5) !important;
  width: calc((100% - 64px) / 5) !important;
  min-width: 0 !important;
}
@media (max-width: 900px) {
  .td-carousel ul.products li.product { flex: 0 0 200px !important; width: 200px !important; }
}

/* The product anchor wraps image + title + price */
.woocommerce ul.products li.product a.woocommerce-loop-product__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}

/* ─── Product image with overlay ─────────────────────────────────────────────── */
.td-product-img {
  position: relative;
  overflow: hidden;
  background: var(--slate-100);
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.td-product-img img,
.woocommerce ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  transition: transform var(--t-slow);
}
.woocommerce ul.products li.product:hover .td-product-img img {
  transform: scale(1.05);
}

/* Overlay fades in on hover */
.td-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t);
}
.woocommerce ul.products li.product:hover .td-img-overlay {
  opacity: 1;
}
/* Pill label slides up into view */
.td-view-label {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid rgba(255,255,255,.55);
  padding: 7px 18px;
  border-radius: var(--r-full);
  letter-spacing: .2px;
  transform: translateY(8px);
  transition: transform var(--t);
}
.woocommerce ul.products li.product:hover .td-view-label {
  transform: translateY(0);
}

/* Product text area */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--slate-900) !important;
  padding: 12px 14px 2px !important;
  margin: 0 !important;
  flex: 1;
  line-height: 1.4 !important;
}
.woocommerce ul.products li.product .price {
  display: block;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--blue) !important;
  padding: 4px 14px 8px !important;
  margin: 0 !important;
}
/* Star ratings in loop */
.woocommerce ul.products li.product .star-rating {
  margin: 0 0 4px 14px !important;
  font-size: 11px !important;
}
.woocommerce ul.products li.product .star-rating::before,
.woocommerce ul.products li.product .star-rating span::before {
  color: var(--amber) !important;
}

/* ─── Product detail page ──────────────────────────────────────────────────────── */
.woocommerce div.product .product_title {
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -.4px;
  line-height: 1.15;
  margin-bottom: 14px !important;
}
.woocommerce div.product div.summary .price {
  color: var(--blue) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  display: block;
  margin-bottom: 18px !important;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate-600);
  margin-bottom: 16px;
}
.woocommerce div.product form.cart {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
/* Quantity pill — groups [-][n][+] as a single bordered control */
.woocommerce div.product form.cart .quantity {
  display: inline-flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--slate-200) !important;
  border-radius: var(--r) !important;
  overflow: hidden !important;
}
.woocommerce div.product form.cart .quantity input.qty {
  width: 52px !important;
  text-align: center !important;
  font-weight: 600 !important;
  border: none !important;
  border-left: 1px solid var(--slate-200) !important;
  border-right: 1px solid var(--slate-200) !important;
  border-radius: 0 !important;
  padding: 0 8px !important;
  box-shadow: none !important;
}
.woocommerce div.product form.cart .quantity .minus,
.woocommerce div.product form.cart .quantity .plus {
  width: 40px !important;
  height: auto !important;
  border: none !important;
  border-radius: 0 !important;
  background: var(--slate-50) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
}
.woocommerce div.product .single_add_to_cart_button {
  flex: 1;
  min-width: 160px;
  justify-content: center;
  font-size: 15px !important;
  padding: 13px 28px !important;
}
.woocommerce div.product .product_meta {
  margin-top: 0;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--slate-200);
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--slate-500);
}
.woocommerce div.product .product_meta a {
  color: var(--blue);
  text-decoration: none;
}
.woocommerce div.product .product_meta a:hover { text-decoration: underline; }

/* Category pill above title */
.td-product-category-pill {
  display: inline-flex;
  align-items: center;
  background: var(--blue-50);
  color: var(--blue) !important;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--r-full);
  text-decoration: none !important;
  margin-bottom: 12px;
  transition: background var(--t-fast);
}
.td-product-category-pill:hover { background: var(--blue-light) !important; }

/* VAT note — inline below price (appended via woocommerce_get_price_html filter) */
.td-product-vat-note {
  display: block;
  font-size: 12px !important;
  color: var(--slate-400) !important;
  margin-top: 4px !important;
  line-height: 1 !important;
}

/* Trust strip under ATC button */
.td-product-trust {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
}
.td-product-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: 12px;
  color: var(--slate-600);
  line-height: 1.35;
  border-right: 1px solid var(--slate-200);
  padding-right: 24px;
}
.td-product-trust-item:last-child { border-right: none; padding-right: 0; }
.td-product-trust-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-800);
}
.td-product-trust-icon { flex-shrink: 0; color: var(--blue); }
.td-product-trust-sub { font-size: 11px; color: var(--slate-400); }
@media (max-width: 600px) {
  .td-product-trust { flex-direction: column; gap: 0; }
  .td-product-trust-item {
    border-right: none !important;
    border-bottom: 1px solid var(--slate-200);
    padding-right: 0 !important;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .td-product-trust-item:last-child { border-bottom: none; }
}

/* Tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs {
  border: none !important;
  border-bottom: 2px solid var(--slate-200) !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  display: flex !important;
  list-style: none !important;
  background: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: none !important;
  background: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block !important;
  padding: 12px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--slate-500) !important;
  text-decoration: none !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -2px !important;
  transition: color var(--t-fast), border-color var(--t-fast);
  background: none !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--slate-900) !important;
  border-bottom-color: var(--blue) !important;
}

/* ── Desktop: description + additional info side by side ─────────────────────
   Hide the tab strip and show both panels as equal columns in a flex row.
   WooCommerce hides inactive panels with display:none — override on desktop. */
@media (min-width: 769px) {
  .woocommerce div.product .woocommerce-tabs {
    display: flex !important;
    justify-content: space-between;
    gap: 24px;
    align-items: stretch;
  }
  .woocommerce div.product .woocommerce-tabs ul.tabs {
    display: none !important;
  }
  .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    display: block !important;
    flex: 1;
    min-width: 0;
    border: 1px solid var(--slate-200) !important;
    border-radius: var(--r-lg) !important;
    padding: 24px !important;
    margin: 0 !important;
  }
  .woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 0 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--slate-100) !important;
    color: var(--slate-900) !important;
  }
}

/* ─── Single product gallery ─────────────────────────────────────────────────── */
.woocommerce div.product div.images {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: none;
  background: var(--slate-50);
  box-shadow: var(--shadow);
}

/* Zoom trigger — clean floating white circle */
.woocommerce-product-gallery__trigger {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 10 !important;
  width: 38px !important;
  height: 38px !important;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.14) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--slate-700) !important;
  transition: background var(--t-fast), box-shadow var(--t-fast) !important;
}
.woocommerce-product-gallery__trigger:hover {
  background: #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.2) !important;
}
.woocommerce-product-gallery__trigger svg,
.woocommerce-product-gallery__trigger img {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}

/* Thumbnail strip */
.woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  gap: 8px !important;
  padding: 10px !important;
  margin: 0 !important;
  background: var(--slate-50) !important;
  list-style: none !important;
  overflow-x: auto !important;
  border-top: 1px solid var(--slate-100) !important;
}
.woocommerce-product-gallery .flex-control-thumbs li {
  flex: 0 0 62px !important;
  width: 62px !important;
  height: 62px !important;
  margin: 0 !important;
}
.woocommerce-product-gallery .flex-control-thumbs li img {
  width: 62px !important;
  height: 62px !important;
  object-fit: cover !important;
  border-radius: var(--r) !important;
  border: 2px solid transparent !important;
  opacity: .65 !important;
  transition: opacity var(--t-fast), border-color var(--t-fast) !important;
  cursor: pointer !important;
}
.woocommerce-product-gallery .flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-thumbs li img:hover {
  border-color: var(--blue) !important;
  opacity: 1 !important;
}

/* Sale badge */
.woocommerce span.onsale {
  background: var(--red) !important;
  border-radius: var(--r-full) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  min-height: auto !important;
  min-width: auto !important;
  line-height: 1.4 !important;
}

/* Star ratings */
.star-rating { color: var(--amber) !important; }
.star-rating::before,
.star-rating span::before { color: var(--amber) !important; }

/* Suppress Storefront's built-in sticky add-to-cart bar */
.storefront-sticky-add-to-cart { display: none !important; }

/* ─── PhotoSwipe lightbox ─────────────────────────────────────────────────────── */
/* Background overlay */
.pswp__bg {
  background: #0a0f1e !important;
  opacity: 0 !important;
  transition: opacity .3s ease !important;
}
.pswp--animated-in .pswp__bg,
.pswp__bg { backdrop-filter: none; }
.pswp--visible .pswp__bg { opacity: .94 !important; }

/* Top bar */
.pswp__top-bar {
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, transparent 100%) !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 8px !important;
}

/* Counter */
.pswp__counter {
  font-family: var(--font) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.65) !important;
  height: auto !important;
  line-height: 1 !important;
  padding: 0 12px !important;
  margin-top: 0 !important;
}

/* All top-bar icon buttons — clean ghost circles */
.pswp__button {
  background-color: transparent !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  opacity: .8 !important;
  transition: background var(--t-fast), opacity var(--t-fast) !important;
  box-shadow: none !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.pswp__button:hover {
  background-color: rgba(255,255,255,.15) !important;
  opacity: 1 !important;
  box-shadow: none !important;
  transform: none !important;
}
.pswp__button:focus { outline: none !important; box-shadow: none !important; }

/* Hide share, fullscreen, zoom and preloader — not needed */
.pswp__button--share,
.pswp__button--fs,
.pswp__button--zoom,
.pswp__preloader { display: none !important; }

/* Replace sprite icons with inline SVGs (global button rule nukes background-image) */
.pswp__button--close {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: 40px !important;
  height: 40px !important;
  background-color: rgba(255,255,255,.15) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") !important;
  background-size: 18px 18px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  border-radius: 50% !important;
  opacity: 1 !important;
}
.pswp__button--close:hover {
  background-color: rgba(255,255,255,.3) !important;
  transform: none !important;
}

.pswp__button--arrow--left {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E") !important;
  background-size: 20px 20px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
.pswp__button--arrow--right {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") !important;
  background-size: 20px 20px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* Arrow nav buttons */
.pswp__button--arrow--left,
.pswp__button--arrow--right {
  width: 52px !important;
  height: 52px !important;
  background-color: rgba(255,255,255,.12) !important;
  border-radius: 50% !important;
  opacity: .9 !important;
  top: 50% !important;
  margin-top: -26px !important;
  transition: background var(--t-fast), opacity var(--t-fast), transform var(--t-fast) !important;
}
.pswp__button--arrow--left  { left: 20px !important; }
.pswp__button--arrow--right { right: 20px !important; }
.pswp__button--arrow--left:hover  {
  background-color: rgba(255,255,255,.25) !important;
  opacity: 1 !important;
  transform: translateX(-2px) !important;
}
.pswp__button--arrow--right:hover {
  background-color: rgba(255,255,255,.25) !important;
  opacity: 1 !important;
  transform: translateX(2px) !important;
}
/* Keep default sprite icons — only override chrome */
.pswp__button--arrow--left::before,
.pswp__button--arrow--right::before { margin: 0 !important; }

/* Caption */
.pswp__caption {
  background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 100%) !important;
}
.pswp__caption__center {
  font-family: var(--font) !important;
  font-size: 13px !important;
  color: rgba(255,255,255,.7) !important;
  text-align: center !important;
  max-width: 420px !important;
  padding: 14px 20px !important;
  margin: 0 auto !important;
  line-height: 1.5 !important;
}

/* Preloader */
.pswp__preloader__donut {
  border-color: rgba(255,255,255,.7) rgba(255,255,255,.2) rgba(255,255,255,.2) rgba(255,255,255,.2) !important;
}

@media (max-width: 600px) {
  .pswp__button--arrow--left  { left: 8px !important; }
  .pswp__button--arrow--right { right: 8px !important; }
  .pswp__button--arrow--left,
  .pswp__button--arrow--right { width: 40px !important; height: 40px !important; margin-top: -20px !important; }
}

/* Show-password toggle — strip all button chrome, icon only, centred in field */
button.show-password-input {
  position: absolute !important;
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
  background: none !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 4px !important;
  margin: 0 !important;
  color: var(--slate-400) !important;
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color var(--t-fast) !important;
  cursor: pointer !important;
  z-index: 2 !important;
}
button.show-password-input:hover,
button.show-password-input:focus,
button.show-password-input:active {
  background: none !important;
  box-shadow: none !important;
  transform: translateY(-50%) !important;
  color: var(--slate-600) !important;
  outline: none !important;
}
/* Ensure the password field wrapper is the positioning context */
.woocommerce-form-row.password-input,
.woocommerce-form__input-wrapper {
  position: relative !important;
}

/* ─── Mini cart drawer ────────────────────────────────────────────────────────── */
.td-cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9000;
  box-shadow: -4px 0 32px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  transition: right var(--t);
}
.td-cart-drawer.is-open { right: 0; }

.td-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: 8999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.td-cart-overlay.is-open { opacity: 1; visibility: visible; }

.td-cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--slate-200);
  flex-shrink: 0;
}
.td-cart-drawer-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
}
.td-cart-close {
  background: var(--slate-100);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  transition: background var(--t-fast), color var(--t-fast);
  font-family: system-ui;
}
.td-cart-close:hover { background: var(--slate-200); color: var(--slate-900); }

.td-cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px;
  -webkit-overflow-scrolling: touch;
}
/* Style the mini cart contents inside drawer */
.td-cart-drawer-body .woocommerce-mini-cart__buttons { margin-top: 20px; }
.td-cart-drawer-body .woocommerce-mini-cart__buttons .button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 8px !important;
}
.td-cart-drawer-body .woocommerce-mini-cart__buttons .button.checkout {
  background: var(--blue) !important;
}
.td-cart-drawer-body .woocommerce-mini-cart__buttons a:first-child {
  background: var(--slate-100) !important;
  color: var(--slate-700) !important;
}

/* ─── Notices ──────────────────────────────────────────────────────────────────── */
.woocommerce-info,
.woocommerce-message {
  border-top-color: var(--blue) !important;
  background: var(--blue-50) !important;
  border-radius: 0 var(--r) var(--r) 0 !important;
  font-size: 14px !important;
  color: #0f172a !important;
}
.woocommerce-error {
  border-top-color: var(--red) !important;
  background: #fef2f2 !important;
  border-radius: 0 var(--r) var(--r) 0 !important;
  color: #0f172a !important;
}

/* ─── Breadcrumbs ──────────────────────────────────────────────────────────────── */
.woocommerce .woocommerce-breadcrumb {
  font-size: 12px;
  color: var(--slate-500);
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--slate-500); text-decoration: none; }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

/* ─── Cart page ────────────────────────────────────────────────────────────────── */
.woocommerce table.shop_table {
  border: 1px solid var(--slate-200) !important;
  border-radius: var(--r-lg) !important;
  overflow: hidden;
  font-size: 14px !important;
}
.woocommerce table.shop_table thead th {
  background: var(--slate-50) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: .6px !important;
  color: var(--slate-500) !important;
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--slate-200) !important;
}
.woocommerce table.shop_table td {
  padding: 14px 16px !important;
  vertical-align: middle !important;
  border-color: var(--slate-100) !important;
}
.woocommerce table.shop_table .product-thumbnail img {
  border-radius: var(--r) !important;
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
}
.woocommerce table.shop_table .product-name a {
  font-weight: 600;
  color: var(--slate-900) !important;
  text-decoration: none !important;
}
.woocommerce table.shop_table .product-name a:hover { color: var(--blue) !important; }
.woocommerce table.shop_table a.remove {
  color: var(--slate-300) !important;
  font-size: 22px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  transition: background var(--t-fast), color var(--t-fast) !important;
}
.woocommerce table.shop_table a.remove:hover {
  background: #fef2f2 !important;
  color: var(--red) !important;
}
.woocommerce-cart .cart-collaterals .cart_totals {
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--slate-50);
}
.woocommerce .checkout-button {
  width: 100% !important;
  justify-content: center !important;
  margin-top: 10px !important;
  font-size: 15px !important;
  padding: 14px 28px !important;
}

/* ─── Quantity +/- buttons (cart, single product) ───────────────────────────────── */
.woocommerce .quantity {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 6px !important;
}
.woocommerce .quantity input.qty {
  width: 48px !important;
  height: 34px !important;
  text-align: center !important;
  border: 1px solid var(--slate-200) !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 0 !important;
  background: #fff !important;
  color: var(--slate-900) !important;
  box-shadow: none !important;
}
.woocommerce .quantity .minus,
.woocommerce .quantity .plus {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--slate-200) !important;
  border-radius: 6px !important;
  background: var(--slate-50) !important;
  color: var(--slate-700) !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background var(--t-fast), border-color var(--t-fast) !important;
  box-shadow: none !important;
  text-indent: 0 !important;
  text-decoration: none !important;
}
.woocommerce .quantity .minus:hover,
.woocommerce .quantity .plus:hover {
  background: var(--slate-100) !important;
  border-color: var(--slate-300) !important;
  color: var(--slate-900) !important;
}

/* ─── WC Blocks quantity selector (cart page) ───────────────────────────────────── */
.wc-block-cart-item__quantity {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
}
.wc-block-components-quantity-selector {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.wc-block-components-quantity-selector__input {
  order: 2 !important;
  width: 48px !important;
  height: 34px !important;
  text-align: center !important;
  border: 1px solid var(--slate-200) !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: var(--font) !important;
  padding: 0 !important;
  background: #fff !important;
  color: var(--slate-900) !important;
  box-shadow: none !important;
  -moz-appearance: textfield !important;
}
.wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
.wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}
.wc-block-components-quantity-selector__button {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid var(--slate-200) !important;
  border-radius: 6px !important;
  background: var(--slate-50) !important;
  background-image: none !important;
  color: var(--slate-700) !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast) !important;
}
.wc-block-components-quantity-selector__button--minus { order: 1 !important; }
.wc-block-components-quantity-selector__button--plus  { order: 3 !important; }
.wc-block-components-quantity-selector__button:hover:not(:disabled) {
  background: var(--slate-100) !important;
  border-color: var(--slate-300) !important;
  color: var(--slate-900) !important;
}
.wc-block-components-quantity-selector__button:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}
.wc-block-cart-item__remove-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--slate-400) !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background var(--t-fast), color var(--t-fast) !important;
}
.wc-block-cart-item__remove-link:hover {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

/* ─── Checkout ──────────────────────────────────────────────────────────────────── */
.woocommerce-checkout #order_review {
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 24px;
  background: var(--slate-50);
}
.woocommerce-checkout h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--slate-200) !important;
  margin-bottom: 20px !important;
}
.woocommerce form .form-row { margin-bottom: 16px !important; }
.woocommerce form .form-row label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--slate-700) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* ─── New Arrivals ────────────────────────────────────────────────────────────── */
.td-arrivals-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.td-arrival-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  text-decoration: none !important;
  transition: box-shadow var(--t), transform var(--t);
}
.td-arrival-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.td-arrival-img {
  width: 64px;
  height: 64px;
  border-radius: var(--r);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--slate-200);
}
.td-arrival-img img { width: 100%; height: 100%; object-fit: cover; }
.td-arrival-info h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-900);
  margin: 0 0 4px;
  line-height: 1.35;
}
.td-arrival-info { flex: 1; min-width: 0; }
.td-arrival-price { font-size: 14px; font-weight: 700; color: var(--blue); }
.td-arrival-arrow {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--slate-300);
  transition: color var(--t-fast), transform var(--t-fast);
}
.td-arrival-card:hover .td-arrival-arrow { color: var(--blue); transform: translateX(3px); }

/* ─── Category grid ───────────────────────────────────────────────────────────── */
.td-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.td-cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue) 0%, #0ea5e9 100%);
  aspect-ratio: 1 / 1;
  text-decoration: none !important;
  display: block;
}
.td-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.td-cat-card:hover img { transform: scale(1.07); }
.td-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,.75) 0%, rgba(15,23,42,.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  transition: background var(--t);
}
.td-cat-card:hover .td-cat-overlay {
  background: linear-gradient(to top, rgba(15,23,42,.85) 0%, rgba(15,23,42,.2) 60%, transparent 100%);
}
.td-cat-name { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.2; }
.td-cat-count { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 3px; }

/* ─── Testimonials ────────────────────────────────────────────────────────────── */
.td-testimonials {
  background: var(--slate-50);
  border-radius: var(--r-xl);
  border: 1px solid var(--slate-200);
  padding: 44px;
  margin-bottom: 64px;
}
.td-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.td-quote-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.td-quote-stars { font-size: 13px; color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; }
.td-quote-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate-600);
  font-style: italic;
  flex: 1;
  margin: 0 0 18px;
}
.td-quote-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  margin-top: auto;
}
.td-quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.td-quote-avatar--photo {
  object-fit: cover;
  display: block;
  background: var(--slate-100);
  border: 2px solid var(--slate-100);
}
.td-quote-name { font-size: 13px; font-weight: 600; color: var(--slate-900); display: block; }
.td-quote-role { font-size: 12px; color: var(--slate-500); }

/* ─── Newsletter ──────────────────────────────────────────────────────────────── */
.td-newsletter {
  background: linear-gradient(140deg, var(--slate-900) 0%, var(--slate-800) 100%);
  border-radius: var(--r-xl);
  padding: 52px 44px;
  margin-bottom: 64px;
  text-align: center;
}
.td-newsletter h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.3px;
  margin: 0 0 10px;
}
.td-newsletter p { color: rgba(255,255,255,.6); font-size: 15px; margin: 0 0 26px; }
.td-newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.td-newsletter-form input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  color: #fff !important;
  border-radius: var(--r) !important;
}
.td-newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.4) !important; }
.td-newsletter-form input[type="email"]:focus {
  background: rgba(255,255,255,.15) !important;
  border-color: rgba(255,255,255,.4) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,.08) !important;
}
.td-newsletter-form button {
  background: var(--blue) !important;
  border-radius: var(--r) !important;
  white-space: nowrap;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  color: #fff !important;
}
.td-newsletter-form button:hover { background: var(--blue-dark) !important; transform: none !important; box-shadow: none !important; }
.td-newsletter-note { font-size: 12px; color: rgba(255,255,255,.3); margin: 12px 0 0; }

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--slate-900) !important;
  color: var(--slate-200) !important;
  padding: 60px 0 0 !important;
}
.site-footer .col-full {
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
  max-width: var(--container) !important;
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.site-footer .site-info:empty { display: none; }
.site-footer a { color: rgba(255,255,255,.75) !important; text-decoration: none !important; transition: color var(--t-fast) !important; }
.site-footer a:hover { color: #fff !important; }

.td-footer-inner { width: 100%; }

/* Brand row — logo sits above the column grid */
.td-footer-brand-row {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

/* 5 or 4 equal columns on desktop */
.td-footer-grid {
  display: grid;
  gap: 32px;
  padding-bottom: 40px;
  align-items: start;
}
.td-footer-grid--5col { grid-template-columns: repeat(5, 1fr); }
.td-footer-grid--4col { grid-template-columns: repeat(4, 1fr); }

/* Brand */
.td-footer-logo { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.3px; margin-bottom: 0; }
.td-footer-logo--img { }
.td-footer-logo-img { max-height: 40px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .85; }
.td-footer-logo--img .custom-logo-link { display: block; }
.td-footer-logo--img .custom-logo { max-height: 40px; width: auto; display: block; filter: none !important; opacity: 1 !important; }

/* Column headings — uniform across all 5 cols */
.td-footer-block-title,
.td-footer-col h3,
.td-footer-col h4 {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.65) !important;
  margin: 0 0 14px !important;
}

/* Contact column */
.td-footer-address {
  font-style: normal;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin: 0 0 10px;
}
.td-footer-contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.75) !important;
  margin-bottom: 6px;
}
.td-footer-contact-link svg { flex-shrink: 0; opacity: 0.6; }
.td-footer-contact-link:hover { color: #fff !important; }
.td-footer-contact-link:hover svg { opacity: 0.9; }
.td-footer-meta {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.28);
  margin-top: 5px;
}

/* Opening hours column */
.td-footer-hours {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.td-footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,.42);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.td-footer-hours li:last-child { border-bottom: none; }
.td-footer-hours li span:last-child { text-align: right; white-space: nowrap; }

/* Link columns */
.td-footer-col ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.td-footer-col ul li { margin-bottom: 10px; }
.td-footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.5) !important; }
.td-footer-col ul li a:hover { color: #fff !important; }

/* Separator + right-align: desktop only — doesn't apply on reflow breakpoints */
@media (min-width: 1025px) {
  .td-footer-grid--5col .td-footer-col:nth-child(3),
  .td-footer-grid--4col .td-footer-col:nth-child(2) {
    border-left: 1px solid rgba(255,255,255,.1);
    padding-left: 28px;
  }
  .td-footer-grid--5col .td-footer-col:nth-child(n+3),
  .td-footer-grid--4col .td-footer-col:nth-child(n+2) {
    text-align: right;
  }
}

/* Payment provider icons */
.td-payment-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.td-payment-icons svg,
.td-payment-icons img {
  height: 26px !important;
  width: auto !important;
  display: block;
  flex-shrink: 0;
  border-radius: 3px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.18));
}

.td-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.td-footer-bottom p { font-size: 13px; color: rgba(255,255,255,.6); margin: 0; flex-shrink: 0; }

/* ─── Layout overrides ────────────────────────────────────────────────────────── */

/* Storefront's .col-full inside the content area has max-width:1257px and 7.7%
   side padding by default, which leaves content narrow and left-aligned.
   Scoped to .site-content only so the header .col-full is unaffected. */
.site-content .col-full {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Remove any float-layout debris from #primary and the site-main wrapper */
#primary, .content-area,
.woocommerce-page #primary, .woocommerce-page .content-area {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
}
/* .site-main is handled separately so its auto margins can centre it */
.site-main,
.woocommerce-page .site-main { width: 100% !important; float: none !important; }

/* Hide empty sidebar element — its float can still affect surrounding layout */
#secondary, .widget-area {
  display: none !important;
}

/* Hero and USP bar stay full viewport-width even when .site-main is capped.
   calc(-50vw + 50%) = -(half viewport) + (half containing block) which always
   pushes the element to the viewport edge regardless of the container width. */
.td-hero,
.td-usp-bar {
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
}

/* Remove the empty products-header gap */
.woocommerce-products-header { display: none !important; }

/* ─── Padding / spacing fixes ─────────────────────────────────────────────────
   Storefront adds ~4em top padding to .site-main and .entry-header which causes
   huge whitespace gaps especially on WooCommerce pages. Reduce to reasonable
   values and ensure consistent horizontal rhythm. */

/* Main content area — add horizontal padding here so it applies on every page
   (homepage, shop, cart, product) regardless of Storefront's outer wrapper structure.
   Hero/USP bar counteract with -24px negative margins to stay edge-to-edge. */
.site-main {
  padding-top: 36px !important;
  padding-bottom: 56px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
  min-height: calc(100vh - 64px - 360px) !important; /* viewport minus header and footer */
}
/* Homepage manages its own vertical rhythm section by section */
.home .site-main {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Entry/page header — WP wraps page titles in .entry-header */
.entry-header { padding: 0 0 1.5em !important; }
.entry-header .entry-title,
h1.entry-title,
h1.page-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  font-family: var(--font) !important;
  letter-spacing: -.3px;
  margin: 0 0 24px !important;
}

/* WooCommerce page wrappers — avoid double vertical padding */
.woocommerce-page .entry-header { padding-bottom: 1em !important; }
.woocommerce-page .entry-content { margin-top: 0 !important; }

/* WC block cart & checkout render with class="alignwide" which WordPress core
   CSS expands via calc(-50vw + 50%) negative margins, breaking out of .site-main.
   Reset those margins and own the horizontal padding at the block level so the
   padding doesn't come from the generic .site-main rule on these pages. */
.wp-block-woocommerce-cart.alignwide,
.wp-block-woocommerce-checkout.alignwide {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
/* Remove .site-main side padding on cart/checkout — the blocks above own it */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Order received page has no full-width block — restore side padding */
.woocommerce-order-received .site-main {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

/* hentry — Storefront adds margin-bottom: 4.236em */
.hentry { margin-bottom: 0 !important; }

/* Breadcrumbs — zero out Storefront's spacing; restore only bottom margin */
.storefront-breadcrumb,
.woocommerce .woocommerce-breadcrumb { margin: 0 0 16px !important; padding: 0 !important; }

/* WooCommerce notices — hide empty wrapper so it doesn't add blank space */
.woocommerce-notices-wrapper:empty { display: none !important; }

/* Shop / archive loop — result count + ordering toolbar */
.woocommerce-products-header + .woocommerce-result-count { margin-top: 0 !important; }
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count {
  margin-bottom: 1em !important;
}

/* Cart page — remove excess gap above heading; add side padding since .site-main
   padding is stripped on these pages so the WC block can own it */
.woocommerce-cart .entry-header,
.woocommerce-checkout .entry-header {
  padding-left: 24px !important;
  padding-right: 24px !important;
  padding-bottom: .75em !important;
}

/* Checkout form sections */
.woocommerce-checkout #customer_details { padding-top: 0 !important; }
.woocommerce form.checkout { padding-top: 0 !important; }

/* My Account page */
.woocommerce-account .woocommerce { padding-top: 0 !important; }

/* Single product — tighten the summary column */
.woocommerce div.product { padding-top: 0 !important; }
.woocommerce div.product .woocommerce-tabs { margin-top: 2em !important; }

/* Remove blank gap Storefront adds above WC main content */
.woocommerce-page .site-main > article { padding-top: 0 !important; margin-top: 0 !important; }

/* ─── Catalog page ────────────────────────────────────────────────────────────── */
.td-catalog-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--slate-200); }
.td-catalog-header h1 { font-size: 24px; font-weight: 800; letter-spacing: -.3px; margin: 0 0 4px; }
.td-catalog-header p { font-size: 14px; color: var(--slate-500); margin: 0; }

.td-catalog-filters {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.td-filter-group { display: flex; flex-direction: column; gap: 6px; }
.td-filter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--slate-500);
}
.td-cat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.td-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: #fff;
  color: var(--slate-700) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  border: 1px solid var(--slate-200);
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.td-chip:hover { background: var(--blue-light); border-color: var(--blue); color: var(--blue) !important; }
.td-chip.active { background: var(--blue); border-color: var(--blue); color: #fff !important; }
.td-chip-count { font-size: 11px; opacity: .6; font-weight: 400; }

.td-catalog-controls { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.td-range-group { display: flex; flex-direction: column; gap: 5px; min-width: 160px; }
.td-slider-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.td-slider-readout { font-size: 12px; font-weight: 600; color: var(--blue); white-space: nowrap; }

/* Dual-range slider */
.td-dual-slider { position: relative; padding-bottom: 2px; }
.td-slider-track {
  position: relative;
  height: 4px;
  background: var(--slate-200);
  border-radius: 2px;
  margin: 10px 0 2px;
}
.td-slider-fill {
  position: absolute;
  top: 0; height: 100%;
  background: var(--blue);
  border-radius: 2px;
  pointer-events: none;
}
.td-smin, .td-smax {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: 0; width: 100%;
  height: 28px; /* min touch target height */
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  margin: 0; padding: 0;
  outline: none; border: none;
}
.td-smin::-webkit-slider-thumb,
.td-smax::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px; /* WCAG 2.5.5 minimum touch target */
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  cursor: pointer;
  pointer-events: all;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.td-smin::-webkit-slider-thumb:hover,
.td-smax::-webkit-slider-thumb:hover {
  border-color: var(--blue-dark);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.td-smin::-webkit-slider-runnable-track,
.td-smax::-webkit-slider-runnable-track { background: transparent; }
.td-smin::-moz-range-thumb,
.td-smax::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.td-smin::-moz-range-track,
.td-smax::-moz-range-track { background: transparent; border: none; }
.td-catalog-controls select {
  padding: 7px 10px !important;
  min-width: 140px;
  background: #fff !important;
  color: var(--slate-700) !important;
  border: 1px solid var(--slate-300) !important;
}
.td-filter-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 2px; }
.td-filter-btn {
  padding: 9px 20px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--t-fast);
}
.td-filter-btn:hover { background: var(--blue-dark); }
.td-clear-btn {
  font-size: 13px;
  color: var(--slate-500);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-family: var(--font);
  padding: 0;
}

.td-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--slate-500);
}

.td-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.td-catalog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none !important;
  transition: box-shadow var(--t), transform var(--t);
}
.td-catalog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.td-catalog-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--slate-100); position: relative; }
.td-catalog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.td-catalog-card:hover .td-catalog-img img { transform: scale(1.05); }
.td-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.td-badge-oos { background: #fef2f2; color: var(--red); }
.td-catalog-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.td-catalog-cat { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--blue); margin-bottom: 4px; display: block; }
.td-catalog-title { font-size: 14px; font-weight: 600; color: var(--slate-900); margin: 0 0 5px; line-height: 1.35; }
.td-catalog-desc { font-size: 13px; color: var(--slate-500); line-height: 1.55; margin: 0 0 auto; padding-bottom: 12px; }
.td-catalog-dims { font-size: 12px; color: var(--slate-600, #475569); margin: -4px 0 8px; }
.td-catalog-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--slate-100); padding-top: 10px; margin-top: 12px; }
.td-catalog-price { font-size: 15px; font-weight: 700; color: var(--blue); }
.td-catalog-cta { font-size: 12px; font-weight: 600; color: var(--slate-600, #475569); transition: color var(--t-fast); }
.td-catalog-card:hover .td-catalog-cta { color: var(--blue); }
.td-catalog-empty { text-align: center; padding: 72px 0; color: var(--slate-500); }
.td-catalog-empty p { font-size: 15px; margin-bottom: 18px; }

/* ─── Catalog pagination ─────────────────────────────────────────────────────── */
.td-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.td-page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.td-page-btn,
.td-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r);
  background: #fff;
  color: var(--slate-700) !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.td-page-btn:hover,
.td-page-num:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue) !important;
}
.td-page-current {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
  font-weight: 600;
  pointer-events: none;
  cursor: default;
}
.td-page-disabled {
  opacity: 0.38;
  pointer-events: none;
  cursor: default;
}
.td-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  font-size: 13px;
  color: var(--slate-400);
}

/* ─── My Account ────────────────────────────────────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation {
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 6px !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  /* !important: Storefront/WooCommerce ships an equal-specificity rule that loads
     after this stylesheet and zeroes the link padding — force ours to win. */
  padding: 11px 16px !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700) !important;
  text-decoration: none !important;
  border-radius: 8px;
  transition: background var(--t-fast), color var(--t-fast);
}
/* Storefront adds the row icon via a floated ::after — make it a normal flex child
   so the label + icon stay contained and vertically centered inside the button. */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a::after {
  float: none !important;
  position: static !important;
  margin: 0 0 0 auto !important;
  line-height: 1;
  flex: 0 0 auto;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { background: var(--slate-50); }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  color: var(--blue) !important;
  background: var(--blue-light);
  font-weight: 600;
}

/* Related / Upsells */
.td-related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--slate-200);
}
.td-related-heading {
  font-size: 20px !important;
  font-weight: 800 !important;
  margin: 0 0 20px !important;
  color: var(--slate-900) !important;
}
/* Reset carousel bottom margin inside product page — tabs section follows */
.td-related-carousel {
  margin-bottom: 0 !important;
}

/* ─── Accessibility: reduce motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .td-footer-grid--5col,
  .td-footer-grid--4col { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .td-testimonials { padding: 32px; }
  .td-newsletter { padding: 40px 32px; }
}

@media (max-width: 768px) {
  .td-hero { padding: 60px 20px 68px; }
  .td-hero h1 { font-size: 28px; }
  .td-hero p { font-size: 15px; }
  .td-hero-actions { flex-direction: column; align-items: center; }
  .td-btn-primary, .td-btn-ghost { width: 100%; max-width: 260px; justify-content: center; }

  .td-usp-item { border-right: none; padding: 8px 16px; }
  .td-usp-inner { flex-direction: column; align-items: center; }
  .td-usp-item { text-align: center; }

.td-footer-grid--5col,
  .td-footer-grid--4col { grid-template-columns: repeat(2, 1fr); }
  .td-footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .td-quote-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .td-home-inner { padding: 0 16px; }
  .td-carousel { margin-bottom: 28px; }
  .td-shop-body > .td-section-hd { margin-bottom: 28px; padding-right: 0; }
  .woocommerce ul.products { margin-bottom: 28px !important; }

  .woocommerce ul.products,
  .td-section,
  .td-testimonials,
  .td-newsletter { padding-left: 0 !important; padding-right: 0 !important; }

  .site-header .col-full { min-height: 60px !important; padding: 0 16px !important; gap: 8px !important; justify-content: space-between !important; }
  .site-branding { flex: 0 0 auto; }
  .custom-logo { max-height: 34px !important; }
  .main-navigation { display: none !important; }
  .td-search-form { display: none !important; }
  .td-account-label { display: none !important; }
  .td-menu-toggle { display: inline-flex !important; }

  .site-main { padding: 20px 16px !important; margin-bottom: 0 !important; }
  /* Homepage sections manage their own padding per-section — cancel site-main padding */
  .home .site-main { padding: 0 !important; }

  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  .td-testimonials { padding: 20px 16px !important; border-radius: 0 !important; margin-bottom: 0 !important; }
  .td-newsletter { padding: 28px 16px !important; border-radius: 0 !important; margin-bottom: 0 !important; }
  .td-newsletter-form { flex-direction: column; }

  .td-catalog-controls { flex-direction: column; align-items: flex-start; }
  .td-footer-grid--5col,
  .td-footer-grid--4col { grid-template-columns: 1fr; }
  .td-footer-brand-row { padding-bottom: 20px; margin-bottom: 20px; }

  .woocommerce div.product form.cart { flex-direction: column; }
  .woocommerce div.product form.cart .qty { width: 100% !important; }

  .woocommerce-cart .entry-header,
  .woocommerce-checkout .entry-header {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .woocommerce-order-received .site-main {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .wp-block-woocommerce-cart.alignwide,
  .wp-block-woocommerce-checkout.alignwide {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 400px) {
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
}

@media (min-width: 768px) {
  header#masthead,
  .site-header { padding-top: 0 !important; padding-bottom: 0 !important; }
  .site-branding,
  .site-search,
  .site-header-cart,
  .site-logo-anchor,
  .site-logo-link,
  .custom-logo-link { margin-bottom: 0 !important; }
}
