/* ============================================================
   WISHZY — Global Design System
   Warm Ivory Premium Aesthetic | Mobile-First
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

/* ── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Colors */
  --clr-bg:          #FDFBF7;
  --clr-bg-alt:      #F4F1EA;
  --clr-bg-dark:     #EDE9E0;
  --clr-text:        #2C2A29;
  --clr-text-muted:  #6B6560;
  --clr-text-light:  #9B948C;
  --clr-accent:      #C58B58;
  --clr-accent-dark: #A3703F;
  --clr-accent-light:#E8C49A;
  --clr-white:       #FFFFFF;
  --clr-border:      #E5DFD5;
  --clr-success:     #4A7C59;
  --clr-error:       #C0392B;
  --clr-overlay:     rgba(44,42,41,0.55);

  /* Typography */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full:9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(44,42,41,0.08), 0 1px 2px rgba(44,42,41,0.06);
  --shadow-md:  0 4px 16px rgba(44,42,41,0.10), 0 2px 6px rgba(44,42,41,0.06);
  --shadow-lg:  0 16px 48px rgba(44,42,41,0.14), 0 4px 12px rgba(44,42,41,0.08);
  --shadow-accent: 0 8px 32px rgba(197,139,88,0.35);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms cubic-bezier(0.25,0.46,0.45,0.94);

  /* Layout */
  --container-max: 1280px;
  --nav-h:        68px;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
.display-1 { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.display-2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 600; line-height: 1.2; }
.display-3 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.3; }
.h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
.h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
.h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
.body-lg { font-size: 1.1rem; line-height: 1.7; }
.body-sm { font-size: 0.875rem; }
.caption { font-size: 0.8rem; color: var(--clr-text-muted); }
.text-muted { color: var(--clr-text-muted); }
.text-accent { color: var(--clr-accent); }
.text-center { text-align: center; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ── LAYOUT UTILITIES ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}
.section { padding-block: var(--space-3xl); }
.section--sm { padding-block: var(--space-2xl); }
.section--lg { padding-block: calc(var(--space-3xl) * 1.5); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-lg); }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(253,251,247,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--transition-base);
}
.nav.scrolled { box-shadow: var(--shadow-md); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-lg);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.nav__logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-accent);
}
.nav__logo-text { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--clr-text); }
.nav__logo-text span { color: var(--clr-accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--transition-fast);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--clr-accent);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}
.nav__link:hover, .nav__link.active { color: var(--clr-text); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: var(--space-md); }

.nav__icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--clr-text);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast);
  font-size: 1.1rem;
}
.nav__icon-btn:hover { background: var(--clr-bg-alt); }

.cart-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: var(--clr-accent);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--clr-bg);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.nav__hamburger:hover { background: var(--clr-bg-alt); }
.nav__hamburger span {
  width: 22px; height: 2px;
  background: var(--clr-text);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.nav__drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--clr-bg);
  z-index: 999;
  padding: var(--space-xl) var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-lg);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
}
.nav__drawer.open { transform: translateX(0); }
.nav__drawer .nav__link {
  font-size: 1.1rem;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}
.btn:hover::before { background: rgba(255,255,255,0.12); }
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-dark));
  color: var(--clr-white);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover { box-shadow: 0 12px 40px rgba(197,139,88,0.45); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}
.btn--outline:hover { border-color: var(--clr-accent); color: var(--clr-accent); }

.btn--ghost {
  background: var(--clr-bg-alt);
  color: var(--clr-text);
}
.btn--ghost:hover { background: var(--clr-bg-dark); }

.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--sm { padding: 9px 20px; font-size: 0.85rem; }
.btn--full { width: 100%; }

/* COD Sticky CTA */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  padding: var(--space-md) var(--space-lg);
  background: var(--clr-bg);
  border-top: 1px solid var(--clr-border);
  box-shadow: 0 -8px 32px rgba(44,42,41,0.12);
}
.sticky-cta .btn { border-radius: var(--radius-md); font-size: 1rem; padding: 15px 24px; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  overflow: hidden;
  transition: all var(--transition-slow);
  position: relative;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }

/* Product Card */
.product-card { cursor: pointer; }
.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--clr-bg-alt);
}
.product-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.25,0.46,0.45,0.94);
}
.product-card:hover .product-card__img { transform: scale(1.06); }
.product-card__badge {
  position: absolute;
  top: var(--space-sm); left: var(--space-sm);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge--hot { background: #FF6B47; color: white; }
.badge--new { background: var(--clr-accent); color: white; }
.badge--sale { background: var(--clr-text); color: white; }
.badge--trending { background: linear-gradient(135deg, #7B61FF, #4F9EFF); color: white; }

.product-card__wishlist {
  position: absolute;
  top: var(--space-sm); right: var(--space-sm);
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-base);
  border: none;
  box-shadow: var(--shadow-sm);
}
.product-card__wishlist:hover { background: white; transform: scale(1.1); }
.product-card__wishlist.active { color: #e74c3c; }

.product-card__body { padding: var(--space-md); }
.product-card__category { font-size: 0.72rem; font-weight: 600; color: var(--clr-accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-xs); }
.product-card__title { font-size: 0.95rem; font-weight: 600; color: var(--clr-text); line-height: 1.4; margin-bottom: var(--space-sm); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__rating { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-sm); }
.stars { color: #F59E0B; font-size: 0.85rem; letter-spacing: 1px; }
.rating-count { font-size: 0.78rem; color: var(--clr-text-muted); }
.product-card__price { display: flex; align-items: baseline; gap: var(--space-sm); }
.price-current { font-size: 1.1rem; font-weight: 700; color: var(--clr-text); }
.price-original { font-size: 0.85rem; color: var(--clr-text-light); text-decoration: line-through; }
.price-discount { font-size: 0.78rem; font-weight: 700; color: var(--clr-success); background: rgba(74,124,89,0.1); padding: 2px 6px; border-radius: var(--radius-full); }

.product-card__footer { padding: var(--space-sm) var(--space-md) var(--space-md); border-top: 1px solid var(--clr-bg-alt); }
.product-card__footer .btn { font-size: 0.85rem; padding: 10px 16px; border-radius: var(--radius-md); }

/* ── HERO SECTION ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--clr-bg) 0%, var(--clr-bg-alt) 50%, #EBE3D5 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
  background: radial-gradient(circle, rgba(197,139,88,0.12), transparent 70%);
  border-radius: var(--radius-full);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, rgba(197,139,88,0.08), transparent 70%);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.hero__content { position: relative; z-index: 1; max-width: 620px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-sm);
  background: rgba(197,139,88,0.12);
  color: var(--clr-accent-dark);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}
.hero__title { margin-bottom: var(--space-lg); }
.hero__title em { color: var(--clr-accent); font-style: normal; }
.hero__tagline { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--clr-text-muted); margin-bottom: var(--space-xl); line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.hero__trust { margin-top: var(--space-xl); display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.trust-item { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.85rem; color: var(--clr-text-muted); font-weight: 500; }
.trust-icon { font-size: 1rem; }

.hero__visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 45%;
  display: flex; align-items: center; justify-content: flex-end;
  pointer-events: none;
}
.hero__visual-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--clr-bg-dark) 0%, var(--clr-bg-alt) 100%);
  clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-2xl) var(--space-2xl) var(--space-2xl) var(--space-3xl);
}
.hero__product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  width: 100%;
  max-width: 420px;
}
.hero__mini-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/5;
}
.hero__mini-card img { width: 100%; height: 100%; object-fit: cover; }
.hero__mini-card:first-child { margin-top: var(--space-xl); }

/* ── SECTION HEADERS ────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header__eyebrow {
  display: inline-block;
  color: var(--clr-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}
.section-header__title { margin-bottom: var(--space-md); }
.section-header__sub { color: var(--clr-text-muted); max-width: 520px; margin-inline: auto; }

/* ── CATEGORY CARDS ─────────────────────────────────────────── */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
  group: '';
}
.category-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.category-card:hover .category-card__img { transform: scale(1.08); }
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,42,41,0.8) 0%, rgba(44,42,41,0.2) 50%, transparent 100%);
}
.category-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-lg);
  color: white;
}
.category-card__icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.category-card__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: var(--space-xs); }
.category-card__count { font-size: 0.82rem; opacity: 0.75; }
.category-card__arrow {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 0.9rem;
  transition: all var(--transition-base);
}
.category-card:hover .category-card__arrow { background: var(--clr-accent); transform: scale(1.1); }

/* ── MARQUEE / TICKER ───────────────────────────────────────── */
.marquee-bar {
  background: var(--clr-text);
  color: white;
  padding: 10px 0;
  overflow: hidden;
}
.marquee-inner {
  display: flex;
  gap: var(--space-3xl);
  animation: marquee 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item { font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; display: flex; align-items: center; gap: var(--space-sm); }
.marquee-dot { width: 4px; height: 4px; background: var(--clr-accent); border-radius: var(--radius-full); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── TESTIMONIALS ───────────────────────────────────────────── */
.testimonial-card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  padding: var(--space-xl);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-md); right: var(--space-lg);
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--clr-accent-light);
  line-height: 1;
  opacity: 0.5;
}
.testimonial-card__stars { color: #F59E0B; margin-bottom: var(--space-md); font-size: 0.9rem; }
.testimonial-card__text { color: var(--clr-text-muted); line-height: 1.7; margin-bottom: var(--space-lg); font-style: italic; }
.testimonial-card__author { display: flex; align-items: center; gap: var(--space-md); }
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: var(--clr-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--clr-accent);
  font-size: 1rem;
}
.testimonial-card__name { font-weight: 600; font-size: 0.9rem; }
.testimonial-card__loc { font-size: 0.78rem; color: var(--clr-text-muted); }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--clr-text); margin-bottom: var(--space-sm); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  background: var(--clr-white);
  color: var(--clr-text);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(197,139,88,0.15);
}
.form-input::placeholder { color: var(--clr-text-light); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }

/* ── CHECKOUT ───────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--space-xl); align-items: start; }
.checkout-section {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.checkout-section__title { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-lg); padding-bottom: var(--space-md); border-bottom: 1px solid var(--clr-bg-alt); display: flex; align-items: center; gap: var(--space-sm); }
.checkout-section__icon { color: var(--clr-accent); }

.cod-badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: linear-gradient(135deg, rgba(197,139,88,0.1), rgba(197,139,88,0.05));
  border: 1.5px solid rgba(197,139,88,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}
.cod-badge__icon { font-size: 1.8rem; }
.cod-badge__title { font-weight: 700; font-size: 0.95rem; }
.cod-badge__sub { font-size: 0.8rem; color: var(--clr-text-muted); }

.order-summary {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  padding: var(--space-lg);
  position: sticky;
  top: calc(var(--nav-h) + var(--space-lg));
}
.order-summary__title { font-weight: 700; font-size: 1rem; margin-bottom: var(--space-lg); }
.order-item { display: flex; gap: var(--space-md); margin-bottom: var(--space-md); }
.order-item__img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--clr-bg-alt); }
.order-item__info { flex: 1; }
.order-item__name { font-size: 0.875rem; font-weight: 600; margin-bottom: 2px; }
.order-item__qty { font-size: 0.78rem; color: var(--clr-text-muted); }
.order-item__price { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.order-divider { border: none; border-top: 1px solid var(--clr-bg-alt); margin: var(--space-md) 0; }
.order-row { display: flex; justify-content: space-between; font-size: 0.875rem; margin-bottom: var(--space-sm); color: var(--clr-text-muted); }
.order-row.total { font-size: 1.05rem; font-weight: 700; color: var(--clr-text); margin-top: var(--space-sm); }
.order-row.total .val { color: var(--clr-accent); }

/* ── ACCORDION / FAQ ────────────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid var(--clr-border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-text);
  transition: color var(--transition-fast);
  text-align: left;
}
.accordion-trigger:hover { color: var(--clr-accent); }
.accordion-trigger__icon {
  width: 28px; height: 28px;
  border-radius: var(--radius-full);
  background: var(--clr-bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  flex-shrink: 0;
}
.accordion-trigger[aria-expanded="true"] .accordion-trigger__icon { background: var(--clr-accent); color: white; transform: rotate(45deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.accordion-content.open { max-height: 400px; }
.accordion-content__inner { padding-bottom: var(--space-lg); color: var(--clr-text-muted); line-height: 1.7; }

/* ── PRODUCT PAGE ───────────────────────────────────────────── */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: start; padding-top: var(--space-xl); }
.product-gallery__main {
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--clr-bg-alt);
  margin-bottom: var(--space-md);
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumbs { display: flex; gap: var(--space-sm); }
.thumb {
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
  background: var(--clr-bg-alt);
}
.thumb.active, .thumb:hover { border-color: var(--clr-accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info__category { font-size: 0.78rem; font-weight: 700; color: var(--clr-accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-sm); }
.product-info__title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: var(--space-md); line-height: 1.25; }
.product-info__rating { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.product-info__price-block { margin-bottom: var(--space-lg); padding: var(--space-lg); background: var(--clr-bg-alt); border-radius: var(--radius-md); }
.product-info__price { font-size: 2rem; font-weight: 800; color: var(--clr-text); }
.product-info__price-original { font-size: 1rem; color: var(--clr-text-light); text-decoration: line-through; margin-left: var(--space-sm); }
.product-info__saving { font-size: 0.85rem; font-weight: 700; color: var(--clr-success); margin-top: var(--space-xs); }

.qty-selector { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg); }
.qty-btn { width: 40px; height: 40px; border-radius: var(--radius-md); border: 1.5px solid var(--clr-border); background: white; font-size: 1.2rem; font-weight: 600; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.qty-btn:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.qty-value { font-size: 1.1rem; font-weight: 700; min-width: 40px; text-align: center; }

.product-ctas { display: flex; flex-direction: column; gap: var(--space-md); margin-bottom: var(--space-lg); }
.product-features { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.feature-item { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.82rem; color: var(--clr-text-muted); }
.feature-item__icon { color: var(--clr-success); font-size: 0.9rem; }

/* ── CART ───────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--space-xl); align-items: start; }
.cart-item {
  display: flex; gap: var(--space-lg);
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--clr-border);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  transition: box-shadow var(--transition-base);
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item__img { width: 100px; height: 100px; border-radius: var(--radius-md); object-fit: cover; flex-shrink: 0; background: var(--clr-bg-alt); }
.cart-item__info { flex: 1; }
.cart-item__name { font-weight: 600; margin-bottom: var(--space-xs); }
.cart-item__cat { font-size: 0.78rem; color: var(--clr-text-muted); margin-bottom: var(--space-md); }
.cart-item__actions { display: flex; align-items: center; gap: var(--space-lg); }
.cart-item__remove { font-size: 0.8rem; color: var(--clr-error); background: none; font-weight: 500; cursor: pointer; }
.cart-item__remove:hover { text-decoration: underline; }
.cart-item__price { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }

/* ── TOAST ──────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: var(--space-lg); right: var(--space-lg); z-index: 9999; display: flex; flex-direction: column; gap: var(--space-sm); }
.toast {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--clr-text);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  min-width: 240px; max-width: 340px;
  animation: toast-in 300ms ease forwards;
}
.toast.removing { animation: toast-out 300ms ease forwards; }
.toast__icon { font-size: 1.1rem; flex-shrink: 0; }
.toast--success { border-left: 3px solid var(--clr-success); }
.toast--error { border-left: 3px solid var(--clr-error); }
.toast--info { border-left: 3px solid var(--clr-accent); }
@keyframes toast-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--clr-text);
  color: rgba(255,255,255,0.85);
  padding: var(--space-3xl) 0 var(--space-xl);
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-2xl); }
.footer__brand-name { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: white; margin-bottom: var(--space-sm); }
.footer__brand-name span { color: var(--clr-accent); }
.footer__tagline { font-size: 0.875rem; opacity: 0.65; margin-bottom: var(--space-lg); }
.footer__social { display: flex; gap: var(--space-sm); }
.footer__social-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition-base);
  color: rgba(255,255,255,0.75);
  border: none;
}
.footer__social-btn:hover { background: var(--clr-accent); color: white; }
.footer__col-title { font-weight: 700; font-size: 0.875rem; color: white; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--space-lg); }
.footer__link { display: block; font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-bottom: var(--space-sm); transition: color var(--transition-fast); }
.footer__link:hover { color: var(--clr-accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-lg); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); font-size: 0.8rem; opacity: 0.55; }
.footer__payment-icons { display: flex; gap: var(--space-sm); align-items: center; }
.payment-icon { background: rgba(255,255,255,0.12); border-radius: 4px; padding: 4px 8px; font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.8); }

/* ── ANIMATIONS / SCROLL ────────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 600ms ease, transform 600ms ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transition: opacity 600ms ease; }
.fade-in.visible { opacity: 1; }
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }

/* ── BADGES / PILLS ─────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: var(--space-xs); padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 600; }
.pill--success { background: rgba(74,124,89,0.12); color: var(--clr-success); }
.pill--warning { background: rgba(245,158,11,0.12); color: #B45309; }
.pill--error { background: rgba(192,57,43,0.1); color: var(--clr-error); }
.pill--info { background: rgba(197,139,88,0.12); color: var(--clr-accent-dark); }

/* ── PAGE HEADER ────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--clr-bg-alt), var(--clr-bg-dark));
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--clr-border);
}
.breadcrumb { display: flex; align-items: center; gap: var(--space-sm); font-size: 0.82rem; color: var(--clr-text-muted); margin-bottom: var(--space-md); }
.breadcrumb__sep { opacity: 0.4; }

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: var(--space-3xl) var(--space-lg); }
.empty-state__icon { font-size: 4rem; margin-bottom: var(--space-lg); opacity: 0.3; }
.empty-state__title { font-size: 1.3rem; font-weight: 700; margin-bottom: var(--space-md); }
.empty-state__text { color: var(--clr-text-muted); margin-bottom: var(--space-xl); }

/* ── ORDER CONFIRMED ────────────────────────────────────────── */
.order-success {
  max-width: 640px;
  margin: var(--space-3xl) auto;
  text-align: center;
  padding: var(--space-3xl);
  background: var(--clr-white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--clr-border);
}
.order-success__icon { font-size: 5rem; margin-bottom: var(--space-lg); }
.order-success__title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--clr-success); margin-bottom: var(--space-md); }
.order-success__id { color: var(--clr-accent); font-weight: 700; font-size: 1.1rem; }
.order-details-box { background: var(--clr-bg-alt); border-radius: var(--radius-md); padding: var(--space-lg); margin: var(--space-xl) 0; text-align: left; }
.order-details-row { display: flex; justify-content: space-between; padding: var(--space-sm) 0; border-bottom: 1px solid var(--clr-border); font-size: 0.875rem; }
.order-details-row:last-child { border-bottom: none; font-weight: 700; }

/* ── UTILITY ────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--clr-border); margin: var(--space-xl) 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .hero__visual { display: none; }
  .hero { min-height: 80vh; padding: var(--space-2xl) 0; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .product-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
  .product-ctas { padding-bottom: 100px; }
  .section { padding-block: var(--space-2xl); }
  .section--lg { padding-block: var(--space-2xl); }
  .checkout-layout .order-summary { order: -1; }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-md); }
  .grid-auto { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .product-card__body { padding: var(--space-sm); }
  .product-card__title { font-size: 0.85rem; }
  .price-current { font-size: 0.95rem; }
}

/* ── STATS BAR GRID (responsive — used in index & about) ────── */
.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  text-align: center;
}

/* ── MOBILE STACK UTILITY ────────────────────────────────────── */
.mobile-stack { margin-bottom: var(--space-xl); }

/* ── EXTENDED MOBILE FIXES ──────────────────────────────────── */
@media (max-width: 768px) {
  /* Stats bar: 4-col → 2×2 */
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }

  /* Hero trust items compact */
  .hero__trust { gap: var(--space-md); }
  .trust-item { font-size: 0.8rem; }

  /* mobile-stack: 2-col → 1-col */
  .mobile-stack { grid-template-columns: 1fr !important; }

  /* Order success: full-width */
  .order-success {
    margin: var(--space-xl) var(--space-md);
    padding: var(--space-xl) var(--space-md);
    border-radius: var(--radius-lg);
  }
  .order-success__title { font-size: 1.5rem; }

  /* Accordion: bigger tap targets */
  .accordion-trigger { min-height: 56px; }

  /* Toast: full-width at bottom above sticky CTA */
  .toast-container { left: var(--space-md); right: var(--space-md); bottom: 90px; }
  .toast { min-width: unset; max-width: 100%; }

  /* Cart item: tighter */
  .cart-item__img { width: 76px; height: 76px; }
  .cart-item { padding: var(--space-md); gap: var(--space-md); }

  /* Footer top padding */
  .footer { padding-top: var(--space-2xl); }

  /* Checkout bottom clearance so form isn't hidden behind sticky confirm btn */
  #cod-form { padding-bottom: 24px; }
}

@media (max-width: 480px) {
  /* Stats bar compact */
  .stats-bar-grid { gap: var(--space-sm); }
  .stats-bar-grid .display-2 { font-size: 1.6rem; }

  /* Hero trust ultra-compact */
  .hero__trust { gap: var(--space-sm); }
  .trust-item { font-size: 0.75rem; gap: 4px; }

  /* Confirm order button */
  #place-order-btn { font-size: 0.95rem; padding: 16px; }

  /* Cart item compact */
  .cart-item__img { width: 64px; height: 64px; }
  .cart-item__name { font-size: 0.875rem; }

  /* Thank you order rows */
  .order-details-row { font-size: 0.8rem; flex-wrap: wrap; gap: 4px; }

  /* Sticky CTA tight */
  .sticky-cta { padding: var(--space-sm) var(--space-md); gap: var(--space-sm); }
  .sticky-cta .btn { font-size: 0.875rem; padding: 12px 16px; }

  /* Product card footer */
  .product-card__footer { padding: var(--space-xs) var(--space-sm) var(--space-sm); }
}

