/* ============================================================
   Lahore Grocery Store — Premium Storefront
   Aesthetic: Organic Premium · Warm Editorial · Clean Depth
   Font: Fraunces (display) + DM Sans (body)
============================================================ */

:root {
  /* Brand Palette */
  --forest:       #14532d;
  --forest-mid:   #166534;
  --green:        #16a34a;
  --green-soft:   #22c55e;
  --green-light:  #dcfce7;
  --green-pale:   #f0fdf4;
  --sage:         #86efac;

  /* Warm Neutrals */
  --cream:        #fdfcf8;
  --warm-white:   #f9f7f4;
  --warm-100:     #f3f0eb;
  --warm-200:     #e8e2d9;
  --warm-300:     #d4ccc0;
  --warm-400:     #b0a898;
  --warm-600:     #6b6358;
  --warm-800:     #2c2620;
  --warm-900:     #1a1510;

  /* Accents */
  --saffron:      #f59e0b;
  --saffron-pale: #fef9ed;
  --red:          #dc2626;
  --red-pale:     #fef2f2;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --container:    1320px;
  --page-pad:     clamp(16px, 4vw, 48px);
  --section-gap:  clamp(48px, 8vw, 96px);

  /* Shape */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Shadows */
  --sh-xs:  0 1px 2px rgba(26,21,16,.06);
  --sh-sm:  0 2px 8px rgba(26,21,16,.08);
  --sh-md:  0 8px 24px rgba(26,21,16,.10);
  --sh-lg:  0 16px 48px rgba(26,21,16,.12);
  --sh-xl:  0 32px 80px rgba(26,21,16,.14);

  /* Motion */
  --ease:   cubic-bezier(.22,1,.36,1);
  --fast:   .15s var(--ease);
  --mid:    .25s var(--ease);
  --slow:   .4s var(--ease);

  /* Layout */
  --header-h:  72px;
  --topbar-h:  38px;
  --nav-h:     46px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--warm-800);
  background: var(--cream);
  margin: 0; padding: 0;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: var(--font-body); }

/* ── Layout Container ──────────────────────────────────────── */
.lgs-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--forest);
  color: rgba(255,255,255,.85);
  font-size: 12.5px;
  font-weight: 500;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  letter-spacing: .2px;
}
.topbar .lgs-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-left { display: flex; align-items: center; gap: 20px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar a { color: rgba(255,255,255,.75); transition: color var(--fast); }
.topbar a:hover { color: #fff; }
.topbar i { margin-right: 5px; font-size: 11px; }
.topbar-divider { width: 1px; height: 14px; background: rgba(255,255,255,.2); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  background: rgba(253,252,248,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--warm-200);
  box-shadow: 0 1px 0 rgba(26,21,16,.04);
  transition: box-shadow var(--mid);
}
.site-header.scrolled { box-shadow: var(--sh-md); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 42px; }
.logo-mark {
  width: 40px; height: 40px;
  background: var(--green);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  color: var(--warm-900);
  letter-spacing: -.3px;
}
.logo-sub {
  font-size: 10px; font-weight: 500;
  color: var(--warm-400);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 560px;
  position: relative;
}
.header-search form {
  display: flex;
  align-items: center;
  background: var(--warm-100);
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-full);
  overflow: hidden;
  transition: all var(--fast);
}
.header-search form:focus-within {
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22,163,74,.1);
}
.header-search i {
  padding: 0 14px;
  color: var(--warm-400);
  font-size: 16px;
  flex-shrink: 0;
}
.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  padding: 11px 0;
  outline: none;
  color: var(--warm-800);
}
.header-search input::placeholder { color: var(--warm-400); }
.header-search button {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--fast);
  white-space: nowrap;
  letter-spacing: .2px;
}
.header-search button:hover { background: var(--forest-mid); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.action-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 600;
  color: var(--warm-600);
  cursor: pointer;
  transition: all var(--fast);
  position: relative;
  background: none; border: none;
}
.action-btn:hover { background: var(--warm-100); color: var(--warm-900); }
.action-btn i { font-size: 18px; }
.cart-btn {
  background: var(--green-pale);
  color: var(--green);
  border: 1.5px solid var(--green-light);
}
.cart-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.cart-badge {
  position: absolute; top: 1px; right: 1px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--cream);
}
.mobile-menu-btn { display: none; }

/* ── Category Nav ─────────────────────────────────────────── */
.category-nav {
  background: #fff;
  border-bottom: 1px solid var(--warm-200);
  height: var(--nav-h);
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: var(--header-h);
  z-index: 190;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-nav .lgs-container { height: 100%; }
.category-nav ul {
  display: flex; align-items: center;
  height: 100%;
  gap: 0;
  white-space: nowrap;
}
.category-nav li a {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: 13px; font-weight: 600;
  color: var(--warm-600);
  transition: all var(--fast);
  white-space: nowrap;
}
.category-nav li a:hover,
.category-nav li a.active {
  background: var(--green-pale);
  color: var(--green);
}
.category-nav li a i { font-size: 13px; }

/* ── Mobile Menu ──────────────────────────────────────────── */
.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,21,16,.5);
  z-index: 500;
  backdrop-filter: blur(4px);
}
.mobile-overlay.show { display: block; animation: fadeIn .2s ease; }
.mobile-menu {
  position: fixed; top: 0; left: -300px; width: 300px; height: 100vh;
  background: var(--cream);
  z-index: 501;
  transition: left .3s var(--ease);
  overflow-y: auto;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-xl);
}
.mobile-menu.open { left: 0; }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--warm-200);
}
.mobile-menu-header span { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.mobile-menu-header button {
  background: var(--warm-100); border: none;
  width: 36px; height: 36px; border-radius: var(--r-md);
  font-size: 18px; cursor: pointer; color: var(--warm-600);
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu-body { padding: 12px; flex: 1; }
.mobile-menu-body a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: var(--r-md);
  font-weight: 500; color: var(--warm-800); font-size: 14px;
  transition: all var(--fast);
}
.mobile-menu-body a:hover { background: var(--green-pale); color: var(--green); }
.mobile-menu-body a i { font-size: 15px; color: var(--green); width: 20px; text-align: center; }
.mobile-menu-body .menu-divider {
  height: 1px; background: var(--warm-200);
  margin: 8px 0;
}

/* ── Page Wrapper ─────────────────────────────────────────── */
#main-content { min-height: 60vh; }

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--warm-400);
  padding: 16px 0 0;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--warm-500, #7d7068); transition: color var(--fast); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { color: var(--warm-300); }
.breadcrumb-current { color: var(--warm-800); font-weight: 600; }

/* ── Section ──────────────────────────────────────────────── */
.section { padding: clamp(32px, 5vw, 64px) 0; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px; gap: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--warm-900);
  margin: 0; line-height: 1.2;
}
.section-title em { font-style: italic; color: var(--green); }
.section-title span { color: var(--green); }
.section-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--green);
  transition: gap var(--fast);
  white-space: nowrap;
}
.section-link:hover { gap: 8px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  margin-top: 32px;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 50%, #1a7a3c 100%);
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 72px) clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 20% -20%, rgba(34,197,94,.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 80% 120%, rgba(134,239,172,.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 12px; font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -.5px;
}
.hero-title em { font-style: italic; color: var(--sage); }
.hero-sub {
  font-size: clamp(14px, 2vw, 17px);
  color: rgba(255,255,255,.75);
  margin-bottom: 32px;
  line-height: 1.65;
  max-width: 480px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-features {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-feat {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,.8);
}
.hero-feat i { font-size: 16px; color: var(--sage); }
.hero-visual {
  position: relative; z-index: 1;
  width: clamp(160px, 20vw, 260px);
  flex-shrink: 0;
}
.hero-visual img { width: 100%; filter: drop-shadow(0 16px 32px rgba(0,0,0,.3)); }

/* ── Feature Strips ───────────────────────────────────────── */
.feature-strip {
  background: var(--warm-white);
  border: 1px solid var(--warm-200);
  border-radius: var(--r-lg);
  padding: 20px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin: 32px 0;
}
.feature-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-right: 1px solid var(--warm-200);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--green-pale);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
}
.feature-icon i { font-size: 20px; color: var(--green); }
.feature-title { font-size: 13.5px; font-weight: 700; color: var(--warm-900); margin-bottom: 2px; }
.feature-desc  { font-size: 12px; color: var(--warm-400); line-height: 1.4; }

/* ── Category Grid ────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.cat-card {
  background: #fff;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-lg);
  padding: 18px 12px 14px;
  text-align: center;
  transition: all var(--mid);
  cursor: pointer;
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green-pale), transparent);
  opacity: 0;
  transition: opacity var(--mid);
}
.cat-card:hover {
  border-color: var(--green);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.cat-card:hover::before { opacity: 1; }
.cat-img-wrap {
  width: 68px; height: 68px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: var(--warm-100);
  border: 3px solid var(--warm-100);
  transition: border-color var(--fast);
  position: relative; z-index: 1;
}
.cat-card:hover .cat-img-wrap { border-color: var(--green-light); }
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-name {
  font-size: 12.5px; font-weight: 700;
  color: var(--warm-800);
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  position: relative; z-index: 1;
}
.cat-card:hover .cat-name { color: var(--forest); }

/* ── Product Grid ─────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

/* ── Product Card ─────────────────────────────────────────── */
.product-card {
  background: #fff;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--mid);
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
  border-color: var(--warm-300);
}

.product-card-img {
  position: relative;
  padding-top: 80%;
  background: var(--warm-100);
  overflow: hidden;
}
.product-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .4s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.06); }

.badge-out, .badge-sale, .badge-new {
  position: absolute; top: 10px;
  font-size: 10px; font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--r-full);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.badge-out  { left: 10px; background: var(--red); color: #fff; }
.badge-sale { right: 10px; background: var(--saffron); color: #fff; }
.badge-new  { right: 10px; background: var(--forest); color: #fff; }

.wishlist-btn {
  position: absolute; bottom: 10px; right: 10px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(253,252,248,.9);
  border: 1.5px solid var(--warm-200);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--warm-400);
  transition: all var(--fast);
  opacity: 0; transform: scale(.85);
  backdrop-filter: blur(8px);
}
.product-card:hover .wishlist-btn { opacity: 1; transform: scale(1); }
.wishlist-btn:hover, .wishlist-btn.active { color: var(--red); border-color: var(--red); background: var(--red-pale); }

.product-card-body {
  padding: 14px 16px 16px;
  flex: 1; display: flex; flex-direction: column;
}
.product-brand {
  font-size: 10.5px; font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 5px;
}
.product-title {
  font-size: 14px; font-weight: 600;
  color: var(--warm-900);
  line-height: 1.4;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color var(--fast);
}
.product-card:hover .product-title { color: var(--forest); }
.product-price {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 12px;
}
.price-current {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--forest);
  letter-spacing: -.3px;
}
.price-compare {
  font-size: 12.5px; color: var(--warm-400);
  text-decoration: line-through;
}
.price-save {
  font-size: 11px; font-weight: 700;
  color: var(--saffron);
  background: var(--saffron-pale);
  padding: 2px 7px; border-radius: var(--r-full);
}

.variant-select {
  width: 100%; font-family: var(--font-body); font-size: 13px;
  padding: 7px 10px;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-sm);
  color: var(--warm-800);
  background: var(--warm-100);
  margin-bottom: 10px;
  outline: none; cursor: pointer;
  transition: border-color var(--fast);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.variant-select:focus { border-color: var(--green); background-color: #fff; }

.btn-add-cart {
  width: 100%; padding: 10px 14px;
  background: var(--green);
  color: #fff;
  border: none; border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  transition: all var(--fast);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  letter-spacing: .2px;
}
.btn-add-cart:hover { background: var(--forest-mid); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,163,74,.3); }
.btn-add-cart:active { transform: translateY(0); }
.btn-add-cart:disabled {
  background: var(--warm-200); color: var(--warm-400);
  cursor: not-allowed; transform: none; box-shadow: none;
}

/* ── Promo Banner ─────────────────────────────────────────── */
.promo-strip {
  background: linear-gradient(90deg, var(--forest) 0%, #1a7a3c 100%);
  border-radius: var(--r-lg);
  padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  position: relative; overflow: hidden;
}
.promo-strip::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.promo-text { position: relative; }
.promo-eyebrow { font-size: 11px; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 4px; }
.promo-title { font-family: var(--font-display); font-size: clamp(18px,3vw,24px); font-weight: 700; color: #fff; }
.promo-title em { font-style: italic; color: var(--sage); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700;
  cursor: pointer; border: none;
  transition: all var(--fast);
  text-decoration: none;
  letter-spacing: .2px;
  white-space: nowrap;
}
.btn-primary   { background: var(--green); color: #fff; }
.btn-primary:hover   { background: var(--forest-mid); color: #fff; box-shadow: 0 4px 16px rgba(22,163,74,.3); transform: translateY(-1px); }
.btn-white     { background: #fff; color: var(--forest); }
.btn-white:hover     { background: var(--cream); color: var(--forest); }
.btn-outline   { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-outline:hover   { background: var(--green); color: #fff; }
.btn-ghost     { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.25); }
.btn-ghost:hover     { background: rgba(255,255,255,.22); }
.btn-gray      { background: var(--warm-100); color: var(--warm-800); border: 1.5px solid var(--warm-200); }
.btn-gray:hover      { background: var(--warm-200); }
.btn-danger    { background: var(--red); color: #fff; }
.btn-danger:hover    { background: #b91c1c; }
.btn-lg  { padding: 14px 28px; font-size: 15px; border-radius: var(--r-lg); }
.btn-sm  { padding: 7px 14px; font-size: 12.5px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--warm-800);
  margin-bottom: 6px;
  letter-spacing: .1px;
}
.form-control {
  width: 100%;
  font-family: var(--font-body); font-size: 14px;
  padding: 11px 14px;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-md);
  color: var(--warm-900);
  background: #fff;
  outline: none;
  transition: all var(--fast);
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22,163,74,.1);
}
.form-control::placeholder { color: var(--warm-400); }
.form-hint  { font-size: 12px; color: var(--warm-400); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; font-weight: 600; }
select.form-control { cursor: pointer; padding-right: 32px; }
textarea.form-control { resize: vertical; line-height: 1.6; }

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-lg);
}
.card-body { padding: 24px; }
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--warm-100);
  font-weight: 700; font-size: 15px;
  color: var(--warm-900);
  display: flex; align-items: center; gap: 10px;
}
.card-header i { color: var(--green); }

/* ── Alerts ───────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.5;
}
.alert-success { background: var(--green-pale); color: #14532d; border-left: 4px solid var(--green); }
.alert-danger  { background: var(--red-pale);   color: #7f1d1d; border-left: 4px solid var(--red); }
.alert-warning { background: var(--saffron-pale); color: #78350f; border-left: 4px solid var(--saffron); }
.alert i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ── Qty Control ──────────────────────────────────────────── */
.qty-control {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-md);
  overflow: hidden; background: #fff;
}
.qty-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--warm-100); border: none;
  cursor: pointer; font-size: 18px; font-weight: 600;
  color: var(--warm-600);
  transition: all var(--fast);
}
.qty-btn:hover { background: var(--green-pale); color: var(--green); }
.qty-input {
  width: 48px; height: 38px;
  text-align: center; border: none;
  border-left: 1.5px solid var(--warm-200);
  border-right: 1.5px solid var(--warm-200);
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--warm-900); outline: none;
  background: #fff;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 40px 0; flex-wrap: wrap;
}
.page-link {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-md);
  font-size: 14px; font-weight: 600;
  color: var(--warm-600);
  transition: all var(--fast);
  background: #fff;
}
.page-link:hover   { border-color: var(--green); color: var(--green); background: var(--green-pale); }
.page-link.active  { background: var(--forest); border-color: var(--forest); color: #fff; }
.page-link.disabled { opacity: .35; pointer-events: none; }

/* ── Status Badges ────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 700; letter-spacing: .2px;
}
.status-pending         { background: var(--saffron-pale); color: #78350f; }
.status-confirmed       { background: #dbeafe; color: #1e3a8a; }
.status-processing      { background: #ede9fe; color: #4c1d95; }
.status-out_for_delivery{ background: var(--green-pale); color: var(--forest); }
.status-delivered       { background: var(--green-pale); color: var(--forest); }
.status-cancelled       { background: var(--red-pale); color: #7f1d1d; }
.status-returned        { background: var(--warm-100); color: var(--warm-600); }

/* ── Toast ────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast-msg {
  padding: 14px 18px;
  border-radius: var(--r-lg);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--sh-lg);
  animation: slideUp .3s var(--ease);
  max-width: 340px;
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(12px);
}
.toast-success { background: #ecfdf5; color: #14532d; border-left: 4px solid var(--green); }
.toast-error   { background: #fef2f2; color: #7f1d1d; border-left: 4px solid var(--red); }
.toast-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ── Auth Pages ───────────────────────────────────────────── */
.auth-wrapper {
  min-height: calc(100vh - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px var(--page-pad);
  background: radial-gradient(ellipse at top, var(--green-pale), var(--cream) 60%);
}
.auth-card {
  background: #fff;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-xl);
  padding: 40px;
  width: 100%; max-width: 440px;
  box-shadow: var(--sh-xl);
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .logo-mark { margin: 0 auto 12px; width: 52px; height: 52px; border-radius: 14px; font-size: 22px; }
.auth-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.auth-sub { font-size: 14px; color: var(--warm-400); margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 13.5px; color: var(--warm-400); }
.auth-footer a { color: var(--green); font-weight: 700; }

/* ── Empty State ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 72px 24px;
  color: var(--warm-400);
}
.empty-state .empty-icon {
  width: 80px; height: 80px;
  background: var(--warm-100);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.empty-state .empty-icon i { font-size: 36px; color: var(--warm-300); }
.empty-state h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--warm-600); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 24px; color: var(--warm-400); }

/* ── Shop Layout ──────────────────────────────────────────── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}
.shop-main { min-width: 0; }

/* ── Sidebar Cards ─────────────────────────────────────────── */
.sidebar-card {
  background: #fff;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 12px;
}
.sidebar-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--warm-600, #57534e);
  background: var(--warm-50, #fafaf9);
  border-bottom: 1px solid var(--warm-100);
  gap: 8px;
}
.sidebar-card-head i { color: var(--green); font-size: 13px; }
.sidebar-body { padding: 6px 8px; }
.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--warm-700, #44403c);
  text-decoration: none;
  transition: all var(--fast);
  cursor: pointer;
}
.sidebar-link:hover { background: var(--green-pale); color: var(--forest); }
.sidebar-link.active { background: var(--green-pale); color: var(--forest); font-weight: 700; }
.sidebar-link .count {
  font-size: 11px;
  font-weight: 600;
  color: var(--warm-400);
  background: var(--warm-100);
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}
.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--green-pale);
  color: var(--forest);
  border: 1px solid var(--green-light);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--fast);
}
.filter-tag:hover { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.cat-pg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--warm-100);
  color: var(--warm-600);
  font-size: 12px;
  text-decoration: none;
  transition: all var(--fast);
}
.cat-pg-btn:hover { background: var(--green-pale); color: var(--green); }

/* ── Shop Toolbar ──────────────────────────────────────────── */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid var(--warm-100);
  border-radius: var(--r-md);
}
.toolbar-count { font-size: 13.5px; color: var(--warm-500); flex: 1; }
.toolbar-count strong { color: var(--warm-900); }
.sort-select { width: auto !important; font-size: 13px !important; padding: 7px 12px !important; }
.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--green-pale);
  color: var(--forest);
  border: 1.5px solid var(--green-light);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
}

/* ── Sidebar Sticky ────────────────────────────────────────── */
.shop-sidebar {
  position: sticky;
  top: calc(var(--header-h, 72px) + 16px);
  max-height: calc(100vh - var(--header-h, 72px) - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--warm-200) transparent;
}
.shop-sidebar::-webkit-scrollbar { width: 4px; }
.shop-sidebar::-webkit-scrollbar-thumb { background: var(--warm-200); border-radius: 4px; }

/* ── Category Page Hero ───────────────────────────────────── */
.cat-hero {
  background: linear-gradient(135deg, var(--warm-white), #fff);
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-xl);
  padding: 28px 32px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.cat-hero::after {
  content: '';
  position: absolute; right: -30px; top: -30px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--green-pale) 0%, transparent 70%);
  pointer-events: none;
}
.cat-hero-img {
  width: 80px; height: 80px; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--sh-md);
}
.cat-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-hero-title { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-bottom: 4px; color: var(--warm-900); }
.cat-hero-count { font-size: 14px; color: var(--warm-400); }

/* ── Product Detail Page ──────────────────────────────────── */
.product-gallery {
  background: var(--warm-white);
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-xl);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 16px);
  text-align: center;
}
.product-gallery img { max-height: 420px; object-fit: contain; width: 100%; }
.variant-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.variant-pill {
  padding: 8px 18px;
  border-radius: var(--r-full);
  border: 2px solid var(--warm-200);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: var(--warm-700, #57534e);
  transition: all var(--fast);
}
.variant-pill:hover { border-color: var(--green); color: var(--green); background: var(--green-pale); }
.variant-pill.active { border-color: var(--forest); background: var(--forest); color: #fff; }
.variant-pill.out { opacity: .4; cursor: not-allowed; }

.delivery-card {
  background: var(--warm-white);
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-lg);
  padding: 16px 20px;
  margin: 20px 0;
}
.delivery-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; padding: 6px 0; }
.delivery-row i { font-size: 17px; color: var(--green); width: 22px; flex-shrink: 0; }
.delivery-row strong { display: block; font-weight: 700; color: var(--warm-900); }
.delivery-row span { display: block; font-size: 12px; color: var(--warm-400); }

/* ── CMS Pages ────────────────────────────────────────────── */
.cms-hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
  border-radius: var(--r-xl);
  padding: clamp(36px,6vw,72px) clamp(28px,5vw,56px);
  margin-bottom: 40px;
  position: relative; overflow: hidden;
}
.cms-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 80% -20%, rgba(134,239,172,.2) 0%, transparent 60%);
  pointer-events: none;
}
.cms-hero-title { font-family: var(--font-display); font-size: clamp(28px,5vw,48px); font-weight: 700; color: #fff; margin: 0; position: relative; }
.cms-content {
  font-size: 15.5px; line-height: 1.85;
  color: var(--warm-700, #57534e);
  max-width: 780px;
}
.cms-content h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--warm-900); margin: 36px 0 12px; }
.cms-content h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--warm-900); margin: 28px 0 10px; }
.cms-content p  { margin: 0 0 18px; }
.cms-content ul, .cms-content ol { padding-left: 22px; margin-bottom: 18px; }
.cms-content li { margin-bottom: 8px; }
.cms-content strong { color: var(--warm-900); font-weight: 700; }
.cms-content a { color: var(--green); font-weight: 600; text-decoration: underline; text-decoration-color: var(--green-light); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--warm-900); color: #c8c0b8; margin-top: var(--section-gap); }
.footer-top { padding: clamp(40px,6vw,72px) 0 40px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo .logo-mark { background: var(--green); width: 38px; height: 38px; font-size: 16px; }
.footer-logo .logo-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: #fff; }
.footer-desc { font-size: 13.5px; line-height: 1.7; color: #9d9488; margin-bottom: 18px; max-width: 280px; }
.footer-contact a { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9d9488; margin-bottom: 8px; transition: color var(--fast); }
.footer-contact a:hover { color: var(--sage); }
.footer-contact i { font-size: 14px; color: var(--green); width: 16px; }
.footer-heading { font-size: 11px; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13.5px; color: #9d9488; transition: color var(--fast); display: flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--sage); }
.delivery-info { display: flex; flex-direction: column; gap: 14px; }
.di-row { display: flex; align-items: flex-start; gap: 12px; }
.di-row .di-icon { width: 38px; height: 38px; background: rgba(22,163,74,.15); border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.di-row .di-icon i { font-size: 16px; color: var(--green); }
.di-row strong { display: block; font-size: 13px; color: #e8e0d8; font-weight: 700; margin-bottom: 2px; }
.di-row span { font-size: 12px; color: #6b6358; }
.footer-bottom {
  background: var(--warm-900);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 18px 0;
  font-size: 13px; color: #6b6358;
}
.footer-bottom .lgs-container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.payment-methods { display: flex; gap: 8px; flex-wrap: wrap; }
.payment-pill { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-sm); padding: 4px 10px; font-size: 12px; font-weight: 600; color: #c8c0b8; }
.payment-pill i { color: var(--green); font-size: 13px; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .shop-layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: fixed;
    top: 0; left: -100%; bottom: 0;
    width: 290px;
    z-index: 9999;
    background: #fff;
    box-shadow: 4px 0 24px rgba(0,0,0,.15);
    overflow-y: auto;
    max-height: 100vh;
    padding: 16px;
    transition: left .3s ease;
  }
  .shop-sidebar.sidebar-open { left: 0; }
  .mobile-filter-btn { display: flex; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--warm-200); }
  .feature-item:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  /* Topbar — compact on mobile, show all info */
  .topbar { height: auto; min-height: var(--topbar-h); }
  .topbar .lgs-container { flex-direction: column; gap: 4px; padding-top: 7px; padding-bottom: 7px; }
  .topbar-left { flex-wrap: wrap; gap: 10px; font-size: 11.5px; }
  .topbar-right { font-size: 11.5px; gap: 10px; }
  .topbar-divider { display: none; }

  /* Header — two rows on mobile */
  :root { --header-h: auto; }
  .site-header { height: auto; position: sticky; top: 0; }
  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }
  .logo { flex: 0 0 auto; }
  .header-search {
    order: 3;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 4px;
  }
  .header-search form { border-radius: var(--r-md); }
  .header-search button { display: flex !important; padding: 10px 16px; }
  .header-actions { margin-left: auto; gap: 4px; }
  .action-btn span { display: none; }
  .cart-btn span { display: inline !important; font-size: 13px; }

  /* Mobile menu button */
  .mobile-menu-btn {
    display: flex !important;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    background: var(--warm-100); border: none;
    font-size: 20px; cursor: pointer; color: var(--warm-600);
  }

  /* Category nav */
  .category-nav { top: 0; }

  /* Content */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .auth-card { padding: 28px 20px; }
  .promo-strip { flex-direction: column; text-align: center; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .hero { padding: 28px 20px; border-radius: var(--r-lg); }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-features { gap: 12px; }
  .hero-feat { font-size: 12px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cms-hero { padding: 28px 20px; }
  .cat-hero { flex-direction: column; text-align: center; }
}
@media (max-width: 400px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .topbar-right { display: none; } /* very small — hide secondary topbar */
}

/* ── Utilities ────────────────────────────────────────────── */
.text-green  { color: var(--green) !important; }
.text-forest { color: var(--forest) !important; }
.text-muted  { color: var(--warm-400); }
.text-center { text-align: center; }
.fw-bold  { font-weight: 700; }
.fw-black { font-weight: 900; }
.font-display { font-family: var(--font-display); }
.d-none   { display: none !important; }
.d-flex   { display: flex; }
.d-grid   { display: grid; }
.gap-2    { gap: 8px; }
.gap-3    { gap: 12px; }
.gap-4    { gap: 16px; }
.mt-4     { margin-top: 16px; }
.mb-4     { margin-bottom: 16px; }
.mb-6     { margin-bottom: 24px; }
.mb-8     { margin-bottom: 32px; }
.py-4     { padding-top: 16px; padding-bottom: 16px; }
.row      { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.col-md-5 { grid-column: span 5; }
.col-md-7 { grid-column: span 7; }
.col-md-4 { grid-column: span 4; }
.col-md-8 { grid-column: span 8; }
.col-12   { grid-column: span 12; }
@media (max-width: 768px) {
  .row { grid-template-columns: 1fr; }
  .col-md-5,.col-md-7,.col-md-4,.col-md-8 { grid-column: span 1; }
}

/* ── Footer Grid ──────────────────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── Product Page Qty Control ─────────────────────────────── */
.product-qty-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--warm-200);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  height: 50px;
}
.product-qty-control .qty-btn {
  width: 44px; height: 100%;
  background: var(--warm-100);
  border: none; cursor: pointer;
  font-size: 20px; font-weight: 600;
  color: var(--warm-600);
  transition: all var(--fast);
  display: flex; align-items: center; justify-content: center;
}
.product-qty-control .qty-btn:hover { background: var(--green-pale); color: var(--green); }
.product-qty-control .qty-input {
  width: 52px; height: 100%;
  text-align: center;
  border: none;
  border-left: 2px solid var(--warm-200);
  border-right: 2px solid var(--warm-200);
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--warm-900);
  outline: none; background: #fff;
  -moz-appearance: textfield;
}
.product-qty-control .qty-input::-webkit-outer-spin-button,
.product-qty-control .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ── Cart Layout ──────────────────────────────────────────── */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  margin-top: 4px;
}

/* ── Cart Item Row ────────────────────────────────────────── */
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--warm-100);
  transition: background var(--fast);
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: var(--warm-white); }

.cart-item-img {
  display: block;
  width: 76px; height: 76px;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--warm-100);
  flex-shrink: 0;
}
.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 6px;
}

.cart-item-info { min-width: 0; }
.cart-item-title {
  font-size: 14px; font-weight: 700;
  color: var(--warm-900);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.4; margin-bottom: 4px;
  transition: color var(--fast);
}
.cart-item-title:hover { color: var(--forest); }
.cart-item-variant { font-size: 12px; color: var(--warm-400); margin-bottom: 4px; }
.cart-item-price-mobile { display: none; font-size: 13px; color: var(--green); font-weight: 700; }

/* Qty control in cart */
.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--warm-200);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.cart-qty-btn {
  width: 34px; height: 36px;
  border: none; background: var(--warm-100);
  font-size: 18px; font-weight: 600;
  color: var(--warm-600); cursor: pointer;
  transition: all var(--fast);
  display: flex; align-items: center; justify-content: center;
}
.cart-qty-btn:hover { background: var(--green-pale); color: var(--green); }
.cart-qty-val {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 800;
  color: var(--warm-900);
  border-left: 1.5px solid var(--warm-200);
  border-right: 1.5px solid var(--warm-200);
  padding: 0 4px;
}

.cart-item-total { text-align: right; min-width: 80px; }
.cart-item-total-price {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 800;
  color: var(--forest); margin-bottom: 6px;
}
.cart-remove-btn {
  background: none; border: none;
  color: var(--warm-400); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: var(--font-body);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 0;
  transition: color var(--fast);
}
.cart-remove-btn:hover { color: var(--red); }
.cart-remove-btn i { font-size: 13px; }

/* Summary */
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; font-size: 14px;
  border-bottom: 1px solid var(--warm-100);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-total {
  font-size: 17px; font-weight: 800;
  color: var(--forest); padding: 12px 0 0;
  border-top: 2px solid var(--warm-200) !important;
  border-bottom: none !important;
}
.summary-total span:last-child { color: var(--green); }

/* ── Cart Mobile ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cart-summary-col .card { position: static !important; }
  .cart-item {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 14px 16px;
  }
  .cart-item-img { width: 64px; height: 64px; grid-row: span 2; }
  .cart-item-info { grid-column: 2; }
  .cart-item-price-mobile { display: block; }
  .cart-item-qty {
    grid-column: 2;
    display: flex; align-items: center; justify-content: space-between;
  }
  .cart-item-total {
    display: flex; align-items: center; gap: 12px;
    text-align: left;
  }
  .cart-item-total-price { margin-bottom: 0; }
}
@media (max-width: 400px) {
  .cart-item { padding: 12px; gap: 8px; }
}

/* ── Checkout Layout ──────────────────────────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
  margin-top: 8px;
}
.checkout-left  { min-width: 0; }
.checkout-right { min-width: 0; }
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mb-4 { margin-bottom: 16px; }
@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  /* On mobile: order summary goes BELOW the form */
  .checkout-left  { order: 1; }
  .checkout-right { order: 2; }
  .checkout-right .card { position: static !important; }
}
@media (max-width: 500px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
