/* ── VARIABLES ───────────────────────────────────────────────────────────── */
:root {
  --cream:    #F8F5F0;
  --cream-dk: #EDE8E0;
  --brown-dk: #2C1810;
  --brown-md: #5C3D2E;
  --brown-lt: #8B6F5E;
  --accent:   #C8956C;
  --accent-dk:#A06540;
  --gold:     #C9A96E;
  --white:    #FFFFFF;
  --grey-100: #F4F4F4;
  --grey-200: #E8E8E8;
  --grey-400: #AAAAAA;
  --grey-700: #555555;
  --text:     #1A1A1A;
  --text-lt:  #6B6B6B;
  --success:  #4CAF50;
  --radius:   8px;
  --radius-lg:16px;
  --shadow:   0 4px 20px rgba(0,0,0,.08);
  --shadow-lg:0 12px 40px rgba(0,0,0,.14);
  --trans:    all .3s cubic-bezier(.4,0,.2,1);
  --font:     'Inter', 'Segoe UI', sans-serif;
  --font-serif:'Playfair Display', Georgia, serif;
  --header-h: 72px;
}

/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { line-height: 1.2; font-weight: 600; }
.serif { font-family: var(--font-serif); }
.text-center { text-align: center; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }

/* ── LAYOUT ──────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  transition: var(--trans);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.1); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 24px;
}
.logo {
  font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700;
  color: var(--brown-dk); letter-spacing: -.5px; flex-shrink: 0;
}
/* "Nord" — frosted ice gradient */
.logo-nord {
  background: linear-gradient(155deg, #DCF1FB 0%, #8FD0EC 30%, #4FA3D4 62%, #2E7CB0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}
/* "On" — Ontario accent (warm tan) */
.logo .logo-on {
  color: var(--accent); -webkit-text-fill-color: var(--accent);
  font-style: italic; padding: 0 .02em;
}
/* "Home" — deep graphite ink */
.logo .logo-home { color: #1E2A38; -webkit-text-fill-color: #1E2A38; }
/* legacy span fallback */
.logo span:not(.logo-home):not(.logo-nord) { color: var(--accent); }

/* NAV */
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: var(--radius);
  font-size: .9rem; font-weight: 500; color: var(--grey-700);
  transition: var(--trans); white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--brown-dk); background: var(--cream); }
.nav-link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* DROPDOWN */
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--grey-200);
  padding: 12px; min-width: 200px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: block; padding: 10px 16px; border-radius: var(--radius);
  font-size: .875rem; color: var(--grey-700); transition: var(--trans);
}
.dropdown a:hover { background: var(--cream); color: var(--brown-dk); }

/* HEADER ACTIONS */
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius);
  color: var(--grey-700); transition: var(--trans); position: relative;
}
.header-btn:hover { background: var(--cream); color: var(--brown-dk); }
.header-btn svg { width: 20px; height: 20px; }
.cart-badge {
  position: absolute; top: 4px; right: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: var(--white);
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0); transition: var(--trans);
}
.cart-badge.show { opacity: 1; transform: scale(1); }

/* ── HERO SLIDER ─────────────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 600px;
  margin-top: var(--header-h); overflow: hidden;
}
.hero-slides { width: 100%; height: 100%; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
  display: flex; align-items: center;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.05); transition: transform 8s ease;
}
.hero-slide.active img { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(44,24,16,.6) 0%, rgba(44,24,16,.2) 60%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 620px;
  padding: 0 60px; color: var(--white);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 600; letter-spacing: .3px;
  color: #fff; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px);
  padding: 7px 14px; border-radius: 30px; margin-bottom: 18px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s .15s, transform .6s .15s;
}
.hero-slide.active .hero-badge { opacity: 1; transform: none; }
.hero-eyebrow {
  display: block; font-size: .8rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px; opacity: 0; transform: translateY(20px);
  transition: opacity .6s .3s, transform .6s .3s;
}
.hero-slide.active .hero-eyebrow { opacity: 1; transform: none; }
.hero-title {
  font-family: var(--font-serif); font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.1; margin-bottom: 20px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s .45s, transform .6s .45s;
}
.hero-slide.active .hero-title { opacity: 1; transform: none; }
.hero-subtitle {
  font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.85);
  margin-bottom: 36px; opacity: 0; transform: translateY(20px);
  transition: opacity .6s .6s, transform .6s .6s;
}
.hero-slide.active .hero-subtitle { opacity: 1; transform: none; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(16px); transition: opacity .6s .75s, transform .6s .75s; }
.hero-slide.active .hero-ctas { opacity: 1; transform: none; }

/* Hero controls */
.hero-controls {
  position: absolute; bottom: 40px; left: 60px; z-index: 3;
  display: flex; align-items: center; gap: 20px;
}
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); transition: var(--trans);
  cursor: pointer; border: none;
}
.hero-dot.active { background: var(--white); width: 28px; border-radius: 4px; }
.hero-prev, .hero-next {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans); background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
}
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.25); border-color: var(--white); }
.hero-prev svg, .hero-next svg { width: 18px; height: 18px; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius); font-size: .9rem;
  font-weight: 600; letter-spacing: .3px; transition: var(--trans); white-space: nowrap;
}
.btn-primary {
  background: var(--brown-dk); color: var(--white);
}
.btn-primary:hover { background: var(--brown-md); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(44,24,16,.3); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.7);
}
.btn-outline:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-accent {
  background: var(--accent); color: var(--white);
}
.btn-accent:hover { background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,149,108,.4); }
.btn-ghost {
  background: var(--cream); color: var(--brown-dk);
}
.btn-ghost:hover { background: var(--cream-dk); }
.btn-sm { padding: 10px 20px; font-size: .8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: var(--radius); }
.btn-full { width: 100%; }

/* ── SECTION HEADERS ─────────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block; font-size: .75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--brown-dk); margin-bottom: 16px;
}
.section-subtitle { font-size: 1.05rem; color: var(--text-lt); max-width: 560px; margin: 0 auto; }

/* ── CATEGORY CARDS ──────────────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer; group: true;
}
.category-card:hover .category-img { transform: scale(1.08); }
.category-card:hover .category-overlay { opacity: 1; }
.category-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.category-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,.75) 0%, rgba(44,24,16,.2) 60%, transparent 100%);
  opacity: .7; transition: opacity .3s;
}
.category-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 20px; color: var(--white);
}
.category-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.category-count { font-size: .8rem; color: rgba(255,255,255,.75); }
.category-arrow {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); opacity: 0; transform: translateY(4px);
  transition: var(--trans);
}
.category-card:hover .category-arrow { opacity: 1; transform: none; }
.category-arrow svg { width: 14px; height: 14px; }

/* ── PRODUCT CARD ────────────────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

.product-card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: var(--trans); position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Card image slideshow */
.card-gallery { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--grey-100); }
.card-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.card-slide.active { opacity: 1; }
.card-slide img { width: 100%; height: 100%; object-fit: cover; }
.card-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; opacity: 0; transition: opacity .2s;
}
.product-card:hover .card-dots { opacity: 1; }
.card-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.6); cursor: pointer;
  transition: background .2s, transform .2s;
}
.card-dot.active { background: var(--white); transform: scale(1.3); }
.card-prev, .card-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--brown-dk);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .2s, transform .3s; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.card-prev { left: 10px; }
.card-next { right: 10px; }
.card-prev svg, .card-next svg { width: 14px; height: 14px; }
.product-card:hover .card-prev, .product-card:hover .card-next { opacity: 1; }
.card-prev:hover, .card-next:hover { transform: translateY(-50%) scale(1.1); }

/* Badges */
.card-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 20px;
  font-size: .7rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
.badge-sale       { background: #E53E3E; color: #fff; }
.badge-new        { background: var(--accent); color: #fff; }
.badge-bestseller { background: var(--gold); color: var(--brown-dk); }
.badge-bundle     { background: var(--brown-md); color: #fff; }

/* Wishlist button */
.card-wishlist {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--grey-400);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--trans); box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.card-wishlist svg { width: 16px; height: 16px; }
.product-card:hover .card-wishlist { opacity: 1; }
.card-wishlist:hover { color: #E53E3E; transform: scale(1.1); }
.card-wishlist.active { opacity: 1; color: #E53E3E; }
.card-wishlist.active svg { fill: #E53E3E; }

/* Card body */
.card-body { padding: 18px 20px 20px; }
.card-subcategory { font-size: .72rem; color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.card-name { font-size: 1rem; font-weight: 600; color: var(--brown-dk); margin-bottom: 8px; line-height: 1.35; }
.card-name a:hover { color: var(--accent); }
.card-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.stars { display: flex; gap: 2px; }
.star { width: 13px; height: 13px; color: var(--gold); fill: var(--gold); }
.star.empty { color: var(--grey-200); fill: var(--grey-200); }
.rating-count { font-size: .78rem; color: var(--text-lt); }
.card-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.price-current { font-size: 1.2rem; font-weight: 700; color: var(--brown-dk); }
.price-original { font-size: .9rem; color: var(--grey-400); text-decoration: line-through; }
.price-save { font-size: .75rem; font-weight: 600; color: #E53E3E; background: #FFF0F0; padding: 2px 7px; border-radius: 10px; }
.card-footer { display: flex; gap: 8px; }
.btn-cart {
  flex: 1; background: var(--brown-dk); color: var(--white);
  padding: 10px; border-radius: var(--radius); font-size: .85rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: var(--trans);
}
.btn-cart:hover { background: var(--accent-dk); }
.btn-cart svg { width: 16px; height: 16px; }
.btn-view {
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--cream); color: var(--brown-dk);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.btn-view:hover { background: var(--cream-dk); }
.btn-view svg { width: 16px; height: 16px; }

/* ── PROMO BANNER ────────────────────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, var(--brown-dk) 0%, var(--brown-md) 100%);
  padding: 72px 0; position: relative; overflow: hidden;
}
.promo-banner::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(200,149,108,.15);
  top: -200px; right: -100px;
}
.promo-banner::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(200,149,108,.1);
  bottom: -150px; left: 5%;
}
.promo-inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 40px; position: relative; z-index: 1;
}
.promo-tag {
  font-size: .72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.promo-title {
  font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white); line-height: 1.15; margin-bottom: 16px;
}
.promo-title span { color: var(--gold); }
.promo-text { color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.7; max-width: 520px; }
.promo-ctas { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

/* ── FEATURES STRIP ─────────────────────────────────────────────────────── */
.features-strip { background: var(--cream); padding: 40px 0; }
.features-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; divide-x: 1px solid var(--grey-200);
}
.feature-item {
  display: flex; align-items: center; gap: 16px; padding: 0 16px;
  border-right: 1px solid var(--grey-200);
}
.feature-item:last-child { border-right: none; }
.feature-icon {
  width: 48px; height: 48px; background: var(--white); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0; box-shadow: var(--shadow);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title { font-size: .9rem; font-weight: 700; color: var(--brown-dk); margin-bottom: 2px; }
.feature-text { font-size: .8rem; color: var(--text-lt); }

/* ── NEWSLETTER ──────────────────────────────────────────────────────────── */
.newsletter { background: var(--cream); padding: 72px 0; }
.newsletter-inner { max-width: 540px; margin: 0 auto; text-align: center; }
.newsletter-title { font-family: var(--font-serif); font-size: 2rem; color: var(--brown-dk); margin-bottom: 12px; }
.newsletter-text { color: var(--text-lt); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.newsletter-input {
  flex: 1; padding: 14px 20px; border: none; outline: none;
  font-size: .9rem; color: var(--text);
}
.newsletter-btn {
  padding: 14px 24px; background: var(--brown-dk); color: var(--white);
  font-size: .85rem; font-weight: 600; transition: var(--trans); white-space: nowrap;
}
.newsletter-btn:hover { background: var(--accent-dk); }
.newsletter-note { font-size: .75rem; color: var(--grey-400); margin-top: 12px; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer { background: var(--brown-dk); color: rgba(255,255,255,.8); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: var(--white); margin-bottom: 16px; display: block; }
.footer-brand .logo span { color: var(--gold); }
.footer-brand .logo-home { color: #FFFFFF; -webkit-text-fill-color: #FFFFFF; }
.footer-brand p { font-size: .875rem; line-height: 1.8; color: rgba(255,255,255,.65); margin-bottom: 24px; }
.footer-socials { display: flex; gap: 12px; }
.social-btn {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.social-btn:hover { background: var(--accent); color: var(--white); }
.social-btn svg { width: 16px; height: 16px; }
.footer-col h4 { font-size: .8rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .875rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px; font-size: .8rem;
  color: rgba(255,255,255,.4);
}
.footer-payments { display: flex; gap: 8px; align-items: center; }
.payment-badge {
  background: rgba(255,255,255,.08); padding: 4px 10px; border-radius: 4px;
  font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.5);
}

/* ── PRODUCTS PAGE ───────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dk) 100%);
  padding: 60px 0 48px; margin-top: var(--header-h);
}
.page-hero-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-lt); margin-bottom: 12px; }
.page-breadcrumb a:hover { color: var(--accent); }
.page-breadcrumb svg { width: 12px; height: 12px; }
.page-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--brown-dk); }
.page-count { font-size: .9rem; color: var(--text-lt); margin-top: 6px; }

/* Filter bar */
.filter-bar {
  background: var(--white); border-bottom: 1px solid var(--grey-200);
  padding: 16px 0; position: sticky; top: var(--header-h); z-index: 90;
}
.filter-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label { font-size: .82rem; font-weight: 600; color: var(--text-lt); margin-right: 4px; }
.filter-chip {
  padding: 7px 16px; border-radius: 20px; font-size: .8rem; font-weight: 500;
  border: 1.5px solid var(--grey-200); color: var(--grey-700); transition: var(--trans);
  background: var(--white); cursor: pointer;
}
.filter-chip:hover, .filter-chip.active { background: var(--brown-dk); color: var(--white); border-color: var(--brown-dk); }
.filter-spacer { flex: 1; }
.sort-select {
  padding: 8px 14px; border: 1.5px solid var(--grey-200); border-radius: var(--radius);
  font-size: .82rem; color: var(--text); outline: none; transition: var(--trans);
  background: var(--white);
}
.sort-select:focus { border-color: var(--brown-md); }

/* Products layout */
.products-layout { padding: 48px 0 80px; }
.products-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.view-toggle { display: flex; gap: 6px; }
.view-btn {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--grey-400); transition: var(--trans);
}
.view-btn.active, .view-btn:hover { background: var(--cream); color: var(--brown-dk); }
.view-btn svg { width: 16px; height: 16px; }

/* ── PRODUCT DETAIL PAGE ─────────────────────────────────────────────────── */
.product-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  padding: 48px 0 80px;
}
/* Main gallery */
.gallery-wrapper { position: sticky; top: calc(var(--header-h) + 20px); height: fit-content; }
.main-gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; background: var(--grey-100); }
.main-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.main-slide.active { opacity: 1; }
.main-slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--brown-dk);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.15); transition: var(--trans);
}
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-prev:hover, .gallery-next:hover { transform: translateY(-50%) scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.gallery-prev svg, .gallery-next svg { width: 18px; height: 18px; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumb {
  width: 80px; height: 80px; border-radius: 8px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent; transition: border-color .2s;
  flex-shrink: 0;
}
.thumb.active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { border-color: var(--brown-lt); }

/* Product info */
.product-info { padding-top: 8px; }
.product-category-tag { font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.product-name { font-family: var(--font-serif); font-size: clamp(1.6rem, 2.5vw, 2.2rem); color: var(--brown-dk); margin-bottom: 16px; }
.product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--grey-200); }
.rating-value { font-size: .9rem; font-weight: 700; color: var(--brown-dk); }
.rating-text { font-size: .85rem; color: var(--text-lt); }
.rating-sep { color: var(--grey-400); }
.product-price-block { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.product-price { font-size: 2rem; font-weight: 700; color: var(--brown-dk); }
.product-original { font-size: 1.2rem; color: var(--grey-400); text-decoration: line-through; }
.product-saving { background: #FFF0F0; color: #E53E3E; font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 12px; }

/* Colour picker */
.product-option { margin-bottom: 20px; }
.option-label { font-size: .85rem; font-weight: 600; color: var(--brown-dk); margin-bottom: 10px; }
.option-label span { font-weight: 400; color: var(--text-lt); }
.colour-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.colour-swatch {
  padding: 8px 16px; border-radius: 20px; font-size: .8rem; font-weight: 500;
  border: 1.5px solid var(--grey-200); cursor: pointer; transition: var(--trans);
  color: var(--grey-700);
}
.colour-swatch:hover { border-color: var(--brown-lt); color: var(--brown-dk); }
.colour-swatch.active { border-color: var(--brown-dk); background: var(--brown-dk); color: var(--white); }

/* Qty + Add to cart */
.add-to-cart-block { display: flex; gap: 12px; margin-bottom: 24px; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; }
.qty-btn {
  width: 44px; height: 52px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--grey-700); transition: var(--trans);
}
.qty-btn:hover { background: var(--cream); color: var(--brown-dk); }
.qty-input {
  width: 52px; text-align: center; border: none; outline: none;
  font-size: .95rem; font-weight: 600; color: var(--brown-dk);
  padding: 0; height: 52px;
}
.btn-add-cart {
  flex: 1; background: var(--brown-dk); color: var(--white);
  padding: 14px 24px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 700; display: flex; align-items: center;
  justify-content: center; gap: 10px; transition: var(--trans);
}
.btn-add-cart:hover { background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(44,24,16,.25); }
.btn-add-cart.added { background: var(--success); }
.btn-add-cart svg { width: 20px; height: 20px; }
.btn-wishlist-full {
  width: 52px; height: 52px; border-radius: var(--radius);
  border: 1.5px solid var(--grey-200); color: var(--grey-400);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans); flex-shrink: 0;
}
.btn-wishlist-full:hover { border-color: #E53E3E; color: #E53E3E; }
.btn-wishlist-full.active { border-color: #E53E3E; color: #E53E3E; background: #FFF0F0; }
.btn-wishlist-full svg { width: 20px; height: 20px; }

/* Delivery info strip */
.delivery-strip { background: var(--cream); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 24px; }
.delivery-item { display: flex; align-items: center; gap: 10px; font-size: .83rem; color: var(--grey-700); margin-bottom: 6px; }
.delivery-item:last-child { margin-bottom: 0; }
.delivery-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* Product tabs */
.product-tabs { margin-top: 40px; }
.tab-nav { display: flex; border-bottom: 1.5px solid var(--grey-200); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 20px; font-size: .875rem; font-weight: 600; color: var(--text-lt);
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; transition: var(--trans);
}
.tab-btn:hover { color: var(--brown-dk); }
.tab-btn.active { color: var(--brown-dk); border-color: var(--brown-dk); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.features-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--grey-200); font-size: .875rem;
}
.features-list li:last-child { border-bottom: none; }
.features-list svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.spec-table tr:nth-child(even) td { background: var(--cream); }
.spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--grey-200); }
.spec-table td:first-child { font-weight: 600; color: var(--brown-dk); width: 40%; }

/* ── CART PAGE ───────────────────────────────────────────────────────────── */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 48px 0 80px; }
.cart-items { background: var(--white); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--grey-200); margin-bottom: 24px; }
.cart-header h2 { font-size: 1.25rem; font-weight: 700; color: var(--brown-dk); }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--grey-200); align-items: start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
  width: 100px; height: 90px; border-radius: var(--radius);
  object-fit: cover; background: var(--grey-100);
}
.cart-item-name { font-weight: 600; color: var(--brown-dk); margin-bottom: 4px; font-size: .95rem; }
.cart-item-variant { font-size: .8rem; color: var(--text-lt); margin-bottom: 12px; }
.cart-item-controls { display: flex; align-items: center; gap: 12px; }
.cart-qty { display: flex; align-items: center; border: 1.5px solid var(--grey-200); border-radius: 6px; overflow: hidden; }
.cart-qty-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--grey-700); transition: var(--trans); }
.cart-qty-btn:hover { background: var(--cream); }
.cart-qty-val { width: 36px; text-align: center; font-size: .875rem; font-weight: 600; }
.cart-remove { font-size: .8rem; color: var(--grey-400); text-decoration: underline; }
.cart-remove:hover { color: #E53E3E; }
.cart-item-price { font-size: 1.1rem; font-weight: 700; color: var(--brown-dk); text-align: right; }
.cart-item-price-orig { font-size: .8rem; color: var(--grey-400); text-decoration: line-through; margin-top: 3px; text-align: right; }

/* Order summary */
.order-summary { background: var(--cream); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); height: fit-content; position: sticky; top: calc(var(--header-h) + 20px); }
.summary-title { font-size: 1.1rem; font-weight: 700; color: var(--brown-dk); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--grey-200); }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: .875rem; }
.summary-line .label { color: var(--text-lt); }
.summary-line .value { font-weight: 600; color: var(--brown-dk); }
.summary-total { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1.5px solid var(--grey-200); }
.summary-total .label { font-size: 1rem; font-weight: 700; color: var(--brown-dk); }
.summary-total .value { font-size: 1.3rem; font-weight: 800; color: var(--accent-dk); }
.promo-input-wrap { display: flex; gap: 8px; margin: 20px 0; }
.promo-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--grey-200); border-radius: var(--radius);
  font-size: .85rem; outline: none; transition: border-color .2s;
}
.promo-input:focus { border-color: var(--brown-md); }
.checkout-btn {
  width: 100%; background: var(--brown-dk); color: var(--white);
  padding: 16px; border-radius: var(--radius); font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--trans); margin-top: 16px;
}
.checkout-btn:hover { background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(44,24,16,.3); }
.checkout-btn svg { width: 18px; height: 18px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .75rem; color: var(--text-lt); margin-top: 12px; }
.secure-note svg { width: 13px; height: 13px; }

/* Empty cart */
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty svg { width: 64px; height: 64px; color: var(--grey-200); margin: 0 auto 20px; }
.cart-empty h3 { font-size: 1.2rem; color: var(--brown-dk); margin-bottom: 8px; }
.cart-empty p { color: var(--text-lt); font-size: .9rem; margin-bottom: 24px; }

/* ── TOAST ───────────────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 28px; right: 28px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px;
  background: var(--brown-dk); color: var(--white);
  padding: 14px 18px; border-radius: var(--radius-lg); max-width: 340px;
  box-shadow: var(--shadow-lg); font-size: .875rem; font-weight: 500;
  transform: translateX(120%); opacity: 0; transition: all .35s cubic-bezier(.4,0,.2,1);
}
.toast.show { transform: none; opacity: 1; }
.toast-icon { width: 32px; height: 32px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-icon svg { width: 16px; height: 16px; }
.toast-close { margin-left: auto; color: rgba(255,255,255,.6); font-size: 1.1rem; }
.toast-close:hover { color: var(--white); }

/* ── MOBILE MENU ─────────────────────────────────────────────────────────── */
.mobile-menu-btn { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 999;
  background: var(--white); transform: translateX(-100%); transition: transform .35s ease;
  overflow-y: auto; padding: 80px 24px 40px;
}
.mobile-menu.open { transform: none; }
.mobile-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 998; opacity: 0; visibility: hidden; transition: var(--trans); }
.mobile-menu-overlay.show { opacity: 1; visibility: visible; }
.mobile-nav a {
  display: block; padding: 16px 0; font-size: 1.1rem; font-weight: 600;
  border-bottom: 1px solid var(--grey-200); color: var(--brown-dk);
}
.mobile-nav a:hover { color: var(--accent); }

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-fadeup { animation: fadeUp .5s ease forwards; }
[data-animate] { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
[data-animate].visible { opacity: 1; transform: none; }

/* ── SCROLL TO TOP ───────────────────────────────────────────────────────── */
.scroll-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 100;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brown-dk); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(12px);
  transition: var(--trans); pointer-events: none;
}
.scroll-top.show { opacity: 1; transform: none; pointer-events: all; }
.scroll-top:hover { background: var(--accent-dk); }
.scroll-top svg { width: 18px; height: 18px; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .product-layout { grid-template-columns: 1fr; gap: 40px; }
  .gallery-wrapper { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .promo-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { height: 85vh; }
  .hero-content { padding: 0 24px; }
  .hero-controls { left: 24px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item-price { grid-column: 2; }
  .order-summary { position: static; }
  .product-layout { padding: 24px 0 60px; }
}
