/* ═══════════════════════════════════════════════════════════════════
   ÉLAN — Design System & Stylesheet
   Brand: Contemporary Fashion & Accessories
   Palette: Cream / Charcoal / Terracotta
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS ─────────────────────────────────────────────────────── */
:root {
  --charcoal:      #1c1917;
  --charcoal-2:    #292524;
  --charcoal-3:    #44403c;
  --charcoal-4:    #78716c;
  --cream:         #faf9f7;
  --cream-2:       #f5f4f0;
  --cream-3:       #eae8e3;
  --terra:         #c17c5a;
  --terra-dk:      #a3674a;
  --terra-lt:      #d4956f;
  --terra-glow:    rgba(193,124,90,.15);
  --white:         #ffffff;
  --success:       #16a34a;
  --error:         #dc2626;
  --warning:       #d97706;

  --bg:            var(--cream);
  --bg-2:          var(--cream-2);
  --bg-3:          var(--cream-3);
  --surface:       var(--white);
  --text:          var(--charcoal);
  --text-2:        var(--charcoal-3);
  --text-3:        var(--charcoal-4);
  --border:        rgba(28,25,23,.08);
  --border-2:      rgba(28,25,23,.15);
  --shadow-sm:     0 1px 4px rgba(28,25,23,.08);
  --shadow:        0 4px 16px rgba(28,25,23,.10);
  --shadow-lg:     0 8px 32px rgba(28,25,23,.14);

  --f-display:     'Cormorant Garamond', Georgia, serif;
  --f-body:        'Inter', system-ui, -apple-system, sans-serif;

  --s1:  .25rem;  /* 4px  */
  --s2:  .5rem;   /* 8px  */
  --s3:  .75rem;  /* 12px */
  --s4:  1rem;    /* 16px */
  --s5:  1.5rem;  /* 24px */
  --s6:  2rem;    /* 32px */
  --s7:  3rem;    /* 48px */
  --s8:  4rem;    /* 64px */
  --s9:  6rem;    /* 96px */

  --r-xs:   3px;
  --r-sm:   6px;
  --r:      10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 100px;

  --ease:    cubic-bezier(.4,0,.2,1);
  --spring:  cubic-bezier(.34,1.56,.64,1);
  --dur:     .2s;
  --dur-md:  .35s;
  --dur-lg:  .6s;

  --demo-bar-h: 36px;
  --nav-h:      68px;
  --content-top: calc(var(--demo-bar-h) + var(--nav-h));
  --max-w:      1280px;
  --gutter:     clamp(1rem, 4vw, 2rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

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

/* ── 3. DEMO BAR ────────────────────────────────────────────────────── */
.demo-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--demo-bar-h);
  background: #0a0a0a;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  font-size: 12px;
  letter-spacing: .02em;
  z-index: 9999;
}
.demo-bar__left {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.demo-bar__dot {
  color: var(--terra-lt);
  font-size: 10px;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}
.demo-bar__exit {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-pill);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.demo-bar__exit:hover {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}

/* ── 4. APP HEADER ──────────────────────────────────────────────────── */
.app-header {
  position: fixed;
  top: var(--demo-bar-h);
  left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250,249,247,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 100;
  transition: border-color var(--dur-md) var(--ease), box-shadow var(--dur-md) var(--ease);
}
.app-header.scrolled {
  border-bottom-color: var(--border-2);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s5);
}

/* Logo */
.elan-logo {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--charcoal);
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease);
}
.elan-logo:hover { opacity: .7; }

/* Category Nav */
.header-nav {
  display: flex;
  gap: var(--s6);
  flex: 1;
}
.header-nav__link {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease);
}
.header-nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--terra);
  transition: width var(--dur-md) var(--ease);
}
.header-nav__link:hover,
.header-nav__link.active { color: var(--charcoal); }
.header-nav__link:hover::after,
.header-nav__link.active::after { width: 100%; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-left: auto;
}

.icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  color: var(--charcoal);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { background: var(--cream-3); }
.icon-btn svg { width: 20px; height: 20px; stroke-width: 1.5; }

.badge-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 16px; height: 16px;
  background: var(--terra);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  pointer-events: none;
}
.badge-count[data-count="0"] { display: none; }

.account-label {
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Search */
.search-wrap { position: relative; }
.search-field-inner {
  display: flex;
  align-items: center;
  gap: var(--s2);
  background: var(--cream-3);
  border-radius: var(--r-pill);
  padding: 6px var(--s3) 6px var(--s4);
  width: 200px;
  transition: width var(--dur-md) var(--ease);
}
.search-field-inner input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 13px;
  color: var(--text);
}
.search-field-inner input::placeholder { color: var(--text-3); }
#search-field { display: flex; align-items: center; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px; height: 40px;
  gap: 5px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--dur-md) var(--ease), opacity var(--dur) var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── 5. MOBILE NAV ──────────────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: calc(var(--demo-bar-h) + var(--nav-h));
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--s5) var(--gutter);
  z-index: 99;
  display: none;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: var(--s3) 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  transition: color var(--dur) var(--ease);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--charcoal); }

/* ── 6. CART DRAWER ─────────────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.cart-drawer.open { pointer-events: all; }

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,25,23,.4);
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease);
}
.cart-drawer.open .cart-drawer__overlay { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-md) var(--ease);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open .cart-drawer__panel { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s5) var(--s6);
  border-bottom: 1px solid var(--border);
}
.cart-drawer__header h2 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
}
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--s5) var(--s6);
}
.cart-drawer__footer {
  padding: var(--s5) var(--s6);
  border-top: 1px solid var(--border);
}
.drawer-item {
  display: flex;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
}
.drawer-item:last-child { border-bottom: none; }
.drawer-item__img {
  width: 64px; height: 80px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--cream-3);
  flex-shrink: 0;
}
.drawer-item__info { flex: 1; min-width: 0; }
.drawer-item__name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-item__meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.drawer-item__price { font-size: 13px; font-weight: 600; margin-top: var(--s2); }
.drawer-empty { text-align: center; padding: var(--s8) 0; color: var(--text-3); }
.drawer-empty svg { margin: 0 auto var(--s4); opacity: .3; width: 48px; height: 48px; }
.drawer-total {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--s4);
}

/* ── 7. TOAST ───────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--s6);
  right: var(--s6);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s5);
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--r-lg);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  max-width: 300px;
  pointer-events: all;
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--dur-md) var(--spring), opacity var(--dur-md) var(--ease);
}
.toast.visible { transform: translateY(0); opacity: 1; }
.toast.exit    { transform: translateY(-10px); opacity: 0; }
.toast__icon { flex-shrink: 0; font-size: 16px; }
.toast--success .toast__icon::before { content:'✓'; color: #6ee7b7; }
.toast--error   .toast__icon::before { content:'✕'; color: #fca5a5; }
.toast--info    .toast__icon::before { content:'◉'; color: var(--terra-lt); }

/* ── 8. PAGE CONTENT AREA ───────────────────────────────────────────── */
.app-content {
  padding-top: var(--content-top);
  min-height: 100vh;
}

.page-view {
  animation: fadeIn var(--dur-md) var(--ease) both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── 9. SKELETON ────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--cream-3) 25%, var(--cream-2) 50%, var(--cream-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-card {
  border-radius: var(--r);
  overflow: hidden;
}
.skel-img  { width: 100%; aspect-ratio: 3/4; }
.skel-line { height: 14px; margin-top: var(--s2); border-radius: 4px; }
.skel-line.short { width: 60%; }
.skel-line.xshort { width: 40%; }

/* ── 10. HERO CAROUSEL ──────────────────────────────────────────────── */
.hero-carousel {
  position: relative;
  height: min(85vh, 700px);
  overflow: hidden;
  background: var(--charcoal);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--s9) var(--gutter) calc(var(--s9) + 20px);
  opacity: 0;
  transition: opacity var(--dur-lg) var(--ease);
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: all; }
.hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,.75) 0%, rgba(28,25,23,.2) 60%, transparent 100%);
}
.hero-slide__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.hero-slide__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra-lt);
  margin-bottom: var(--s3);
}
.hero-slide__headline {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: .01em;
  margin-bottom: var(--s3);
}
.hero-slide__sub {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  margin-bottom: var(--s6);
  max-width: 380px;
}
.hero-controls {
  position: absolute;
  bottom: var(--s6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--s3);
  z-index: 2;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background var(--dur) var(--ease), width var(--dur-md) var(--spring);
  border: none;
}
.carousel-dot.active { background: var(--white); width: 20px; }
.carousel-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(250,249,247,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--r-pill);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background var(--dur) var(--ease);
  backdrop-filter: blur(4px);
}
.carousel-arrow:hover { background: rgba(250,249,247,.3); }
.carousel-arrow--prev { left: var(--gutter); }
.carousel-arrow--next { right: var(--gutter); }

/* ── 11. CATEGORY GRID ──────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--s6);
  gap: var(--s4);
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: .01em;
}
.section-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--terra);
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-link:hover { color: var(--terra-dk); }

.category-section { padding: var(--s9) 0; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}
.category-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.category-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-lg) var(--ease);
}
.category-card:hover img { transform: scale(1.06); }
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,25,23,.65) 0%, transparent 60%);
}
.category-card__label {
  position: absolute;
  bottom: var(--s5);
  left: var(--s5);
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
}
.category-card__count {
  position: absolute;
  bottom: calc(var(--s5) - 18px);
  left: var(--s5);
  font-size: 11px;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}

/* ── 12. PRODUCT GRID ───────────────────────────────────────────────── */
.shop-section { padding: var(--s7) 0 var(--s9); }
.shop-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w, 240px) 1fr;
  gap: var(--s8);
  align-items: start;
}
.shop-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s6);
}
.shop-count { font-size: 13px; color: var(--text-3); }
.sort-wrap { display: flex; align-items: center; gap: var(--s2); }
.sort-wrap label { font-size: 13px; color: var(--text-3); }
.sort-select {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 6px var(--s3);
  background: var(--white);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231c1917' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6) var(--s5);
}
.product-grid.two-col { grid-template-columns: repeat(2, 1fr); }

/* ── 13. PRODUCT CARD ───────────────────────────────────────────────── */
.product-card {
  position: relative;
  cursor: pointer;
}
.product-card__img-wrap {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--cream-3);
  aspect-ratio: 3/4;
  margin-bottom: var(--s3);
}
.product-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-lg) var(--ease);
}
.product-card:hover .product-card__img { transform: scale(1.05); }

.product-card__badge {
  position: absolute;
  top: var(--s3); left: var(--s3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  z-index: 1;
}
.badge--sale { background: var(--terra); color: var(--white); }
.badge--new  { background: var(--charcoal); color: var(--white); }

.product-card__wishlist {
  position: absolute;
  top: var(--s3); right: var(--s3);
  width: 34px; height: 34px;
  background: var(--white);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.8);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--spring);
  z-index: 1;
  box-shadow: var(--shadow-sm);
}
.product-card:hover .product-card__wishlist { opacity: 1; transform: scale(1); }
.product-card__wishlist.active,
.product-card:hover .product-card__wishlist.active { opacity: 1; }
.product-card__wishlist.active svg { fill: var(--terra); stroke: var(--terra); }
.product-card__wishlist svg { width: 16px; height: 16px; stroke: var(--charcoal); transition: fill var(--dur) var(--ease), stroke var(--dur) var(--ease); }

.product-card__name {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  transition: color var(--dur) var(--ease);
}
.product-card:hover .product-card__name { color: var(--terra); }

.product-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.product-card__price { font-size: 14px; font-weight: 600; color: var(--text); }
.product-card__original {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: line-through;
}
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  color: var(--charcoal-4);
  margin-left: auto;
}
.star { color: #f59e0b; font-size: 11px; }

/* ── 14. FILTER SIDEBAR ─────────────────────────────────────────────── */
.filter-sidebar {
  position: sticky;
  top: calc(var(--content-top) + var(--s6));
}
.filter-sidebar__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s5);
}
.filter-group { margin-bottom: var(--s6); }
.filter-group__label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--s3);
  color: var(--text);
}
.filter-option {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 4px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-2);
  transition: color var(--dur) var(--ease);
}
.filter-option:hover { color: var(--text); }
.filter-option input[type="checkbox"] { accent-color: var(--terra); }
.filter-clear {
  font-size: 12px;
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  margin-top: var(--s4);
  display: inline-block;
}

/* Price range */
.price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-3);
  margin-top: var(--s2);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--terra);
}

/* Size filter pills */
.size-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.size-filter-pill {
  padding: 4px 10px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.size-filter-pill:hover { border-color: var(--terra); color: var(--terra); }
.size-filter-pill.active { background: var(--terra); border-color: var(--terra); color: var(--white); }

/* ── 15. NEW ARRIVALS ───────────────────────────────────────────────── */
.new-arrivals-section { padding: var(--s9) 0; background: var(--cream-2); }
.new-arrivals-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
  margin-top: var(--s6);
}

/* ── 16. BRAND STRIP ────────────────────────────────────────────────── */
.brand-strip {
  padding: var(--s9) var(--gutter);
  background: var(--charcoal);
  text-align: center;
}
.brand-strip__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra-lt);
  margin-bottom: var(--s4);
}
.brand-strip__headline {
  font-family: var(--f-display);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto var(--s6);
}
.brand-strip__sub {
  font-size: 15px;
  color: rgba(255,255,255,.55);
  max-width: 480px;
  margin: 0 auto var(--s7);
}

/* ── 17. PRODUCT DETAIL (PDP) ───────────────────────────────────────── */
.pdp-section { padding: var(--s7) 0 var(--s9); }
.pdp-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: var(--s7);
}
.pdp-breadcrumb a { transition: color var(--dur) var(--ease); }
.pdp-breadcrumb a:hover { color: var(--terra); }
.pdp-breadcrumb__sep { opacity: .4; }

.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.pdp-gallery { position: sticky; top: calc(var(--content-top) + var(--s6)); }
.pdp-main-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--cream-3);
  margin-bottom: var(--s3);
}
.pdp-thumbs {
  display: flex;
  gap: var(--s3);
}
.pdp-thumb {
  width: 68px; height: 88px;
  object-fit: cover;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--dur) var(--ease);
  background: var(--cream-3);
}
.pdp-thumb.active { border-color: var(--charcoal); }
.pdp-thumb:hover:not(.active) { border-color: var(--charcoal-4); }

.pdp-info { padding-top: var(--s4); }
.pdp-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: var(--s3);
}
.pdp-name {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: var(--s3);
}
.pdp-rating {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s5);
  font-size: 13px;
  color: var(--text-3);
}
.pdp-price-wrap {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-bottom: var(--s6);
}
.pdp-price { font-size: 24px; font-weight: 700; }
.pdp-original {
  font-size: 16px;
  color: var(--text-3);
  text-decoration: line-through;
}
.pdp-save {
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
  background: rgba(22,163,74,.1);
  padding: 3px 8px;
  border-radius: var(--r-pill);
}

/* Color selector */
.selector-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--s3);
}
.selector-label span { font-weight: 400; color: var(--text-3); margin-left: var(--s2); }
.color-swatches {
  display: flex;
  gap: var(--s3);
  margin-bottom: var(--s5);
}
.color-swatch {
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  cursor: pointer;
  outline-offset: 3px;
  transition: transform var(--dur) var(--spring);
  position: relative;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active { outline: 2px solid var(--charcoal); }

/* Size selector */
.size-btns {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s6);
}
.size-btn {
  min-width: 44px; height: 40px;
  padding: 0 var(--s3);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
  transition: all var(--dur) var(--ease);
}
.size-btn:hover:not(:disabled) {
  border-color: var(--charcoal);
}
.size-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}
.size-btn:disabled,
.size-btn.oos {
  opacity: .35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Qty stepper */
.qty-row { display: flex; gap: var(--s3); margin-bottom: var(--s5); }
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.qty-btn {
  width: 40px; height: 40px;
  font-size: 18px;
  color: var(--text);
  transition: background var(--dur) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--cream-3); }
.qty-num {
  width: 40px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 var(--s2);
}

/* PDP action buttons */
.pdp-actions { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s6); }

/* Accordion */
.accordion { border-top: 1px solid var(--border); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) 0;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
}
.accordion__icon {
  width: 16px; height: 16px;
  transition: transform var(--dur-md) var(--ease);
  flex-shrink: 0;
}
.accordion__item.open .accordion__icon { transform: rotate(180deg); }
.accordion__body {
  padding-bottom: var(--s4);
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* Related strip */
.related-section { padding: var(--s9) 0; border-top: 1px solid var(--border); margin-top: var(--s9); }

/* ── 18. CART PAGE ──────────────────────────────────────────────────── */
.cart-page { padding: var(--s7) 0 var(--s9); }
.cart-page-title {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: var(--s7);
}
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s8);
  align-items: start;
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: var(--s5);
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-item__img {
  width: 100px; height: 128px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--cream-3);
}
.cart-item__name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}
.cart-item__meta { font-size: 13px; color: var(--text-3); margin-bottom: var(--s3); }
.cart-item__remove {
  font-size: 12px;
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  margin-top: var(--s3);
  display: inline-block;
  transition: color var(--dur) var(--ease);
}
.cart-item__remove:hover { color: var(--error); }
.cart-item__price { font-size: 16px; font-weight: 700; text-align: right; }

/* Cart summary */
.cart-summary {
  position: sticky;
  top: calc(var(--content-top) + var(--s6));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6);
}
.cart-summary__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--s5);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: var(--s3);
  color: var(--text-2);
}
.cart-summary-row.total {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
  margin-top: var(--s3);
}
.cart-summary-row.discount { color: var(--success); }

/* Promo code */
.promo-wrap {
  display: flex;
  gap: var(--s2);
  margin: var(--s5) 0;
}
.promo-input {
  flex: 1;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 9px var(--s4);
  font-size: 13px;
  outline: none;
  transition: border-color var(--dur) var(--ease);
  text-transform: uppercase;
}
.promo-input:focus { border-color: var(--terra); }
.promo-msg { font-size: 12px; margin-top: var(--s2); }
.promo-msg.success { color: var(--success); }
.promo-msg.error   { color: var(--error); }

/* ── 19. CHECKOUT ───────────────────────────────────────────────────── */
.checkout-page { padding: var(--s7) 0 var(--s9); }
.checkout-page-title {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: var(--s7);
}
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s8);
  align-items: start;
}

/* Progress steps */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--s7);
}
.step {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}
.step.active  { color: var(--charcoal); }
.step.done    { color: var(--success); }
.step__num {
  width: 26px; height: 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.step.done .step__num {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}
.step.done .step__num::after { content: '✓'; }
.step.active .step__num { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.step-line {
  flex: 1;
  height: 1px;
  background: var(--border-2);
  margin: 0 var(--s2);
  max-width: 60px;
}

/* Form */
.checkout-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6);
}
.form-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s5);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form-grid.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.span-2 { grid-column: span 2; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.form-input {
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 10px var(--s4);
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur) var(--ease);
  background: var(--white);
  color: var(--text);
  width: 100%;
}
.form-input:focus { border-color: var(--terra); }
.form-input.error { border-color: var(--error); }
.form-error { font-size: 12px; color: var(--error); }

/* Shipping options */
.shipping-options { display: flex; flex-direction: column; gap: var(--s3); }
.shipping-option {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  border: 1.5px solid var(--border-2);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.shipping-option.selected { border-color: var(--charcoal); }
.shipping-option input[type="radio"] { accent-color: var(--charcoal); }
.shipping-option__info { flex: 1; }
.shipping-option__name { font-size: 14px; font-weight: 600; }
.shipping-option__desc { font-size: 12px; color: var(--text-3); }
.shipping-option__price { font-size: 14px; font-weight: 700; }

/* Card payment */
.card-input-wrap { position: relative; }
.card-input-wrap .card-type-icon {
  position: absolute;
  right: var(--s4); top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  pointer-events: none;
}

/* Checkout sidebar summary */
.checkout-summary {
  position: sticky;
  top: calc(var(--content-top) + var(--s6));
  background: var(--cream-2);
  border-radius: var(--r-lg);
  padding: var(--s6);
}
.co-sum-item {
  display: flex;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
}
.co-sum-item:last-child { border-bottom: none; }
.co-sum-img {
  width: 52px; height: 68px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--cream-3);
  flex-shrink: 0;
}
.co-sum-name { font-size: 13px; font-weight: 500; }
.co-sum-meta { font-size: 12px; color: var(--text-3); }
.co-sum-price { font-size: 13px; font-weight: 600; margin-left: auto; }

/* Confirmation */
.confirmation-page { padding: var(--s9) 0; text-align: center; }
.confirmation-icon {
  width: 72px; height: 72px;
  background: rgba(22,163,74,.1);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s6);
  font-size: 32px;
}
.confirmation-id { font-family: var(--f-display); font-size: 48px; font-weight: 600; margin: var(--s3) 0; }
.confirmation-sub { font-size: 15px; color: var(--text-2); max-width: 480px; margin: 0 auto var(--s7); }
.order-timeline {
  display: flex;
  gap: var(--s6);
  justify-content: center;
  margin-bottom: var(--s8);
  flex-wrap: wrap;
}
.timeline-step { text-align: center; }
.timeline-step__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  background: var(--cream-3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s3);
}
.timeline-step__label { font-size: 12px; font-weight: 600; }
.timeline-step__sub { font-size: 11px; color: var(--text-3); }

/* ── 20. AUTH PAGES ─────────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--content-top));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s9) var(--gutter);
  background: var(--bg-2);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s8) var(--s7);
  box-shadow: var(--shadow);
}
.auth-logo {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .12em;
  text-align: center;
  margin-bottom: var(--s6);
  color: var(--charcoal);
}
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s6);
}
.auth-tab {
  flex: 1;
  padding: var(--s3) var(--s4);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.auth-tab.active { color: var(--charcoal); border-bottom-color: var(--charcoal); }

/* OTP */
.otp-hint {
  background: rgba(193,124,90,.1);
  border: 1px solid rgba(193,124,90,.25);
  border-radius: var(--r);
  padding: var(--s3) var(--s4);
  font-size: 13px;
  color: var(--terra-dk);
  margin-bottom: var(--s5);
  text-align: center;
}
.otp-hint strong { font-size: 18px; letter-spacing: .12em; }
.otp-input {
  text-align: center;
  letter-spacing: .2em;
  font-size: 24px;
  font-weight: 700;
}
.otp-resend {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  margin-top: var(--s4);
}
.otp-resend button {
  color: var(--terra);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 13px;
}
.otp-resend button:disabled { opacity: .4; cursor: not-allowed; }

/* ── 21. ACCOUNT PAGE ───────────────────────────────────────────────── */
.account-page { padding: var(--s7) 0 var(--s9); }
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s8);
  align-items: start;
}
.account-sidebar-nav {
  position: sticky;
  top: calc(var(--content-top) + var(--s6));
}
.account-sidebar-nav h3 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--s5);
}
.account-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--dur) var(--ease);
  margin-bottom: var(--s1);
}
.account-sidebar-nav a:hover { background: var(--cream-3); color: var(--text); }
.account-sidebar-nav a.active { background: var(--charcoal); color: var(--white); }
.account-sidebar-nav a svg { width: 16px; height: 16px; opacity: .6; }
.account-sidebar-nav a.active svg { opacity: 1; }

.account-logout {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  font-size: 14px;
  font-weight: 500;
  color: var(--error);
  cursor: pointer;
  border-radius: var(--r-sm);
  margin-top: var(--s5);
  transition: background var(--dur) var(--ease);
}
.account-logout:hover { background: rgba(220,38,38,.06); }

/* Orders table */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: var(--s3) var(--s4);
  border-bottom: 2px solid var(--border);
}
.orders-table td {
  padding: var(--s4) var(--s4);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.orders-table tr:last-child td { border-bottom: none; }
.status-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.status-badge--processing { background: rgba(217,119,6,.12); color: #92400e; }
.status-badge--shipped    { background: rgba(59,130,246,.12); color: #1d4ed8; }
.status-badge--delivered  { background: rgba(22,163,74,.12); color: #15803d; }
.status-badge--cancelled  { background: rgba(220,38,38,.1); color: var(--error); }
.status-badge--pending    { background: var(--cream-3); color: var(--text-3); }

/* ── 22. ADMIN PANEL ────────────────────────────────────────────────── */
.admin-page { padding: var(--s7) 0 var(--s9); }
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--s8);
  align-items: start;
}
.admin-sidebar {
  position: sticky;
  top: calc(var(--content-top) + var(--s6));
  background: var(--charcoal);
  border-radius: var(--r-lg);
  padding: var(--s6);
  color: rgba(255,255,255,.8);
}
.admin-sidebar__brand {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.admin-sidebar__role {
  font-size: 11px;
  color: var(--terra-lt);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--s6);
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: all var(--dur) var(--ease);
  margin-bottom: var(--s1);
}
.admin-nav-link:hover { background: rgba(255,255,255,.08); color: var(--white); }
.admin-nav-link.active { background: rgba(255,255,255,.12); color: var(--white); }
.admin-nav-link svg { width: 16px; height: 16px; opacity: .7; }
.admin-nav-link.active svg { opacity: 1; }

/* Stats cards */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s5); margin-bottom: var(--s7); }
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s5);
}
.stat-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s4);
  font-size: 18px;
}
.stat-card__icon.orange { background: rgba(193,124,90,.12); }
.stat-card__icon.blue   { background: rgba(59,130,246,.1); }
.stat-card__icon.green  { background: rgba(22,163,74,.1); }
.stat-card__icon.purple { background: rgba(139,92,246,.1); }
.stat-card__value {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-card__label { font-size: 13px; color: var(--text-3); }
.stat-card__trend { font-size: 12px; color: var(--success); margin-top: 4px; }

/* Admin chart */
.admin-chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin-bottom: var(--s6);
}
.admin-chart-card h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--s5);
}
.chart-svg { width: 100%; overflow: visible; }

/* Admin data table */
.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--s6);
}
.admin-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s5) var(--s6);
  border-bottom: 1px solid var(--border);
}
.admin-card__header h3 {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: var(--s3) var(--s5);
  background: var(--cream-2);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: var(--s4) var(--s5);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--cream-2); }
.admin-img-thumb {
  width: 44px; height: 56px;
  object-fit: cover;
  border-radius: var(--r-sm);
  background: var(--cream-3);
}
.admin-action-btns { display: flex; gap: var(--s2); }
.btn-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background var(--dur) var(--ease);
}
.btn-icon--edit { color: var(--charcoal-4); }
.btn-icon--edit:hover { background: var(--cream-3); color: var(--charcoal); }
.btn-icon--del  { color: rgba(220,38,38,.5); }
.btn-icon--del:hover { background: rgba(220,38,38,.08); color: var(--error); }

/* Status dropdown (inline) */
.status-select {
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 3px 8px;
  outline: none;
  background: var(--white);
  cursor: pointer;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%231c1917' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  padding-right: 20px;
}
.tracking-input {
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 5px var(--s3);
  font-size: 13px;
  outline: none;
  width: 140px;
  transition: border-color var(--dur) var(--ease);
}
.tracking-input:focus { border-color: var(--terra); }
.tracking-saved { font-size: 11px; color: var(--success); margin-left: 4px; }

/* Inventory grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}
.inv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--s4);
}
.inv-card__name { font-size: 13px; font-weight: 500; margin-bottom: var(--s3); }
.inv-stock-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--cream-3);
  margin: var(--s2) 0;
  overflow: hidden;
}
.inv-stock-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .4s var(--ease);
}
.inv-stock-fill.high   { background: var(--success); }
.inv-stock-fill.medium { background: var(--warning); }
.inv-stock-fill.low    { background: var(--error); }
.inv-qty-input {
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 4px var(--s3);
  font-size: 13px;
  width: 70px;
  outline: none;
  transition: border-color var(--dur) var(--ease);
}
.inv-qty-input:focus { border-color: var(--terra); }

/* ── 23. WISHLIST ───────────────────────────────────────────────────── */
.wishlist-page { padding: var(--s7) 0 var(--s9); }
.wishlist-page-title {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: var(--s7);
}
.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}

/* ── 24. EMPTY STATE ────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--s9) var(--gutter);
}
.empty-state__icon {
  width: 80px; height: 80px;
  background: var(--cream-3);
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s6);
}
.empty-state__icon svg { width: 36px; height: 36px; color: var(--text-3); }
.empty-state__title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: var(--s3);
}
.empty-state__msg { font-size: 15px; color: var(--text-2); margin-bottom: var(--s6); max-width: 360px; margin-left: auto; margin-right: auto; }

/* ── 25. MODAL ──────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,.5);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  animation: fadeIn var(--dur-md) var(--ease);
}
.modal-panel {
  background: var(--white);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp var(--dur-md) var(--spring);
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s6) var(--s6) 0;
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--s4);
  margin-bottom: var(--s5);
}
.modal-header h2 { font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.modal-body { padding: 0 var(--s6) var(--s6); }
.modal-footer {
  padding: var(--s4) var(--s6) var(--s6);
  display: flex;
  gap: var(--s3);
  justify-content: flex-end;
}

/* ── 26. BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 12px var(--s6);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--primary {
  background: var(--charcoal);
  color: var(--white);
  border-color: var(--charcoal);
}
.btn--primary:hover:not(:disabled) { background: var(--charcoal-2); border-color: var(--charcoal-2); }

.btn--accent {
  background: var(--terra);
  color: var(--white);
  border-color: var(--terra);
}
.btn--accent:hover:not(:disabled) { background: var(--terra-dk); border-color: var(--terra-dk); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn--ghost:hover:not(:disabled) { border-color: var(--charcoal); background: var(--cream-3); }

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--outline-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn--full { width: 100%; }
.btn--sm { padding: 8px var(--s4); font-size: 12px; }

.btn--loading {
  position: relative;
  color: transparent !important;
}
.btn--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: var(--r-pill);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 27. FOOTER ─────────────────────────────────────────────────────── */
.elan-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.6);
  padding: var(--s9) var(--gutter) var(--s6);
}
.elan-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: var(--s8);
  margin-bottom: var(--s8);
}
.elan-footer__brand-name {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .12em;
  margin-bottom: var(--s4);
}
.elan-footer__tagline { font-size: 14px; color: rgba(255,255,255,.45); }
.elan-footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--s4);
}
.elan-footer__col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-bottom: var(--s2);
  transition: color var(--dur) var(--ease);
  cursor: pointer;
}
.elan-footer__col a:hover { color: var(--white); }
.elan-footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s5);
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.elan-footer__sb-credit {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.elan-footer__sb-credit a {
  color: var(--terra-lt);
  transition: color var(--dur) var(--ease);
}
.elan-footer__sb-credit a:hover { color: var(--terra); }

/* ── 28. UTILITIES ──────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.gap-3 { gap: var(--s3); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }

/* ── 29. RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .elan-footer__inner { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .inventory-grid { grid-template-columns: repeat(3, 1fr); }
  .new-arrivals-scroll { grid-template-columns: repeat(3, 1fr); }
  .wishlist-grid { grid-template-columns: repeat(3, 1fr); }
  .header-nav { display: none; }
  .burger { display: flex; }
}

@media (max-width: 768px) {
  .pdp-layout { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
  .account-layout, .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .account-sidebar-nav { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.span-2 { grid-column: span 1; }
  .checkout-steps { flex-wrap: wrap; gap: var(--s3); }
  .step-line { display: none; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item__price { grid-column: 2; }
  .elan-footer__inner { grid-template-columns: 1fr; gap: var(--s6); }
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .new-arrivals-scroll { grid-template-columns: repeat(2, 1fr); }
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
  .header-actions .search-wrap { display: none; }
  .hero-carousel { height: 60vh; }
}

@media (max-width: 480px) {
  :root { --nav-h: 60px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s3); }
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .inventory-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: 1fr 1fr; }
  .new-arrivals-scroll { grid-template-columns: repeat(2, 1fr); }
  .pdp-thumbs { display: none; }
  .auth-card { padding: var(--s6) var(--s5); }
  .elan-footer__bottom { flex-direction: column; gap: var(--s3); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
