/* ==========================================================================
   VINTAGE GOLDEN POSTERS — Storefront
   Same brand colours (red / navy / gold / cream), stronger cinematic treatment
   ========================================================================== */

/* ========== CSS VARIABLES ========== */
:root {
  --primary: #D7263D;
  --primary-dark: #b91e32;
  --primary-light: #ff3d59;
  --secondary: #02182B;
  --secondary-light: #0a2d47;
  --ink: #010C16;
  --accent: #C5A880;
  --accent-dark: #b09670;
  --accent-light: #E9D3A6;
  --bg: #F5F0E6;
  --bg-deep: #EDE5D4;
  --text: #0A0A0A;
  --muted: #6B6B6B;
  --card-bg: #ffffff;
  --line: rgba(2, 24, 43, 0.1);

  --gold-grad: linear-gradient(135deg, #F3E2B8 0%, #C5A880 45%, #8E7350 100%);
  --red-grad: linear-gradient(135deg, #ff3d59 0%, #D7263D 50%, #a51829 100%);

  --font-display: 'Bebas Neue', Impact, 'Arial Narrow Bold', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(2, 24, 43, 0.10);
  --shadow-lg: 0 24px 60px rgba(2, 24, 43, 0.22);
  --shadow-hover: 0 22px 50px rgba(215, 38, 61, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: all 0.4s var(--ease);
  --container: 1320px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(40px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes beam {
  0%, 100% { transform: rotate(-18deg); opacity: .55; }
  50% { transform: rotate(14deg); opacity: .9; }
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(215, 38, 61, .7); }
  100% { box-shadow: 0 0 0 12px rgba(215, 38, 61, 0); }
}
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
@keyframes posterIn {
  from { opacity: 0; transform: translateY(80px) rotate(var(--r, 0deg)) scale(.9); }
  to { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)) scale(1); }
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-14px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
}
@keyframes bulbs {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ========== RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--primary); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========== HEADER / NAVBAR ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  background: rgba(2, 24, 43, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #fff;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(197, 168, 128, 0.18);
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}

/* Transparent header on top of the home hero */
body.has-hero .site-header {
  position: fixed;
  left: 0;
  right: 0;
}
body.has-hero .site-header:not(.is-scrolled) .navbar {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  padding: 1.35rem 0;
}
.site-header.is-scrolled .navbar {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.navbar-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.2px;
  white-space: nowrap;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(197, 168, 128, .12);
  border: 1px solid rgba(197, 168, 128, .35);
  transition: transform .5s var(--ease);
}
.brand-mark svg { width: 26px; height: 26px; }
.navbar-brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
.brand-accent {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-links {
  display: flex;
  gap: .4rem;
  align-items: center;
}
.nav-link {
  position: relative;
  padding: .55rem 1rem;
  font-weight: 600;
  font-size: .95rem;
  color: rgba(255, 255, 255, .78);
  border-radius: 50px;
  transition: color .3s, background .3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .3rem;
  height: 2px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: #fff; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

.navbar-actions {
  display: flex;
  gap: .7rem;
  align-items: center;
}

.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  height: 44px;
  padding: 0 1.15rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--secondary);
  background: var(--gold-grad);
  box-shadow: 0 6px 20px rgba(197, 168, 128, .3);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.cart-icon:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(197, 168, 128, .45); }
.cart-svg { width: 20px; height: 20px; }
.cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(2, 24, 43, .9);
}
.cart-badge.is-empty { background: var(--secondary); }
.cart-badge.bump { animation: bump .6s var(--ease); }

.admin-pill { height: 44px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========== BUTTONS ========== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.2;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
  text-align: center;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -120%;
  width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--ease);
  z-index: -1;
}
.btn:hover::before { left: 140%; }
.btn > * { position: relative; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--red-grad);
  color: #fff;
  box-shadow: 0 10px 24px rgba(215, 38, 61, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(215, 38, 61, .42); }

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}
.btn-secondary:hover { background: var(--secondary-light); transform: translateY(-2px); }

.btn-accent, .btn-gold {
  background: var(--gold-grad);
  color: var(--secondary);
  box-shadow: 0 10px 24px rgba(197, 168, 128, .35);
}
.btn-accent:hover, .btn-gold:hover { transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--line);
}
.btn-ghost:hover { border-color: var(--secondary); }

.btn-ghost-gold {
  background: rgba(197, 168, 128, .08);
  color: var(--accent-light);
  border: 1.5px solid rgba(197, 168, 128, .55);
}
.btn-ghost-gold:hover { background: rgba(197, 168, 128, .18); color: #fff; }

.btn-whatsapp {
  background: linear-gradient(135deg, #2fe07a, #1fae5a);
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 174, 90, .35);
}
.btn-whatsapp:hover { transform: translateY(-2px); }

.btn-large { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-disabled {
  background: #ece6da;
  color: var(--muted);
  cursor: not-allowed;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1200px 600px at 78% 40%, rgba(215, 38, 61, .28), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(197, 168, 128, .18), transparent 60%),
    linear-gradient(180deg, #021426 0%, var(--ink) 100%);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-bg .hero-reels {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .14;
  filter: grayscale(1) contrast(1.2);
  mix-blend-mode: screen;
}
.hero-bg .beam {
  position: absolute;
  top: -20%;
  width: 34vw;
  height: 140%;
  background: linear-gradient(180deg, rgba(243, 226, 184, .22), rgba(243, 226, 184, 0) 75%);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  filter: blur(6px);
  animation: beam 11s ease-in-out infinite;
}
.hero-bg .beam-1 { left: 12%; }
.hero-bg .beam-2 { right: 6%; animation-delay: -5s; animation-duration: 13s; }
.hero-bg .grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: .09;
  animation: grain 1.2s steps(4) infinite;
}
.hero-bg .vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, .55) 100%);
}

.hero-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 8.5rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}

.hero-content > * {
  opacity: 0;
  animation: riseIn 1s var(--ease) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: .15s; }
.hero-content > *:nth-child(2) { animation-delay: .3s; }
.hero-content > *:nth-child(3) { animation-delay: .5s; }
.hero-content > *:nth-child(4) { animation-delay: .65s; }
.hero-content > *:nth-child(5) { animation-delay: .8s; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .45rem 1rem .45rem .8rem;
  border-radius: 50px;
  border: 1px solid rgba(197, 168, 128, .4);
  background: rgba(197, 168, 128, .08);
  color: var(--accent-light);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulseDot 1.6s infinite;
}

.hero h1 {
  margin: 1.4rem 0 1.2rem;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(3rem, 6.4vw, 5.9rem);
  line-height: .98;
  letter-spacing: -1.5px;
  color: #fff;
}
.hero h1 em {
  display: block;
  font-style: italic;
  background: linear-gradient(90deg, #F3E2B8, #C5A880, #fff3d4, #C5A880, #F3E2B8);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 6s linear infinite;
  padding-bottom: .08em;
}
.hero p.hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, .78);
  max-width: 34rem;
}
.hero .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}
.hero-perks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  margin-top: 2.4rem;
  color: rgba(255, 255, 255, .72);
  font-size: .92rem;
  font-weight: 600;
}
.hero-perks li {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-perks li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(197, 168, 128, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23E9D3A6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Floating poster stage */
.hero-stage {
  position: relative;
  height: min(620px, 70vh);
  perspective: 1400px;
}
.hero-stage-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.hero-poster {
  position: absolute;
  width: 46%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(197, 168, 128, .35);
  opacity: 0;
  animation: posterIn 1.2s var(--ease) forwards;
  transform: rotate(var(--r, 0deg));
  background: var(--secondary);
}
.hero-poster > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, .25) 100%);
  pointer-events: none;
}
.hero-poster .float-wrap { animation: none; }
.hero-poster.p1 { --r: -9deg; left: 0; top: 16%; z-index: 1; animation-delay: .5s; }
.hero-poster.p2 { --r: 2deg; left: 27%; top: 2%; width: 50%; z-index: 3; animation-delay: .3s; }
.hero-poster.p3 { --r: 10deg; right: 0; top: 20%; z-index: 2; animation-delay: .7s; }
.hero-poster-link { position: absolute; inset: 0; z-index: 2; }
.float { animation: float 7s ease-in-out infinite; position: absolute; inset: 0; }
.float.f2 { animation-delay: -2s; animation-duration: 8s; }
.float.f3 { animation-delay: -4s; animation-duration: 9s; }

.hero-ticket {
  position: absolute;
  left: 8%;
  bottom: 3%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 1.4rem .9rem 1.1rem;
  background: var(--gold-grad);
  color: var(--secondary);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
  transform: rotate(-4deg);
  opacity: 0;
  animation: riseIn 1s var(--ease) 1.1s forwards;
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.hero-ticket .t-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 2px;
  line-height: 1;
  border-right: 2px dashed rgba(2, 24, 43, .35);
  padding-right: 1rem;
}
.hero-ticket .t-price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
}
.hero-ticket small { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: .75; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 20px;
}
.scroll-cue::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: float 1.6s ease-in-out infinite;
}

/* Marquee bulbs strip */
.bulbs {
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background-image: radial-gradient(circle, #ffe9a8 0 2.4px, transparent 3px);
  background-size: 26px 10px;
  opacity: .9;
  filter: drop-shadow(0 0 4px rgba(255, 220, 140, .9));
  animation: bulbs 1.4s steps(2) infinite;
}
.bulbs.bottom { bottom: 0; }

/* ========== TICKER ========== */
.ticker {
  background: var(--primary);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  border-top: 3px solid var(--secondary);
  border-bottom: 3px solid var(--secondary);
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: inline-flex;
  animation: marquee 32s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker a, .ticker span.t-item {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 3px;
  padding: .7rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
}
.ticker a::after, .ticker span.t-item::after {
  content: '★';
  color: var(--accent-light);
  font-size: 1rem;
}
.ticker a:hover { color: var(--accent-light); }

/* ========== SECTIONS ========== */
.section {
  padding: 6rem 2rem;
  max-width: var(--container);
  margin: 0 auto;
}
.section-tight { padding-top: 3rem; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header.split {
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.section-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: .6rem;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--secondary);
  letter-spacing: -.8px;
  position: relative;
}
.section-title em { font-style: italic; color: var(--primary); }
.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: .9rem;
  font-weight: 500;
}
.section-header:not(.split) .section-subtitle { max-width: 38rem; margin-left: auto; margin-right: auto; }
.section-link {
  font-weight: 700;
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: gap .3s var(--ease), color .3s;
}
.section-link:hover { gap: .9rem; color: var(--primary); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ========== GENRE TILES ========== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1.1rem;
}
.genre-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.5rem 1.3rem 1.3rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(160deg, var(--secondary-light), var(--ink));
  border: 1px solid rgba(197, 168, 128, .2);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  isolation: isolate;
}
.genre-tile::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tile-glow, rgba(215, 38, 61, .55)), transparent 70%);
  z-index: -1;
  transition: transform .6s var(--ease);
}
.genre-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(197, 168, 128, .6); }
.genre-tile:hover::before { transform: scale(1.5); }
.genre-icon { font-size: 2rem; line-height: 1; }
.genre-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-top: 1.4rem;
}
.genre-count {
  font-size: .82rem;
  color: var(--accent-light);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin-top: .3rem;
}
.genre-count::after { content: '→'; transition: transform .3s var(--ease); }
.genre-tile:hover .genre-count::after { transform: translateX(5px); }

/* ========== PRODUCT GRID & CARDS ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 1.8rem 1.3rem;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--line), var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease);
}
.product-card.is-visible:hover,
.no-js .product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-link { display: block; }
.product-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--secondary);
}
.product-image .product-visual {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--ease);
}
.product-card:hover .product-visual { transform: scale(1.07); }
.product-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg);
  transition: left .9s var(--ease);
  z-index: 2;
  pointer-events: none;
}
.product-card:hover .product-image::before { left: 150%; }
.product-image::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(1, 12, 22, .75));
  opacity: 0;
  transition: opacity .5s var(--ease);
  z-index: 1;
}
.product-card:hover .product-image::after { opacity: 1; }

.product-badges {
  position: absolute;
  top: .9rem;
  left: .9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .4rem;
  z-index: 3;
}
.product-badge {
  background: var(--gold-grad);
  color: var(--secondary);
  padding: .3rem .75rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.product-badge.badge-sale { background: var(--primary); color: #fff; }

.product-quick {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 14px);
  opacity: 0;
  z-index: 3;
  padding: .5rem 1.1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, .95);
  color: var(--secondary);
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.product-card:hover .product-quick { opacity: 1; transform: translate(-50%, 0); }

.product-info {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.product-cat {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.product-title {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .3s;
}
.product-card:hover .product-title { color: var(--primary); }
.product-description { display: none; }
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
  margin-top: auto;
  padding-top: .35rem;
}
.product-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: .5px;
  color: var(--primary);
  line-height: 1;
  white-space: nowrap;
}
.product-compare {
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--muted);
  font-weight: 600;
  margin-left: .2rem;
}
.product-size {
  white-space: nowrap;
  font-size: .75rem;
  font-weight: 800;
  color: var(--secondary);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: .2rem .55rem;
  border-radius: 6px;
}
.product-actions { margin-top: .7rem; display: flex; flex-direction: column; gap: .45rem; }
.product-actions form { display: block; }
.product-actions .btn { width: 100%; padding: .72rem 1rem; font-size: .92rem; }
.product-stock {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.product-stock.is-low { color: var(--primary); text-align: center; }
.out-of-stock { color: var(--muted); }
.btn-cart.is-loading { pointer-events: none; opacity: .8; }
.btn-cart.is-added { background: linear-gradient(135deg, #2fb36d, #1f8f53); box-shadow: 0 10px 24px rgba(31, 143, 83, .35); }

.no-products, .empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 2px dashed rgba(197, 168, 128, .5);
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: .6rem; }
.empty-state h3 { font-family: var(--font-serif); color: var(--secondary); font-size: 1.6rem; margin-bottom: .4rem; }
.empty-state .btn { margin-top: 1.4rem; }

/* ========== HOW IT WORKS (dark band) ========== */
.band-dark {
  position: relative;
  background:
    radial-gradient(800px 400px at 85% 0%, rgba(215, 38, 61, .22), transparent 60%),
    linear-gradient(180deg, var(--secondary), var(--ink));
  color: #fff;
  overflow: hidden;
}
.band-dark::before, .band-dark::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 22px;
  background:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(245, 240, 230, .85) 14px 26px, transparent 26px 40px);
  -webkit-mask: linear-gradient(#000 0 0) center / 100% 10px no-repeat;
          mask: linear-gradient(#000 0 0) center / 100% 10px no-repeat;
  opacity: .14;
}
.band-dark::before { top: 10px; }
.band-dark::after { bottom: 10px; }
.band-dark .section-title { color: #fff; }
.band-dark .section-subtitle { color: rgba(255, 255, 255, .7); }
.band-dark .section-kicker { color: var(--accent); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2.2rem 1.8rem 2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(197, 168, 128, .22);
  transition: transform .5s var(--ease), border-color .5s, background .5s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(197, 168, 128, .6); background: rgba(255, 255, 255, .07); }
.step-num {
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: .8;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.step h3 { font-family: var(--font-serif); font-size: 1.4rem; margin: 1rem 0 .5rem; }
.step p { color: rgba(255, 255, 255, .72); }
.step-icon {
  position: absolute;
  top: 1.8rem;
  right: 1.6rem;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(215, 38, 61, .16);
  color: var(--primary-light);
}
.step-icon svg { width: 24px; height: 24px; }

/* ========== CTA BANNER ========== */
.cta-banner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto 2rem;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  padding: 4.5rem 3.5rem;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--secondary);
  isolation: isolate;
}
.cta-banner .cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(2, 24, 43, .96) 0%, rgba(2, 24, 43, .85) 45%, rgba(215, 38, 61, .55) 100%);
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.1;
}
.cta-banner h2 em { color: var(--accent-light); }
.cta-banner p { color: rgba(255, 255, 255, .78); margin-top: .8rem; max-width: 34rem; }

/* ========== PAGE BANNER (inner pages) ========== */
.page-banner {
  position: relative;
  color: #fff;
  padding: 3.6rem 2rem 3.2rem;
  background:
    radial-gradient(700px 300px at 85% 10%, rgba(215, 38, 61, .3), transparent 60%),
    radial-gradient(500px 260px at 5% 100%, rgba(197, 168, 128, .2), transparent 60%),
    linear-gradient(180deg, var(--secondary), var(--ink));
  overflow: hidden;
}
.page-banner-inner { max-width: var(--container); margin: 0 auto; position: relative; z-index: 1; }
.page-banner h1, .page-banner .section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  color: #fff;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.8px;
}
.page-banner p, .page-banner .section-subtitle { color: rgba(255, 255, 255, .72); margin-top: .6rem; }
.page-banner .breadcrumb { padding: 0; margin: 0 0 1rem; color: rgba(255, 255, 255, .55); max-width: none; }
.page-banner .breadcrumb a { color: var(--accent-light); }
.page-banner .bulbs { opacity: .5; }

/* ========== BREADCRUMB ========== */
.breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.6rem 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
}
.breadcrumb a { color: var(--primary); transition: color .3s; }
.breadcrumb a:hover { color: var(--primary-dark); }

/* ========== CATALOG ========== */
.catalog-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.4rem 2rem 4rem;
}
.catalog-toolbar {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: -4.6rem;
  position: relative;
  z-index: 3;
  background: #fff;
  padding: 1rem;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.catalog-search-box { flex: 1 1 340px; }
.catalog-search-form { width: 100%; }
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.catalog-search-input {
  flex: 1;
  width: 100%;
  height: 52px;
  padding: 0 1.2rem 0 3rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%236B6B6B' stroke-width='2'/%3E%3Cpath d='M20 20l-4-4' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 1rem center / 20px no-repeat;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.catalog-search-input:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(197, 168, 128, .2);
}
.catalog-search-btn, .catalog-reset-btn {
  height: 52px;
  padding: 0 1.3rem;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s;
}
.catalog-search-btn { background: var(--secondary); color: #fff; }
.catalog-search-btn:hover { background: var(--primary); transform: translateY(-1px); }
.catalog-reset-btn { background: transparent; color: var(--muted); border: 2px solid var(--line); }
.catalog-reset-btn:hover { color: var(--primary); border-color: var(--primary); }

.sort-box { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--secondary); font-size: .9rem; }
.filter-select {
  height: 52px;
  padding: 0 2.6rem 0 1rem;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2302182B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right .9rem center / 16px no-repeat;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
}
.filter-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(197, 168, 128, .2); }

.catalog-controls {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2.4rem;
  margin-top: 2.4rem;
  align-items: start;
}
.filters {
  position: sticky;
  top: 96px;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.filters h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--secondary);
  margin-bottom: .6rem;
}
.filter-group h4 {
  font-size: .75rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin: .6rem 0 .7rem;
  cursor: default;
}
.filter-options { display: flex; flex-direction: column; gap: .25rem; }
.filter-options label {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .75rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  color: var(--secondary);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.filter-options label:hover { background: var(--bg); transform: translateX(3px); }
.filter-options label .f-count {
  margin-left: auto;
  font-size: .75rem;
  color: var(--muted);
  background: var(--bg);
  border-radius: 50px;
  padding: .05rem .5rem;
}
.filter-options input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  flex: none;
  cursor: pointer;
}
.filter-options input[type="radio"]::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.filter-options input[type="radio"]:checked::after { transform: scale(1); }
.filter-options label:has(input:checked) { background: rgba(215, 38, 61, .07); color: var(--primary); }

.results-line { color: var(--muted); font-weight: 600; margin-bottom: 1.2rem; font-size: .95rem; }
.results-line strong { color: var(--secondary); }

/* ========== PRODUCT DETAIL ========== */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.4rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.product-detail-image {
  position: sticky;
  top: 100px;
}
.poster-frame {
  position: relative;
  padding: 1.4rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 38, 61, .35), transparent 60%),
    linear-gradient(180deg, var(--secondary), var(--ink));
  box-shadow: var(--shadow-lg);
  perspective: 1200px;
}
.product-detail-image-main {
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(197, 168, 128, .45);
  transition: transform .4s var(--ease);
  transform-style: preserve-3d;
  background: var(--secondary);
}
.product-detail-image-main > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-frame .frame-caption {
  text-align: center;
  color: var(--accent-light);
  font-family: var(--font-display);
  letter-spacing: 3px;
  margin-top: 1rem;
  font-size: .95rem;
}

.product-detail-info { padding-top: .5rem; }
.product-detail-header { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.product-detail-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--secondary);
  letter-spacing: -.6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem .8rem;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1px;
}
.badge-new { background: var(--gold-grad); color: var(--secondary); margin-top: .6rem; }

.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1rem 0 1.4rem;
}
.product-detail-meta span {
  font-size: .82rem;
  font-weight: 700;
  padding: .35rem .8rem;
  border-radius: 50px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--secondary);
}
.product-detail-meta .category { background: var(--secondary); color: var(--accent-light); border-color: var(--secondary); }

.product-detail-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .8rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.current-price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--primary);
  letter-spacing: 1px;
  order: -1;
}
.original-price { color: var(--muted); text-decoration: line-through; font-weight: 600; font-size: 1.1rem; }
.discount-percent { background: var(--primary); color: #fff; font-weight: 800; font-size: .8rem; padding: .25rem .6rem; border-radius: 50px; }

.product-detail-description {
  color: #3b3b3b;
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 1.5rem 0;
}
.product-detail-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-bottom: 1.6rem;
}
.spec {
  background: #fff;
  border-radius: 12px;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
}
.spec label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 800;
  color: var(--muted);
}
.spec span { font-weight: 800; color: var(--secondary); font-size: 1.05rem; }

.product-detail-actions form {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.quantity-selector {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 50px;
  padding: .3rem;
  height: 60px;
}
.quantity-selector label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.qty-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--secondary);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.qty-btn:hover { background: var(--secondary); color: #fff; }
.quantity-selector input {
  width: 54px;
  border: none;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: inherit;
  color: var(--secondary);
  background: transparent;
  -moz-appearance: textfield;
}
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-selector input:focus { outline: none; }
.product-detail-actions .btn-large { flex: 1; min-width: 220px; height: 60px; }

.perks {
  list-style: none;
  display: grid;
  gap: .7rem;
  margin: 1.8rem 0;
  padding: 1.3rem 1.4rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.perks li { display: flex; gap: .8rem; align-items: center; font-weight: 600; color: var(--secondary); font-size: .95rem; }
.perks .perk-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(197, 168, 128, .18);
  flex: none;
}

.out-of-stock-notice {
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  background: rgba(215, 38, 61, .07);
  border: 1px solid rgba(215, 38, 61, .25);
  color: var(--primary);
  font-weight: 800;
}

.product-detail-info-sections { display: grid; gap: .7rem; }
.product-detail-info-sections details {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 1.2rem;
  transition: box-shadow .3s;
}
.product-detail-info-sections details[open] { box-shadow: var(--shadow); }
.product-detail-info-sections summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
}
.product-detail-info-sections summary::-webkit-details-marker { display: none; }
.product-detail-info-sections summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--primary); transition: transform .3s var(--ease); }
.product-detail-info-sections details[open] summary::after { transform: rotate(45deg); }
.product-detail-info-sections details p { padding-bottom: 1rem; color: var(--muted); }

/* ========== CART ========== */
.cart-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.4rem 2rem 4rem;
}
.cart-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 2rem;
  align-items: start;
}
.cart-list { display: grid; gap: 1rem; }
.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 1.2rem;
  align-items: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 1px 0 var(--line);
  border: 1px solid var(--line);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.cart-item:hover { box-shadow: var(--shadow); }
.cart-thumb {
  width: 92px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--secondary);
  display: block;
}
.cart-thumb > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-item h3 { font-family: var(--font-serif); font-size: 1.15rem; color: var(--secondary); line-height: 1.25; }
.cart-item h3 a:hover { color: var(--primary); }
.cart-item .size { color: var(--muted); font-size: .85rem; font-weight: 600; margin-top: .2rem; }
.cart-item .unit-price { color: var(--muted); font-size: .85rem; margin-top: .2rem; }
.cart-item-controls { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.update-quantity-form { display: flex; align-items: center; gap: .4rem; }
.update-quantity-form input[type="number"] {
  width: 70px;
  height: 40px;
  border: 2px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-weight: 800;
  font-family: inherit;
  font-size: 1rem;
  color: var(--secondary);
}
.update-quantity-form input:focus { outline: none; border-color: var(--accent); }
.btn-update {
  height: 40px;
  padding: 0 .9rem;
  border-radius: 10px;
  border: none;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: .85rem;
}
.btn-update:hover { background: var(--primary); }
.btn-remove {
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
  padding: .4rem .6rem;
  border-radius: 8px;
}
.btn-remove:hover { color: var(--primary); background: rgba(215, 38, 61, .07); }
.cart-item .subtotal {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--secondary);
  letter-spacing: .5px;
  text-align: right;
  white-space: nowrap;
}

.cart-summary, .order-summary {
  position: sticky;
  top: 100px;
  background: #fff;
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--primary);
}
.cart-summary h3, .order-summary h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1.2rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: .55rem 0;
  font-weight: 600;
  color: #3b3b3b;
}
.summary-row.free-shipping span:last-child, .summary-row .free { color: #1f8f53; font-weight: 800; }
.summary-row.total, .summary-row-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px dashed var(--line);
  margin-top: .8rem;
  padding-top: 1rem;
  font-weight: 800;
  color: var(--secondary);
  font-size: 1.1rem;
}
.summary-row.total span:last-child, .summary-row-total span:last-child {
  font-family: var(--font-display);
  font-size: 2.3rem;
  color: var(--primary);
  letter-spacing: .5px;
  line-height: 1;
}
.cart-summary .btn, .order-summary .btn { width: 100%; margin-top: .8rem; }

.ship-progress {
  background: var(--bg);
  border-radius: 12px;
  padding: .9rem 1rem;
  margin-bottom: 1.2rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--secondary);
}
.ship-progress .bar {
  height: 8px;
  border-radius: 8px;
  background: rgba(2, 24, 43, .1);
  overflow: hidden;
  margin-top: .6rem;
}
.ship-progress .bar span {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transition: width 1s var(--ease);
}
.ship-progress.done { background: rgba(31, 143, 83, .1); color: #1f8f53; }

.empty-cart { max-width: 560px; margin: 1rem auto 0; }

/* ========== CHECKOUT ========== */
.checkout-steps {
  display: flex;
  gap: .6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.checkout-steps .cs {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: .85rem;
  color: rgba(255, 255, 255, .55);
}
.checkout-steps .cs b {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .35);
  font-size: .8rem;
}
.checkout-steps .cs.done b, .checkout-steps .cs.now b { background: var(--accent); border-color: var(--accent); color: var(--secondary); }
.checkout-steps .cs.now { color: #fff; }
.checkout-steps .sep { width: 28px; height: 1.5px; background: rgba(255, 255, 255, .25); }

.checkout-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2.4rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
  align-items: start;
}
.checkout-form {
  background: #fff;
  border-radius: 18px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.checkout-form h2 { font-family: var(--font-serif); color: var(--secondary); font-size: 1.7rem; margin-bottom: .3rem; }
.checkout-form .form-intro { color: var(--muted); margin-bottom: 1.6rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--secondary);
  margin-bottom: .45rem;
}
.form-control {
  width: 100%;
  padding: .9rem 1rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(197, 168, 128, .2);
}
textarea.form-control { resize: vertical; }
.form-hint { display: block; color: var(--muted); font-size: .8rem; margin-top: .35rem; }
.alert-box {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  margin: 0 0 1.4rem;
  font-weight: 600;
}
.alert-box.error { background: rgba(215, 38, 61, .08); border: 1px solid rgba(215, 38, 61, .3); color: #a51829; }
.wa-note {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: rgba(31, 174, 90, .08);
  border: 1px solid rgba(31, 174, 90, .25);
  padding: 1rem 1.1rem;
  border-radius: 12px;
  margin: 1.4rem 0;
  color: #165c38;
}
.wa-note strong { display: block; }
.wa-note p { margin: .2rem 0 0; font-size: .92rem; }
.summary-items { display: grid; gap: .9rem; margin-bottom: 1rem; max-height: 340px; overflow: auto; padding-right: .3rem; }
.summary-item { display: grid; grid-template-columns: 54px 1fr auto; gap: .8rem; align-items: center; }
.summary-item .si-thumb { width: 54px; aspect-ratio: 2 / 3; border-radius: 6px; overflow: hidden; background: var(--secondary); }
.summary-item .si-thumb > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.summary-item strong { display: block; color: var(--secondary); font-size: .95rem; line-height: 1.3; }
.summary-item small { color: var(--muted); font-weight: 600; }
.summary-item .si-price { font-weight: 800; color: var(--secondary); }
.summary-totals { border-top: 1px solid var(--line); padding-top: .6rem; }

/* ========== ORDER CONFIRMATION ========== */
.order-confirmation-page { max-width: 880px; margin: 0 auto; padding: 3rem 2rem 4rem; }
.confirmation-container {
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.confirmation-header {
  text-align: center;
  padding: 3rem 2rem 2.4rem;
  color: #fff;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(215, 38, 61, .35), transparent 70%),
    linear-gradient(180deg, var(--secondary), var(--ink));
}
.confirmation-icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: var(--gold-grad);
  color: var(--secondary);
  box-shadow: 0 0 0 10px rgba(197, 168, 128, .15);
}
.confirmation-header h1 { font-family: var(--font-serif); font-size: 2.4rem; }
.confirmation-header p { color: rgba(255, 255, 255, .75); }
.confirmation-header .order-no {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 3px;
  padding: .3rem 1.2rem;
  border: 1.5px dashed rgba(197, 168, 128, .7);
  border-radius: 10px;
  color: var(--accent-light);
}
.confirmation-body { padding: 2rem 2.2rem 2.4rem; }
.wa-countdown {
  text-align: center;
  background: rgba(31, 174, 90, .08);
  border: 1px solid rgba(31, 174, 90, .25);
  border-radius: 14px;
  padding: 1.4rem;
  margin-bottom: 2rem;
  color: #165c38;
  font-weight: 600;
}
.wa-countdown .btn { margin-top: .9rem; }
.order-info, .shipping-info, .order-items { margin-bottom: 1.8rem; }
.confirmation-body h2 { font-family: var(--font-serif); font-size: 1.25rem; color: var(--secondary); margin-bottom: .8rem; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.info-row {
  background: var(--bg);
  border-radius: 10px;
  padding: .7rem .9rem;
  display: flex;
  flex-direction: column;
}
.info-row .label { font-size: .72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.info-row .value { font-weight: 700; color: var(--secondary); }
.address p { color: #3b3b3b; }
.order-items-table { width: 100%; border-collapse: collapse; }
.order-items-table th { text-align: left; font-size: .75rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); padding: .6rem .4rem; border-bottom: 2px solid var(--line); }
.order-items-table td { padding: .8rem .4rem; border-bottom: 1px solid var(--line); font-weight: 600; }
.order-total { max-width: 320px; margin-left: auto; }
.total-row { display: flex; justify-content: space-between; padding: .4rem 0; font-weight: 600; }
.total-row.total { border-top: 2px dashed var(--line); margin-top: .5rem; padding-top: .8rem; font-weight: 800; color: var(--secondary); }
.total-row.total span:last-child { font-family: var(--font-display); font-size: 2rem; color: var(--primary); line-height: 1; }
.confirmation-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.confirmation-footer { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 1.6rem; }

/* ========== TOASTS ========== */
.toast-stack {
  position: fixed;
  top: 92px;
  right: 1.4rem;
  z-index: 1200;
  display: grid;
  gap: .7rem;
  max-width: min(380px, calc(100vw - 2rem));
}
.toast {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .95rem 1.1rem;
  border-radius: 14px;
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  font-weight: 600;
  font-size: .94rem;
  border-left: 4px solid var(--accent);
  animation: toastIn .5s var(--ease);
  transition: opacity .4s, transform .4s var(--ease);
}
.toast.is-hiding { opacity: 0; transform: translateX(30px); }
.toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
  background: var(--accent);
  color: var(--secondary);
}
.toast-error { border-left-color: var(--primary); }
.toast-error .toast-icon { background: var(--primary); color: #fff; }
.toast-link { margin-left: auto; color: var(--accent-light); font-weight: 800; white-space: nowrap; }

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(180deg, var(--secondary) 0%, var(--ink) 100%);
  color: #fff;
  margin-top: 5rem;
  position: relative;
  overflow: hidden;
}
.footer-marquee {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(197, 168, 128, .2);
  padding: 1rem 0;
}
.footer-marquee span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 4px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(197, 168, 128, .45);
  animation: marquee 40s linear infinite;
  padding-right: 2rem;
}
.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 3rem;
  padding: 3.5rem 2rem 2.5rem;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: .9rem;
}
.footer-brand span {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-section h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-section p { color: rgba(255, 255, 255, .7); line-height: 1.8; }
.footer-section ul { list-style: none; display: grid; gap: .55rem; }
.footer-section a { color: rgba(255, 255, 255, .78); transition: color .3s, padding .3s var(--ease); }
.footer-section ul a:hover { color: var(--accent-light); padding-left: 6px; }
.footer-section p a:hover { color: var(--accent-light); }
.footer-wa { color: #4fe08f !important; font-weight: 700; }
.footer-bottom {
  text-align: center;
  padding: 1.4rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .5);
  font-size: .88rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 7.5rem; gap: 1rem; }
  .hero-stage { height: 440px; max-width: 560px; width: 100%; margin: 0 auto; }
  .cart-content, .checkout-container { grid-template-columns: 1fr; }
  .cart-summary, .order-summary { position: static; }
}

@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; gap: 2.4rem; }
  .product-detail-image { position: static; max-width: 480px; margin: 0 auto; width: 100%; }
  .catalog-controls { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
  .catalog-controls > * { min-width: 0; }
  .filters { position: static; padding: 1rem; }
  .filters h3 { display: none; }
  .filter-group h4 { display: none; }
  .filter-options { flex-direction: row; overflow-x: auto; gap: .5rem; padding-bottom: .3rem; scrollbar-width: none; }
  .filter-options::-webkit-scrollbar { display: none; }
  .filter-options label { white-space: nowrap; border: 1.5px solid var(--line); border-radius: 50px; padding: .45rem .9rem; }
  .filter-options label:hover { transform: none; }
  .filter-options input[type="radio"] { display: none; }
  .filter-options label:has(input:checked) { background: var(--secondary); color: #fff; border-color: var(--secondary); }
  .filter-options label .f-count { background: rgba(0, 0, 0, .06); }
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; padding: 3rem 2rem; margin: 0 1rem 2rem; }
}

@media (max-width: 860px) {
  .navbar-links {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: .7rem;
    border-radius: 16px;
    background: rgba(2, 24, 43, .98);
    border: 1px solid rgba(197, 168, 128, .25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .navbar-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-link { padding: .85rem 1rem; }
  .nav-link::after { display: none; }
  .nav-link.is-active { background: rgba(197, 168, 128, .12); }
  .nav-toggle { display: inline-flex; }
  .admin-pill { display: none; }
}

@media (max-width: 768px) {
  .container, .section, .catalog-wrap, .cart-page, .checkout-container, .product-detail { padding-left: 1rem; padding-right: 1rem; }
  .section { padding-top: 4rem; padding-bottom: 4rem; }
  .navbar-container { padding: 0 1rem; gap: .8rem; }
  .navbar-brand { font-size: 1.15rem; gap: .5rem; }
  .brand-mark { width: 36px; height: 36px; }
  .cart-label { display: none; }
  .cart-icon { padding: 0 .9rem; }
  .hero-inner { padding: 6.5rem 1rem 4.5rem; }
  .hero-stage { height: 360px; }
  .hero-ticket { left: 2%; bottom: -2%; transform: rotate(-4deg) scale(.85); }
  .page-banner { padding: 2.6rem 1rem 2.4rem; }
  .catalog-toolbar { margin-top: -3rem; padding: .8rem; border-radius: 14px; }
  .sort-box span { display: none; }
  .search-input-wrapper { flex-wrap: wrap; }
  .catalog-search-input { flex: 1 1 100%; }
  .catalog-search-btn, .catalog-reset-btn { flex: 1; height: 46px; }
  .sort-box, .filter-select { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .8rem; }
  .product-info { padding: .8rem .8rem .9rem; }
  .product-title { font-size: .98rem; }
  .product-price { font-size: 1.4rem; }
  .product-compare { display: none; }
  .product-meta { flex-wrap: wrap; row-gap: .4rem; }
  .product-size { font-size: .68rem; }
  .product-actions .btn { padding: .65rem .5rem; font-size: .85rem; }
  .product-quick { display: none; }
  .genre-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .genre-tile { min-height: 128px; padding: 1.1rem; }
  .genre-name { font-size: 1.5rem; }
  .product-detail-specs { grid-template-columns: repeat(2, 1fr); }
  .footer-content { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 1rem 2rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .checkout-form { padding: 1.4rem; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-thumb { width: 72px; }
  .cart-item .subtotal { grid-column: 2; text-align: left; font-size: 1.5rem; }
  .info-grid { grid-template-columns: 1fr; }
  .confirmation-body { padding: 1.4rem; }
  .toast-stack { top: 78px; right: 1rem; left: 1rem; max-width: none; }
}

@media (max-width: 480px) {
  .navbar-brand .brand-text { font-size: 1rem; }
  .hero h1 { font-size: 2.7rem; }
  .hero .btn-group .btn { flex: 1 1 100%; }
  .hero-stage { height: 300px; }
  .section-title { font-size: 1.9rem; }
  .current-price { font-size: 2.6rem; }
}

/* ========== MOTION PREFERENCES ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-content > *, .hero-poster, .hero-ticket { opacity: 1; }
}

/* ========== RTL SUPPORT ========== */
[dir="rtl"] .product-badges { left: auto; right: .9rem; align-items: flex-end; }
[dir="rtl"] .catalog-search-input { padding: 0 3rem 0 1.2rem; background-position: right 1rem center; }
[dir="rtl"] .footer-section ul a:hover { padding-left: 0; padding-right: 6px; }
[dir="rtl"] .toast-stack { right: auto; left: 1.4rem; }
