/* Keyura Elegance — saree store theme (Bootstrap 5 + custom) */

:root {
  --maroon: #6E1423;
  --maroon-dark: #4E0D18;
  --maroon-50: #F6E9EB;
  --gold: #C9962E;
  --gold-soft: #E7C878;
  --green: #1E5A44;
  --cream: #FBF6F0;
  --ink: #241a18;
  --ink-soft: #5b4f4b;
  --line: #eaded2;

  --bs-body-bg: var(--cream);
  --bs-body-color: var(--ink);
  --bs-body-font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-emphasis-color: var(--ink);
  --bs-link-color: var(--maroon);
  --bs-link-hover-color: var(--maroon-dark);
}

* { -webkit-tap-highlight-color: transparent; }
body { background: var(--cream); color: var(--ink); }
h1, h2, h3, h4, .brand-name { font-family: 'Fraunces', Georgia, serif; color: var(--ink); }
h1 { font-weight: 600; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }

.skip-link { position: fixed; left: 1rem; top: .6rem; z-index: 1080; background: var(--maroon); color: #fff; padding: .5rem .9rem; border-radius: 999px; }

/* ── Buttons ── */
.btn-maroon { background: var(--maroon); border-color: var(--maroon); color: #fff; border-radius: 999px; padding-inline: 1.4rem; }
.btn-maroon:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }
.btn-outline-maroon { border: 1px solid rgba(110,20,35,.35); color: var(--maroon); border-radius: 999px; background: transparent; }
.btn-outline-maroon:hover { background: var(--maroon-50); border-color: var(--maroon); color: var(--maroon-dark); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #2a1c05; border-radius: 999px; font-weight: 600; }
.btn-gold:hover { background: #b9861f; color: #2a1c05; }
.btn-outline-light { border-radius: 999px; }
.text-maroon { color: var(--maroon) !important; }

/* ── Announcement + header ── */
.announcement-bar { background: var(--maroon-dark); color: #f6e3c9; letter-spacing: .02em; }
.site-header { background: rgba(251,246,240,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.navbar { padding-block: .5rem; }
.brand-name { font-size: 1.35rem; color: var(--maroon); line-height: 1; }
.brand-accent { color: var(--gold); }
.brand-tagline { font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.navbar .nav-link { color: var(--ink); font-weight: 500; font-size: .95rem; }
.navbar .nav-link:hover { color: var(--maroon); }
.dropdown-menu { border: 1px solid var(--line); box-shadow: 0 12px 30px -12px rgba(78,13,24,.25); }
.nav-icon { color: var(--ink); padding: .4rem; display: inline-flex; }
.nav-icon:hover { color: var(--maroon); }
.cart-badge { position: absolute; top: -2px; right: -2px; background: var(--maroon); color: #fff; font-size: .62rem; min-width: 16px; height: 16px; border-radius: 999px; display: grid; place-items: center; padding: 0 3px; }
.search-form .form-control { min-width: 150px; }

/* ── Section scaffolding ── */
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { margin-bottom: 1.75rem; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .72rem; font-weight: 600; color: var(--maroon); margin-bottom: .35rem; }
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0; }
.section-sub { color: var(--ink-soft); margin-top: .4rem; }
.link-arrow { color: var(--maroon); font-weight: 500; }

/* ── Hero ── */
.hero { position: relative; color: #fff; min-height: 74vh; display: flex; align-items: center; overflow: hidden; background: var(--maroon-dark); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(52,8,16,.86), rgba(52,8,16,.35) 60%, transparent); }
.hero-inner { position: relative; z-index: 2; padding-block: 4rem; }
.hero-copy { max-width: 34rem; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; color: var(--gold-soft); }
.hero-title { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; margin: .6rem 0 0; }
.hero-sub { color: rgba(255,255,255,.85); margin-top: 1rem; }
.hero-cta { margin-top: 1.8rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Trust strip ── */
.trust-strip { background: var(--maroon-50); border-block: 1px solid var(--line); padding-block: 1.6rem; }
.trust-title { font-weight: 600; font-size: .95rem; }
.trust-desc { font-size: .8rem; color: var(--ink-soft); }

/* ── Category tiles ── */
.cat-tile { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; }
.cat-tile--sm { aspect-ratio: 1/1; }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,8,10,.72), transparent 55%); }
.cat-tile-label { position: absolute; left: 1rem; bottom: .9rem; z-index: 2; color: #fff; font-family: 'Fraunces', serif; font-size: 1.1rem; }

/* ── Product card ── */
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover { box-shadow: 0 16px 34px -18px rgba(78,13,24,.3); transform: translateY(-2px); }
.pc-media { position: relative; display: block; aspect-ratio: 4/5; background: var(--maroon-50); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-badge { position: absolute; left: .6rem; top: .6rem; background: var(--maroon); color: #fff; font-size: .62rem; font-weight: 600; padding: .2rem .5rem; border-radius: 999px; letter-spacing: .04em; }
.pc-badge--gold { background: var(--gold); color: #2a1c05; }
.pc-body { padding: .8rem .8rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.pc-eyebrow { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.pc-title { font-weight: 500; font-size: .9rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-title:hover { color: var(--maroon); }
.pc-price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-top: .15rem; }
.pc-now { font-weight: 600; }
.pc-was { color: var(--ink-soft); text-decoration: line-through; font-size: .8rem; }
.pc-off { color: var(--maroon); font-size: .78rem; font-weight: 500; }
.pc-rating { display: flex; align-items: center; gap: .35rem; }
.pc-reviews { font-size: .72rem; color: var(--ink-soft); }

/* Star rating (CSS only) — set --r to a 0..5 value */
.stars, .t-stars { --r: 5; display: inline-block; font-size: .8rem; line-height: 1; position: relative; color: #d9c9b6; }
.stars::before, .t-stars::before { content: "★★★★★"; letter-spacing: 1px; }
.stars::after, .t-stars::after { content: "★★★★★"; letter-spacing: 1px; color: var(--gold); position: absolute; left: 0; top: 0; overflow: hidden; width: calc(var(--r) / 5 * 100%); }
.t-stars { font-size: 1rem; margin: .5rem 0; }

/* ── Collection page ── */
.collection-hero { background: linear-gradient(rgba(251,246,240,.86), rgba(251,246,240,.96)), var(--hero) center/cover; border-bottom: 1px solid var(--line); padding-block: 3rem; }
.crumbs { font-size: .78rem; color: var(--ink-soft); margin-bottom: .6rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs span { margin: 0 .4rem; }
.collection-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.collection-hero p { color: var(--ink-soft); max-width: 40rem; margin: .4rem 0 0; }
.filter-panel { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: #fff; position: sticky; top: 90px; }
.filter-group { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.filter-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: .5rem; }
.form-check-label { font-size: .88rem; }
.empty-state { border: 1px dashed var(--line); border-radius: 14px; text-align: center; padding: 3rem 1rem; }
.pagination .page-link { color: var(--maroon); }
.pagination .active .page-link { background: var(--maroon); border-color: var(--maroon); }

/* ── Product detail ── */
.gallery-main { border-radius: 16px; overflow: hidden; background: var(--maroon-50); aspect-ratio: 4/5; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.gthumb { width: 64px; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: none; }
.gthumb.is-active { border-color: var(--maroon); }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--ink-soft); }
.pd-title { font-size: clamp(1.4rem, 3.4vw, 2rem); margin: .2rem 0 .4rem; }
.pd-rating { display: flex; align-items: center; gap: .4rem; }
.pd-rating .stars { font-size: .95rem; }
.pd-price { margin-top: .8rem; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.pd-now { font-size: 1.6rem; font-weight: 700; }
.pd-was { color: var(--ink-soft); text-decoration: line-through; }
.pd-off { color: var(--maroon); font-weight: 600; }
.pd-desc { margin-top: 1rem; color: var(--ink-soft); }
.pd-field { margin-top: 1rem; }
.pd-label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: .35rem; }
.pd-actions { display: flex; gap: .6rem; margin-top: 1.4rem; }
.pd-assurances { list-style: none; padding: 0; margin: 1.2rem 0 0; font-size: .8rem; color: var(--ink-soft); }
.pd-assurances li::before { content: "• "; color: var(--gold); }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid rgba(0,0,0,.2); border-radius: 999px; overflow: hidden; }
.qty-stepper button { border: 0; background: none; width: 38px; height: 38px; font-size: 1.1rem; color: var(--ink); }
.qty-stepper input { width: 46px; text-align: center; border: 0; background: none; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper--sm button { width: 30px; height: 30px; font-size: .95rem; }
.qty-stepper--sm input { width: 38px; }
.pd-tabs .nav-tabs .nav-link { color: var(--ink-soft); border: 0; border-bottom: 2px solid transparent; }
.pd-tabs .nav-tabs .nav-link.active { color: var(--maroon); border-bottom-color: var(--maroon); background: none; }

/* ── Cart / checkout / summary ── */
.cart-row { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); position: relative; }
.cart-thumb { width: 84px; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--maroon-50); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; }
.cart-title { font-weight: 500; color: var(--ink); }
.cart-row-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: .5rem; }
.cart-line-total { font-weight: 600; }
.cart-remove { position: absolute; right: 0; top: 1rem; border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--ink-soft); }
.summary-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 1.25rem; position: sticky; top: 90px; }
.sum-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .3rem 0; color: var(--ink-soft); }
.sum-total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .7rem; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.co-items, .os-items { list-style: none; padding: 0; margin: .5rem 0 1rem; }
.co-items li { display: grid; grid-template-columns: 44px 1fr auto; gap: .6rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.co-items img { border-radius: 6px; object-fit: cover; }
.os-items li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pay-option { border: 1px solid var(--line); border-radius: 12px; padding: .9rem; margin-top: .6rem; }
.pay-option.is-disabled { opacity: .55; }
.pay-option label { display: flex; gap: .7rem; margin: 0; cursor: pointer; }
.success-check { width: 56px; height: 56px; border-radius: 999px; background: var(--green); color: #fff; font-size: 1.6rem; display: grid; place-items: center; margin: 0 auto 1rem; }

/* ── Watch & buy ── */
.video-frame { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ── Testimonials ── */
.testimonials { background: var(--maroon); color: #fff; }
.testimonials .section { padding-block: 3.5rem; }
.t-quote { font-family: 'Fraunces', serif; font-size: clamp(1.05rem, 2.6vw, 1.4rem); max-width: 44rem; margin: 0 auto; }
.t-name { font-weight: 600; margin-top: .3rem; }
.t-loc { color: rgba(255,255,255,.7); font-weight: 400; }
.testimonials .carousel-control-prev, .testimonials .carousel-control-next { width: 8%; }

/* ── CTA band ── */
.cta-band { background: var(--maroon-50); border-radius: 20px; text-align: center; padding: 3rem 1.5rem; }
.cta-band h2 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
.cta-band p { color: var(--ink-soft); max-width: 34rem; margin: .5rem auto 1.4rem; }

/* ── Docs / policies ── */
.doc h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.doc h2, .doc h3 { margin-top: 1.6rem; font-size: 1.15rem; }
.doc p, .doc li { color: var(--ink-soft); line-height: 1.7; }
.policy-nav a { display: block; padding: .5rem .75rem; border-radius: 8px; color: var(--ink-soft); }
.policy-nav a.is-active { background: var(--maroon-50); color: var(--maroon); font-weight: 600; }

/* ── About hero ── */
.about-hero { position: relative; color: #fff; padding-block: 5rem; text-align: center; background: var(--maroon-dark); overflow: hidden; }
.about-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .4; }
.about-hero-inner { position: relative; z-index: 2; }
.about-hero h1 { color: #fff; }

/* ── Footer ── */
.site-footer { background: var(--maroon-50); border-top: 1px solid var(--line); }
.footer-head { font-weight: 600; margin-bottom: .6rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--maroon); }
.footer-muted { color: var(--ink-soft); }
.social { width: 34px; height: 34px; border: 1px solid rgba(110,20,35,.25); border-radius: 999px; display: grid; place-items: center; font-size: .7rem; color: var(--maroon); }

/* ── Lightbox ── */
.lb-overlay { position: fixed; inset: 0; background: rgba(20,8,10,.9); display: none; align-items: center; justify-content: center; z-index: 1090; padding: 2rem; }
.lb-overlay.is-open { display: flex; }
.lb-overlay img { max-width: 100%; max-height: 90vh; border-radius: 8px; }

@media (max-width: 991.98px) {
  .filter-panel, .summary-card { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── "See it on you" virtual drape studio ─────────────────────────── */
.btn-outline-gold { border: 1px solid var(--gold); color: #8a6a1e; border-radius: 999px; background: transparent; font-weight: 600; }
.btn-outline-gold:hover { background: var(--gold-soft); color: #4a3708; }
.nav-tryon { color: var(--gold) !important; font-weight: 600; }
.pd-tryon { display: inline-block; }

.tryon-hero { background: linear-gradient(120deg, var(--maroon), var(--maroon-dark)); color: #fff; padding: 3rem 0 2.5rem; }
.tryon-hero h1 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.6rem); }
.tryon-hero .eyebrow { color: var(--gold-soft); }
.lead-sub { color: rgba(255,255,255,.85); max-width: 42rem; margin-top: .5rem; }

.tryon-pick { display: block; cursor: pointer; height: 100%; }
.tryon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.tryon-pick-card { position: relative; display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; height: 100%; transition: border-color .15s, box-shadow .15s; }
.tryon-pick-card img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.tryon-pick-title { font-size: .8rem; padding: .5rem .6rem; color: var(--ink); }
.tryon-pick-tick { position: absolute; top: .5rem; right: .5rem; width: 26px; height: 26px; border-radius: 999px; background: var(--maroon); color: #fff; display: grid; place-items: center; font-size: .8rem; opacity: 0; transform: scale(.6); transition: .15s; }
.tryon-pick.is-selected .tryon-pick-card { border-color: var(--maroon); box-shadow: 0 8px 20px -12px rgba(110,20,35,.5); }
.tryon-pick.is-selected .tryon-pick-tick { opacity: 1; transform: scale(1); }
.tryon-pick.is-disabled { opacity: .45; cursor: not-allowed; }

.tryon-panel { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 1.25rem; position: sticky; top: 90px; }
.tryon-backdrops { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.tryon-backdrop { border: 1px solid var(--line); border-radius: 10px; padding: .5rem .6rem; font-size: .82rem; cursor: pointer; margin: 0; }
.tryon-backdrop input { margin-right: .4rem; accent-color: var(--maroon); }
.tryon-backdrop:has(input:checked) { border-color: var(--maroon); background: var(--maroon-50); }
.tryon-preview { margin-top: .6rem; }
.tryon-preview img { max-height: 200px; border-radius: 10px; border: 1px solid var(--line); }

.reel-video { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 9/16; max-height: 70vh; display: block; margin-inline: auto; }
.reel-progress { text-align: center; padding: 2rem 0; }
.reel-clip-dl { display: flex; gap: .5rem; flex-wrap: wrap; }
.text-maroon { color: var(--maroon); }

@media (max-width: 991.98px) { .tryon-panel { position: static; } }
