/* ══════════════════════════════════════════════════
   DAIVY STORE — Premium E-Commerce CSS
   Aesthetic: Luxury Minimal — warm ivory, terracotta
   ══════════════════════════════════════════════════ */

/* ── 1. CSS CUSTOM PROPERTIES ───────────────────── */
:root {
  --bg:           #FAFAF7;
  --surface:      #FFFFFF;
  --surface-2:    #F4F1EC;
  --border:       #E8E3DA;
  --text:         #1C1917;
  --text-2:       #6B6057;
  --text-3:       #A89E94;
  --accent:       #D45A2A;
  --accent-2:     #B84A1E;
  --accent-light: #FDEEE7;
  --accent-muted: #F2C4AE;
  --gold:         #C89A3C;
  --green:        #2E7D5A;
  --shadow-sm:    0 2px 8px rgba(28,25,23,.07);
  --shadow-md:    0 8px 32px rgba(28,25,23,.10);
  --shadow-lg:    0 20px 60px rgba(28,25,23,.14);
  --radius-sm:    8px;
  --radius-md:    14px;
  --radius-lg:    22px;
  --radius-xl:    32px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Outfit', sans-serif;
  --nav-h:        68px;
  --transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

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

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

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

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

/* ── 3. PAGE LOADER ─────────────────────────────── */
#page-loader {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s, visibility 0.5s;
}
#page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-logo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader-d {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  color: var(--accent);
  animation: loaderPulse 1.2s ease-in-out infinite;
}
.loader-bar {
  width: 40px; height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--accent);
  animation: loaderSlide 1s ease-in-out infinite;
}
@keyframes loaderPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.9)} }
@keyframes loaderSlide { 0%{left:-100%} 100%{left:200%} }

/* ── 4. NAVBAR ──────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250,250,247,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-container {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
.logo-text {
  font-family: var(--font-body);
  font-size: 18px; font-weight: 700;
  letter-spacing: -.3px;
  color: var(--text);
}
.logo-text em { font-style: normal; color: var(--accent); font-weight: 300; }

/* Desktop nav links */
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface-2); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-icon-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-icon-btn:hover { color: var(--text); background: var(--surface-2); }

.cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  transition: transform var(--transition);
}
.cart-badge.bump { animation: badgeBump .3s ease; }
@keyframes badgeBump { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search bar */
.search-bar-wrapper {
  position: absolute; top: calc(var(--nav-h) - 1px); left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-md);
}
.search-bar-wrapper.open { transform: translateY(0); opacity: 1; visibility: visible; }

.search-bar-inner {
  max-width: 700px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; gap: 12px;
}
.search-icon-inner { color: var(--text-3); font-size: 14px; }
#search-input {
  flex: 1;
  border: none; outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--text);
}
#search-input::placeholder { color: var(--text-3); }
.search-close { color: var(--text-3); padding: 4px; transition: color var(--transition); }
.search-close:hover { color: var(--text); }

.search-suggestions {
  max-width: 700px; margin: 0 auto;
  border-top: 1px solid var(--border);
}
.suggestion-item {
  padding: 12px 24px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: background var(--transition);
}
.suggestion-item:hover { background: var(--surface-2); }
.suggestion-item img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.suggestion-item-info strong { font-size: 14px; }
.suggestion-item-info span { font-size: 12px; color: var(--text-3); }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: var(--nav-h); left: 0;
  height: calc(100vh - var(--nav-h));
  width: 280px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  z-index: 998;
  padding: 24px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }

.drawer-link {
  padding: 12px 16px;
  font-size: 15px; font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between;
  transition: color var(--transition), background var(--transition);
}
.drawer-link:hover { color: var(--text); background: var(--surface-2); }

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(28,25,23,.4);
  backdrop-filter: blur(4px);
  z-index: 997;
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

/* ── 5. BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: .2px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(212,90,42,.3);
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 6px 24px rgba(212,90,42,.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

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

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { color: var(--text); }

.btn-white {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
}
.btn-white:hover { background: var(--surface-2); }

.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ── 6. HERO ────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  max-width: 1320px; margin: 0 auto; padding-left: 64px; padding-right: 64px;
  gap: 64px;
  padding-top: calc(var(--nav-h) + 48px);
}

.hero-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-headline em { font-style: italic; color: var(--accent); font-weight: 500; }

.hero-sub {
  font-size: 17px; color: var(--text-2); line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-cta-group { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats {
  display: flex; align-items: center; gap: 28px;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1; }
.stat span { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* Hero Visual */
.hero-visual { position: relative; height: 540px; }
.hero-blob {
  position: absolute;
  width: 420px; height: 420px;
  background: radial-gradient(ellipse, var(--accent-light) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.hero-card-stack { position: relative; width: 100%; height: 100%; }

.floating-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.floating-card img { width: 100%; height: 100%; object-fit: cover; }

.fc1 { width: 220px; height: 260px; top: 30px; left: 60px; animation: float1 5s ease-in-out infinite; }
.fc2 { width: 180px; height: 200px; top: 20px; right: 40px; animation: float2 6s ease-in-out infinite; }
.fc3 { width: 240px; height: 200px; bottom: 40px; left: 50%; transform: translateX(-50%); animation: float3 4.5s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes float2 { 0%,100%{transform:translateY(-8px)} 50%{transform:translateY(8px)} }
@keyframes float3 { 0%,100%{transform:translateX(-50%) translateY(6px)} 50%{transform:translateX(-50%) translateY(-10px)} }

.hero-badge-float {
  position: absolute;
  bottom: 100px; right: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
  animation: float2 5s ease-in-out infinite;
}
.hero-badge-float i { color: var(--gold); font-size: 18px; }
.hero-badge-float strong { display: block; font-size: 14px; font-weight: 700; }
.hero-badge-float span { display: block; font-size: 11px; color: var(--text-3); }

/* ── 7. TRUST BAR ───────────────────────────────── */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.trust-bar .trust-item {
  padding: 20px 40px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--text-2);
  border-right: 1px solid var(--border);
}
.trust-bar .trust-item:last-child { border-right: none; }
.trust-bar .trust-item i { color: var(--accent); font-size: 16px; }

/* ── 8. SECTIONS ────────────────────────────────── */
.section {
  max-width: 1320px; margin: 0 auto;
  padding: 88px 64px;
}
.section-alt { background: var(--surface-2); max-width: 100%; padding: 88px 0; }
.section-alt > * { max-width: 1320px; margin-left: auto; margin-right: auto; padding-left: 64px; padding-right: 64px; }

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px;
}
.section-header.centered { justify-content: center; text-align: center; flex-direction: column; align-items: center; }

.section-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--text);
  line-height: 1.2;
}

/* ── 9. PRODUCT CARDS ───────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.product-card:hover .card-img img { transform: scale(1.06); }
.product-card:hover .card-quick-add { opacity: 1; transform: translateY(0); }

.card-img {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: var(--surface-2);
}
.card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.card-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
  letter-spacing: .5px;
  z-index: 1;
}
.card-badge.new { background: var(--green); }
.card-badge.sale { background: var(--accent); }
.card-wishlist {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  background: var(--surface);
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: color var(--transition), border-color var(--transition);
  z-index: 1;
}
.card-wishlist:hover { color: var(--accent); border-color: var(--accent); }

.card-quick-add {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  background: var(--text);
  color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 2;
}
.card-quick-add:hover { background: var(--accent); }

.card-body { padding: 18px 20px 20px; }
.card-category {
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 6px;
}
.card-name {
  font-size: 15px; font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-rating {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 12px;
}
.stars { color: var(--gold); font-size: 11px; letter-spacing: 1px; }
.card-review-count { font-size: 12px; color: var(--text-3); }
.card-price-row {
  display: flex; align-items: center; justify-content: space-between;
}
.card-price { font-size: 18px; font-weight: 700; color: var(--text); }
.card-original-price {
  font-size: 13px; color: var(--text-3);
  text-decoration: line-through;
  margin-left: 6px;
}

/* List View */
.products-grid.list-view {
  grid-template-columns: 1fr;
}
.products-grid.list-view .product-card {
  display: flex;
}
.products-grid.list-view .card-img {
  width: 200px;
  flex-shrink: 0;
  padding-top: 0;
  height: 200px;
}
.products-grid.list-view .card-img img {
  position: static;
}
.products-grid.list-view .card-body { padding: 24px 28px; flex: 1; }
.products-grid.list-view .card-quick-add { display: none; }
.products-grid.list-view .card-body::after {
  content: none;
}

/* ── 10. CATEGORIES GRID ─────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
}
.cat-img { height: 100%; }
.cat-img img { height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover .cat-img img { transform: scale(1.08); }
.category-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(28,25,23,.7) 0%, transparent 55%);
}
.cat-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 20px;
  z-index: 1;
  color: #fff;
}
.cat-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.cat-info span { font-size: 13px; opacity: .8; display: flex; align-items: center; gap: 6px; }
.cat-info i { font-size: 11px; transition: transform var(--transition); }
.category-card:hover .cat-info i { transform: translateX(4px); }

/* ── 11. PROMO BANNER ───────────────────────────── */
.promo-banner {
  margin: 0;
  background: linear-gradient(135deg, #2A1A0E 0%, #4A2010 50%, #2A1A0E 100%);
  padding: 80px 64px;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.promo-content { position: relative; z-index: 1; }
.promo-content .promo-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-muted);
  margin-bottom: 16px;
}
.promo-content h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.promo-content h2 span { color: var(--accent-muted); }
.promo-content p { color: rgba(255,255,255,.6); font-size: 16px; margin-bottom: 32px; }

.promo-visual { position: relative; height: 300px; overflow: hidden; }
.promo-circles { position: absolute; top: 50%; left: 50%; }
.pc {
  position: absolute;
  border: 1.5px solid rgba(212,90,42,.3);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  animation: expandCircle 4s ease-out infinite;
}
.pc1 { width: 200px; height: 200px; animation-delay: 0s; }
.pc2 { width: 340px; height: 340px; animation-delay: 1.3s; }
.pc3 { width: 480px; height: 480px; animation-delay: 2.6s; }
@keyframes expandCircle { 0%{opacity:.6;transform:translate(-50%,-50%) scale(.8)} 100%{opacity:0;transform:translate(-50%,-50%) scale(1.2)} }

/* ── 12. TESTIMONIALS ───────────────────────────── */
.testimonials-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.t-stars { color: var(--gold); font-size: 13px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card > p {
  font-size: 14px; color: var(--text-2); line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
}
.t-author { display: flex; align-items: center; gap: 12px; }
.t-author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.t-author strong { font-size: 14px; display: block; }
.t-author span { font-size: 12px; color: var(--text-3); }

.testimonial-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.t-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.t-dot.active { background: var(--accent); transform: scale(1.3); }

/* ── 13. NEWSLETTER ─────────────────────────────── */
.newsletter-section {
  background: var(--surface-2);
  padding: 88px 64px;
}
.newsletter-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}
.nl-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -.8px;
  margin: 10px 0 12px;
}
.nl-text p { font-size: 15px; color: var(--text-2); }
.nl-input-wrap {
  display: flex; gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.nl-input-wrap input {
  flex: 1; padding: 14px 20px;
  border: none; outline: none;
  font-size: 15px;
  background: transparent;
}
.nl-input-wrap .btn { border-radius: 0; margin: 0; }
.nl-fine { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ── 14. FOOTER ─────────────────────────────────── */
.footer { background: var(--text); color: rgba(255,255,255,.7); }
.footer-top {
  max-width: 1320px; margin: 0 auto;
  padding: 64px 64px 48px;
  display: grid; grid-template-columns: 280px 1fr;
  gap: 80px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { font-size: 13px; line-height: 1.7; margin-bottom: 24px; max-width: 220px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  transition: background var(--transition), color var(--transition);
}
.social-links a:hover { background: var(--accent); color: #fff; }

.footer-links-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 {
  color: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px; color: rgba(255,255,255,.5);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: rgba(255,255,255,.9); }

.footer-bottom {
  max-width: 1320px; margin: 0 auto;
  padding: 20px 64px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 13px; }
.payment-icons { display: flex; gap: 12px; font-size: 24px; color: rgba(255,255,255,.4); }

/* ── 15. PRODUCTS PAGE ──────────────────────────── */
.page-hero-sm {
  background: var(--surface-2);
  padding: calc(var(--nav-h) + 40px) 64px 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero-sm h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.page-hero-sm p { font-size: 15px; color: var(--text-2); }

.products-page-layout {
  max-width: 1320px; margin: 0 auto;
  padding: 40px 64px 80px;
  display: grid; grid-template-columns: 240px 1fr;
  gap: 48px; align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.filters-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.filters-header h3 { font-size: 16px; font-weight: 700; }
.clear-filters {
  font-size: 12px; color: var(--accent); font-weight: 600;
  transition: opacity var(--transition);
}
.clear-filters:hover { opacity: .7; }

.filter-group { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.filter-group:last-of-type { border-bottom: none; margin-bottom: 20px; }
.filter-group h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-2); margin-bottom: 16px; }
.filter-options { display: flex; flex-direction: column; gap: 10px; }
.filter-option {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2);
  cursor: pointer;
  transition: color var(--transition);
}
.filter-option:hover { color: var(--text); }
.filter-option input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.filter-option em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--text-3); }
.rating-star { color: var(--gold); }

/* Price Range */
.price-range-wrap { display: flex; flex-direction: column; gap: 12px; }
.price-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
#price-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--val, 100%), var(--border) var(--val, 100%));
  border-radius: 2px; outline: none; cursor: pointer;
}
#price-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  background: var(--accent);
  border-radius: 50%; cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(212,90,42,.4);
}

/* Products toolbar */
.products-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.products-count { font-size: 14px; color: var(--text-2); }
.products-count span { font-weight: 700; color: var(--text); }
.toolbar-right { display: flex; align-items: center; gap: 12px; }
.sort-select {
  padding: 9px 36px 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6057' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition);
}
.sort-select:hover { border-color: var(--text-2); }
.sort-select:focus { border-color: var(--accent); }

.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  font-size: 13px;
  transition: all var(--transition);
}
.view-btn.active, .view-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.mobile-filter-btn { display: none; }
.filter-apply-btn { width: 100%; display: none; }

/* No Results */
.no-results {
  text-align: center; padding: 80px 20px;
  color: var(--text-2);
}
.no-results i { font-size: 48px; color: var(--border); margin-bottom: 20px; }
.no-results h3 { font-size: 20px; margin-bottom: 8px; color: var(--text); }
.no-results p { margin-bottom: 24px; }

/* ── 16. PRODUCT DETAIL ─────────────────────────── */
.product-detail-section {
  max-width: 1320px; margin: 0 auto;
  padding: calc(var(--nav-h) + 32px) 64px 80px;
}

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-3);
  margin-bottom: 40px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 10px; }

.product-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
  margin-bottom: 80px;
}

/* Gallery */
.pd-gallery { display: flex; flex-direction: column; gap: 16px; }
.pd-main-img-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-2);
  position: relative;
  aspect-ratio: 1;
}
.pd-main-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pd-main-img-wrap:hover .pd-main-img { transform: scale(1.03); }
.pd-wishlist-btn {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  background: var(--surface);
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-3);
  transition: all var(--transition);
}
.pd-wishlist-btn:hover, .pd-wishlist-btn.liked { color: #e74c3c; border-color: #e74c3c; }

.pd-thumbnails { display: flex; gap: 10px; }
.pd-thumb {
  width: 74px; height: 74px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--surface-2);
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb.active { border-color: var(--accent); }
.pd-thumb:hover { border-color: var(--text-3); }

/* PD Info */
.pd-category-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 5px 12px; border-radius: 20px;
  margin-bottom: 14px;
}
.pd-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.pd-rating-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pd-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }
.pd-review-count { font-size: 13px; color: var(--text-3); }
.pd-availability {
  font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
}
.pd-availability.in-stock { background: #e8f5e9; color: #2e7d32; }
.pd-availability.low-stock { background: #fff3e0; color: #e65100; }

.pd-price-block { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.pd-price { font-size: 32px; font-weight: 800; color: var(--text); }
.pd-original-price { font-size: 18px; color: var(--text-3); text-decoration: line-through; }
.pd-discount-badge {
  font-size: 13px; font-weight: 700;
  background: var(--accent-light);
  color: var(--accent);
  padding: 4px 10px; border-radius: 20px;
}

.pd-description {
  font-size: 15px; color: var(--text-2); line-height: 1.75;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 28px;
}

.pd-variants { margin-bottom: 28px; }
.pd-variants-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.variant-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
}
.swatch:hover { transform: scale(1.15); }
.swatch.active { border-color: var(--text); }

.pd-actions { display: flex; gap: 16px; margin-bottom: 28px; align-items: center; }
.qty-selector {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 44px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  font-size: 12px;
  background: var(--surface);
  transition: background var(--transition), color var(--transition);
}
.qty-btn:hover { background: var(--surface-2); color: var(--text); }
.qty-display {
  width: 48px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
.btn-add-cart { flex: 1; padding: 15px; font-size: 15px; }

.pd-features { margin-bottom: 28px; }
.pd-features ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pd-features ul li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.pd-features ul li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.pd-shipping-info {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.shipping-row {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--text-2);
}
.shipping-row i { color: var(--accent); width: 16px; text-align: center; }

/* Related Products */
.related-section { border-top: 1px solid var(--border); padding-top: 64px; }

/* ── 17. CART PAGE ──────────────────────────────── */
.cart-section {
  max-width: 1320px; margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 64px 80px;
}
.cart-header-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 40px;
}
.cart-header-row h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -1px;
}
.cart-item-label {
  background: var(--surface-2);
  font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
  color: var(--text-2);
}

.cart-layout {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 40px; align-items: start;
}

.cart-items-list { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: box-shadow var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item-img {
  width: 100px; height: 100px; flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-category { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.cart-item-name {
  font-size: 15px; font-weight: 600; color: var(--text);
  margin-bottom: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.cart-item-name:hover { color: var(--accent); }
.cart-item-price { font-size: 16px; font-weight: 700; color: var(--text); }

.cart-item-actions {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px;
}
.cart-qty-selector { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.cart-qty-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-2); transition: background var(--transition); }
.cart-qty-btn:hover { background: var(--surface-2); }
.cart-qty-display { width: 40px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.cart-remove-btn { font-size: 13px; color: var(--text-3); transition: color var(--transition); }
.cart-remove-btn:hover { color: #e74c3c; }

.cart-item-total { font-size: 17px; font-weight: 800; color: var(--text); white-space: nowrap; margin-left: auto; padding-top: 4px; }

/* Cart Summary */
.cart-summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.cart-summary-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 24px; }
.summary-rows { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-2); }
.summary-total { font-size: 18px; font-weight: 800; color: var(--text); }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0 16px; }
.summary-discount span:last-child { color: var(--green); font-weight: 600; }

.coupon-wrap { display: flex; gap: 8px; margin: 24px 0 6px; }
.coupon-wrap input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}
.coupon-wrap input:focus { border-color: var(--accent); }
.coupon-msg { font-size: 12px; color: var(--green); margin-bottom: 16px; min-height: 16px; }
.coupon-msg.error { color: #e74c3c; }

.btn-checkout { width: 100%; margin-bottom: 12px; justify-content: center; }
.continue-btn { width: 100%; justify-content: center; }

.cart-trust {
  display: flex; gap: 16px; margin-top: 20px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.cart-trust .trust-item { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.cart-trust .trust-item i { color: var(--accent); }

/* Empty Cart */
.empty-cart {
  text-align: center; padding: 100px 20px;
}
.empty-cart-icon {
  width: 100px; height: 100px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px; color: var(--border);
}
.empty-cart h2 { font-family: var(--font-display); font-size: 28px; margin-bottom: 10px; }
.empty-cart p { color: var(--text-2); margin-bottom: 28px; }

/* ── 18. PAGE TRANSITIONS ───────────────────────── */
#app {
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.page-enter {
  animation: pageEnter 0.4s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 19. TOAST ──────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 5000;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1), opacity 0.35s;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-icon { color: var(--accent-muted); font-size: 16px; }

/* ── 20. SCROLL-TRIGGERED ANIMATIONS ───────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 21. RESPONSIVE ─────────────────────────────── */
@media (max-width: 1200px) {
  .hero { padding: calc(var(--nav-h) + 48px) 40px 80px; }
  .section { padding: 72px 40px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .promo-banner { padding: 64px 40px; }
  .newsletter-inner { padding: 0 40px; }
  .footer-top { padding: 64px 40px 48px; }
  .footer-bottom { padding: 20px 40px; }
  .products-page-layout { padding: 32px 40px 64px; }
  .product-detail-section { padding: calc(var(--nav-h) + 32px) 40px 80px; }
  .cart-section { padding: calc(var(--nav-h) + 40px) 40px 80px; }
  .page-hero-sm { padding: calc(var(--nav-h) + 40px) 40px 40px; }
  .newsletter-section { padding: 72px 40px; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: center; min-height: auto; padding-bottom: 60px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta-group { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  .trust-bar .trust-item { padding: 16px 20px; }
  .trust-bar .trust-item span { display: none; }

  .footer-top { grid-template-columns: 1fr; gap: 40px; }

  .products-page-layout { grid-template-columns: 1fr; }
  .filters-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 300px;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    z-index: 900;
    overflow-y: auto;
    border-radius: 0;
    border: none;
    border-right: 1px solid var(--border);
  }
  .filters-sidebar.open { transform: translateX(0); }
  .mobile-filter-btn { display: flex; }
  .filter-apply-btn { display: flex; }

  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }

  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary-box { position: static; }

  .newsletter-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .hero { padding: calc(var(--nav-h) + 32px) 20px 48px; }
  .section { padding: 56px 20px; }
  .section-alt > * { padding-left: 20px; padding-right: 20px; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .promo-banner { grid-template-columns: 1fr; padding: 48px 20px; }
  .promo-visual { display: none; }
  .newsletter-section { padding: 56px 20px; }
  .footer-top { padding: 48px 20px 40px; }
  .footer-bottom { padding: 16px 20px; flex-direction: column; gap: 12px; }
  .footer-links-group { grid-template-columns: 1fr 1fr; gap: 32px; }
  .products-page-layout { padding: 24px 20px 56px; }
  .product-detail-section { padding: calc(var(--nav-h) + 16px) 20px 56px; }
  .cart-section { padding: calc(var(--nav-h) + 24px) 20px 56px; }
  .page-hero-sm { padding: calc(var(--nav-h) + 24px) 20px 28px; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-total { margin-left: 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-body { padding: 12px 14px 14px; }
  .card-price { font-size: 15px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Nav container on mobile */
  .nav-container { padding: 0 16px; gap: 12px; }
}