/* ============================================================
   STOREFRONT DESIGN SYSTEM
   Clean, premium, mobile-first. Edit CSS variables below to
   re-theme the entire storefront to match your brand palette.
   ============================================================ */

:root {
  /* Brand palette — Apple-style minimalist with orange buttons */
  --color-primary: #3a3a3c;       /* dark grey instead of black */
  --color-primary-light: #48484a; /* lighter grey */
  --color-button: #bb8e30;        /* mud color buttons */
  --color-button-hover: #a67c27;  /* slightly darker hover */
  --color-accent: #3a3a3c;        /* secondary elements grey */
  --color-accent-light: #48484a;
  --color-bg: #f5f5f7;            /* apple light gray */
  --color-surface: #ffffff;       /* clean white */
  --color-text: #1d1d1f;          /* crisp dark text */
  --color-text-muted: #86868b;    /* apple muted text */
  --color-border: #d2d2d7;
  --color-success: #2e7d32;
  --color-danger: #c62828;
  --color-warning: #b8860b;

  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.12);

  --container-max: 100%;
  --header-height: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: #e6e2db; /* slightly darker, earthy base */
  background-image: url('../img/millet-flakes-bg.jpg');
  background-repeat: repeat;
  background-size: 350px;
  background-attachment: fixed;
  background-blend-mode: multiply; /* darkens the pattern over the base color */
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 16px; } /* 16px prevents iOS zoom-on-focus */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Announcement Bar ---------- */
.announcement-bar {
  background-color: #bb8e30;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.announcement-marquee {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 12s linear infinite;
}
@media (min-width: 600px) { .announcement-marquee { animation-duration: 25s; } }
@media (min-width: 1000px) { .announcement-marquee { animation-duration: 35s; } }
@media (min-width: 1400px) { .announcement-marquee { animation-duration: 50s; } }
.announcement-marquee:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }

.text-muted { color: var(--color-text-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; transition: all .15s ease; min-height: 44px;
}
.btn-primary { background: var(--color-button); color: #fff; }
.btn-primary:hover { background: var(--color-button-hover); }
.btn-primary:disabled { background: #999; cursor: not-allowed; }
.btn-accent { background: var(--color-button); color: #fff; }
.btn-accent:hover { background: var(--color-button-hover); }
.btn-outline { background: transparent; border-color: var(--color-button); color: var(--color-button); }
.btn-outline:hover { background: var(--color-button); color: #fff; }
.btn-danger { background: var(--color-danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; min-height: 36px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-surface); border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: var(--color-primary); }
.main-nav { display: none; gap: 24px; }
.main-nav a { font-weight: 500; font-size: 0.92rem; transition: opacity 0.2s; }
.main-nav a:hover { opacity: 0.7; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { position: relative; display: inline-flex; padding: 6px; }
.badge {
  position: absolute; top: -2px; right: -2px; background: var(--color-accent); color: #fff;
  font-size: 0.65rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.search-bar { display: none; flex: 1; max-width: 420px; }
.search-bar input {
  width: 100%; padding: 9px 14px; border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-bg);
}
.mobile-menu-toggle { display: inline-flex; background: none; border: none; padding: 6px; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .search-bar { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ---------- Hero Slider ---------- */
.hero-slider-container { margin: 20px 16px; width: calc(100% - 32px); max-width: 100%; }
.hero-slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-slider::-webkit-scrollbar { display: none; }
.hero-slide {
  flex: 0 0 calc(25% - 9px); aspect-ratio: 9 / 16; border-radius: var(--radius-md);
  overflow: hidden; position: relative; scroll-snap-align: start; background: var(--color-border); display: block;
}
.hero-slide img.bg, .hero-slide video.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.hero-slide:hover img.bg, .hero-slide:hover video.bg { transform: scale(1.03); }

@media (min-width: 960px) {
  .hero-slide { flex: 0 0 calc(16.666% - 10px); }
}

/* ---------- Section ---------- */
.section { padding-top: 24px; padding-bottom: 24px; }
@media (min-width: 768px) { .section { padding-top: 32px; padding-bottom: 32px; } }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { position: relative; display: inline-block; padding-bottom: 6px; }
.section-head h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40%; height: 3px; background: var(--color-button); border-radius: 2px; }
.section-head a.view-all { font-size: 0.9rem; font-weight: 600; color: var(--color-button); transition: opacity 0.2s; }
.section-head a.view-all:hover { opacity: 0.7; }

/* ---------- Category grid ---------- */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; justify-items: center; }
@media (min-width: 700px) { .category-grid { grid-template-columns: repeat(6, 1fr); gap: 24px; } }
.category-card {
  text-align: center; transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.category-card:hover { transform: translateY(-4px); }
.category-card img { 
  aspect-ratio: 1/1; object-fit: cover; width: 100%; max-width: 120px; border-radius: 50%;
  padding: 4px; background: linear-gradient(45deg, var(--color-button), var(--color-button-hover));
  box-shadow: var(--shadow-sm);
}
.category-card .cat-label { font-weight: 600; font-size: 0.9rem; letter-spacing: -0.01em; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 500px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } }

.product-card {
  background: #ffffff; border-radius: clamp(12px, 3vw, 18px); overflow: hidden;
  border: none; box-shadow: 0 4px 16px rgba(0,0,0,0.04); 
  transition: box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex; flex-direction: column; position: relative;
}
.product-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.1); transform: translateY(-4px); }
.product-card .thumb-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #fbfbfd; }
.product-card .thumb-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.product-card:hover .thumb-wrap img { transform: scale(1.08); }
.product-card .wishlist-toggle {
  position: absolute; top: clamp(8px, 2vw, 12px); right: clamp(8px, 2vw, 12px); background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 50%; width: clamp(28px, 6vw, 34px); height: clamp(28px, 6vw, 34px); display: flex; align-items: center; justify-content: center; border: none;
  cursor: pointer; transition: transform 0.15s ease; z-index: 5;
}
.product-card .wishlist-toggle:hover { transform: scale(1.1); }
.product-card .wishlist-toggle svg { width: clamp(14px, 3vw, 16px); height: clamp(14px, 3vw, 16px); }
.product-card .badge-discount {
  position: absolute; top: clamp(8px, 2vw, 12px); left: clamp(8px, 2vw, 12px); background: var(--color-accent); color: #fff;
  font-size: clamp(0.6rem, 2vw, 0.7rem); font-weight: 700; padding: 4px 8px; border-radius: 4px; z-index: 5;
}
.product-card .badge-oos {
  position: absolute; inset: 0; background: rgba(255,255,255,0.75); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--color-danger); z-index: 4; font-size: clamp(0.8rem, 3vw, 1rem);
}
.product-card .info { padding: clamp(10px, 3vw, 16px); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card .cat-tag { font-size: clamp(0.65rem, 2vw, 0.72rem); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product-card .p-name { font-weight: 600; font-size: clamp(0.85rem, 2.5vw, 1rem); line-height: 1.3; }
.product-card .rating { font-size: clamp(0.7rem, 2vw, 0.78rem); color: var(--color-text-muted); }
.product-card .price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; padding-bottom: 8px; }
.product-card .price-now { font-weight: 700; font-size: clamp(0.95rem, 2.8vw, 1.15rem); color: var(--color-text-main); }
.product-card .price-mrp { text-decoration: line-through; color: var(--color-text-muted); font-size: clamp(0.75rem, 2vw, 0.85rem); }
.product-card .add-btn { 
  margin: 0 clamp(10px, 3vw, 16px) clamp(10px, 3vw, 16px); 
  width: calc(100% - clamp(20px, 6vw, 32px)); 
  padding: clamp(6px, 2vw, 10px) 16px; 
  border-radius: 20px; font-weight: 600; 
  font-size: clamp(0.8rem, 2.2vw, 0.95rem); 
}

/* ---------- Product detail page ---------- */
.pdp-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding: 16px 0; max-width: 1200px; margin: 0 auto; }
@media (min-width: 900px) { .pdp-grid { grid-template-columns: 1fr 1fr; gap: 56px; padding: 40px 0; } }
.pdp-gallery-main { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--color-surface); margin-bottom: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.04); position: relative; }
.pdp-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; cursor: zoom-in; }
.pdp-gallery-main:hover img { transform: scale(1.05); }
.pdp-thumbs { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: all 0.2s ease; opacity: 0.6; flex-shrink: 0; }
.pdp-thumbs img:hover { opacity: 1; }
.pdp-thumbs img.active { border-color: var(--color-primary); opacity: 1; box-shadow: 0 4px 12px rgba(187,142,48,0.2); }

.pdp-info .breadcrumb { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.pdp-info .breadcrumb a { color: var(--color-text-muted); transition: opacity 0.2s; }
.pdp-info .breadcrumb a:hover { opacity: 0.7; }
.pdp-info h1 { margin-bottom: 12px; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; color: var(--color-text); line-height: 1.2; letter-spacing: -0.01em; }

.pdp-price-row { display: flex; align-items: center; gap: 16px; margin: 24px 0; padding-bottom: 24px; border-bottom: 1px solid var(--color-border); }
.pdp-price-row .now { font-size: 2rem; font-weight: 700; color: var(--color-primary); letter-spacing: -0.02em; }
.pdp-price-row .mrp { text-decoration: line-through; color: var(--color-text-muted); font-size: 1.1rem; font-weight: 500; }
.pdp-price-row .off { background: rgba(39,174,96,0.1); color: var(--color-success); font-weight: 600; padding: 4px 10px; border-radius: 6px; font-size: 0.9rem; }
.variant-group { margin: 24px 0; }
.variant-group .label { font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; color: var(--color-text); }
.variant-options { display: flex; flex-wrap: wrap; gap: 12px; }
.variant-chip { padding: 10px 20px; border: 1.5px solid var(--color-border); border-radius: 8px; font-size: 0.95rem; background: var(--color-surface); font-weight: 500; cursor: pointer; transition: all 0.2s ease; color: var(--color-text); }
.variant-chip:hover:not(:disabled) { border-color: var(--color-primary); opacity: 0.8; }
.variant-chip.selected { border-color: var(--color-primary); background: var(--color-primary); color: #fff; box-shadow: 0 4px 12px rgba(187,142,48,0.3); }
.variant-chip:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

.qty-selector { display: inline-flex; align-items: center; border: 1.5px solid var(--color-border); border-radius: 30px; overflow: hidden; height: 48px; background: var(--color-surface); }
.qty-selector button { width: 44px; height: 100%; background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--color-text-muted); transition: background 0.2s; }
.qty-selector button:hover { background: rgba(0,0,0,0.03); }
.qty-selector input { width: 50px; text-align: center; border: none; font-weight: 600; font-size: 1rem; background: transparent; padding: 0; margin: 0; -moz-appearance: textfield; }
.qty-selector input::-webkit-outer-spin-button, .qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 32px 0; align-items: center; }
.pdp-action-btns { display: flex; gap: 16px; flex: 1; }
.pdp-action-btns .btn { height: 54px; flex: 1; min-width: 0; font-size: 1.1rem; border-radius: 12px; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,0.06); transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; }
.pdp-action-btns .btn:active { transform: scale(0.97); }

@media (max-width: 768px) {
  .pdp-grid { padding: 0 16px 16px 16px !important; }
  .pdp-actions {
    position: fixed;
    bottom: 76px; /* 60px (nav bar) + 16px (padding) */
    left: 16px;
    width: calc(100% - 32px);
    margin: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 -4px 40px rgba(0,0,0,0.15);
    z-index: 89;
    gap: 10px;
    border: 1px solid rgba(0,0,0,0.05);
    flex-direction: column;
    box-sizing: border-box;
  }
  .pdp-actions .qty-selector {
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
    height: 40px;
  }
  .pdp-actions .qty-selector button { width: 44px; }
  .pdp-actions .qty-selector input { flex: 1; }
  .pdp-action-btns {
    width: 100%;
    gap: 8px;
  }
  .pdp-action-btns .btn { height: 44px; font-size: 1rem; min-width: 0; padding: 0 8px; }
  body {
    padding-bottom: 220px !important;
  }
}

.stock-note { font-size: 0.9rem; margin: 12px 0; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stock-note.in-stock { color: var(--color-success); }
.stock-note.low-stock { color: var(--color-warning); }
.stock-note.out-of-stock { color: var(--color-danger); }

.pdp-tabs { margin-top: 40px; border-top: 1px solid var(--color-border); padding-top: 32px; }
.pdp-tabs h3 { font-size: 1.4rem; margin-bottom: 20px; color: var(--color-text); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 12px 0; border-bottom: 1px solid var(--color-border); font-size: 0.95rem; }
.spec-table td:first-child { color: var(--color-text-muted); width: 40%; font-weight: 500; }

.pdp-delivery-check { background: var(--color-bg); padding: 20px; border-radius: 12px; margin: 24px 0; border: 1px solid var(--color-border); }
.pdp-delivery-check label { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 10px; color: var(--color-text); }
.pdp-delivery-check .check-row { display: flex; gap: 8px; }
.pdp-delivery-check input { max-width: 200px; height: 42px; border-radius: 8px; }
.pdp-delivery-check button { height: 42px; border-radius: 8px; font-weight: 600; }

/* ---------- Filters (category listing) ---------- */
/* ---------- Shop Page Redesign ---------- */
.shop-banner-slider-container { margin: 20px 16px; width: calc(100% - 32px); max-width: 100%; border-radius: clamp(16px, 4vw, 24px); overflow: hidden; position: relative; }
.shop-banner-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shop-banner-slider::-webkit-scrollbar { display: none; }
.shop-banner-slide { flex: 0 0 100%; aspect-ratio: 3.5 / 1; min-height: 180px; max-height: 320px; scroll-snap-align: start; position: relative; background: var(--color-surface); }
.shop-banner-slide img.bg, .shop-banner-slide video.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-banner-slide .content-overlay { position: relative; z-index: 2; padding: clamp(16px, 4vw, 48px) clamp(20px, 4vw, 48px); height: 100%; display: flex; flex-direction: column; justify-content: center; }

.shop-hero {
  background-color: var(--color-bg);
  background-image: url('../img/millet-pattern.jpg');
  background-size: 200px;
  background-blend-mode: multiply;
  padding: clamp(32px, 6vw, 64px) 24px;
  border-radius: clamp(16px, 4vw, 24px);
  text-align: center;
  margin-bottom: clamp(24px, 5vw, 40px);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
}
.shop-hero h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin: 8px 0; color: var(--color-primary); letter-spacing: -0.02em; }
.shop-hero .breadcrumb { font-size: clamp(0.8rem, 2vw, 0.95rem); color: var(--color-text-muted); font-weight: 500; }
.shop-hero p { max-width: 600px; margin: 8px auto 0; font-size: clamp(0.9rem, 2.5vw, 1.05rem); color: var(--color-text-muted); line-height: 1.5; }

.listing-layout { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 32px); }
@media (min-width: 900px) { .listing-layout { grid-template-columns: clamp(220px, 22vw, 280px) 1fr; } }

.filter-panel { 
  background: #ffffff; border-radius: clamp(12px, 3vw, 18px); padding: clamp(16px, 3vw, 24px); 
  border: none; box-shadow: 0 4px 16px rgba(0,0,0,0.04); align-self: start; 
}
.mobile-close-filter { display: none; }

@media (max-width: 899px) {
  .filter-panel {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 85vh;
    z-index: 2000;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.1), 0 0 0 100vh rgba(0,0,0,0.5);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s;
    visibility: hidden;
  }
  .filter-panel.open {
    transform: translateY(0);
    visibility: visible;
  }
  .mobile-close-filter { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border); }
}
.filter-group { margin-bottom: 24px; }
.filter-group h4 { font-size: clamp(0.8rem, 2vw, 0.9rem); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; color: var(--color-primary); font-weight: 700; }
.filter-group label { display: flex; align-items: center; gap: 10px; font-size: clamp(0.85rem, 2vw, 0.95rem); padding: 6px 0; color: var(--color-text-main); cursor: pointer; transition: color 0.2s ease; }
.filter-group label:hover { opacity: 0.7; }
.filter-group input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-button); cursor: pointer; }

.mobile-filter-toggle { display: inline-flex; align-items: center; gap: 6px; border-radius: 30px; font-weight: 600; padding: 6px 14px; }
@media (min-width: 900px) { .mobile-filter-toggle { display: none !important; } }

.sort-bar { 
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; 
  padding-bottom: 16px; border-bottom: 1px solid var(--color-border);
}
.sort-bar select { background: #fbfbfd; border: 1px solid var(--color-border); border-radius: 20px; padding: 6px 12px; font-weight: 500; font-size: 0.9rem; cursor: pointer; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: 2fr 1fr; } }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.cart-item img { width: 84px; height: 84px; border-radius: 8px; object-fit: cover; background: #f2efe8; }
.cart-item .details { flex: 1; }
.cart-item .row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.summary-card { background: var(--color-surface); border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--color-border); position: sticky; top: 84px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.92rem; }
.summary-row.total { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 12px; }
.coupon-box { display: flex; gap: 8px; margin: 16px 0; }
.coupon-box input { flex: 1; padding: 10px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state svg, .empty-state img { width: 90px; margin: 0 auto 16px; opacity: 0.5; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s;
}
.form-control:focus { outline: none; border-color: var(--color-primary); }
.form-control.error { border-color: var(--color-danger); }
.field-error { color: var(--color-danger); font-size: 0.8rem; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: #e8f5e9; color: var(--color-success); }
.alert-error { background: #fdecea; color: var(--color-danger); }
.alert-info { background: #e8f0fe; color: #1a56db; }

/* ---------- Checkout steps ---------- */
.checkout-steps { display: flex; gap: 16px; margin-bottom: 24px; font-size: 0.85rem; color: var(--color-text-muted); }
.checkout-steps .step.active { color: var(--color-primary); font-weight: 700; }
.address-card { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 12px; cursor: pointer; position: relative; }
.address-card.selected { border-color: var(--color-primary); background: #f4f8f5; }
.payment-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 16px; margin-bottom: 10px; cursor: pointer; }
.payment-option.selected { border-color: var(--color-primary); background: #f4f8f5; }

/* ---------- Order tracking ---------- */
.timeline { list-style: none; padding-left: 0; }
.timeline li { position: relative; padding-left: 28px; padding-bottom: 22px; border-left: 2px solid var(--color-border); margin-left: 10px; }
.timeline li:last-child { border-color: transparent; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--color-border); }
.timeline li.done::before { background: var(--color-success); }
.timeline li.current::before { background: var(--color-accent); box-shadow: 0 0 0 4px rgba(200,121,44,0.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-button); color: rgba(255,255,255,0.9); margin-top: 60px; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h4 { color: #fff; font-size: 0.9rem; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; }
.footer-grid a:hover { opacity: 0.7; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; opacity: 0.75; }

/* ---------- Skeleton loading ---------- */
.skeleton { background: linear-gradient(90deg, #ececec 25%, #f5f5f5 37%, #ececec 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; border-radius: 6px; }
@keyframes skeleton-loading { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Toast ---------- */
.toast-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; width: calc(100% - 32px); max-width: 380px; }
.toast { background: #222; color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; box-shadow: var(--shadow-lg); animation: toast-in .2s ease; }
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Mobile bottom nav (optional app-like feel) ---------- */
.mobile-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--color-border);
  display: flex; justify-content: space-around; padding: 8px 0; z-index: 90;
}
.mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.68rem; color: var(--color-text-muted); }
.mobile-bottom-nav a.active { color: var(--color-primary); }
@media (min-width: 900px) { .mobile-bottom-nav { display: none; } }
body { padding-bottom: 60px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
@media (max-width: 500px) { .d-none-mobile { display: none !important; } }
