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

:root {
  --black: #0A0A0A;
  --cream: #F5EDD8;
  --caramel: #C47C3A;
  --caramel-dark: #A06428;
  --offwhite: #FDFAF7;
  --text: #1A1209;
  --muted: #7A6A52;
  --white: #FFFFFF;
  --border: #E8DCC8;
  --success: #2D6A4F;
  --error: #C62828;

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

  --nav-h: 72px;
  --demo-h: 40px;   /* height of the "Portfolio demo" banner above the nav */
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(10,10,10,.08);
  --shadow-lg: 0 8px 40px rgba(10,10,10,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--offwhite);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: var(--demo-h); left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(253,250,247,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; height: 100%; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 52px; width: auto; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; gap: 1px; }
.nav-logo-text .logo-main {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--black); line-height: 1;
}
.nav-logo-text .logo-sub {
  font-size: .62rem; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); line-height: 1;
}
.nav-links {
  display: flex; align-items: center; justify-content: center;
  gap: 32px; list-style: none;
}
.nav-links a {
  font-size: .875rem; font-weight: 500; color: var(--text);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--caramel); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 40px;
  background: var(--black); color: var(--white);
  font-size: .875rem; font-weight: 600; transition: background .2s;
}
.cart-btn:hover { background: #333; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--caramel); color: var(--white);
  font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.cart-count.show { display: flex; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--black); transition: .3s;
}

/* ─── PAGE OFFSET ─── */
.page-top { padding-top: var(--nav-h); }

/* ─── HERO ─── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 44fr 56fr;
  align-items: stretch;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vh, 52px) 72px clamp(24px, 4vh, 52px) 88px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

/* tiled brand watermark across the cream panel */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
  background-image: url('../images/logo.jpg');
  background-repeat: repeat;
  background-size: clamp(140px, 16vw, 240px);
  opacity: 0.09;
  mix-blend-mode: multiply;
}

/* editorial badge — no pill, just a prefixed line */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--caramel);
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: clamp(14px, 2.5vh, 24px);
}
.hero-badge::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--caramel);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.02;
  margin-bottom: clamp(14px, 2vh, 24px);
  color: var(--black);
  letter-spacing: -.02em;
}
.hero h1 em { font-style: italic; color: var(--caramel); display: block; }
.hero-sub {
  font-size: clamp(.88rem, 1.1vw, 1.05rem);
  color: var(--muted);
  max-width: 400px;
  margin-bottom: clamp(24px, 4vh, 44px);
  line-height: 1.8;
}
.hero-cta {
  display: inline-flex;
  flex-direction: column;
  gap: clamp(28px, 4.5vh, 52px);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 40px;
  font-size: .9rem; font-weight: 600; transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--caramel); color: var(--white);
  box-shadow: 0 4px 18px rgba(196,124,58,.3);
}
.btn-primary:hover { background: var(--caramel-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(196,124,58,.38); }
.btn-outline {
  background: transparent; color: var(--black);
  border: 1.5px solid rgba(10,10,10,.3);
}
.btn-outline:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center;
}
.hero-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,.18) 0%, transparent 55%);
}

/* stats — clean row, no border, lighter type */
.hero-stats {
  display: flex;
  justify-content: space-between;
  align-self: stretch;
}
.hero-stat {
  position: relative;
  text-align: center;
}
.hero-stat + .hero-stat::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: var(--border);
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--black);
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}
.hero-stat-label {
  font-size: .68rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ─── SECTIONS ─── */
.section { padding: 96px 24px; max-width: 1200px; margin: 0 auto; }
.section-center { text-align: center; }

/* section-tag: left-aligned = clean text; centered = flanked by decorative lines */
.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 14px;
}
.section-center .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.section-center .section-tag::before,
.section-center .section-tag::after {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 18px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.section-sub {
  font-size: .97rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.8;
}

.bg-cream { background: var(--cream); }
.bg-black { background: var(--black); }
.full-bleed { max-width: none; }

/* ─── PRODUCT GRID ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
/* Home featured: always exactly 3 columns — no orphan possible */
#featuredProducts {
  grid-template-columns: repeat(3, 1fr);
}
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card-img {
  height: 240px; overflow: hidden; position: relative;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--black); color: var(--white);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
}
.product-tag.specialty { background: var(--caramel); }
.product-card-body { padding: 20px; }
.product-name {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 600; margin-bottom: 6px;
}
.product-desc { font-size: .875rem; color: var(--muted); margin-bottom: 16px; }
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.product-price {
  font-size: 1.25rem; font-weight: 700; color: var(--black);
}
.product-size { font-size: .78rem; color: var(--muted); }
.add-to-cart {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 40px;
  background: var(--caramel); color: var(--white);
  font-size: .85rem; font-weight: 600; transition: background .2s;
}
.add-to-cart:hover { background: var(--caramel-dark); }
.add-to-cart.added { background: var(--success); }

/* ─── IG CAROUSEL ─── */
.ig-section { padding: 0; overflow: hidden; }
.ig-header {
  max-width: 1200px; margin: 0 auto;
  padding: 72px 24px 40px;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px;
}
.ig-follow {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; font-weight: 600; color: var(--muted);
  transition: color .2s; white-space: nowrap;
}
.ig-follow:hover { color: var(--caramel); }
.ig-follow svg { width: 20px; height: 20px; }

.ig-track-wrap { overflow: hidden; cursor: grab; user-select: none; }
.ig-track-wrap:active { cursor: grabbing; }
.ig-track {
  display: flex; gap: 16px;
  padding: 0 24px 48px;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
}
.ig-slide {
  flex: 0 0 320px; height: 320px;
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative;
}
.ig-slide img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform .4s;
}
.ig-slide:hover img { transform: scale(1.04); }
.ig-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.7) 0%, transparent 50%);
  opacity: 0; transition: opacity .3s;
  display: flex; align-items: flex-end; padding: 16px;
}
.ig-slide:hover .ig-overlay { opacity: 1; }
.ig-caption {
  color: var(--white); font-size: .82rem; font-weight: 500; line-height: 1.4;
}

.ig-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; padding-bottom: 56px;
}
.ig-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; color: var(--text);
}
.ig-btn:hover { border-color: var(--caramel); color: var(--caramel); }
.ig-dots { display: flex; gap: 8px; }
.ig-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: background .2s;
}
.ig-dot.active { background: var(--caramel); }

/* ─── ABOUT STRIP (homepage) ─── */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.about-strip-img { position: relative; overflow: hidden; }
.about-strip-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-strip-content {
  padding: 88px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.about-strip-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/logo.jpg');
  background-repeat: repeat;
  background-size: clamp(130px, 14vw, 200px);
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.about-strip-content > * { position: relative; z-index: 1; }
.about-strip-content .section-tag { display: inline-block; margin-bottom: 16px; }
.about-strip-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.about-strip-content p { color: var(--muted); margin-bottom: 18px; line-height: 1.8; font-size: .97rem; }

/* ─── HOW IT WORKS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 60px;
  position: relative;
}
/* horizontal connector line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px; /* half of 64px icon */
  left: 16.5%;
  right: 16.5%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.step { text-align: center; }
.step-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--cream); /* must match section bg to mask the connector */
  border: 1.5px solid var(--caramel);
  margin: 0 auto 28px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  color: var(--caramel);
  position: relative; z-index: 1;
}
.step-num { display: none; }
.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}
.step p { font-size: .88rem; color: var(--muted); line-height: 1.7; max-width: 240px; margin: 0 auto; }

/* ─── SOCIAL PROOF ─── */
.proof-bar {
  background: var(--black); color: var(--white);
  padding: 28px 24px; overflow: hidden;
}
.proof-track {
  display: flex; gap: 60px; align-items: center;
  animation: scrollproof 20s linear infinite; width: max-content;
}
.proof-item {
  white-space: nowrap; font-size: .875rem; font-weight: 500;
  opacity: .8; display: flex; align-items: center; gap: 12px;
}
.proof-item::before { content: '★'; color: var(--caramel); font-size: 1rem; }
@keyframes scrollproof {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── CART DRAWER ─── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 990;
  background: rgba(10,10,10,.5); opacity: 0;
  visibility: hidden; transition: opacity .3s, visibility .3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 995;
  width: 420px; max-width: 100vw;
  background: var(--white); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .35s cubic-bezier(.25,.46,.45,.94);
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-header {
  padding: 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.cart-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem;
}
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty {
  text-align: center; padding: 60px 24px;
  color: var(--muted); font-size: .95rem;
}
.cart-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.cart-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-img {
  width: 72px; height: 72px; border-radius: var(--radius);
  overflow: hidden; flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: .95rem; margin-bottom: 4px; }
.cart-item-price { color: var(--muted); font-size: .875rem; }
.cart-item-qty {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
}
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: all .15s;
}
.qty-btn:hover { border-color: var(--caramel); color: var(--caramel); }
.qty-num { font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove { color: var(--muted); font-size: .8rem; margin-left: auto; align-self: flex-start; }
.cart-item-remove:hover { color: var(--error); }

.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-shipping-note {
  text-align: center; font-size: .8rem; color: var(--caramel);
  font-weight: 600; margin-bottom: 12px; padding: 10px;
  background: #FFF8EF; border-radius: var(--radius);
}
.cart-totals { margin-bottom: 16px; }
.cart-row {
  display: flex; justify-content: space-between;
  font-size: .9rem; padding: 6px 0; color: var(--muted);
}
.cart-row.total { font-size: 1.1rem; font-weight: 700; color: var(--black); padding-top: 12px; border-top: 1px solid var(--border); }
.checkout-btn {
  width: 100%; padding: 16px;
  background: var(--caramel); color: var(--white);
  font-size: 1rem; font-weight: 700; border-radius: 40px;
  transition: background .2s; text-align: center;
}
.checkout-btn:hover { background: var(--caramel-dark); }
.checkout-btn:disabled { opacity: .6; cursor: not-allowed; }
/* Obvious "Stripe test mode" indicator — this demo never takes a real charge */
.cart-test-note {
  background: #FFF4D6; color: #7A5B00; border: 1px solid #F0D071;
  border-radius: 10px; padding: 9px 11px; margin-bottom: 12px;
  font-size: .72rem; line-height: 1.45;
}
.cart-test-note code {
  background: rgba(0,0,0,.07); padding: 1px 5px; border-radius: 4px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .95em;
}
.test-order-note {
  max-width: 560px; margin: 0 auto 8px; text-align: center;
  background: #FFF4D6; color: #7A5B00; border: 1px solid #F0D071;
  border-radius: 12px; padding: 12px 16px; font-size: .85rem; line-height: 1.5;
}

/* ─── CHAT WIDGET ─── */
.chat-fab {
  position: fixed; bottom: 20px; right: 28px; z-index: 800;
  width: 62px; height: 62px;
  background: transparent; border: none; padding: 0;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.22));
  transition: filter .2s;
  cursor: pointer;
}
.chat-fab:hover { filter: drop-shadow(0 8px 28px rgba(196,124,58,.55)); }
.chat-fab img {
  width: 62px; height: auto; display: block;
  animation: cow-idle 12s ease-in-out infinite;
  transform-origin: bottom center;
}
.chat-fab:hover img { animation-play-state: paused; transform: scale(1.12) translateY(-4px); }

/* ── Cute cow idle choreography ── */
@keyframes cow-idle {
  /* start at rest */
  0%   { transform: translateY(0)    rotate(0deg)   scale(1);    }
  /* gentle float */
  6%   { transform: translateY(-6px) rotate(0deg)   scale(1);    }
  12%  { transform: translateY(0)    rotate(0deg)   scale(1);    }
  /* wave: tilt rapidly side to side */
  17%  { transform: translateY(-3px) rotate(-13deg) scale(1.07); }
  21%  { transform: translateY(-3px) rotate(10deg)  scale(1.07); }
  25%  { transform: translateY(-3px) rotate(-9deg)  scale(1.05); }
  29%  { transform: translateY(-3px) rotate(6deg)   scale(1.04); }
  33%  { transform: translateY(-2px) rotate(-3deg)  scale(1.02); }
  37%  { transform: translateY(0)    rotate(0deg)   scale(1);    }
  /* another float */
  44%  { transform: translateY(-6px) rotate(0deg)   scale(1);    }
  51%  { transform: translateY(0)    rotate(0deg)   scale(1);    }
  /* happy bounce */
  57%  { transform: translateY(-10px) rotate(0deg)  scale(1.06); }
  61%  { transform: translateY(1px)   rotate(0deg)  scale(0.96); }
  65%  { transform: translateY(-4px)  rotate(0deg)  scale(1.02); }
  68%  { transform: translateY(0)     rotate(0deg)  scale(1);    }
  /* rest until loop */
  100% { transform: translateY(0)    rotate(0deg)   scale(1);    }
}
.chat-panel {
  position: fixed; bottom: 116px; right: 28px; z-index: 800;
  width: 360px; max-height: 520px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transform: scale(.9) translateY(20px); opacity: 0;
  visibility: hidden; transition: all .25s cubic-bezier(.25,.46,.45,.94);
  transform-origin: bottom right;
}
.chat-panel.open {
  transform: scale(1) translateY(0); opacity: 1; visibility: visible;
}
.chat-panel-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 44px; height: 52px; border-radius: 10px;
  background: var(--cream); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.chat-avatar img { width: 42px; height: auto; display: block; }
.chat-panel-name { font-weight: 600; font-size: .95rem; }
.chat-panel-status { font-size: .75rem; color: var(--success); }
.chat-close { margin-left: auto; font-size: 1.1rem; color: var(--muted); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
}
.msg {
  max-width: 80%; padding: 10px 14px; border-radius: 16px;
  font-size: .875rem; line-height: 1.5;
}
.msg-bot {
  background: var(--cream); color: var(--text);
  border-radius: 4px 16px 16px 16px; align-self: flex-start;
}
.msg-user {
  background: var(--caramel); color: var(--white);
  border-radius: 16px 16px 4px 16px; align-self: flex-end;
}
.msg-typing {
  display: flex; gap: 4px; padding: 14px;
}
.msg-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); animation: typing .8s ease-in-out infinite;
}
.msg-typing span:nth-child(2) { animation-delay: .15s; }
.msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,80%,100% { opacity: .3 } 40% { opacity: 1 } }

.chat-input-row {
  display: flex; gap: 8px; padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.chat-input {
  flex: 1; padding: 10px 14px; border-radius: 40px;
  border: 1.5px solid var(--border); font: inherit;
  font-size: .875rem; outline: none; transition: border-color .2s;
}
.chat-input:focus { border-color: var(--caramel); }
.chat-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--caramel); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.chat-send:hover { background: var(--caramel-dark); }

/* ─── FOOTER ─── */
footer {
  background: var(--black); color: rgba(255,255,255,.85);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  align-items: center;
}
.footer-brand .nav-logo-text .logo-main { color: var(--white); }
.footer-brand .nav-logo-text .logo-sub { color: rgba(255,255,255,.4); }
.footer-brand img {
  height: 52px; width: 52px; object-fit: cover;
  border-radius: 10px; background: white; padding: 4px;
  margin-bottom: 14px; display: block;
}
.footer-brand p {
  font-size: .83rem; color: rgba(255,255,255,.5);
  line-height: 1.75; margin-top: 12px;
}
.footer-col h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255,255,255,.38);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: .875rem; color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-col a:hover { color: var(--caramel); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: rgba(255,255,255,.35); gap: 16px;
}
.footer-ig {
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.35); transition: color .2s;
}
.footer-ig:hover { color: var(--caramel); }

/* ─── SHOP PAGE ─── */
.shop-hero {
  background: var(--cream);
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.shop-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/logo.jpg');
  background-repeat: repeat;
  background-size: 160px 160px;
  opacity: 0.055;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.shop-hero .section-tag { position: relative; }
.shop-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 14px;
  letter-spacing: -.01em;
  position: relative;
}
.shop-hero p { color: var(--muted); font-size: .97rem; line-height: 1.7; position: relative; }
.shop-section { max-width: 1200px; margin: 0 auto; padding: 56px 24px 80px; }

/* Shipping badge — centered, subtle caramel strip */
.shipping-bar {
  text-align: center;
  margin-bottom: 56px;
}
.shipping-badge {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 13px 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  color: var(--text);
}
.shipping-badge strong { color: var(--caramel); font-weight: 700; }
.shipping-badge::before {
  content: '✦';
  color: var(--caramel);
  font-size: .72rem;
}

/* Category header — editorial style with flanking rule */
.shop-category-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1.5px solid var(--border);
}
.shop-category-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--caramel);
}
.shop-category-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--black);
  line-height: 1;
}
.shop-category-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0;
}

/* Sampler box — elevated dark version */
.sampler-box {
  margin-top: 72px;
  background: var(--black);
  border-radius: 20px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sampler-box::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../images/logo.jpg');
  background-repeat: repeat;
  background-size: 150px 150px;
  opacity: 0.04;
  mix-blend-mode: screen;
  pointer-events: none;
}
.sampler-box .section-tag {
  position: relative;
  color: var(--caramel);
}
.sampler-box h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -.02em;
  color: var(--white);
  position: relative;
}
.sampler-box p {
  color: rgba(255,255,255,.6);
  margin-bottom: 32px;
  font-size: .97rem;
  line-height: 1.7;
  position: relative;
}

/* ─── ABOUT PAGE ─── */
.about-hero {
  min-height: 70vh; display: grid; grid-template-columns: 1fr 1fr;
}
.about-hero-img { position: relative; overflow: hidden; }
.about-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.about-hero-content {
  padding: 80px 72px; display: flex;
  flex-direction: column; justify-content: center;
}
.about-hero-content h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; margin-bottom: 24px; line-height: 1.2;
}
.about-hero-content p {
  color: var(--muted); margin-bottom: 16px; line-height: 1.8; font-size: 1.02rem;
}
.womens-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); border: 1.5px solid var(--caramel);
  padding: 10px 18px; border-radius: 40px;
  font-size: .82rem; font-weight: 600; color: var(--caramel);
  margin-top: 8px;
}

/* ─── FAQ PAGE ─── */
.faq-hero {
  background: var(--cream);
  padding: 80px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.faq-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/logo.jpg');
  background-repeat: repeat;
  background-size: 160px 160px;
  opacity: 0.055;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.faq-section { max-width: 800px; margin: 0 auto; padding: 56px 24px 80px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 1rem; cursor: pointer; gap: 16px;
}
.faq-icon { flex-shrink: 0; color: var(--caramel); font-size: 1.2rem; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 0 20px; color: var(--muted); line-height: 1.75; font-size: .95rem; }

/* ─── CONTACT PAGE ─── */
.contact-page { max-width: 900px; margin: 0 auto; padding: 72px 24px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-info h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 20px; }
.contact-info p { color: var(--muted); line-height: 1.75; margin-bottom: 28px; }
.contact-detail { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .92rem; }
.contact-detail-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--cream); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; }
.form-input, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font: inherit; font-size: .95rem;
  transition: border-color .2s; background: var(--white);
}
.form-input:focus, .form-textarea:focus {
  outline: none; border-color: var(--caramel);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: 14px;
  background: var(--caramel); color: var(--white);
  font-size: 1rem; font-weight: 700;
  border-radius: 40px; transition: background .2s;
}
.form-submit:hover { background: var(--caramel-dark); }

/* ─── SUCCESS PAGE ─── */
.success-page { max-width: 600px; margin: 0 auto; padding: 80px 24px; text-align: center; }
.success-icon { font-size: 4rem; margin-bottom: 24px; }
.success-page h1 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; margin-bottom: 16px; }
.success-page p { color: var(--muted); line-height: 1.75; margin-bottom: 24px; }
.success-box { background: var(--cream); border-radius: var(--radius-lg); padding: 28px; margin: 32px 0; text-align: left; }
.success-box h3 { font-family: var(--font-display); font-weight: 600; margin-bottom: 16px; }
.success-timeline { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.success-timeline li { display: flex; gap: 12px; font-size: .9rem; color: var(--muted); }
.success-timeline li::before { content: '→'; color: var(--caramel); font-weight: 700; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-image { min-height: 380px; order: -1; }
  .hero-content { padding: 64px 40px; }
  .about-strip { grid-template-columns: 1fr; }
  .about-strip-img { min-height: 320px; }
  .about-strip-content { padding: 48px 32px; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-img { min-height: 400px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; top: calc(var(--nav-h) + var(--demo-h)); left: 0; right: 0;
    background: var(--offwhite); padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .hamburger { display: flex; }
  .nav-inner { grid-template-columns: auto 1fr auto; }

  .ig-slide { flex: 0 0 260px; height: 260px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-actions { flex-direction: column; }
  .ig-slide { flex: 0 0 85vw; height: 85vw; }
  .chat-panel { right: 12px; left: 12px; width: auto; }
  .cart-drawer { width: 100vw; }
  #featuredProducts { grid-template-columns: 1fr; }
}

/* ── Portfolio Demo Banner ── */
.demo-notice {
  background: #1a1a2e;
  color: rgba(255,255,255,.85);
  height: var(--demo-h);
  line-height: var(--demo-h);
  text-align: center;
  padding: 0 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  position: sticky;
  top: 0;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  overflow: hidden;
}
/* On phones the label wraps, so give it room and let the nav follow it */
@media (max-width: 680px) {
  :root { --demo-h: 58px; }
  .demo-notice {
    line-height: 1.35; white-space: normal; overflow: visible;
    display: flex; align-items: center; justify-content: center;
  }
}
.demo-notice a { color: #f9a87a; text-decoration: none; border-bottom: 1px solid rgba(249,168,122,.4); }
.demo-notice a:hover { color: #fff; border-color: rgba(255,255,255,.5); }
