/* ==========================================================================
   TasteLokal — Polish v2.5
   - Tighter spacing (less vertical, more horizontal)
   - Scroll-triggered reveal animations
   - Micro-interactions
   - Better section density
   ========================================================================== */

/* ===== Spacing scale (override all section padding) ===== */
:root {
  --sec-y-mobile: 32px;
  --sec-y-tablet: 44px;
  --sec-y-desk:   56px;
}

@media (max-width: 767.98px) {
  .section,
  .partners-section,
  .makers-section,
  .diff-section,
  .how-section,
  .stats-strip,
  .testimonials-section,
  .why-section,
  .category-grid-section,
  .tla-mission,
  .tla-values,
  .tla-roadmap,
  .tla-cta,
  .tla-hero,
  .makers-section,
  .footer-newsletter,
  .footer-main {
    padding-top: var(--sec-y-mobile);
    padding-bottom: var(--sec-y-mobile);
  }
  .section-head, .makers-head, .diff-head { margin-bottom: 22px; }
  .section-title, .makers-title, .diff-title { font-size: 22px; line-height: 1.15; }
  .section-sub, .makers-sub, .diff-sub { font-size: 13px; }
  .hero-grid { padding: 28px 16px 32px; }
  .hero-title { font-size: 26px !important; }
  .hero-subtitle { font-size: 14px; margin-bottom: 18px; }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .section,
  .partners-section,
  .makers-section,
  .diff-section,
  .how-section,
  .testimonials-section,
  .why-section,
  .category-grid-section,
  .tla-mission,
  .tla-values,
  .tla-roadmap,
  .tla-cta,
  .tla-hero,
  .footer-newsletter,
  .footer-main {
    padding-top: var(--sec-y-tablet) !important;
    padding-bottom: var(--sec-y-tablet) !important;
  }
  .hero-grid { padding: 44px 24px 48px !important; }
}

@media (min-width: 1024px) {
  .section,
  .partners-section,
  .makers-section,
  .diff-section,
  .how-section,
  .testimonials-section,
  .why-section,
  .category-grid-section,
  .tla-mission,
  .tla-values,
  .tla-roadmap,
  .tla-cta,
  .tla-hero,
  .footer-main {
    padding-top: var(--sec-y-desk) !important;
    padding-bottom: var(--sec-y-desk) !important;
  }
  .footer-newsletter { padding: 28px 0 !important; }
  .hero-grid { padding: 60px 32px 70px !important; }
  .hero-title { font-size: 52px !important; }
  .section-title, .makers-title, .diff-title { font-size: 32px; }
}

/* Tighter heading line heights */
.section-title, .makers-title, .diff-title, .hero-title { line-height: 1.1; }
.section-head, .makers-head, .diff-head { margin-bottom: 24px; }

/* ===== Hero: tighten further on desktop, denser stats ===== */
.hero-content { gap: 0; }
.hero-cta { margin-bottom: 18px !important; }
.hero-trust { font-size: 12px; }

/* Stats strip — denser, side-by-side with logos */
.stats-strip { padding: 16px 0 !important; }
.stats-grid strong { font-size: 22px !important; }
.stats-grid span { font-size: 10px !important; }
@media (min-width: 768px) {
  .stats-grid strong { font-size: 28px !important; }
}
/* v2.7.3 — Responsive fix: Stats strip — balance the mobile 2x2 grid.
   Cells already carry a vertical divider (border-right) between columns, but the
   two rows had no horizontal divider, making the 2x2 read as two detached pairs.
   Add a bottom divider to the top row on mobile only (4-up single row >=640px is unaffected). */
@media (max-width: 639.98px) {
  .stats-grid li:nth-child(1),
  .stats-grid li:nth-child(2) {
    border-bottom: 1px solid var(--border-light);
  }
}

/* ===== Section heads more compact ===== */
.section-head { gap: 8px; }
.section-sub { margin-top: 2px !important; }

/* ===== Trust strip more compact ===== */
.trust-strip { padding: 18px 0 !important; }
.trust-strip .container { gap: 12px; }
.trust-item { padding: 0; }
.trust-svg { width: 36px; height: 36px; flex: 0 0 36px; }
.trust-item strong { font-size: 12px; }
.trust-item span { font-size: 10px; }

/* v2.7.6 — Responsive fix: Trust strip desktop under-scaled.
   Base compact sizing (36px icon, 12/10px text) leaked from mobile to all
   viewports, leaving tiny icons + 10px subtext in the ~286px-wide 4-col bar.
   Restore the original desktop scale at >=1024px (44px teal circle also meets
   the >=44px target); mobile stays compact. */
@media (min-width: 1024px) {
  .trust-svg { width: 44px; height: 44px; flex: 0 0 44px; }
  .trust-item strong { font-size: 14px; }
  .trust-item span { font-size: 12px; }
  .trust-item { gap: 14px; }
}

/* v2.7.4 — Redesign: Why Cards — verbose, uneven 2-col cards (~404px / 2 ragged rows) → compact equal-height tiles with tightened uniform copy (~284px); ~120px mobile, ~40px desktop win. All trust copy (Silao/Maner/Gaya) preserved. */
.why-grid { align-items: stretch !important; }
.why-card {
  padding: 16px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  height: 100% !important;
}
.why-icon, .why-svg { width: 40px; height: 40px; margin: 0 auto 8px; }
.why-card h3 { font-size: 14px !important; margin-bottom: 4px; }
.why-card p { font-size: 12px !important; line-height: 1.45; margin: 0; }
@media (max-width: 767px) {
  .why-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .why-card { padding: 14px 12px !important; }
  .why-icon, .why-svg { width: 36px; height: 36px; margin: 0 auto 6px; }
  .why-card p { font-size: 11.5px !important; line-height: 1.4; }
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 16px !important; }
}

/* v2.6.7 — Redesign: Category Grid — mobile 2-col×4-row stack (~310px) → single-row horizontal snap-scroller chips (~70px); ~240px mobile win. Tablet/desktop grid unchanged. */
.cat-card { padding: 14px 10px !important; min-height: 70px !important; }
.cat-card .cat-name { font-size: 14px !important; }
.cat-card .cat-count { font-size: 11px !important; margin-top: 4px !important; }

/* Mobile: single-row horizontal scroller (food-app style category chips) */
@media (max-width: 767px) {
  .category-grid {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 10px !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding: 2px 16px 6px !important;
  }
  .category-grid::-webkit-scrollbar { display: none; }
  .cat-card {
    flex: 0 0 auto !important;
    width: 116px !important;
    min-height: 60px !important;
    padding: 12px 14px !important;
    justify-content: center !important;
    scroll-snap-align: start;
  }
}

@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 10px !important; }
}
@media (min-width: 1024px) {
  .category-grid { grid-template-columns: repeat(8, 1fr) !important; }
}

/* ===== Makers grid: 4 cols on desktop instead of 3 ===== */
@media (min-width: 1280px) {
  .makers-grid { grid-template-columns: repeat(4, 1fr) !important; }
}
.maker-card { padding: 14px !important; gap: 12px !important; }
.mc-avatar { width: 44px !important; height: 44px !important; font-size: 16px !important; }
.mc-name { font-size: 14px !important; }
.mc-spec { font-size: 11px !important; }
.mc-foot { margin-top: 8px !important; padding-top: 8px !important; }
.makers-cta { margin-top: 20px !important; }

/* v2.7.1 — Redesign: Makers — mobile 6-card stacked column (~620px) → single-row horizontal snap-scroller (~110px); ~500px mobile win. Tablet/desktop grid unchanged. */
@media (max-width: 767px) {
  .makers-section .makers-grid {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding: 4px 16px 8px !important;
  }
  .makers-section .makers-grid::-webkit-scrollbar { display: none; }
  .makers-section .maker-card {
    flex: 0 0 80% !important;
    min-width: 268px !important;
    scroll-snap-align: start;
  }
  .makers-head { margin-bottom: 20px !important; }
}

/* ===== How section: tighter cards ===== */
.how-card { padding: 18px 16px !important; }
.how-icon { width: 44px !important; height: 44px !important; margin-bottom: 12px !important; }
.how-num { font-size: 24px !important; top: 10px !important; right: 14px !important; }
.how-card h3 { font-size: 15px !important; }
.how-card p { font-size: 12px !important; }

/* ===== Testimonials: compact, scroll-snap on mobile ===== */
.testimonials { grid-template-columns: 1fr; gap: 10px !important; }
.testimonial { padding: 18px !important; font-size: 13px; }
.testimonial p { font-size: 13px; line-height: 1.5; margin-bottom: 10px !important; }
.t-meta { font-size: 11px !important; }
@media (min-width: 768px) {
  .testimonials { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Diff: tighter cells ===== */
.dw-cell, .do-cell { min-height: 56px !important; padding: 0 12px !important; font-size: 12px !important; }
.df-row { padding: 12px 12px !important; min-height: 56px !important; }
.df-spacer { height: 56px !important; }
.df-row strong { font-size: 12px !important; }
.df-row span { font-size: 10px !important; }
.df-icon { width: 30px !important; height: 30px !important; }
.dw-tick, .do-mark { width: 18px !important; height: 18px !important; }
.dw-name { font-size: 18px !important; margin: 12px 0 !important; }
.do-name { font-size: 14px !important; padding: 12px 8px !important; }
.dw-cta { margin-top: 10px !important; padding: 10px 14px !important; font-size: 12px !important; }
@media (min-width: 1024px) {
  .diff-winner { padding: 22px 16px 16px !important; }
}

/* ===== Newsletter banner: tighter ===== */
.footer-newsletter h3 { font-size: 18px !important; }
.footer-newsletter p { font-size: 12px !important; }
.fn-form input, .fn-form button { padding: 10px 14px !important; font-size: 13px !important; }

/* ===== Footer main: less padding, denser columns ===== */
.footer-main { padding-top: 32px !important; padding-bottom: 14px !important; }
.footer-brand { padding-bottom: 12px !important; }
.footer-tag { font-size: 13px !important; margin: 0 0 8px !important; }
.footer-desc { font-size: 12px !important; margin-bottom: 12px !important; }
.footer-widget-title { font-size: 12px !important; padding: 12px 0 !important; }
.footer-links li, .footer-contact li { font-size: 12px !important; margin-bottom: 6px !important; }
.footer-social a { width: 32px; height: 32px; }
.footer-social a svg { width: 16px; height: 16px; }

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr !important;
    gap: 28px !important;
  }
  .footer-widget-title { padding-bottom: 10px !important; }
}

/* Bottom row tighter */
.footer-bottom { padding: 12px 0 !important; }
.footer-bottom-row { font-size: 11px !important; gap: 6px !important; }

/* Payments tighter */
.footer-payments { padding: 16px 0 !important; }
.pm-card { height: 28px !important; }

/* ==========================================================================
   SCROLL REVEAL — Intersection Observer powered
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left { transform: translateX(-24px); }
.reveal-left.in { transform: translateX(0); }
.reveal-right { transform: translateX(24px); }
.reveal-right.in { transform: translateX(0); }
.reveal-scale { transform: scale(0.96); }
.reveal-scale.in { transform: scale(1); }

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.4,0,.2,1);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.25s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.30s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 0.35s; opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 0.40s; opacity: 1; transform: translateY(0); }

/* ==========================================================================
   MICRO-INTERACTIONS
   ========================================================================== */

/* Card lift on hover */
.maker-card, .why-card, .how-card, .cat-card, .testimonial, .partner-card,
ul.products li.product, ul.products li.product-card {
  transition: transform 0.22s cubic-bezier(.4,0,.2,1),
              box-shadow 0.22s cubic-bezier(.4,0,.2,1),
              border-color 0.22s ease;
}

/* Product card image zoom on hover */
ul.products li img, .product-card-image img {
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}
ul.products li:hover img, .product-card-inner:hover .product-card-image img {
  transform: scale(1.06);
}

/* Button shine effect */
.btn-primary, .single_add_to_cart_button, .add_to_cart_button {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .single_add_to_cart_button::after, .add_to_cart_button::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn-primary:hover::after, .single_add_to_cart_button:hover::after, .add_to_cart_button:hover::after {
  left: 130%;
}

/* Stats number pulse on reveal */
.stats-grid li.in strong {
  animation: stat-pop 0.6s cubic-bezier(.4,0,.2,1);
}
@keyframes stat-pop {
  0%   { transform: scale(0.8); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* Section title underline grow */
.section-title, .makers-title, .diff-title {
  position: relative;
  display: inline-block;
}

/* Smooth focus rings */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Smooth scroll for anchor jumps */
html { scroll-behavior: smooth; }

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   HORIZONTAL LAYOUT WINS (use horizontal space better)
   ========================================================================== */

/* Combined "Why + Testimonials" on large desktop */
@media (min-width: 1280px) {
  /* Make trust strip a horizontal bar with more content */
  .trust-strip .container {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 0 20px;
  }
}

/* Make How It Works a horizontal stepper on tablet+ */
@media (min-width: 640px) {
  .how-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr !important;
    gap: 12px !important;
    align-items: stretch;
  }
  .how-card { display: flex; flex-direction: column; }
  .how-card p { flex: 1; }
  .how-arrow { display: flex !important; }
}

/* Footer brand block: tighter on desktop */
@media (min-width: 1024px) {
  .footer-brand { padding: 0 !important; }
  .footer-tag br { display: none; }
}

/* Tighten container padding everywhere */
@media (min-width: 1024px) {
  .container { padding: 0 24px; }
}

/* ==========================================================================
   FOOTER RESPONSIVE TIGHTENING
   ========================================================================== */
.site-footer { margin-top: 24px !important; }

/* Mobile: ensure cards inside accordion don't overflow */
@media (max-width: 767px) {
  .footer-col[open] {
    padding-bottom: 10px !important;
  }
  .footer-widget-title {
    padding: 12px 0 !important;
    font-size: 12px !important;
  }
  .footer-links a, .footer-contact a {
    font-size: 13px !important;
  }
  .footer-newsletter { padding: 22px 0 !important; }
  .footer-newsletter h3 { font-size: 16px !important; }
  .footer-newsletter p { font-size: 11px !important; margin: 0 0 12px !important; }
  .fn-form input { padding: 10px 12px !important; font-size: 13px !important; }
  .fn-form button { padding: 11px !important; font-size: 13px !important; }

  /* Footer bottom: stack right */
  .footer-bottom-row p { margin: 0; font-size: 11px; }
  .bottom-links { font-size: 11px; }

  /* Payments compact */
  .footer-payments { padding: 14px 0 !important; }
  .payments-container { gap: 16px !important; }
  .trust-badges { gap: 10px !important; padding-bottom: 12px !important; }
  .tb-item > svg { width: 30px !important; height: 30px !important; padding: 6px !important; }
  .tb-item strong { font-size: 12px !important; }
  .tb-item span { font-size: 10px !important; }
  .pm-card { height: 26px !important; font-size: 10px !important; }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 24px !important; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Hide useless content gap */
.section.bg-light + .section { margin-top: -20px; }

/* ==========================================================================
   v2.5.2 — Strengthen CTAs (audit fix: "+ ADD" looked weak, "View All →" lost)
   ========================================================================== */

/* "+ ADD" button on product cards — solid teal, prominent */
.add_to_cart_button,
.product-card .button,
ul.products li .button,
.added_to_cart {
  background: var(--teal) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(13, 148, 136, 0.25);
  transition: all 0.18s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
  line-height: 1.2;
}
.add_to_cart_button:hover,
.product-card .button:hover,
ul.products li .button:hover {
  background: var(--teal-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.35);
}
.add_to_cart_button:active,
.product-card .button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

/* "View All →" links — convert from weak text to outline button */
.view-all,
a.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--navy) !important;
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.view-all::after {
  content: '→';
  font-size: 14px;
  line-height: 1;
  transition: transform 0.15s ease;
}
.view-all:hover {
  background: var(--teal);
  color: #fff !important;
  border-color: var(--teal);
}
.view-all:hover::after {
  transform: translateX(3px);
}
/* Override placeholder text "View All →" arrow in markup (we now add our own) */
.section-head .view-all { font-size: 12px; }

/* Section head: keep CTA aligned on right of title */
.section-head {
  align-items: center !important;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mobile: View All button slightly smaller */
@media (max-width: 767px) {
  .view-all { padding: 6px 12px; font-size: 11px; }
  .add_to_cart_button, .product-card .button { padding: 10px 12px !important; font-size: 11px !important; }
}

/* ==========================================================================
   v2.6.0 — Global breadcrumb (all page types)
   ========================================================================== */
.tl-bc {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-light);
  padding: 8px 0;
  font-size: 12px;
}
.tl-bc-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0; padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
}
.tl-bc-list::-webkit-scrollbar { display: none; }
.tl-bc-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
}
.tl-bc-list a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s ease;
  font-weight: 500;
}
.tl-bc-list a:hover { color: var(--teal); }
.tl-bc-list [aria-current="page"] {
  color: var(--navy);
  font-weight: 700;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-bc-sep {
  color: var(--border);
  font-weight: 400;
  margin: 0 4px;
  user-select: none;
}

/* Hide duplicate WC breadcrumbs (already rendered by our nav) */
.tl-pdp-wrap .tl-breadcrumb,
.tl-shop-hero .tl-breadcrumb { display: none !important; }

@media (max-width: 767px) {
  .tl-bc { padding: 6px 0; }
  .tl-bc-list li { font-size: 11px; }
  .tl-bc-list [aria-current="page"] { max-width: 180px; }
}

@media (min-width: 1024px) {
  .tl-bc { padding: 10px 0; }
  .tl-bc-list li { font-size: 13px; }
}

/* Desktop: a bit more emphasis */
@media (min-width: 1024px) {
  .add_to_cart_button, .product-card .button { font-size: 13px !important; padding: 12px 16px !important; }
}
/* ==========================================================================
   v2.6.1 — Product-card price/title hierarchy (audit fix)
   Mobile shrank price to 14px = same as title navy → flat hierarchy.
   Make price clearly dominant; demote title to a quiet supporting label.
   ========================================================================== */

/* Title: subordinate — lighter weight so the price leads the eye */
.product-card-title h3 {
  font-weight: 600;
  color: var(--navy);
}

/* Price: dominant — larger, heavier, never collapses to title size */
.product-card-price {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--navy);
  margin-top: 2px;
}
.product-card-price ins {
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
}
/* Strikethrough original price: clearly de-emphasised, set beside the active price */
.product-card-price del {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
  opacity: 0.75;
  margin-right: 6px;
}

/* Mobile: keep the price prominent (do NOT shrink to 14px = title size) */
@media (max-width: 767px) {
  .product-card-price { font-size: 15px !important; }
  .product-card-price del { font-size: 11px !important; }
  .product-card-title h3 { font-size: 13px; min-height: 34px; }
}

/* ==========================================================================
   v2.6.2 — Responsive fix: Header — mobile touch targets <44px
   Mobile header controls were 38×38px (menu-toggle, search-toggle,
   login/cart header-action) — below the 44×44 minimum tap target.
   Bump to 44px on mobile only; desktop already sets its own sizes.
   ========================================================================== */
@media (max-width: 767px) {
  .menu-toggle { width: 44px; height: 44px; }
  .header-action, .search-toggle { width: 44px; height: 44px; }
}

/* ==========================================================================
   v2.6.3 — Redesign: Shop by State — "Launching next" stacked rows → compact pill bar
   Collapses 4 full-width vertical rows (~224px) into a wrapped pill row (~80px).
   ========================================================================== */
.states-upcoming .up-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.states-upcoming .up-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  min-height: 36px;
  border-bottom: 1px solid var(--border-light); /* override old up-item rule */
}
.states-upcoming .up-pill .up-code {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 11px;
  flex: 0 0 auto;
}
.states-upcoming .up-pill .up-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}
.states-upcoming .up-pill .up-eta {
  background: rgba(245, 126, 28, 0.1);
  color: var(--orange-dark);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.states-upcoming .up-more {
  background: var(--teal-bg);
  border-color: var(--teal-bg);
}
.states-upcoming .up-more .up-code.more {
  background: #fff;
  border: 1px solid var(--teal-bg);
  font-size: 16px;
}
.states-upcoming .up-more .up-link {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.states-upcoming .up-head { margin-bottom: 12px; }

/* ===== Form input focus feedback (touch + click, not just keyboard) =====
   Borderless inputs had outline:none and only a :focus-visible ring on keyboard
   nav — tapping a field on mobile gave zero "this is active" feedback.
   box-shadow ring = no layout shift on border:0 inputs. */
.newsletter-form input:focus,
.tl-404-search input:focus {
  box-shadow: 0 0 0 2px var(--teal);
  position: relative;
  z-index: 1;
}
/* Newsletter sits on the teal gradient — saffron ring stands out + matches its button. */
.fn-form input:focus {
  box-shadow: 0 0 0 2px var(--orange);
  position: relative;
  z-index: 1;
}
/* Search inputs live in a visible pill wrapper — ring the wrapper, not the inner input. */
.header-search .search-form:focus-within,
.drawer-search form:focus-within {
  box-shadow: 0 0 0 2px var(--teal);
}

/* ==========================================================================
   v2.6.6 — Responsive fix: Announcement bar — fulfill documented
   "static on desktop" intent. The ann-track marquee animated at EVERY width;
   the four items (~1100px) fit comfortably in the 1280px full-bleed bar, so
   the 28s scroll is needless on desktop. It also broke prefers-reduced-motion
   users (animation:none froze the track at translateX(0)+padding-left:100%,
   i.e. an empty navy bar). Make it static & centered at >=1280px.
   ========================================================================== */
@media (min-width: 1280px) {
  .announcement-bar .ann-track {
    animation: none;
    padding-left: 0;
    justify-content: center;
    gap: 24px;
  }
}

/* ==========================================================================
   v2.6.8 — Add-to-cart loading + success state (audit fix)
   Tapping "+ ADD" fires a WooCommerce AJAX request but gave ZERO feedback
   until the cart count silently updated — on mobile this reads as a dead
   button, prompting double-taps. WC toggles .loading (in-flight) then .added
   (done) on the button; nothing styled them. Spinner uses ::before (the
   shine effect owns ::after), and the button is already position:relative
   /overflow:hidden so both layer cleanly.
   ========================================================================== */
@keyframes tl-btn-spin { to { transform: rotate(360deg); } }

.add_to_cart_button.loading,
ul.products li .button.loading {
  color: transparent !important;
  pointer-events: none;
}
.add_to_cart_button.loading::before,
ul.products li .button.loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tl-btn-spin 0.6s linear infinite;
}

/* Brief "Added" confirmation — green flash so the tap clearly registered */
.add_to_cart_button.added,
ul.products li .button.added {
  background: #16a34a !important;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.3) !important;
}

/* Keep spinner visible (static) for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .add_to_cart_button.loading::before,
  ul.products li .button.loading::before {
    border-top-color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
    border-top-color: #fff;
  }
}

/* ==========================================================================
   v2.6.5 — PRODUCT GALLERY (any-dimension safe, responsive)
   Mobile-first: 1:1 aspect container with object-fit: contain
   ========================================================================== */

/* MAIN GALLERY CONTAINER */
.tl-pdp-gallery .woocommerce-product-gallery {
  width: 100% !important;
  margin: 0 !important;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  position: relative;
}

/* MAIN IMAGE WRAPPER — fixed aspect ratio for every PDP */
.tl-pdp-gallery .woocommerce-product-gallery__wrapper,
.tl-pdp-gallery .flex-viewport,
.tl-pdp-gallery .woocommerce-product-gallery__image {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force aspect ratio on each image cell */
.tl-pdp-gallery .woocommerce-product-gallery__image {
  position: relative !important;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  overflow: hidden;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.tl-pdp-gallery .woocommerce-product-gallery__image a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* THE IMAGE ITSELF — any dimension fits */
.tl-pdp-gallery .woocommerce-product-gallery__image img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  margin: 0 auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

/* Subtle hover zoom on main image (desktop only) */
@media (min-width: 1024px) {
  .tl-pdp-gallery .woocommerce-product-gallery__image:hover img {
    transform: scale(1.04);
  }
}

/* Sale flash on gallery */
.tl-pdp-gallery .onsale {
  position: absolute !important;
  top: 12px !important;
  left: 12px !important;
  background: var(--orange) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 11px;
  padding: 5px 10px !important;
  border-radius: 6px;
  z-index: 10;
  letter-spacing: 0.5px;
}

/* THUMBNAILS — horizontal scrollable strip, uniform squares */
.tl-pdp-gallery .flex-control-thumbs {
  margin: 10px 0 0 !important;
  padding: 0 !important;
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
  list-style: none;
}
.tl-pdp-gallery .flex-control-thumbs::-webkit-scrollbar { height: 4px; }
.tl-pdp-gallery .flex-control-thumbs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.tl-pdp-gallery .flex-control-thumbs li {
  flex: 0 0 64px !important;
  width: 64px !important;
  aspect-ratio: 1 / 1;
  margin: 0 !important;
  padding: 0 !important;
  scroll-snap-align: start;
  list-style: none;
}

.tl-pdp-gallery .flex-control-thumbs img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  border-radius: 10px;
  border: 2px solid transparent !important;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  display: block !important;
  padding: 4px !important;
  box-sizing: border-box !important;
}
.tl-pdp-gallery .flex-control-thumbs img.flex-active {
  opacity: 1;
  border-color: var(--teal) !important;
}
.tl-pdp-gallery .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: var(--teal-light) !important;
  transform: translateY(-1px);
}

/* Zoom hint */
.tl-pdp-gallery .woocommerce-product-gallery__trigger {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 10;
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 0 !important;
  color: var(--navy) !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.tl-pdp-gallery .woocommerce-product-gallery__trigger::after {
  content: '⤢';
  font-size: 16px;
  color: var(--navy);
}
.tl-pdp-gallery .woocommerce-product-gallery__trigger:hover {
  background: var(--teal) !important;
}
.tl-pdp-gallery .woocommerce-product-gallery__trigger:hover::after {
  color: #fff;
}

/* Slider navigation arrows (FlexSlider) */
.tl-pdp-gallery .flex-direction-nav {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 5;
}
.tl-pdp-gallery .flex-direction-nav li {
  list-style: none;
  pointer-events: auto;
}
.tl-pdp-gallery .flex-direction-nav a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: var(--navy);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.tl-pdp-gallery .woocommerce-product-gallery:hover .flex-direction-nav a {
  opacity: 1;
}
.tl-pdp-gallery .flex-direction-nav .flex-prev::after { content: '‹'; font-size: 22px; }
.tl-pdp-gallery .flex-direction-nav .flex-next::after { content: '›'; font-size: 22px; }

/* PhotoSwipe / lightbox image — make sure it also fits */
.pswp__img {
  object-fit: contain !important;
  background: transparent !important;
}

/* RESPONSIVE — mobile-first overrides */
@media (max-width: 767px) {
  .tl-pdp-gallery .woocommerce-product-gallery {
    border-radius: 10px;
  }
  .tl-pdp-gallery .flex-control-thumbs li {
    flex: 0 0 56px !important;
    width: 56px !important;
  }
  /* Hide arrows on mobile — use swipe */
  .tl-pdp-gallery .flex-direction-nav { display: none; }
  /* Zoom button smaller on mobile */
  .tl-pdp-gallery .woocommerce-product-gallery__trigger {
    width: 32px !important;
    height: 32px !important;
  }
}

@media (min-width: 768px) {
  .tl-pdp-gallery .flex-control-thumbs li {
    flex: 0 0 72px !important;
    width: 72px !important;
  }
}

@media (min-width: 1024px) {
  .tl-pdp-gallery .woocommerce-product-gallery {
    border-radius: 16px;
  }
  .tl-pdp-gallery .flex-control-thumbs li {
    flex: 0 0 80px !important;
    width: 80px !important;
  }
}

/* If gallery has no images (placeholder) — graceful empty state */
.tl-pdp-gallery .woocommerce-product-gallery img.wp-post-image:not([src]),
.tl-pdp-gallery img[src=""],
.tl-pdp-gallery img[src="#"] {
  display: none;
}

/* v2.7.0 — Responsive fix: Hero (desktop ≥1024px) — even card heights.
   .hc-title is wp_trim_words(4) so it wraps to 1 or 2 lines unpredictably,
   leaving the three angled showcase cards staggered at uneven heights.
   Reserve a consistent 2-line title block so all cards match. */
@media (min-width: 1024px) {
  .hero-card .hc-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 37px; /* 2 × (14px × 1.3) line-height */
  }
}

/* v2.7.2 — Back-to-top button.
   14-section homepage had no fast way back to the nav from the footer on mobile.
   Bottom-LEFT to mirror (and never collide with) the bottom-right WhatsApp float;
   raised above the fixed mobile bottom-nav. Navy → teal on hover, SVG chevron, no emoji. */
.tl-totop {
  position: fixed;
  left: 16px;
  bottom: calc(80px + env(safe-area-inset-bottom));
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(13, 33, 73, 0.28);
  cursor: pointer;
  z-index: 997;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .15s ease;
}
.tl-totop.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.tl-totop:hover { background: var(--teal); }
.tl-totop:active { transform: scale(.94); }
.tl-totop:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.tl-totop svg { display: block; }

/* Desktop: no bottom-nav — sit at a normal corner offset */
@media (min-width: 1024px) {
  .tl-totop { bottom: 24px; left: 24px; width: 48px; height: 48px; }
}

/* v2.7.5 — Replace ⭐/📍 emojis on product cards with brand SVG icons (saffron star, teal pin).
   Emojis render inconsistently across Android/iOS and broke the "no emoji, SVG only" brand rule.
   These icons appear on EVERY product card sitewide (home + shop), so align them cleanly inline. */
.product-card-rating .stars,
.product-card-origin {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.product-card-rating .tl-ic-star,
.product-card-origin .tl-ic-pin {
  flex: 0 0 auto;
  position: relative;
  top: -0.5px;
}

/* v2.7.7 — Redesign: Footer — trust strip stacked 3-row column -> single-row 3-up compact bar (mobile).
   Footer scored 11/20 (worst non-recent section). On <640px the trust badges stacked vertically
   (~148px) and the "Shop by State" accordion was force-opened (redundant with the on-page Shop-by-State
   section, ~280px). Paired with removing the `open` attr in footer.php, this tightens the footer head
   substantially while keeping all three trust signals visible. Scoped <640px so the 640/768/1024
   tablet+desktop layouts (already horizontal) are untouched. */
@media (max-width: 639.98px) {
  .footer-payments .trust-badges {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
  }
  .footer-payments .tb-item {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
  }
  .footer-payments .tb-item > svg {
    width: 22px; height: 22px; padding: 7px;
  }
  .footer-payments .tb-item div { align-items: center; }
  .footer-payments .tb-item strong { font-size: 11px; line-height: 1.2; }
  .footer-payments .tb-item span { font-size: 9px; line-height: 1.25; }
}

/* v2.7.8 — Shop/archive pagination polish.
   Default WooCommerce pagination ("1 2 →") shipped completely unstyled: ~tiny inline
   text links, no touch targets, off-brand. On 375px the page numbers were near-impossible
   to tap accurately. Restyle as centered, brand-coloured pill buttons with ≥44px tap
   targets (Apple HIG min), teal-filled current page, navy outline links, teal hover. */
.woocommerce-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 28px 0 8px;
  padding: 0;
  border: 0;
  list-style: none;
}
.woocommerce-pagination ul.page-numbers li {
  margin: 0;
  border: 0;
}
.woocommerce-pagination ul.page-numbers li .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid rgba(13, 33, 73, 0.14);
  box-shadow: 0 1px 2px rgba(13, 33, 73, 0.05);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.woocommerce-pagination ul.page-numbers li a.page-numbers:hover {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}
.woocommerce-pagination ul.page-numbers li a.page-numbers:active {
  transform: scale(.94);
}
.woocommerce-pagination ul.page-numbers li a.page-numbers:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.woocommerce-pagination ul.page-numbers li span.current {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
  box-shadow: 0 2px 6px rgba(13, 33, 73, 0.22);
}
/* prev/next arrows read as directional controls, not page numbers */
.woocommerce-pagination ul.page-numbers li .prev.page-numbers,
.woocommerce-pagination ul.page-numbers li .next.page-numbers {
  font-size: 18px;
  color: var(--teal);
}
.woocommerce-pagination ul.page-numbers li .prev.page-numbers:hover,
.woocommerce-pagination ul.page-numbers li .next.page-numbers:hover {
  color: #fff;
}
@media (min-width: 768px) {
  .woocommerce-pagination ul.page-numbers { gap: 10px; margin-top: 36px; }
}

/* v2.7.9 — Responsive fix: Shop by State — "More states soon" tap target <44px.
   The only interactive item in the "Launching next" strip is the .up-more link; it sat
   in a 36px-min-height pill and its actual hit area (inline text) was ~18px tall — under
   the 44px target. Raise every upcoming pill to a uniform 44px min-height (keeps the
   wrapped row even, all info pills match) and make the up-more anchor a full-height 44px
   tap target. Compact pill look preserved; focus ring untouched. */
.states-upcoming .up-pill {
  min-height: 44px;
}
.states-upcoming .up-more .up-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}

/* v2.8.0 — Redesign: Bihar Bestsellers Rail — mobile 2×2 product grid (~500px) → single-row horizontal peek-scroller (~250px); ~250px mobile win. Scoped to .product-section:not(.bg-light) so Festival rail is untouched. Tablet/desktop grid unchanged. */
@media (max-width: 767px) {
  .product-section:not(.bg-light) ul.products {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 12px !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -16px !important;
    padding: 4px 16px 10px !important;
  }
  .product-section:not(.bg-light) ul.products::-webkit-scrollbar { display: none; }
  .product-section:not(.bg-light) ul.products li.product,
  .product-section:not(.bg-light) ul.products li.product-card {
    flex: 0 0 62% !important;
    max-width: 62% !important;
    min-width: 180px !important;
    margin: 0 !important;
    scroll-snap-align: start;
  }
}

/* v2.8.1 — Polish: product-card title clamp to 2 lines.
   .product-card-title h3 had a min-height floor (38px desktop / 34px mobile = 2 lines)
   but NO ceiling, so long titles ("Katarni Chura — Aromatic Flattened Rice…") wrapped to
   3 lines, overflowed the reserved block and shoved rating/price/+ADD downward. In the
   new horizontal peek-scrollers (Bihar Bestsellers etc.) those ragged button baselines
   sit side-by-side and read as broken. Cap at exactly 2 lines so every card aligns and
   the teal +ADD CTAs land on a uniform row. min-height already matches 2 lines, so the
   block height is now fixed, not just floored. */
.product-card-title h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* v2.8.2 — Responsive fix: Bihar banner (.banner-feature) dead column on desktop.
   Base .banner-card (main.css) declares grid-template-columns: 1fr 200px, reserving a
   200px right column for .banner-visual/.banner-emoji. But that visual is hidden globally
   (header-footer.css: .banner-visual { display:none }) and no longer exists in the markup,
   so on desktop (>=1025px) the navy card carried ~200px + 24px gap of empty space on the
   right, squeezing the text/CTA to the left = unbalanced layout. The <=1024px query already
   collapses to a single column; mirror that at >=1025px so the card is symmetric everywhere.
   .banner-desc keeps its max-width:540px, so text stays readable, not stretched. */
@media (min-width: 1025px) {
  .banner-card { grid-template-columns: 1fr; }
}

/* v2.8.3 — Redesign: How It Works — mobile stacked icon-above-text card -> compact 2-col grid (44px icon left spanning both rows, h3+copy right). ~70px saved per card. */
@media (max-width: 639px) {
  .how-section { padding: 36px 0 !important; }
  .how-grid { gap: 10px !important; margin-bottom: 18px !important; }
  .how-card {
    display: grid !important;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px !important;
  }
  .how-icon {
    margin-bottom: 0 !important;
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .how-icon svg { width: 24px; height: 24px; }
  .how-card h3 { grid-column: 2; grid-row: 1; margin: 0 0 3px !important; padding-right: 28px; }
  .how-card p  { grid-column: 2; grid-row: 2; line-height: 1.45 !important; }
  .how-num { font-size: 20px !important; top: 10px !important; right: 14px !important; }
}

/* v2.8.4 — Replace remaining text-glyph stars (★) in hero trust-rating + stats strip with
   the brand SVG star already used on product cards (v2.7.5) and testimonials. These were the
   only text-glyph stars left on the homepage — above the fold at 375px — and the stats "4.7★"
   inherited the navy strong colour, rendering an off-brand navy star. Honours the "SVG only"
   brand rule and makes star treatment consistent sitewide. */
.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  vertical-align: middle;
}
.rating-stars svg { flex: 0 0 auto; }
.stat-star {
  width: 0.72em;
  height: 0.72em;
  fill: var(--orange);
  margin-left: 2px;
  vertical-align: baseline;
  position: relative;
  top: 0.04em;
}
/* Announcement-bar rating: white-on-navy, so a saffron star pops + matches brand. */
.ann-rating { display: inline-flex; align-items: center; gap: 1px; }
.ann-star { width: 0.95em; height: 0.95em; fill: var(--orange); flex: 0 0 auto; }
