/* Luxury silk saree demo — pale blue/white, deep maroon, red buttons, gold accents */
:root {
  --maroon: #6e1423;
  --maroon-dark: #4a0c17;
  --red: #b3202c;
  --red-dark: #8e1a24;
  --gold: #c9a227;
  --pale: #f2f6f7;
  --cream: #fbf7ef;
  --ink: #2b2320;
  --muted: #6b625c;
  --white: #ffffff;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--pale);
  color: var(--ink);
  line-height: 1.6;
}

img { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--maroon); }

section { padding: 64px 20px; max-width: 1180px; margin: 0 auto; }
section h2 { font-size: 2.1rem; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 8px auto 32px; max-width: 560px; }
.eyebrow { text-align: center; letter-spacing: 3px; text-transform: uppercase; font-size: .78rem; color: var(--gold); font-weight: 500; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  background: var(--maroon); color: var(--white);
  padding: 14px 28px;
  box-shadow: 0 2px 14px rgba(0,0,0,.25);
}
.logo { color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 1.5rem; letter-spacing: 1px; white-space: nowrap; }
.logo-mark { color: var(--gold); font-size: 1rem; vertical-align: middle; }
.nav-links { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { color: #f3e6e8; text-decoration: none; font-size: .95rem; letter-spacing: .4px; }
.nav-links a:hover { color: var(--gold); }
.bag-btn {
  background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px; padding: 6px 14px; cursor: pointer; font-family: var(--sans); font-size: .95rem;
}
.bag-btn:hover { border-color: var(--gold); color: var(--gold); }
.bag-count {
  display: inline-block; min-width: 22px; height: 22px; line-height: 22px; text-align: center;
  background: var(--gold); color: var(--maroon-dark); border-radius: 999px; font-weight: 600; font-size: .85rem;
}
.menu-btn { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn-red {
  background: var(--red); color: var(--white); border: none; border-radius: 999px;
  padding: 11px 26px; font-family: var(--sans); font-size: .95rem; letter-spacing: .5px;
  cursor: pointer; transition: background .2s;
}
.btn-red:hover { background: var(--red-dark); }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: 56px; }
.hero h1 { font-size: 2.6rem; margin: 10px 0 6px; }
.hero-sub { color: var(--muted); margin-bottom: 36px; }
.hero-stage {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  min-height: 480px; perspective: 900px;
}
.hero-card {
  width: 250px; flex-shrink: 0; background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(74,12,23,.18); cursor: pointer;
  transition: transform .5s ease, opacity .5s ease, width .5s ease;
  opacity: .85;
}
.hero-card img { width: 100%; height: 340px; object-fit: cover; object-position: top; }
.hero-card .card-body { padding: 14px 14px 18px; }
.hero-card h3 { font-size: 1.25rem; }
.hero-card .price { color: var(--red); font-weight: 600; margin: 4px 0 10px; }
.hero-card.side { transform: rotate(-7deg) scale(.86); }
.hero-card.side.right { transform: rotate(7deg) scale(.86); }
.hero-card.centre { width: 300px; opacity: 1; transform: rotate(0) scale(1); z-index: 2; box-shadow: 0 18px 44px rgba(74,12,23,.28); }
.hero-card.centre img { height: 400px; }
.hero-card .btn-red { padding: 9px 22px; font-size: .9rem; }
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: none; background: #cbb9bc; cursor: pointer; padding: 0;
}
.hero-dots button.active { background: var(--maroon); }

/* ---------- Ticker ---------- */
.ticker { background: var(--maroon); color: #f3e6e8; overflow: hidden; padding: 12px 0; white-space: nowrap; }
.ticker-light { background: var(--maroon-dark); margin-top: 28px; border-radius: 8px; }
.ticker-track { display: inline-block; animation: tick 22s linear infinite; }
.ticker-track span { font-family: var(--serif); font-size: 1.05rem; letter-spacing: 1px; padding: 0 18px; }
.tick-dot { color: var(--gold); font-size: .7rem; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Customiser ---------- */
.customiser { text-align: center; }
.silk-ribbon {
  height: 10px; border-radius: 999px; margin: 26px auto 34px; max-width: 640px;
  background: linear-gradient(90deg, #f6ecd7, #d6336c, #8e1f2f, #c9a227, #f6ecd7);
  background-size: 200% 100%; animation: ribbon 6s linear infinite;
}
@keyframes ribbon { from { background-position: 0 0; } to { background-position: 200% 0; } }
.swatches { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.swatch {
  background: var(--white); border: 2px solid transparent; border-radius: 14px; padding: 20px 18px;
  width: 210px; cursor: pointer; font-family: var(--sans); transition: border-color .2s, transform .2s;
  box-shadow: 0 6px 20px rgba(74,12,23,.10);
}
.swatch:hover { transform: translateY(-3px); }
.swatch.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.25), 0 6px 20px rgba(74,12,23,.14); }
.swatch-circle { display: block; width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 12px; border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.swatch-name { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--maroon); }
.swatch-price, .swatch-pick { display: block; color: var(--muted); font-size: .9rem; margin-top: 4px; }
.swatch.selected .swatch-pick { color: var(--gold); font-weight: 600; }
.weave-result {
  max-width: 640px; margin: 34px auto 0; background: var(--cream); border: 1px solid #e8dcc3;
  border-radius: 14px; padding: 26px;
}
.weave-hint { color: var(--muted); }
.weave-result h3 { font-size: 1.5rem; }
.weave-result .weave-price { font-size: 1.6rem; color: var(--red); font-weight: 600; margin: 6px 0 4px; }
.weave-result ul { list-style: none; margin: 10px 0 18px; color: var(--ink); }
.weave-result ul li::before { content: "\25C6  "; color: var(--gold); }

/* ---------- Draped ---------- */
.draped-img { width: 100%; border-radius: 14px; box-shadow: 0 12px 32px rgba(74,12,23,.16); }

/* ---------- Shop banner ---------- */
.shop-banner { position: relative; max-width: none; padding: 0; }
.shop-banner img { width: 100%; height: 420px; object-fit: cover; }
.shop-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(74,12,23,.45); color: var(--white); text-align: center; padding: 20px;
}
.shop-overlay h2 { color: var(--white); font-size: 2.4rem; }
.shop-overlay p { font-size: 1.1rem; }

/* ---------- Try the Look ---------- */
.look-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 32px; align-items: center; margin-top: 10px; }
.look-no { letter-spacing: 3px; color: var(--gold); font-weight: 600; }
.look-left h3 { font-size: 1.9rem; margin: 6px 0 10px; }
.look-left p { color: var(--muted); }
.look-centre img { width: 100%; height: 560px; object-fit: cover; object-position: top; border-radius: 14px; box-shadow: 0 12px 32px rgba(74,12,23,.18); }
.look-right h4 { font-size: 1.2rem; margin-bottom: 14px; }
.look-items { list-style: none; margin-bottom: 22px; }
.look-items li {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #e3d9d4; font-size: .98rem;
}
.look-items li span:last-child { font-weight: 600; color: var(--maroon); white-space: nowrap; }

/* ---------- Pick a Silk ---------- */
.fan { display: flex; justify-content: center; align-items: flex-end; gap: 10px; padding: 30px 0 10px; flex-wrap: wrap; }
.silk-pack {
  position: relative; width: 180px; height: 260px; border-radius: 12px; background: var(--silk);
  transform: rotate(var(--tilt)); transform-origin: bottom center;
  box-shadow: 0 12px 26px rgba(0,0,0,.28); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 16px; text-align: center; transition: transform .25s;
}
.silk-pack:hover { transform: rotate(var(--tilt)) translateY(-10px); }
.pack-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 1px; line-height: 1.3; }
.pack-tag { font-size: .82rem; opacity: .85; }
.pack-add {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--white); background: rgba(255,255,255,.18); color: var(--white);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.pack-add:hover { background: var(--white); color: var(--maroon); }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(74,12,23,.10); text-align: center; padding-bottom: 20px; }
.product img { width: 100%; height: 300px; object-fit: cover; }
.product h3 { font-size: 1.15rem; margin: 14px 12px 2px; }
.product .price { color: var(--red); font-weight: 600; margin-bottom: 12px; }

/* ---------- Feel the drape ---------- */
.drape { position: relative; max-width: none; padding: 0; }
.drape img { width: 100%; height: 480px; object-fit: cover; object-position: top; }
.drape-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(74,12,23,.35); color: var(--white); text-align: center; padding: 20px;
}
.drape-overlay h2 { color: var(--white); font-size: 2.4rem; }
.drape-overlay p { font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--maroon-dark); color: #e8d8db; text-align: center; padding: 44px 20px 34px; }
.footer-brand { font-family: var(--serif); font-size: 1.5rem; color: var(--white); margin-bottom: 14px; }
.footer-links { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: #e8d8db; text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-note { font-size: .88rem; color: #b99a9e; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 80px);
  background: var(--maroon); color: var(--white); padding: 12px 24px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; transition: transform .3s, opacity .3s;
  z-index: 100; pointer-events: none; font-size: .95rem; white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Motion: reel-style animation ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes shineSweep { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(240%) skewX(-18deg); } }

/* Hero entrance (runs once on load) */
.hero .eyebrow, .hero h1, .hero .hero-sub { animation: riseIn .8s ease both; }
.hero .hero-sub { animation-delay: .15s; }
.hero-stage { animation: riseIn .9s .25s ease both; }

/* Hero cards: photo fades in on every rotation */
.hero-card img { animation: heroFade .6s ease; }

/* Scroll reveal (class added by script.js, so no-JS still shows everything) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal .product { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in .product { opacity: 1; transform: translateY(0); }
.reveal.in .product:nth-child(2) { transition-delay: .1s; }
.reveal.in .product:nth-child(3) { transition-delay: .2s; }
.reveal.in .product:nth-child(4) { transition-delay: .3s; }
.reveal .silk-pack { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s ease; }
.reveal.in .silk-pack { opacity: 1; translate: 0 0; }
.reveal.in .silk-pack:nth-child(2) { transition-delay: .08s; }
.reveal.in .silk-pack:nth-child(3) { transition-delay: .16s; }
.reveal.in .silk-pack:nth-child(4) { transition-delay: .24s; }
.reveal.in .silk-pack:nth-child(5) { transition-delay: .32s; }

/* Big banners: slow Ken Burns pan, like the reel's shop video */
.shop-banner img, .drape img { animation: kenburns 22s ease-in-out infinite alternate; }
.shop-banner, .drape { overflow: hidden; }
.draped-img { transition: transform .6s ease; }
.draped-img:hover { transform: scale(1.03); }

/* Photo zoom on hover */
.product { overflow: hidden; }
.product img { transition: transform .5s ease; }
.product img:hover { transform: scale(1.06); }
.look-centre img { transition: transform .6s ease; }
.look-centre img:hover { transform: scale(1.03); }

/* Ribbon: taller + moving shine */
.silk-ribbon { height: 14px; position: relative; overflow: hidden; }
.silk-ribbon::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shineSweep 3.2s ease-in-out infinite;
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal .product, .reveal .silk-pack { opacity: 1; transform: none; translate: 0 0; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .look-grid { grid-template-columns: 1fr; }
  .look-centre img { height: 480px; }
}
@media (max-width: 640px) {
  section { padding: 44px 16px; }
  section h2 { font-size: 1.7rem; }
  .hero h1 { font-size: 1.9rem; }
  .nav { padding: 12px 16px; gap: 12px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    background: var(--maroon); padding: 14px 20px 18px; gap: 12px;
  }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; margin-left: auto; }
  .bag-btn { margin-left: 0; }
  .hero-stage { min-height: 0; gap: 0; }
  .hero-card { display: none; width: 78vw; max-width: 320px; }
  .hero-card.centre { display: block; }
  .hero-card.centre img { height: 380px; }
  .product-grid { grid-template-columns: 1fr; }
  .product img { height: 340px; }
  .shop-banner img, .drape img { height: 300px; }
  .swatch { width: 100%; max-width: 320px; }
  .fan { gap: 14px; }
  .silk-pack { width: 150px; height: 220px; }
  .toast { white-space: normal; text-align: center; max-width: 90vw; }
}
