/* ============================================================
   LuxeNest Interiors — Premium Design System
   ============================================================ */

/* ── 1. CSS Custom Properties ─────────────────────────────── */
:root {
  --ivory:        #FAF7F2;
  --ivory-dark:   #F2EDE4;
  --beige:        #E8DDD0;
  --beige-mid:    #D4C4B0;
  --warm-white:   #FDFCFA;
  --walnut:       #6B4C35;
  --walnut-light: #8B6347;
  --walnut-dark:  #4A3225;
  --charcoal:     #2C2C2C;
  --charcoal-mid: #3D3D3D;
  --charcoal-light:#5A5A5A;
  --olive:        #7A8C6E;
  --olive-light:  #96A882;
  --olive-dark:   #5C6B52;
  --cream:        #F5EFE6;
  --sand:         #C9B99A;
  --terracotta:   #C4785A;
  --gold:         #C9A96E;
  --gold-light:   #E2C48A;

  --text-primary:   #1A1A1A;
  --text-secondary: #555555;
  --text-muted:     #888888;
  --text-light:     #AAAAAA;
  --text-inverse:   #FDFCFA;
  --bg-primary:     #FAF7F2;
  --bg-secondary:   #F2EDE4;
  --bg-dark:        #1E1C1A;
  --bg-darker:      #141210;
  --border:         rgba(107,76,53,0.15);
  --border-strong:  rgba(107,76,53,0.3);
  --success:        #4A7C59;
  --error:          #B85450;
  --warning:        #C49A3C;
  --info:           #4A6FA5;

  --font-display: 'Playfair Display','Georgia',serif;
  --font-body:    'Inter','Helvetica Neue',Arial,sans-serif;
  --font-accent:  'Cormorant Garamond','Georgia',serif;

  --space-1:  0.25rem; --space-2:  0.5rem;  --space-3:  0.75rem;
  --space-4:  1rem;    --space-5:  1.25rem; --space-6:  1.5rem;
  --space-8:  2rem;    --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;

  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;
  --radius-xl: 24px; --radius-2xl: 32px; --radius-full: 9999px;

  --shadow-xs:  0 1px 3px rgba(26,26,26,.06);
  --shadow-sm:  0 2px 8px rgba(26,26,26,.08);
  --shadow-md:  0 4px 20px rgba(26,26,26,.10);
  --shadow-lg:  0 8px 40px rgba(26,26,26,.12);
  --shadow-xl:  0 16px 60px rgba(26,26,26,.15);
  --shadow-2xl: 0 24px 80px rgba(26,26,26,.20);
  --shadow-warm: 0 8px 40px rgba(107,76,53,.15);

  --ease-default: cubic-bezier(.4,0,.2,1);
  --ease-out:     cubic-bezier(0,0,.2,1);
  --ease-bounce:  cubic-bezier(.34,1.56,.64,1);
  --ease-smooth:  cubic-bezier(.25,.46,.45,.94);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --duration-slower: 600ms;

  --container-xl: 1280px;
  --container-2xl: 1440px;
  --container-md: 768px;
  --nav-height:    72px;
  --bar-height:    40px;
}

/* ── Reset ───────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input,textarea,select { font-family: inherit; }
ul,ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ── Typography ──────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase;
  color: var(--walnut);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem,4vw,3.5rem);
  font-weight: 600; line-height: 1.15;
}
.section-subtitle {
  font-size: 1.0625rem; color: var(--text-secondary);
  line-height: 1.7; max-width: 600px;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%; max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: clamp(1rem,4vw,2.5rem);
}
.container-wide  { max-width: var(--container-2xl); }
.container-narrow { max-width: var(--container-md); }
.section    { padding-block: clamp(4rem,8vw,7rem); }
.section-sm { padding-block: clamp(2.5rem,5vw,4rem); }
.section-lg { padding-block: clamp(6rem,10vw,10rem); }

/* ── Announcement Bar ────────────────────────────────────── */
.announcement-bar {
  height: var(--bar-height);
  background: var(--charcoal);
  color: var(--ivory);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 500; position: relative; z-index: 100; overflow: hidden;
}
.announcement-bar .ticker {
  display: flex; gap: 4rem;
  animation: ticker 30s linear infinite; white-space: nowrap;
}
.announcement-bar .ticker span::before {
  content: "✦"; margin-right: 2rem; color: var(--gold);
}
.announcement-bar .close-bar {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  opacity: .6; transition: opacity .15s; font-size: 1.1rem; line-height: 1;
}
.announcement-bar .close-bar:hover { opacity: 1; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 900;
  height: var(--nav-height);
  background: rgba(250,247,242,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration-base), box-shadow var(--duration-base);
}
.nav.scrolled { background: rgba(250,247,242,.98); box-shadow: var(--shadow-sm); }
.nav-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  max-width: var(--container-xl); margin-inline: auto;
  padding-inline: clamp(1rem,3vw,2rem);
}
.nav-logo {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--charcoal); white-space: nowrap; flex-shrink: 0;
}
.nav-logo span { color: var(--walnut); }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  font-size: .875rem; font-weight: 500; color: var(--text-secondary);
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  transition: color var(--duration-fast); position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%; height: 1px; background: var(--walnut);
  transition: transform var(--duration-base) var(--ease-smooth);
}
.nav-link:hover,
.nav-link.active { color: var(--walnut); }
.nav-link:hover::after,
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  min-width: 220px; padding: .5rem;
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-base), transform var(--duration-base) var(--ease-out);
  z-index: 100;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-radius: var(--radius-md);
  font-size: .875rem; color: var(--text-secondary);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.nav-dropdown a:hover { background: var(--ivory-dark); color: var(--walnut); }

.nav-actions { display: flex; align-items: center; gap: .25rem; }
.nav-icon-btn {
  position: relative; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--text-secondary);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.nav-icon-btn:hover { background: var(--ivory-dark); color: var(--walnut); }
.nav-badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  background: var(--walnut); color: white;
  font-size: .65rem; font-weight: 700;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  transition: transform var(--duration-fast) var(--ease-bounce);
}
.nav-badge.bump { animation: badgeBump .3s var(--ease-bounce); }
@keyframes badgeBump {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.4); }
}

.nav-search-wrap {
  flex: 1; max-width: 320px; position: relative;
}
.nav-search {
  width: 100%; height: 38px;
  background: var(--ivory-dark);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  padding: 0 1rem 0 2.5rem;
  font-size: .875rem; color: var(--text-primary);
  transition: border-color var(--duration-base), background var(--duration-base), box-shadow var(--duration-base);
  outline: none;
}
.nav-search::placeholder { color: var(--text-muted); }
.nav-search:focus {
  background: white;
  border-color: var(--beige-mid);
  box-shadow: 0 0 0 3px rgba(107,76,53,.08);
}
.nav-search-icon {
  position: absolute; left: .75rem; top: 50%;
  transform: translateY(-50%); color: var(--text-muted); pointer-events: none;
}
.search-results-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  max-height: 420px; overflow-y: auto; z-index: 200;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity var(--duration-base), transform var(--duration-base);
}
.search-results-dropdown.visible {
  opacity: 1; transform: translateY(0); pointer-events: all;
}
.search-result-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; cursor: pointer;
  transition: background var(--duration-fast);
}
.search-result-item:hover { background: var(--ivory-dark); }
.search-result-item img {
  width: 48px; height: 48px; object-fit: cover;
  border-radius: var(--radius-sm); flex-shrink: 0;
}
.search-result-name { font-size: .875rem; font-weight: 500; }
.search-result-price { font-size: .8rem; color: var(--walnut); font-weight: 600; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: var(--radius-md); transition: background var(--duration-fast);
}
.nav-hamburger:hover { background: var(--ivory-dark); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--charcoal); border-radius: var(--radius-full);
  transition: transform var(--duration-base), opacity var(--duration-fast);
}
.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-menu {
  position: fixed; inset: 0;
  top: calc(var(--bar-height) + var(--nav-height));
  background: var(--warm-white); z-index: 850;
  padding: 1.5rem; overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-smooth);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
  font-size: 1.0625rem; font-weight: 500;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: .875rem; font-weight: 600; letter-spacing: .04em;
  white-space: nowrap;
  transition: all var(--duration-base) var(--ease-default);
  outline: none; position: relative; overflow: hidden;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--charcoal); color: white;
  border: 2px solid var(--charcoal); box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--walnut-dark); border-color: var(--walnut-dark);
  box-shadow: var(--shadow-warm); transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--charcoal);
  border: 2px solid var(--charcoal);
}
.btn-outline:hover { background: var(--charcoal); color: white; }
.btn-warm {
  background: var(--walnut); color: white;
  border: 2px solid var(--walnut); box-shadow: var(--shadow-sm);
}
.btn-warm:hover {
  background: var(--walnut-dark); border-color: var(--walnut-dark);
  transform: translateY(-1px); box-shadow: var(--shadow-warm);
}
.btn-ghost {
  background: transparent; color: var(--walnut);
  border: 2px solid transparent; padding-inline: 1rem;
}
.btn-ghost:hover { background: var(--ivory-dark); border-color: var(--border); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  background-size: 200% auto;
  color: var(--charcoal); border: none;
  box-shadow: 0 4px 15px rgba(201,169,110,.3);
  font-weight: 700;
}
.btn-gold:hover {
  background-position: right center;
  box-shadow: 0 6px 25px rgba(201,169,110,.45);
  transform: translateY(-2px);
}
.btn-sm  { padding: .5rem 1.25rem; font-size: .8rem; }
.btn-lg  { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-xl  { padding: 1.125rem 2.75rem; font-size: 1.0625rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-md); }
.btn.loading { pointer-events: none; opacity: .7; }
.btn.loading::before {
  content: ''; width: 16px; height: 16px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%; animation: spin .7s linear infinite; margin-right: .5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Product Cards ───────────────────────────────────────── */
.product-card {
  background: white; border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-xs);
  border: 1px solid var(--border); position: relative;
  transition: transform var(--duration-slow) var(--ease-smooth),
              box-shadow var(--duration-slow) var(--ease-smooth);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-image {
  position: relative; overflow: hidden; aspect-ratio: 4/3;
  background: var(--ivory-dark);
}
.product-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-smooth);
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-badge {
  position: absolute; top: .75rem; left: .75rem;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; z-index: 2;
}
.badge-new     { background: var(--charcoal); color: white; }
.badge-sale    { background: var(--terracotta); color: white; }
.badge-popular { background: var(--gold); color: var(--charcoal); }
.badge-limited { background: var(--olive); color: white; }

.product-card-actions {
  position: absolute; top: .75rem; right: .75rem;
  display: flex; flex-direction: column; gap: .5rem;
  z-index: 2; opacity: 0; transform: translateX(8px);
  transition: opacity var(--duration-base), transform var(--duration-base);
}
.product-card:hover .product-card-actions { opacity: 1; transform: translateX(0); }
.product-card-action-btn {
  width: 36px; height: 36px; background: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); color: var(--text-secondary);
  transition: background var(--duration-fast), color var(--duration-fast),
              transform var(--duration-fast) var(--ease-bounce);
}
.product-card-action-btn:hover { background: var(--walnut); color: white; transform: scale(1.1); }
.product-card-action-btn.active { background: var(--terracotta); color: white; }

.quick-add-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(44,44,44,.92); backdrop-filter: blur(4px);
  padding: .75rem 1rem;
  transform: translateY(100%);
  transition: transform var(--duration-base) var(--ease-out);
  display: flex; align-items: center; justify-content: center; gap: .75rem;
}
.product-card:hover .quick-add-overlay { transform: translateY(0); }
.quick-add-overlay .btn {
  color: white; font-size: .8rem; padding: .5rem 1.25rem;
  background: transparent; border: 1.5px solid rgba(255,255,255,.4);
  border-radius: var(--radius-full);
}
.quick-add-overlay .btn:hover { background: white; color: var(--charcoal); }
.quick-add-overlay .btn-add {
  background: var(--walnut); border-color: var(--walnut);
}

.product-card-body { padding: 1rem 1.25rem 1.25rem; }
.product-card-category {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--walnut-light); margin-bottom: .25rem;
}
.product-card-name {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--charcoal); line-height: 1.3; margin-bottom: .5rem;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.product-card-price {
  display: flex; align-items: baseline; gap: .5rem; margin-bottom: .75rem;
}
.price-current   { font-size: 1.125rem; font-weight: 700; color: var(--charcoal); }
.price-original  { font-size: .875rem; color: var(--text-muted); text-decoration: line-through; }
.price-sale      { color: var(--terracotta); }
.price-discount  {
  font-size: .75rem; font-weight: 700;
  background: rgba(196,120,90,.1); color: var(--terracotta);
  padding: 1px 6px; border-radius: var(--radius-sm);
}
.product-card-swatches { display: flex; gap: .25rem; margin-bottom: .75rem; }
.swatch {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: border-color var(--duration-fast), transform var(--duration-fast) var(--ease-bounce);
}
.swatch:hover,.swatch.active { border-color: var(--charcoal); transform: scale(1.2); }
.product-card-rating { display: flex; align-items: center; gap: .5rem; }
.stars { display: flex; gap: 1px; }
.star       { color: var(--gold); font-size: .875rem; }
.star-empty { color: var(--beige-mid); }
.rating-count { font-size: .78rem; color: var(--text-muted); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--bar-height) - var(--nav-height));
  overflow: hidden; display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(26,24,22,.75) 0%, rgba(26,24,22,.4) 50%, rgba(26,24,22,.1) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; padding-block: 5rem; }
.hero-eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem,6vw,5rem);
  font-weight: 700; line-height: 1.08;
  color: white; margin-bottom: 1.5rem; letter-spacing: -.02em;
}
.hero-title em { font-style: italic; color: var(--gold-light); }
.hero-subtitle {
  font-size: clamp(1rem,1.5vw,1.125rem);
  color: rgba(255,255,255,.8); line-height: 1.7;
  margin-bottom: 2.5rem; max-width: 520px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll-cta {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.6); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll-cta .scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.6), transparent);
}
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ── Section Headers ─────────────────────────────────────── */
.section-header { margin-bottom: clamp(2rem,4vw,3.5rem); }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-inline: auto; }
.section-header-flex {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: clamp(2rem,4vw,3.5rem); flex-wrap: wrap;
}

/* ── Category Cards ──────────────────────────────────────── */
.category-card {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; aspect-ratio: 3/4; cursor: pointer;
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-smooth);
}
.category-card:hover img { transform: scale(1.08); }
.category-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,.65) 0%, transparent 60%);
  transition: background var(--duration-slow);
}
.category-card:hover::after {
  background: linear-gradient(to top, rgba(26,26,26,.75) 0%, rgba(26,26,26,.15) 60%);
}
.category-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem; z-index: 1;
  transform: translateY(4px); transition: transform var(--duration-base);
}
.category-card:hover .category-card-content { transform: translateY(0); }
.category-card-name {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: white; margin-bottom: .25rem;
}
.category-card-count { font-size: .8rem; color: rgba(255,255,255,.7); }
.category-card-cta {
  margin-top: .75rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: .5rem;
  opacity: 0; transition: opacity var(--duration-base);
}
.category-card:hover .category-card-cta { opacity: 1; }

/* ── AI Showcase ─────────────────────────────────────────── */
.ai-showcase {
  background: var(--charcoal);
  border-radius: var(--radius-2xl); overflow: hidden; position: relative;
}
.ai-showcase::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,.12) 0%, transparent 70%);
  pointer-events: none;
}
.ai-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(201,169,110,.15);
  border: 1px solid rgba(201,169,110,.3);
  border-radius: var(--radius-full);
  padding: 6px 16px; font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.ai-badge .dot {
  width: 6px; height: 6px; background: var(--gold);
  border-radius: 50%; animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: .7; }
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: .8rem; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: .5rem;
}
.form-input,.form-select,.form-textarea {
  width: 100%; background: var(--ivory-dark);
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  padding: .75rem 1rem; font-size: .9375rem; color: var(--text-primary);
  transition: border-color var(--duration-base), background var(--duration-base),
              box-shadow var(--duration-base);
  outline: none; -webkit-appearance: none;
}
.form-input:focus,.form-select:focus,.form-textarea:focus {
  background: white; border-color: var(--walnut);
  box-shadow: 0 0 0 3px rgba(107,76,53,.1);
}
.form-input::placeholder,.form-textarea::placeholder { color: var(--text-muted); }
.form-input.error,.form-select.error,.form-textarea.error { border-color: var(--error); }
.form-error { font-size: .8rem; color: var(--error); margin-top: .25rem; }
.form-hint  { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  background-size: 16px; padding-right: 2.5rem;
}
.form-check { display: flex; align-items: flex-start; gap: .75rem; cursor: pointer; }
.form-check input[type=checkbox],.form-check input[type=radio] {
  width: 18px; height: 18px; flex-shrink: 0;
  accent-color: var(--walnut); cursor: pointer; margin-top: 2px;
}

/* ── Cart Sidebar ────────────────────────────────────────── */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(26,26,26,.5);
  backdrop-filter: blur(4px); z-index: 1000;
  opacity: 0; pointer-events: none; transition: opacity var(--duration-base);
}
.sidebar-overlay.visible { opacity: 1; pointer-events: all; }
.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(480px,100vw); background: white; z-index: 1001;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 60px rgba(0,0,0,.15);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-smooth);
}
.sidebar.open { transform: translateX(0); }
.sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sidebar-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.sidebar-close {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); color: var(--text-muted);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.sidebar-close:hover { background: var(--ivory-dark); color: var(--charcoal); }
.sidebar-body { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.sidebar-footer {
  padding: 1.25rem 1.5rem; border-top: 1px solid var(--border);
  flex-shrink: 0; background: var(--ivory);
}

.cart-item {
  display: flex; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  width: 80px; height: 80px; flex-shrink: 0;
  border-radius: var(--radius-md); overflow: hidden; background: var(--ivory-dark);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: .9rem; font-weight: 600; color: var(--charcoal);
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-variant { font-size: .78rem; color: var(--text-muted); margin-bottom: .5rem; }
.cart-item-footer { display: flex; align-items: center; justify-content: space-between; }
.qty-control {
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border); border-radius: var(--radius-full); padding: 2px 6px;
}
.qty-btn {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.1rem; color: var(--text-secondary);
  transition: background var(--duration-fast);
}
.qty-btn:hover { background: var(--ivory-dark); color: var(--charcoal); }
.qty-value { font-size: .875rem; font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-price { font-size: .9375rem; font-weight: 700; }
.cart-item-remove {
  color: var(--text-muted); font-size: .75rem;
  transition: color var(--duration-fast);
  padding: 2px 4px; border-radius: var(--radius-sm);
}
.cart-item-remove:hover { color: var(--error); background: rgba(184,84,80,.08); }

/* ── Toast ───────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 2000; display: flex; flex-direction: column; gap: .75rem;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: .75rem;
  background: white; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); padding: 1rem 1.25rem;
  min-width: 280px; max-width: 360px; pointer-events: all;
  animation: toastIn .4s var(--ease-bounce) forwards;
  border-left: 4px solid var(--success);
}
.toast.error   { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast.info    { border-left-color: var(--info); }
.toast.out     { animation: toastOut .3s var(--ease-default) forwards; }
.toast-title   { font-size: .875rem; font-weight: 600; }
.toast-message { font-size: .8rem; color: var(--text-muted); margin-top: 1px; }
@keyframes toastIn  { from { opacity:0; transform: translateX(120%); } to { opacity:1; transform: translateX(0); } }
@keyframes toastOut { from { opacity:1; transform: translateX(0); }    to { opacity:0; transform: translateX(120%); } }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(26,24,22,.6);
  backdrop-filter: blur(8px); z-index: 1100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none;
  transition: opacity var(--duration-base);
}
.modal-overlay.visible { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  transform: scale(.95) translateY(20px);
  transition: transform var(--duration-slow) var(--ease-bounce);
}
.modal-overlay.visible .modal { transform: scale(1) translateY(0); }
.modal-lg  { max-width: 800px; }
.modal-xl  { max-width: 1080px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
}
.modal-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.modal-body  { padding: 0 1.5rem 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--border);
  display: flex; gap: .75rem; justify-content: flex-end;
}

/* ── Skeleton ────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--ivory-dark) 25%, var(--beige) 50%, var(--ivory-dark) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Filter Chips ────────────────────────────────────────── */
.filter-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 6px 14px; background: var(--ivory-dark);
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 500; color: var(--text-secondary);
  cursor: pointer; transition: all var(--duration-fast); white-space: nowrap;
  user-select: none;
}
.filter-chip:hover { border-color: var(--walnut-light); color: var(--walnut); background: var(--cream); }
.filter-chip.active { background: var(--charcoal); color: white; border-color: var(--charcoal); }
.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Scroll Progress ─────────────────────────────────────── */
.scroll-progress-bar {
  position: fixed; top: 0; left: 0; width: 0%; height: 3px;
  background: linear-gradient(90deg, var(--walnut), var(--gold));
  z-index: 1000; transition: width .1s linear;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

/* ── Steps Indicator ─────────────────────────────────────── */
.steps-indicator { display: flex; align-items: flex-start; margin-bottom: 2.5rem; }
.step-item { display: flex; flex-direction: column; align-items: center; flex: 1; }
.step-item:last-child { flex: none; }
.step-row { display: flex; align-items: center; width: 100%; }
.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .875rem; font-weight: 700; flex-shrink: 0;
  border: 2px solid var(--beige-mid); background: white; color: var(--text-muted);
  transition: all var(--duration-base); z-index: 1;
}
.step-circle.active { background: var(--walnut); border-color: var(--walnut); color: white; box-shadow: 0 0 0 4px rgba(107,76,53,.15); }
.step-circle.done   { background: var(--success); border-color: var(--success); color: white; }
.step-line { flex: 1; height: 2px; background: var(--beige); transition: background var(--duration-slow); }
.step-line.done { background: var(--success); }
.step-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-muted); margin-top: .5rem; text-align: center;
}
.step-item.active .step-label { color: var(--walnut); }
.step-item.done .step-label   { color: var(--success); }

/* ── Upload Zone ─────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--beige-mid); border-radius: var(--radius-xl);
  padding: 3rem 2rem; text-align: center; cursor: pointer;
  transition: all var(--duration-base); background: var(--ivory); position: relative;
}
.upload-zone:hover,.upload-zone.drag-over {
  border-color: var(--walnut); background: var(--cream);
  box-shadow: 0 0 0 4px rgba(107,76,53,.08);
}
.upload-zone input[type=file] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.upload-zone-icon {
  width: 64px; height: 64px; background: var(--cream); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem; color: var(--walnut);
  transition: transform var(--duration-base) var(--ease-bounce);
}
.upload-zone:hover .upload-zone-icon { transform: scale(1.1); }
.upload-zone-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: .5rem; }
.upload-zone-sub { font-size: .875rem; color: var(--text-muted); }
.upload-progress-bar {
  height: 4px; background: var(--beige); border-radius: var(--radius-full); overflow: hidden; margin-top: 1rem;
}
.upload-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--walnut), var(--gold));
  border-radius: var(--radius-full); transition: width var(--duration-base);
}

/* ── Before/After ────────────────────────────────────────── */
.before-after {
  position: relative; border-radius: var(--radius-xl);
  overflow: hidden; user-select: none;
}
.ba-before,.ba-after { position: absolute; inset: 0; }
.ba-before { z-index: 1; }
.ba-after   { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 4px; background: white; z-index: 3; cursor: ew-resize;
}
.ba-handle-circle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 40px; height: 40px; background: white; border-radius: 50%;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal);
}
.ba-label {
  position: absolute; bottom: 1rem; z-index: 4;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(26,26,26,.7); color: white; padding: 4px 12px; border-radius: var(--radius-full);
}
.ba-label.before { left: 1rem; }
.ba-label.after  { right: 1rem; }

/* ── AI Chat FAB ─────────────────────────────────────────── */
.ai-chat-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 800;
  width: 60px; height: 60px; background: var(--charcoal);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-xl); color: white; cursor: pointer;
  transition: transform var(--duration-base) var(--ease-bounce), background var(--duration-fast);
  border: 2px solid rgba(255,255,255,.1);
}
.ai-chat-fab:hover { transform: scale(1.1); background: var(--walnut); }
.ai-chat-dot {
  position: absolute; top: 4px; right: 4px;
  width: 12px; height: 12px; background: var(--gold);
  border-radius: 50%; border: 2px solid var(--charcoal);
  animation: pulse 2s ease-in-out infinite;
}
.ai-chat-panel {
  position: fixed;
  bottom: calc(1.5rem + 60px + .75rem); right: 1.5rem; z-index: 800;
  width: min(400px, calc(100vw - 2rem)); height: min(580px, calc(100vh - 200px));
  background: white; border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(.9) translateY(20px); opacity: 0; pointer-events: none;
  transform-origin: bottom right;
  transition: transform var(--duration-slow) var(--ease-bounce), opacity var(--duration-base);
  border: 1px solid var(--border);
}
.ai-chat-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }
.ai-chat-header {
  padding: 1rem 1.25rem; background: var(--charcoal); color: white; flex-shrink: 0;
}
.ai-chat-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.ai-chat-status { font-size: .72rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: 5px; }
.ai-status-dot { width: 6px; height: 6px; background: #5BCA85; border-radius: 50%; }
.ai-chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.chat-message { max-width: 85%; animation: msgIn .3s var(--ease-out); }
.chat-message.user { align-self: flex-end; }
.chat-message.bot  { align-self: flex-start; }
.chat-bubble {
  padding: .75rem 1rem; border-radius: var(--radius-lg);
  font-size: .875rem; line-height: 1.55;
}
.chat-message.user .chat-bubble {
  background: var(--charcoal); color: white;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg);
}
.chat-message.bot .chat-bubble {
  background: var(--ivory-dark); color: var(--text-primary);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm);
}
.typing-indicator {
  display: flex; gap: 4px; padding: .75rem 1rem;
  background: var(--ivory-dark);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-sm);
  width: fit-content;
}
.typing-dot {
  width: 6px; height: 6px; background: var(--text-muted);
  border-radius: 50%; animation: typingBounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes msgIn { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
.ai-chat-suggestions {
  display: flex; gap: .5rem; padding: 0 1.25rem .75rem;
  overflow-x: auto; scrollbar-width: none; flex-shrink: 0;
}
.ai-chat-suggestions::-webkit-scrollbar { display: none; }
.suggestion-chip {
  white-space: nowrap; padding: 5px 12px;
  background: var(--ivory-dark); border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: .75rem; color: var(--text-secondary);
  cursor: pointer; flex-shrink: 0; transition: all var(--duration-fast);
}
.suggestion-chip:hover { background: var(--cream); border-color: var(--walnut-light); color: var(--walnut); }
.ai-chat-input-row {
  display: flex; align-items: center; gap: .5rem;
  padding: .75rem 1.25rem 1rem; border-top: 1px solid var(--border); flex-shrink: 0;
}
.ai-chat-input {
  flex: 1; background: var(--ivory-dark); border: 1.5px solid transparent;
  border-radius: var(--radius-full); padding: .5rem 1rem; font-size: .875rem;
  outline: none; transition: border-color var(--duration-fast);
}
.ai-chat-input:focus { border-color: var(--beige-mid); background: white; }
.ai-chat-send {
  width: 36px; height: 36px; flex-shrink: 0; background: var(--charcoal); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background var(--duration-fast);
}
.ai-chat-send:hover { background: var(--walnut); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark); color: rgba(255,255,255,.75);
  padding-top: clamp(4rem,8vw,7rem); padding-bottom: 1.5rem;
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem; padding-bottom: clamp(3rem,5vw,5rem);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand-logo {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: white; margin-bottom: 1rem;
}
.footer-brand-logo span { color: var(--gold); }
.footer-tagline {
  font-size: .875rem; line-height: 1.7;
  color: rgba(255,255,255,.6); max-width: 280px; margin-bottom: 1.5rem;
}
.footer-socials { display: flex; gap: .75rem; margin-bottom: 1.5rem; }
.footer-social {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); transition: all var(--duration-fast);
}
.footer-social:hover { background: var(--walnut); border-color: var(--walnut); color: white; transform: translateY(-2px); }
.footer-heading {
  font-size: .7rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 1rem;
}
.footer-links { display: flex; flex-direction: column; gap: .75rem; }
.footer-link { font-size: .875rem; color: rgba(255,255,255,.65); transition: color var(--duration-fast); }
.footer-link:hover { color: white; }
.footer-newsletter {
  background: rgba(255,255,255,.05); border-radius: var(--radius-lg);
  padding: 1.25rem; border: 1px solid rgba(255,255,255,.08);
}
.footer-newsletter-title { color: white; font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.footer-newsletter-sub { font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: 1rem; }
.footer-newsletter-form { display: flex; gap: .5rem; }
.footer-newsletter-input {
  flex: 1; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-full);
  padding: .6rem 1rem; font-size: .875rem; color: white; outline: none;
  transition: border-color var(--duration-fast);
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,.35); }
.footer-newsletter-input:focus { border-color: var(--gold); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { font-size: .8rem; color: rgba(255,255,255,.4); transition: color var(--duration-fast); }
.footer-legal a:hover { color: rgba(255,255,255,.8); }
.footer-payments { display: flex; align-items: center; gap: .75rem; }
.payment-icon {
  height: 22px; padding: 3px 6px; background: rgba(255,255,255,.08);
  border-radius: 4px; font-size: .7rem; font-weight: 700;
  color: rgba(255,255,255,.6); display: flex; align-items: center;
}

/* ── Admin Layout ────────────────────────────────────────── */
.admin-layout {
  display: grid; grid-template-columns: 240px 1fr; min-height: 100vh;
}
.admin-sidebar {
  background: var(--charcoal); color: white;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-sidebar-logo {
  padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: white;
}
.admin-sidebar-logo span { color: var(--gold); }
.admin-nav { padding: 1rem; flex: 1; }
.admin-nav-group { margin-bottom: 1.25rem; }
.admin-nav-group-title {
  font-size: .65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.3); padding: 0 .75rem; margin-bottom: .5rem;
}
.admin-nav-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem; border-radius: var(--radius-md);
  font-size: .875rem; color: rgba(255,255,255,.65);
  transition: all var(--duration-fast); margin-bottom: 2px;
}
.admin-nav-link:hover { background: rgba(255,255,255,.07); color: white; }
.admin-nav-link.active { background: var(--walnut); color: white; }
.admin-nav-badge {
  margin-left: auto; background: var(--terracotta); color: white;
  font-size: .65rem; font-weight: 700; padding: 1px 7px; border-radius: var(--radius-full);
}
.admin-main { background: var(--ivory); min-height: 100vh; }
.admin-header {
  background: white; border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.admin-content { padding: 1.5rem 2rem; }
.admin-page-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

/* Stat cards */
.stat-card {
  background: white; border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem; border: 1px solid var(--border);
  box-shadow: var(--shadow-xs); display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem; transition: box-shadow var(--duration-base);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-value { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.stat-delta { font-size: .78rem; font-weight: 600; display: flex; align-items: center; gap: 3px; margin-top: .5rem; }
.stat-delta.up   { color: var(--success); }
.stat-delta.down { color: var(--error); }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: .75rem 1rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); background: var(--ivory); border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 1rem; font-size: .875rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.data-table tr:hover td { background: var(--ivory); }
.data-table tr:last-child td { border-bottom: none; }

/* Order status badges */
.order-status {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
}
.status-pending    { background: rgba(196,154,60,.1);  color: var(--warning); }
.status-processing { background: rgba(74,111,165,.1);  color: var(--info); }
.status-shipped    { background: rgba(107,76,53,.1);   color: var(--walnut); }
.status-delivered  { background: rgba(74,124,89,.1);   color: var(--success); }
.status-cancelled  { background: rgba(184,84,80,.1);   color: var(--error); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonial-card {
  background: white; border-radius: var(--radius-xl);
  padding: 1.5rem 1.75rem; border: 1px solid var(--border);
  transition: transform var(--duration-base), box-shadow var(--duration-base);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testimonial-quote {
  font-family: var(--font-accent); font-size: 1.1rem; line-height: 1.75;
  color: var(--text-secondary); margin-bottom: 1.25rem; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0; background: var(--beige);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: .9rem; }
.testimonial-location { font-size: .78rem; color: var(--text-muted); margin-top: 1px; }

/* ── Shop Layout ─────────────────────────────────────────── */
.shop-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 2rem; align-items: start;
}
.shop-sidebar { position: sticky; top: calc(var(--nav-height) + 1rem); }
.filter-section { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.filter-section:last-child { border-bottom: none; }
.filter-section-title {
  font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: .75rem;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}

/* ── Product Gallery ─────────────────────────────────────── */
.product-gallery { position: sticky; top: calc(var(--nav-height) + 1rem); }
.gallery-main {
  aspect-ratio: 1; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--ivory-dark); margin-bottom: .75rem;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: .5rem; }
.gallery-thumb {
  width: 70px; height: 70px; border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; border: 2px solid transparent;
  transition: border-color var(--duration-fast); flex-shrink: 0;
}
.gallery-thumb:hover,.gallery-thumb.active { border-color: var(--walnut); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── GSAP reveal utilities ───────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity .8s var(--ease-smooth), transform .8s var(--ease-smooth); }
.reveal-left  { opacity: 0; transform: translateX(-30px); }
.reveal-right { opacity: 0; transform: translateX(30px); }
.reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translateX(0);
  transition: opacity .8s var(--ease-smooth), transform .8s var(--ease-smooth);
}
.stagger > * { opacity: 0; transform: translateY(20px); }
.stagger.visible > * {
  opacity: 1; transform: translateY(0);
  transition: opacity .6s var(--ease-smooth), transform .6s var(--ease-smooth);
}
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: .1s; }
.stagger.visible > *:nth-child(3) { transition-delay: .2s; }
.stagger.visible > *:nth-child(4) { transition-delay: .3s; }
.stagger.visible > *:nth-child(5) { transition-delay: .4s; }
.stagger.visible > *:nth-child(6) { transition-delay: .5s; }

/* ── Misc utilities ──────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.hidden      { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-full    { width: 100%; }
.mt-2  { margin-top: .5rem; }  .mt-4  { margin-top: 1rem; }
.mb-4  { margin-bottom: 1rem; }.mb-6  { margin-bottom: 1.5rem; }
.gap-2 { gap: .5rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.d-flex { display: flex; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; } .flex-wrap { flex-wrap: wrap; }
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.grid-auto-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.5rem; }
.grid-auto-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 1.5rem; }
.divider { height: 1px; background: var(--border); margin-block: 1.5rem; }
.tag {
  display: inline-flex; align-items: center; padding: 3px 10px;
  background: var(--ivory-dark); border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: .72rem; font-weight: 600;
  color: var(--text-secondary);
}

/* ── @media queries ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .nav-links,.nav-search-wrap { display: none; }
  .nav-hamburger { display: flex; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .ai-chat-panel { right: .75rem; width: calc(100vw - 1.5rem); }
  .ai-chat-fab   { right: .75rem; bottom: .75rem; }
  .toast-container { right: .75rem; bottom: .75rem; left: .75rem; }
  .toast { min-width: unset; max-width: unset; }
  .hero-content { padding-block: 3rem; }
  .steps-indicator { flex-direction: column; gap: 0; }
  .step-row { flex-direction: row; }
  .product-gallery { position: static; }
}
@media (max-width: 480px) {
  .grid-auto-3,.grid-auto-4 { grid-template-columns: repeat(2,1fr); }
  .hero-title { font-size: 2.25rem; }
  .btn-xl { padding: .875rem 1.75rem; font-size: .9375rem; }
}

/* ── reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
