
/* =========================================================
   Palmora Foods - Storefront Styles
   ========================================================= */

/* Top Trust Ribbon — thin brand strip above the main nav row,
   mirrors "Premium Quality • Best Prices • Pan India Delivery" */
.trust-ribbon {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.trust-ribbon-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  padding: 6px var(--sp-4);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.trust-ribbon-track::-webkit-scrollbar { display: none; }

.trust-ribbon-track span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.trust-ribbon-track svg { color: var(--gold); flex-shrink: 0; }

/* Site Header */
.site-header {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 60;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px;
  max-width: var(--container-max);
  margin: 0 auto;
  height: var(--header-height);
}

.nav-drawer-trigger {
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .nav-drawer-trigger { display: none; }
}
/* Desktop persistent nav row + "Shop" hover mega-menu */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: var(--sp-5);
    flex: 1;
    margin-left: var(--sp-6);
  }
}

.desktop-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 6px 2px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.desktop-nav-link:hover,
.desktop-nav-link.active { color: var(--primary); }

.desktop-nav-item { position: relative; }

.desktop-nav-megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3);
  display: grid;
  grid-template-columns: repeat(4, 84px);
  gap: var(--sp-2);
  z-index: 70;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.desktop-nav-item--has-menu:hover .desktop-nav-megamenu,
.desktop-nav-item--has-menu:focus-within .desktop-nav-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.desktop-nav-megamenu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  padding: var(--sp-2) 4px;
  border-radius: var(--r-sm);
  transition: background var(--transition-fast);
}

.desktop-nav-megamenu-item:hover { background: var(--bg); color: var(--primary); }

.desktop-nav-megamenu-thumb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.desktop-nav-megamenu-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile drawer — auth row + category image grid */
.nav-drawer-auth-row {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.nav-drawer-auth-btn {
  flex: 1;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 9px 0;
  border-radius: var(--r-pill);
  text-decoration: none;
}

.nav-drawer-auth-btn--outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

.nav-drawer-auth-btn--primary {
  background: var(--primary);
  color: #fff;
}

.nav-drawer-section {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.nav-drawer-section-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}

.nav-drawer-category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}

.nav-drawer-category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  font-size: 0.6rem;
  font-weight: 600;
}

.nav-drawer-category-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nav-drawer-category-thumb img { width: 100%; height: 100%; object-fit: cover; }
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.logo-link img {
  width: 185px;
  height: 55px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}

.site-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-lg);
  white-space: nowrap;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: auto;
}

.header-search-trigger {
  display: flex;
}

@media (min-width: 1024px) {
  .header-search-trigger { display: none; }
}

/* Expandable search — collapsed by default on all breakpoints;
   slides open as a full-width row under the header on mobile,
   as a floating dropdown panel on desktop. */
.header-search-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  border-top: 1px solid transparent;
}

.header-search-panel.is-open {
  max-height: 72px;
  border-top-color: var(--border);
}

.header-search-form {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  max-width: var(--container-max);
  margin: 0 auto;
  color: var(--text-muted);
}

.header-search-form input {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  padding: 9px 14px;
  font-size: var(--fs-sm);
  background: var(--bg);
  color: var(--text);
  outline: none;
}

.header-search-form input:focus {
  border-color: var(--primary);
  background: var(--surface);
}

/* Persistent desktop search bar — replaces the icon trigger at
   1024px+, always visible inline in the header */
.header-search-inline {
  display: none;
}

@media (min-width: 1024px) {
  .header-inner { gap: var(--sp-6); }
  .header-search-inline {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex: 1;
    max-width: 420px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-pill);
    padding: 8px 16px;
    color: var(--text-muted);
    background: var(--bg);
  }
  .header-search-inline input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: var(--fs-sm);
    color: var(--text);
  }
}

/* Mobile Nav Drawer */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 11, 0.45);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base);
}

.nav-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  border-radius:10px;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: var(--surface);
  z-index: 96;
  transform: translateX(-100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-header {
  justify-content: space-between;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.nav-drawer-header span {
  flex: 1;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: var(--fs-md);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  padding: var(--sp-2) 0;
  overflow-y: auto;
}

.nav-drawer-links a {
  padding: 13px var(--sp-4);
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.nav-drawer-links a.active {
  color: var(--primary);
  background: var(--bg);
  border-left-color: var(--primary);
}

.nav-drawer-footer {
  padding: var(--sp-4);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

@media (min-width: 1024px) {
  .nav-drawer,
  .nav-drawer-overlay { display: none !important; }
}

/* User Dropdown */
.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  padding: var(--sp-2) 0;
  display: none;
  z-index: 70;
}

.user-menu:hover .user-dropdown,
.user-menu-trigger:focus + .user-dropdown {
  display: block;
}

.user-dropdown-header {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-2);
}

.user-name {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.user-type-badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.625rem;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  margin-top: 2px;
}

.user-dropdown a {
  display: block;
  padding: 10px var(--sp-4);
  color: var(--text);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: background var(--transition-fast);
}

.user-dropdown a:hover {
  background: var(--bg);
}

.user-dropdown .logout-link {
  color: var(--danger);
  border-top: 1px solid var(--border);
  margin-top: var(--sp-2);
  padding-top: 12px;
}

/* Hero Section — full-bleed banner with the four trust pillars
   (Premium Grade / Hygienic / Pan India / Secure) beneath it,
   matching the reference storefront mock. */
.hero {
        background: url(../images/landing.png) center / cover no-repeat;
  color: #7A2E1D;
  padding: var(--sp-8) var(--sp-4) var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius:20px;
  margin : 10px; 
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(201, 152, 46, 0.18), transparent 45%),
              radial-gradient(circle at 85% 85%, rgba(201, 152, 46, 0.12), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: var(--sp-4);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: var(--fs-md);
  opacity: 0.92;
  margin-bottom: var(--sp-6);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* Trust pillar row directly under the hero banner */
.hero-trust-row {
  display:none !important;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  max-width: 640px;
  margin: var(--sp-6) auto 0;
}

@media (min-width: 640px) {
  .hero-trust-row { grid-template-columns: repeat(4, 1fr); }
}

.hero-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: var(--sp-3) var(--sp-2);
    background: #10382000;
    border: 1px solid rgb(113 113 113 / 69%) !important;
    border-radius: var(--r-md);
    backdrop-filter: blur(6px);
    /* border: 16px black !important; */
}

.hero-trust-item svg { color: var(--gold-light); }

.hero-trust-item span {
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  color: #103820;
}

/* GST Banner — "Are you a GST registered trader?" wholesale CTA */
.gst-banner {
  background: linear-gradient(135deg, #FFF8E1, #FCF0DA);
  border: 1px solid rgba(201, 152, 46, 0.25);
  padding: var(--sp-4);
  margin: var(--sp-4);
  border-radius: var(--r-lg);
}

.gst-banner-content {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.gst-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(201, 152, 46, 0.16);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gst-banner-text {
  flex: 1;
  min-width: 200px;
}

.gst-banner-text h3 {
  font-size: 0.8125rem;
  margin-bottom: 2px;
}

.gst-banner-text p {
  font-size: 0.7125rem;
  color: var(--text-secondary);
  margin: 0;
}

.gst-banner .btn {
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: var(--sp-6) var(--sp-4);
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.section-eyebrow {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 2px;
}

.section-header h2 {
  font-size: var(--fs-lg);
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.view-all:hover { color: var(--primary-dark); }

/* Category section — centered title with leaf ornaments, and a
   horizontally-scrolling row of tiles (swipe on mobile, drag on
   desktop) instead of a fixed grid, matching the reference mock. */
.category-section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  text-align: center;
}

.category-section-title .section-eyebrow { text-align: center; }
.category-section-title h2 { margin: 0; }

.category-leaf { flex-shrink: 0; opacity: 0.85; }
.category-leaf--right { transform: scaleX(-1); }

.category-scroller {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: var(--sp-1) var(--sp-1) var(--sp-3);
  margin: 0 calc(var(--sp-1) * -1);
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
}

.category-scroller::-webkit-scrollbar { display: none; }
.category-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.category-icon-tile {
  flex: 0 0 auto;
  width: 108px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-2);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: all var(--transition-fast);
}

.category-icon-tile:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.category-icon-tile.active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.category-icon-tile.active .category-icon-circle {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.category-icon-tile.active span { color: #fff; }

.category-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  overflow: hidden;
  flex-shrink: 0;
  pointer-events: none;
}

.category-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.category-icon-tile span {
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Categories Grid (secondary/alternate presentation used on
   e.g. the products.php filter page or category landing) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--sp-3);
}

.category-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.category-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.category-card-info {
  padding: var(--sp-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.category-card-info h3 {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.category-arrow {
  color: var(--primary);
  font-weight: 700;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: var(--sp-3);
}

@media (min-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  }
}

/* Product Row — horizontal-scrolling per-category shelf used on
   the homepage ("1. Whole Supari (6 Products)  View All →") */
.product-row-scroller {
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin: 0 calc(var(--sp-4) * -1);
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}

.product-row-scroller::-webkit-scrollbar { display: none; }
/* Without this, scroll-snap keeps fighting the JS-driven scrollLeft
   writes mid-drag, which is what made this shelf feel "stuck"/janky
   compared to the category row above it. */
.product-row-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* Product card images are natively draggable by the browser. Letting
   that native drag start is what hijacked mouse capture and left the
   scrollers' drag-state stuck (see storefront.js initDragScroll). */
.product-card img,
.category-icon-circle img,
.footer-category-thumb img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

.product-row-scroller .product-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
}

/* For product detail page "You May Also Like" section */
._pd .product-row-scroller .product-card {
  flex: 0 0 180px;
  max-width: 180px;
}

@media (min-width: 480px) {
  ._pd .product-row-scroller .product-card {
    flex: 0 0 250px;
    max-width: 250px;
  }
}

@media (min-width: 480px) {
  .product-row-scroller .product-card { flex-basis: 230px; }

}

@media (min-width: 1024px) {
  .product-row-scroller {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap;
    overflow: visible;
  }
  .product-row-scroller .product-card {
    flex: 1 1 210px;
    max-width: 240px;
  }
}

.product-row-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: var(--sp-3);
}

.product-row-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-dark);
}

.product-row-dots span.active {
  background: var(--primary);
  width: 16px;
  border-radius: var(--r-pill);
  transition: width var(--transition-fast);
}

@media (min-width: 1024px) {
  .product-row-dots { display: none; }
}

/* ============ Trust / "The Palmora Trail" Section ============
   Frosted badges floating directly on the forest-path photograph,
   linked by a dashed line on desktop that echoes the path in the
   image itself — one farm-to-door story instead of 4 flat facts. */
.trail-section {
  position: relative;
  overflow: hidden;
  padding: var(--sp-8) 0 var(--sp-6);
  margin: var(--sp-4);
  border-radius: var(--r-xl);
  background: var(--primary-dark) url(../images/background.jpg) center 30% / cover no-repeat;
}

.trail-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 56, 32, 0.85) 0%,
    rgba(16, 56, 32, 0.3) 32%,
    rgba(16, 56, 32, 0.3) 62%,
    rgba(16, 56, 32, 0.9) 100%
  );
}

.trail-inner {
  position: relative;
  z-index: 1;
  padding: 0 var(--sp-4);
}

.trail-heading {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.trail-heading h2 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: var(--fs-lg);
  font-weight: 700;
}

.trail-heading-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold-light);
  margin: var(--sp-2) auto 0;
  opacity: 0.85;
}

.trail-row {
  position: relative;
  display: flex;
  gap: var(--sp-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: var(--sp-2) var(--sp-4);
  margin: 0 calc(var(--sp-4) * -1);
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.trail-row::-webkit-scrollbar { display: none; }
.trail-row.is-dragging { cursor: grabbing; scroll-snap-type: none; }

/* Dashed "trail" connecting the stops — desktop only, where there's
   room for it to read as a path rather than clutter. */
.trail-row::after {
  content: '';
  position: absolute;
  left: var(--sp-6);
  right: var(--sp-6);
  top: 50px;
  border-top: 2px dashed rgba(255, 255, 255, 0.25);
  z-index: -1;
  display: none;
}

@media (min-width: 900px) {
  .trail-row {
    overflow: visible;
    margin: 0;
    padding: 0 var(--sp-4);
    justify-content: space-between;
  }
  .trail-row::after { display: block; }
}

.trail-stop {
  flex: 0 0 154px;
  scroll-snap-align: start;
  text-align: center;
  position: relative;
      background: rgb(255 255 255 / 0%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
}

@media (min-width: 900px) {
  .trail-stop { flex: 1 1 0; max-width: 220px; }
}

.trail-stop-num {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--gold-light);
  opacity: 0.7;
}

.trail-stop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto var(--sp-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--gold-light);
}

.trail-stop h4 {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 3px;
}

.trail-stop p {
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-xs);
  line-height: 1.35;
  margin: 0;
}

/* ============ Harvest CTA — asymmetric photographic banner ============
   Editorial split layout: text anchored to one side over a dark
   gradient, photograph left visible on the other — not a centered
   box on a flat color, which is what made the last version generic. */
.harvest-cta {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--r-xl);
  margin: 0 var(--sp-4) var(--sp-4);
  background: var(--primary-dark) url(../images/background2.png) center 35% / cover no-repeat;
}

.harvest-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(16, 56, 32, 0.92) 0%,
    rgba(16, 56, 32, 0.55) 45%,
    rgba(16, 56, 32, 0.05) 78%
  );
}

.harvest-cta-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--sp-6) var(--sp-5) var(--sp-6);
  text-align: left;
}

.harvest-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: var(--sp-3);
}

.harvest-cta-content h2 {
  font-family: var(--font-serif);
  color: #fff;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.2;
  max-width: 420px;
  margin-bottom: var(--sp-2);
}

.harvest-cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  line-height: 1.5;
  max-width: 380px;
  margin-bottom: var(--sp-5);
}

.harvest-cta-content .cta-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .harvest-cta { min-height: 400px; }
  .harvest-cta-overlay {
    background: linear-gradient(
      90deg,
      rgba(16, 56, 32, 0.92) 0%,
      rgba(16, 56, 32, 0.55) 48%,
      rgba(16, 56, 32, 0.05) 78%
    );
  }
  .harvest-cta-content { padding: var(--sp-10) var(--sp-8); }
}


/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.testimonial-card {
  background: var(--surface);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  margin-bottom: var(--sp-3);
  display: flex;
  gap: 2px;
}

.testimonial-text {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
}

.testimonial-author strong {
  font-size: var(--fs-sm);
}

.testimonial-author span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Footer — modern floating rounded card, matches sidecart's minimal-padding feel */
.site-footer {
  background: var(--surface-dark);
  color: #fff;
  padding: var(--sp-8) var(--sp-4) var(--sp-4);
  margin: 10px;
  border-radius: var(--r-xl);
  overflow: hidden;
}

@media (min-width: 640px) {
  .site-footer { margin: var(--sp-6); padding: var(--sp-10) var(--sp-6) var(--sp-4); }
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  max-width: var(--container-max);
  margin: 0 auto var(--sp-6);
}

/* Shop-by-category row — small circular thumbs, image-first */
.footer-categories {
  max-width: var(--container-max);
  margin: 0 auto var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-categories-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-3);
  display: block;
}

.footer-category-row {
  display: flex !important;
  gap: var(--sp-3);
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  cursor: grab !important;
  user-select: none;
  flex-wrap: nowrap !important;
}

.footer-category-row.is-dragging { 
  cursor: grabbing !important; 
}

.footer-category-row::-webkit-scrollbar { 
  display: none; 
}

.footer-category-tile {
  flex: 0 0 auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  width: 62px;
  text-align: center;
}

.footer-category-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: rgba(255,255,255,0.7);
  transition: border-color var(--transition-fast);
}

.footer-category-tile:hover .footer-category-thumb { 
  border-color: var(--gold); 
}

.footer-category-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.footer-category-tile span {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Override ANY desktop media query that tries to change footer row to wrap */
@media (min-width: 640px) {
  .footer-inner { 
    grid-template-columns: 1.3fr 1fr 1fr; 
    gap: var(--sp-6); 
  }
}

/* Ensure footer category row NEVER wraps — stays horizontal on ALL screen sizes */
@media (min-width: 768px) {
  .footer-category-row,
  .footer-category-row[data-scroller] {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    cursor: grab !important;
    display: flex !important;
  }
  
  .footer-category-row.is-dragging,
  .footer-category-row[data-scroller].is-dragging {
    cursor: grabbing !important;
  }
  
  .footer-category-tile {
    flex: 0 0 auto !important;
    max-width: none !important;
    width: 62px !important;
  }
}

/* Extra large screens — still keep it scrollable */
@media (min-width: 1024px) {
  .footer-category-row,
  .footer-category-row[data-scroller] {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    cursor: grab !important;
  }
  
  .footer-category-tile {
    flex: 0 0 auto !important;
    max-width: none !important;
  }
}

/* Ultra wide — still horizontal */
@media (min-width: 1440px) {
  .footer-category-row,
  .footer-category-row[data-scroller] {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    display: flex !important;
  }
  
  .footer-category-tile {
    flex: 0 0 auto !important;
    max-width: none !important;
  }
}

.footer-inner h3,
.footer-inner h4 {
  color: #fff;
}

.footer-inner h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--sp-4);
  opacity: 0.85;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: var(--sp-2);
}

.footer-logo-link h3 {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
}

.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: var(--fs-sm);
  line-height: 1.6;
  max-width: 320px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}

.footer-badges svg { color: var(--gold); }

.footer-social {
  margin-top: var(--sp-4);
  display: flex;
  gap: var(--sp-2);
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}

.social-link:hover {
  color: #fff;
  background: var(--primary);
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 7px 0;
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-payment-icons {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.footer-payment-icons span {
  padding: 4px 10px;
  border-radius: var(--r-xs);
  background: rgba(255,255,255,0.08);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.7);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 7px 0;
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.4);
  font-size: var(--fs-xs);
}

/* Product Detail */
.product-detail {
  padding: var(--sp-4);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}

@media (min-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.product-images .main-image {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}

.product-images .main-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

.thumbnail-list {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
}

.thumbnail {
  width: 60px;
  height: 60px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.thumbnail.active {
  border-color: var(--primary);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-category {
  display: inline-block;
  background: var(--bg-dark);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.product-name {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-4);
}

.product-price-section {
  margin-bottom: var(--sp-4);
}

.main-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.price-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.price-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.wholesale-prompt {
  background: var(--bg);
  padding: var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: var(--sp-2);
}

/* Variations */
.variations-section {
  margin-bottom: var(--sp-4);
}

.variations-section h3 {
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-2);
}

.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.variation-option {
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.variation-option:hover {
  border-color: var(--primary);
}

.variation-option.selected {
  border-color: var(--primary);
  background: rgba(122, 46, 29, 0.05);
}

.variation-option.out-of-stock {
  opacity: 0.5;
  cursor: not-allowed;
}

.var-label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-sm);
}

.var-price {
  display: block;
  font-size: var(--fs-xs);
  color: var(--primary);
  font-weight: 600;
}

.var-stock-badge {
  font-size: 0.625rem;
  color: var(--danger);
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--text);
  transition: background var(--transition-fast);
}

.qty-btn:hover {
  background: var(--bg);
}

.qty-input {
  width: 44px;
  text-align: center;
  border: none;
  font-size: var(--fs-md);
  font-weight: 700;
  -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-cart-main {
  flex: 1;
}

/* Product Meta */
.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.in-stock { color: var(--success); }
.out-stock { color: var(--danger); }

/* Product Description */
.product-description-section {
  margin-bottom: var(--sp-6);
}

.product-description-section h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
}

.product-description-content {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: var(--sp-4);
  font-size: var(--fs-xs);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  padding: 0;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .separator {
  color: var(--text-muted);
  margin: 0 var(--sp-1);
}

/* Category Pills */
.category-pills {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  padding: var(--sp-3) 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.pill {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-secondary);
  background: var(--bg-dark);
  transition: all var(--transition-fast);
}

.pill.active,
.pill:hover {
  background: var(--primary);
  color: #fff;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-family: inherit;
  background: var(--surface);
}

.sort-select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-family: inherit;
  background: var(--surface);
}

/* Pagination */
.pagination {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  margin-top: var(--sp-6);
}

.page-link {
  padding: 8px 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text);
  font-size: var(--fs-sm);
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.page-link:hover {
  background: var(--bg);
}

.page-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Checkout */
.checkout-page {
  padding: var(--sp-4);
  max-width: 1000px;
  margin: 0 auto;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}

@media (min-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr 380px;
  }
}

.checkout-section {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-sm);
}

.checkout-section h2 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-4);
}

.order-summary {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + var(--sp-4));
}

.order-items {
  margin-bottom: var(--sp-4);
}

.order-item {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.order-item img {
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-size: var(--fs-sm);
  font-weight: 600;
  display: block;
}

.order-item-variant {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.order-item-qty {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.order-item-price {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--primary);
  white-space: nowrap;
}

.order-totals {
  border-top: 2px solid var(--border);
  padding-top: var(--sp-3);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: var(--fs-sm);
}

.totals-row.total {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-top: var(--sp-2);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--border);
}

/* Payment Options */
.payment-section {
  margin-top: var(--sp-4);
}

.payment-section h2 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-3);
}

.payment-option {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.payment-option:has(input:checked) {
  border-color: var(--primary);
  background: rgba(122, 46, 29, 0.05);
}

.payment-option input {
  margin-right: var(--sp-3);
}

.payment-label {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.payment-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  display: block;
}

/* Coupon Input */
.coupon-input-group {
  display: flex;
  gap: var(--sp-2);
}

.coupon-input-group input {
  flex: 1;
}

.coupon-message {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
}

.coupon-applied {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
  background: #E8F5E9;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  color: var(--success);
}

/* Order Success */
.order-success-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--sp-4);
}

.success-container {
  text-align: center;
  max-width: 500px;
}

.success-icon {
  margin-bottom: var(--sp-4);
  animation: successPopIn 0.5s ease;
}

@keyframes successPopIn {
  0% { transform: scale(0); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.order-details-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin: var(--sp-6) 0;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}

.order-detail-row:last-child {
  border-bottom: none;
}

.success-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-4);
}

.success-help {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Auth Pages */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: var(--sp-4);
}

.auth-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}

.auth-card h1 {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.auth-form {
  margin-bottom: var(--sp-4);
}

.auth-footer {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* Account Pages */
.account-page {
  padding: var(--sp-4);
  max-width: 800px;
  margin: 0 auto;
}

.account-header {
  margin-bottom: var(--sp-6);
}

.account-header h1 {
  margin-bottom: var(--sp-2);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.account-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.account-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition-fast);
  text-align: center;
}

.account-nav-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

.account-section {
  margin-bottom: var(--sp-6);
}

/* Orders List */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.order-card {
  display: block;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition-fast);
}

.order-card:hover {
  box-shadow: var(--shadow-md);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
}

.order-number {
  font-weight: 700;
  font-size: var(--fs-sm);
}

.order-card-body {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.order-total {
  font-weight: 700;
  color: var(--primary);
}

.order-card-footer {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--sp-2);
}

/* Tracking Timeline */
.track-order-page {
  padding: var(--sp-4);
  max-width: 600px;
  margin: 0 auto;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--sp-4);
}

.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  position: relative;
  padding-bottom: var(--sp-6);
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.step-line {
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step-line.completed {
  background: var(--success);
}

.step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  z-index: 1;
}

.timeline-step.completed .step-icon {
  background: var(--success);
  border-color: var(--success);
}

.timeline-step.current .step-icon {
  border-color: var(--primary);
  border-width: 3px;
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-label {
  font-size: var(--fs-sm);
  font-weight: 600;
}

.timeline-step:not(.completed):not(.current) .step-label {
  color: var(--text-muted);
}

/* Track Form */
.track-form {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  max-width: 400px;
  margin: 0 auto;
}

.track-search-form {
  margin-top: var(--sp-4);
}

/* Wholesale Page */
.wholesale-page {
  padding: var(--sp-4);
  max-width: 700px;
  margin: 0 auto;
}

.wholesale-hero {
  text-align: center;
  margin-bottom: var(--sp-6);
}

.wholesale-hero h1 {
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-2);
}

.wholesale-form-container {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.form-section {
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section h2 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-4);
}

/* About Page */
.about-page {
  max-width: 900px;
  margin: 0 auto;
}

.about-hero {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
}

.about-hero h1 {
  color: #fff;
  font-size: var(--fs-2xl);
}

.about-content {
  padding: var(--sp-6) var(--sp-4);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  align-items: center;
  margin-bottom: var(--sp-8);
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text h2 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
}

.about-text p {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-image img {
  width: 100%;
  border-radius: var(--r-lg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}

.value-card {
  text-align: center;
  padding: var(--sp-5);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.value-icon {
  font-size: 40px;
  margin-bottom: var(--sp-3);
}

.value-card h3 {
  font-size: var(--fs-md);
  margin-bottom: var(--sp-2);
}

.value-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.products-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-4) 0;
}

.showcase-item {
  background: var(--bg);
  padding: var(--sp-4);
  border-radius: var(--r-md);
}

.showcase-item h3 {
  margin-bottom: var(--sp-2);
}

.showcase-item p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.about-cta {
  text-align: center;
  padding: var(--sp-8) 0;
}

.about-cta h2 {
  margin-bottom: var(--sp-2);
}

.cta-buttons {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  margin-top: var(--sp-4);
}

/* Contact Page */
.contact-page {
  padding: var(--sp-4);
}

.contact-hero {
  text-align: center;
  padding: var(--sp-6) 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 300px 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.contact-info-card {
  background: var(--surface);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  color: var(--primary);
  margin-bottom: var(--sp-2);
}

.contact-info-card h3 {
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-1);
}

.contact-info-card a {
  font-size: var(--fs-sm);
  color: var(--primary);
}

.contact-form-container {
  background: var(--surface);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  margin-top: var(--sp-4);
}

/* Thank You Page */
.thank-you-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: var(--sp-4);
}

.thank-you-container {
  text-align: center;
  max-width: 500px;
}

.thank-you-icon {
  margin-bottom: var(--sp-4);
}

.thank-you-info {
  text-align: left;
  background: var(--surface);
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  margin: var(--sp-6) 0;
  box-shadow: var(--shadow-sm);
}

.info-item {
  margin-bottom: var(--sp-4);
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item strong {
  display: block;
  margin-bottom: var(--sp-1);
}

.info-item p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.thank-you-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  margin-bottom: var(--sp-4);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: var(--sp-4);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}

.modal-sm {
  max-width: 400px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: var(--fs-md);
  margin: 0;
}

.modal-body {
  padding: var(--sp-5);
}

/* Image Upload */
.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.image-upload-area:hover {
  border-color: var(--primary);
}

.image-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  color: var(--text-muted);
}

.image-upload-label svg {
  color: var(--text-muted);
}

.image-upload-input {
  display: none;
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.image-preview-item {
  position: relative;
}

.preview-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.625rem;
  padding: 2px 6px;
  border-radius: var(--r-pill);
}

/* Checkbox Label */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  font-size: var(--fs-sm);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* Field Error */
.field-error {
  color: var(--danger);
  font-size: var(--fs-xs);
  display: block;
  margin-top: 2px;
}

/* Print Styles */
@media print {
  .tabbar,
  .site-header,
  .sidecart,
  .whatsapp-widget,
  .sticky-cta,
  .btn {
    display: none !important;
  }
  
  .app-shell {
    max-width: 100%;
    padding: 0;
  }
  
  body {
    background: #fff;
  }
}
@media(max-width: 480px) {
   .logo-link img {
  width: 120px !important;
  height: 30px !important;

}
}
/* Footer Legal Links */
.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: var(--container-max);
    margin: 0 auto;
}

.footer-legal a {
    color: rgba(255,255,255,0.5);
    font-size: 0.68rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.footer-legal a:hover {
    color: rgba(255,255,255,0.85);
}

.footer-legal-sep {
    color: rgba(255,255,255,0.25);
    font-size: 0.65rem;
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-4);
}

.legal-page-header {
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid var(--border);
}

.legal-page-header h1 {
    font-size: var(--fs-xl);
    color: var(--text);
    margin-bottom: var(--sp-2);
}

.legal-page-header .legal-updated {
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

.legal-section {
    margin-bottom: var(--sp-5);
}

.legal-section h2 {
    font-size: var(--fs-md);
    color: var(--primary);
    margin-bottom: var(--sp-2);
    font-weight: 700;
}

.legal-section p {
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--sp-2);
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-2);
}

.legal-section ul li {
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--text-secondary);
    padding-left: var(--sp-4);
    position: relative;
    margin-bottom: var(--sp-1);
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

.legal-section ol {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--sp-2);
    counter-reset: legal-counter;
}

.legal-section ol li {
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--text-secondary);
    padding-left: var(--sp-5);
    position: relative;
    margin-bottom: var(--sp-2);
    counter-increment: legal-counter;
}

.legal-section ol li::before {
    content: counter(legal-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--primary);
}