/* Sova Mart — cinematic theme.
 * A dark, film-like presentation layered over the base styles: deep plum-black stage, gold light,
 * film grain, vignettes, slow Ken Burns hero motion, scroll reveals and glowing glass cards.
 * Active when <html> has class "cinematic" (admin: Website design → "Cinematic look").
 */
html.cinematic {
  --bg: #0b0810;
  --soft: #15101c;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --ink: #f4efe7;
  --muted: #a99fb6;
  --gold: #f2c14e;
  --gold-2: #ffdf8e;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --radius: 18px;
  background: var(--bg);
  color-scheme: dark;
}
html.cinematic body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(232, 69, 107, .16), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(196, 39, 183, .12), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(242, 193, 78, .08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  letter-spacing: .005em;
}

/* film grain + vignette over the whole page */
html.cinematic body::before {
  content: ""; position: fixed; inset: -50%; z-index: 9998; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
html.cinematic body::after {
  content: ""; position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45) 100%);
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -4%); } 60% { transform: translate(-3%, 5%); } 80% { transform: translate(5%, 2%); } 100% { transform: translate(0, 0); } }

/* typography */
html.cinematic h1, html.cinematic h2, html.cinematic h3 { letter-spacing: -.015em; }
html.cinematic .section-head h2, html.cinematic .page-head h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700;
  background: linear-gradient(180deg, #fff 0%, #f3e6c8 70%, var(--gold) 140%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.cinematic .section-head h2::after { content: ""; display: block; width: 56px; height: 2px; margin-top: 10px; background: linear-gradient(90deg, var(--gold), transparent); }
html.cinematic a:hover { color: var(--gold-2); }
html.cinematic .muted, html.cinematic small { color: var(--muted); }

/* announcement + header: glass over the stage */
html.cinematic .topbar { background: linear-gradient(90deg, #1a0f22, #2a1530, #1a0f22); color: var(--gold-2); letter-spacing: .04em; border-bottom: 1px solid rgba(242, 193, 78, .18); }
html.cinematic .preview-bar { background: #1f4fd1; }
html.cinematic .site-header { background: rgba(11, 8, 16, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); transition: background .3s, box-shadow .3s; }
html.cinematic .site-header.scrolled { background: rgba(11, 8, 16, .9); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
html.cinematic .logo { color: var(--ink); }
html.cinematic .logo-img { filter: drop-shadow(0 0 12px rgba(242, 193, 78, .25)); }
html.cinematic .search { background: var(--panel); border-color: var(--line); }
html.cinematic .search input { color: var(--ink); }
html.cinematic .search input::placeholder { color: var(--muted); }
html.cinematic .search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242, 193, 78, .12); }
html.cinematic .icon-btn { background: var(--panel); color: var(--ink); border: 1px solid var(--line); }
html.cinematic .main-nav a { color: #d9d0e3; }
html.cinematic .main-nav a.active, html.cinematic .main-nav a:hover { background: rgba(242, 193, 78, .12); color: var(--gold-2); }

/* hero: taller "widescreen" stage, slow Ken Burns, light leak, letterbox fade */
html.cinematic .slider { background: #08060c; }
html.cinematic .slides, html.cinematic .slide.on { min-height: clamp(420px, 62vh, 640px); }
html.cinematic .slide { transition: opacity 1.2s ease; }
/* Ken Burns: the picture layer slowly settles while the text stays still */
html.cinematic .slider:not(.has-shader) .slide { background-image: none !important; }
html.cinematic .slider:not(.has-shader) .slide-art { display: block; position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
html.cinematic .slide { overflow: hidden; }
html.cinematic .slide.on .slide-art { animation: kenburns 14s ease-out both; }
@keyframes kenburns { from { transform: scale(1.14) translateX(1.5%); } to { transform: scale(1) translateX(0); } }
html.cinematic .slide::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 6, 12, .55) 0%, transparent 18%, transparent 72%, rgba(11, 8, 16, 1) 100%); }
html.cinematic .slide-inner { z-index: 2; }
html.cinematic .slide h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); text-shadow: 0 4px 30px rgba(0, 0, 0, .55); }
html.cinematic .slide.on .slide-inner > * { animation: riseIn .9s cubic-bezier(.2, .8, .2, 1) both; }
html.cinematic .slide.on .slide-inner > :nth-child(2) { animation-delay: .15s; }
html.cinematic .slide.on .slide-inner > :nth-child(3) { animation-delay: .3s; }
html.cinematic .slider::after { content: ""; position: absolute; top: -20%; left: -30%; width: 40%; height: 140%; pointer-events: none; z-index: 2;
  background: linear-gradient(100deg, transparent, rgba(255, 223, 142, .10), transparent); transform: skewX(-12deg); animation: lightleak 9s ease-in-out infinite; }
@keyframes lightleak { 0%, 55% { left: -40%; } 100% { left: 130%; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
html.cinematic .dots { z-index: 3; }
html.cinematic .dots button.on { background: var(--gold); }
html.cinematic .hero { background: radial-gradient(circle at 80% 20%, rgba(242, 193, 78, .15), transparent 45%), linear-gradient(135deg, #1a0f22, #0b0810); }
html.cinematic .hero h1, html.cinematic .hero p { color: var(--ink); }
html.cinematic .hero-art span { background: var(--panel-2); border: 1px solid var(--line); }

/* buttons */
html.cinematic .btn { background: linear-gradient(135deg, var(--brand), #c427b7); box-shadow: 0 8px 26px rgba(232, 69, 107, .35); transition: transform .2s, box-shadow .2s, filter .2s; }
html.cinematic .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(232, 69, 107, .5); filter: brightness(1.08); color: #fff; }
html.cinematic .btn-alt { background: linear-gradient(135deg, #f2c14e, #d99a1e); color: #1a0f22; box-shadow: 0 8px 26px rgba(242, 193, 78, .3); }
html.cinematic .btn-alt:hover { color: #1a0f22; }
html.cinematic .btn-ghost { background: transparent; color: var(--ink); border: 1px solid rgba(255, 255, 255, .22); box-shadow: none; }
html.cinematic .btn-ghost:hover { background: var(--panel-2); color: var(--gold-2); }
html.cinematic .btn:disabled { background: #3a3242; box-shadow: none; color: #9b92a6; transform: none; }

/* surfaces: glass panels */
html.cinematic .perks-band, html.cinematic .page-head { background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); border-block: 1px solid var(--line); }
html.cinematic .perk span { filter: drop-shadow(0 0 10px rgba(242, 193, 78, .35)); }
html.cinematic .perk small, html.cinematic .cat small { color: var(--muted); }
html.cinematic .card, html.cinematic .form-card, html.cinematic .summary, html.cinematic .empty, html.cinematic .values div, html.cinematic .perks {
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html.cinematic .card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; overflow: hidden; }
html.cinematic .card:hover { transform: translateY(-6px); border-color: rgba(242, 193, 78, .45); box-shadow: 0 22px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(242, 193, 78, .15), 0 0 40px rgba(232, 69, 107, .15); }
html.cinematic .card .pvisual { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
html.cinematic .card:hover .pvisual { transform: scale(1.06); }
html.cinematic .card h3 { color: var(--ink); }
html.cinematic .price b { color: var(--gold-2); }
html.cinematic .price s { color: var(--muted); }
html.cinematic .wish { background: rgba(11, 8, 16, .7); color: #ff7c9c; border: 1px solid var(--line); }
html.cinematic .tag-off { background: rgba(26, 155, 92, .18); color: #6fe3a8; }
html.cinematic .tag-new { background: rgba(120, 130, 255, .18); color: #b9bfff; }
html.cinematic .tag-best { background: rgba(242, 193, 78, .16); color: var(--gold-2); }
html.cinematic .tag-out { background: rgba(255, 255, 255, .08); color: var(--muted); }
html.cinematic .tag-offer { background: rgba(255, 140, 60, .18); color: #ffb37a; }
html.cinematic .cat { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 14px 34px rgba(0, 0, 0, .45); color: #1f1628; transition: transform .35s, box-shadow .35s; }
html.cinematic .cat:hover { transform: translateY(-6px) scale(1.02); box-shadow: inset 0 0 0 1px rgba(242, 193, 78, .7), 0 20px 44px rgba(0, 0, 0, .6); color: #1f1628; }
html.cinematic .cat small { color: rgba(31, 22, 40, .65); }
html.cinematic .char { background: rgba(255, 255, 255, .96); border: 1px solid rgba(242, 193, 78, .35); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
html.cinematic .char span { color: #1f1628; }
html.cinematic .char:hover { border-color: var(--gold); box-shadow: 0 20px 44px rgba(0, 0, 0, .6), 0 0 30px rgba(242, 193, 78, .25); }
html.cinematic .offer-card { background: linear-gradient(135deg, rgba(242, 193, 78, .16), rgba(232, 69, 107, .14)); border: 1px solid rgba(242, 193, 78, .4); }
html.cinematic .offer-card b { color: var(--ink); }
html.cinematic .promo-card { box-shadow: var(--shadow); position: relative; overflow: hidden; }
html.cinematic .promo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .35)); pointer-events: none; }
html.cinematic .promo-card > * { position: relative; z-index: 1; }
html.cinematic .promo-card .btn { background: #fff; color: #1f1628; box-shadow: none; }

/* forms */
html.cinematic select, html.cinematic input, html.cinematic textarea { background: rgba(255, 255, 255, .05); color: var(--ink); border-color: var(--line); }
html.cinematic select option { background: #1a1322; color: var(--ink); }
html.cinematic select:focus, html.cinematic input:focus, html.cinematic textarea:focus { outline: 2px solid rgba(242, 193, 78, .25); border-color: var(--gold); }
html.cinematic .qty { border-color: var(--line); }
html.cinematic .qty button { background: var(--panel-2); color: var(--ink); }
html.cinematic .pay-option { border-color: var(--line); }
html.cinematic .pay-option:has(input:checked) { background: rgba(242, 193, 78, .08); border-color: var(--gold); }
html.cinematic .upi-box, html.cinematic .upi-pay { background: rgba(242, 193, 78, .08); border: 1px solid rgba(242, 193, 78, .3); }
html.cinematic .coupon-applied { background: rgba(26, 155, 92, .15); }
html.cinematic .summary .total { border-top-color: rgba(255, 255, 255, .15); }
html.cinematic .line { border-bottom-color: var(--line); }
html.cinematic .thumb-btn { background: var(--panel); border-color: var(--line); }
html.cinematic .thumb-btn.on { border-color: var(--gold); }
html.cinematic .crumbs, html.cinematic .crumbs a { color: var(--muted); }
html.cinematic .save { color: #6fe3a8; }
html.cinematic .wa-link { color: #6fe3a8; }

/* footer + toasts */
html.cinematic .site-footer { background: #07050a; color: #b7adc4; border-top: 1px solid rgba(242, 193, 78, .18); margin-top: 40px; }
html.cinematic .footer-bottom { border-top-color: var(--line); }
html.cinematic .toast { background: #1a1322; border: 1px solid rgba(242, 193, 78, .3); color: var(--ink); }
html.cinematic .wa-float { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: waPulse 2.6s infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* scroll reveals (added by cinematic.js) */
html.cinematic .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
html.cinematic .reveal.in { opacity: 1; transform: none; }

/* page fade-in */
html.cinematic main { animation: pageIn .8s ease-out both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* comfort & performance */
@media (max-width: 760px) {
  html.cinematic body { background-attachment: scroll; }
  html.cinematic body::before { animation: none; opacity: .05; }
  html.cinematic .slides, html.cinematic .slide.on { min-height: 480px; }
  html.cinematic .slider::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.cinematic body::before, html.cinematic .slider::after, html.cinematic .wa-float { animation: none; }
  html.cinematic .slide.on, html.cinematic .slide.on .slide-art, html.cinematic .slide.on .slide-inner > *, html.cinematic main { animation: none !important; }
  html.cinematic .reveal { opacity: 1; transform: none; transition: none; }
}
