/* ---------- ambience ---------- */
.aurora { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.aurora i { position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%; filter: blur(90px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: var(--blue-500); top: -18vmax; inset-inline-start: -12vmax; }
.aurora i:nth-child(2) { background: var(--burgundy); bottom: -22vmax; inset-inline-end: -14vmax; animation-delay: -8s; }
.aurora i:nth-child(3) { background: var(--gold-700); top: 30%; left: 40%; width: 30vmax; height: 30vmax; opacity: .22; animation-delay: -15s; }
:root[data-theme='light'] .aurora i { opacity: .22; }
:root[data-theme='light'] .aurora i:nth-child(1) { background: var(--mist); opacity: .9; }
@keyframes drift { to { transform: translate(12vmax, 9vmax) scale(1.18); } }
#glow { position: fixed; top: 0; left: 0; width: 420px; height: 420px; margin: -210px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(220, 192, 132, .13), transparent 65%); opacity: 0; transition: opacity .4s; }
#progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; z-index: 120; }
:root[dir='rtl'] #progress { transform-origin: right; }

/* ---------- shared motion ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { translate: 0 -18px; } }
@keyframes emerge { from { opacity: 0; transform: scale(.3) rotate(-30deg); filter: blur(12px); } }
@keyframes wipe { from { clip-path: inset(0 50%); opacity: 0; } to { clip-path: inset(0); opacity: 1; } }
.card .media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .28) 50%, transparent 60%); translate: -110% 0; transition: translate .9s var(--ease); pointer-events: none; }
.card:hover .media::after { translate: 110% 0; }
@keyframes emerge { from { opacity: 0; transform: scale(.3) rotate(-30deg); filter: blur(12px); } }
@keyframes wipe { from { clip-path: inset(0 50%); opacity: 0; } to { clip-path: inset(0); opacity: 1; } }

/* ---------- header ---------- */
.announce { position: relative; z-index: 5; text-align: center; padding: .45rem 1rem; font-size: .82rem; letter-spacing: .05em; color: #fbeed0; background: linear-gradient(90deg, var(--burgundy-800), var(--burgundy), var(--burgundy-800)); }
.announce:empty { display: none; }
.nav { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem, 4vw, 3.5rem); border-bottom: 1px solid transparent; transition: .35s var(--ease); }
.nav.stuck { background: color-mix(in srgb, var(--bg) 76%, transparent); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .16); }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 44px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)); transition: transform .6s var(--ease); }
.brand img.word { height: 20px; }
.brand:hover img:first-child { transform: rotate(360deg) scale(1.08); }
.links { display: flex; gap: 1.8rem; }
.links a, .links button { position: relative; font-size: .95rem; letter-spacing: .04em; padding: .3rem 0; }
.links a::after, .links button::after { content: ''; position: absolute; bottom: 0; inset-inline: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.links a:hover::after, .links button:hover::after { transform: scaleX(1); }
.tools { display: flex; gap: .5rem; }
.icon-btn.lang { font-size: .85rem; font-weight: 600; }
.badge { position: absolute; top: -4px; inset-inline-end: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--burgundy-400); color: #fff; font-size: .68rem; display: grid; place-items: center; }
.bump { animation: bump .55s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3) rotate(-8deg); } }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: .9rem 0; direction: ltr; }
.marquee > div { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { white-space: nowrap; padding: 0 1.6rem; font-family: var(--display); letter-spacing: .12em; }
.marquee span::after { content: '✦'; color: var(--gold); margin-left: 3.2rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 6rem clamp(1rem, 6vw, 6rem) 0; scroll-margin-top: 40px; }
.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.section-head h2::after { content: ''; display: block; width: 90px; height: 2px; margin: 1rem auto 0; background: var(--gold-grad); }
.reveal { opacity: 0; transform: translateY(50px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; max-width: 1300px; margin: auto; }
.tilt { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.tilt::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit; background: radial-gradient(circle at var(--mx) var(--my), rgba(244, 224, 172, .22), transparent 45%); opacity: 0; transition: opacity .35s; }
.tilt:hover::before { opacity: 1; }
.cat { position: relative; aspect-ratio: 4 / 5.4; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-align: start; background: var(--blue); box-shadow: var(--shadow); transition: transform .2s ease-out, border-color .3s; }
.cat:hover { border-color: var(--gold); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.cat:hover img { transform: scale(1.12); }
.cat .label { position: absolute; inset: auto 0 0; z-index: 3; padding: 3rem 1.2rem 1.1rem; color: #fff; background: linear-gradient(transparent, rgba(4, 9, 15, .92)); }
.cat h3 { font-size: 1.25rem; }
.cat small { color: var(--gold-300); }

.toolbar { display: flex; gap: .8rem; max-width: 720px; margin: 0 auto 1.2rem; }
.toolbar #sort { width: auto; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2.4rem; }
.chip { padding: .45rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: .3s var(--ease); }
.chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.chip.on { background: var(--gold-grad); border-color: transparent; color: #1a1305; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.6rem; max-width: 1300px; margin: auto; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(10px); overflow: hidden; transition: transform .2s ease-out, box-shadow .4s, border-color .4s; animation: card-in .7s var(--ease) both; }
.card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
@keyframes card-in { from { opacity: 0; translate: 0 40px; scale: .95; } }
.media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(145deg, var(--blue-500), var(--blue-900)); cursor: pointer; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .media img { transform: scale(1.07); }
.tags { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3; display: grid; gap: .35rem; justify-items: start; }
.tag { padding: .15rem .7rem; border-radius: 999px; font-size: .72rem; background: var(--burgundy); color: #fff; }
.tag.gold { background: var(--gold-grad); color: #1a1305; }
.tag.dark { background: rgba(0, 0, 0, .75); }
.heart { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 4; background: rgba(6, 12, 20, .55); color: #fff; }
.heart.on svg { fill: #e0546e; stroke: #e0546e; }
.card-body { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; flex: 1; }
.card-body small { color: var(--accent); letter-spacing: .08em; }
.card-body h3 { font-size: 1.08rem; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; margin-top: auto; padding-block: .4rem; }
.price { font-size: 1.2rem; font-weight: 600; color: var(--accent); }
.old { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.empty { text-align: center; color: var(--muted); padding: 3rem 0; }

.story-card { display: flex; align-items: center; gap: 3rem; max-width: 1000px; margin: auto; padding: clamp(1.6rem, 4vw, 3.5rem); border-radius: 30px; color: #eef2f5; background: linear-gradient(130deg, var(--burgundy-800), var(--blue) 75%); border: 1px solid var(--gold); box-shadow: var(--shadow); }
.story-card img { width: 150px; flex: none; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .5)); animation: float 6s ease-in-out infinite; }
.story-card .eyebrow { color: var(--gold-300); }
.story-card h2 { margin-bottom: .8rem; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; max-width: 1000px; margin: 2rem auto 0; }
.perks article { padding: 1.8rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.perks span { display: block; font-size: 1.8rem; color: var(--gold); margin-bottom: .5rem; }
.perks p { color: var(--muted); }

.footer { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1rem; text-align: center; margin-top: 7rem; padding: 4rem 1rem 2rem; border-top: 1px solid var(--line); background: var(--surface); }
.footer img { width: 120px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .3)); }
.footer p, .footer small { color: var(--muted); }
.contact:empty { display: none; }

/* ---------- drawer & dialogs ---------- */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(3, 8, 14, .6); backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: .4s; }
.scrim.on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 100; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--solid); border-inline-start: 1px solid var(--gold); transform: translateX(105%); visibility: hidden; transition: transform .55s var(--ease), visibility .55s; }
:root[dir='rtl'] .drawer { transform: translateX(-105%); }
.drawer.on, :root[dir='rtl'] .drawer.on { transform: none; visibility: visible; box-shadow: var(--shadow); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-items { flex: 1; overflow: auto; padding: 1rem 1.2rem; }
.drawer-foot { padding: 1.2rem; border-top: 1px solid var(--line); display: grid; gap: .8rem; }
.drawer-foot:empty { display: none; }
.line { display: grid; grid-template-columns: 70px 1fr auto; gap: .9rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); animation: pop .4s var(--ease); }
.line img { width: 70px; height: 88px; object-fit: cover; border-radius: 12px; background: var(--blue); }
.qty { display: inline-flex; align-items: center; gap: .7rem; margin-top: .3rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 .3rem; }
.qty button { width: 26px; height: 26px; }
.remove { color: var(--muted); font-size: 1.1rem; }
.remove:hover { color: var(--burgundy-400); }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; }
.sum-row.total { font-size: 1.2rem; font-weight: 700; color: var(--accent); }
.ship-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.ship-bar i { display: block; height: 100%; background: var(--gold-grad); transition: width .6s var(--ease); }
.summary { display: grid; gap: .3rem; padding: 1rem; border: 1px dashed var(--gold); border-radius: 14px; }
.cod { font-size: .9rem; color: var(--muted); }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

#quick { width: min(880px, calc(100vw - 24px)); }
.quick { display: grid; grid-template-columns: 1fr 1fr; }
.quick .media { aspect-ratio: auto; min-height: 500px; cursor: zoom-in; }
.quick .media img { position: absolute; inset: 0; transform-origin: var(--mx, 50%) var(--my, 50%); }
.quick .media:hover img { transform: scale(1.7); }
.quick .info { padding: 1.8rem; display: flex; flex-direction: column; gap: .8rem; }
.quick .info > .icon-btn { align-self: flex-end; }
.quick p.desc { color: var(--muted); white-space: pre-line; }
@media (max-width: 700px) { .quick { grid-template-columns: 1fr; } .quick .media { min-height: 0; aspect-ratio: 4 / 5; } }

.center { text-align: center; display: grid; justify-items: center; gap: .8rem; }
.check { width: 90px; fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke-dasharray: 230; stroke-dashoffset: 230; animation: draw .8s var(--ease) forwards; }
.check path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.order-code { font-family: var(--display); font-size: 1.6rem; letter-spacing: .1em; color: var(--accent); border: 1px dashed var(--gold); border-radius: 12px; padding: .4rem 1.2rem; user-select: all; }
#trackResult:not(:empty) { margin-top: 1.2rem; display: grid; gap: .6rem; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; font-size: .75rem; color: var(--muted); }
.steps span::before { content: ''; display: block; height: 5px; margin: 0 2px .4rem; border-radius: 5px; background: var(--line); }
.steps span.done { color: var(--accent); }
.steps span.done::before { background: var(--gold-grad); }

.flyer { position: fixed; z-index: 150; border-radius: 16px; object-fit: cover; pointer-events: none; box-shadow: 0 0 30px var(--gold); }
.spark { position: fixed; z-index: 150; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-200); box-shadow: 0 0 10px var(--gold); pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav { flex-wrap: wrap; row-gap: .5rem; }
  .links { order: 3; width: 100%; justify-content: safe center; gap: 1.2rem; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .links a, .links button { font-size: .85rem; }
  .story-card { flex-direction: column; text-align: center; gap: 1.5rem; }
}
@media (max-width: 520px) {
  .brand img.word { display: none; }
  .tools { gap: .35rem; }
  .icon-btn { width: 38px; height: 38px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .card-body { padding: .75rem; }
  .card-body h3 { font-size: .95rem; }
  .card .btn { padding: .5rem; font-size: .8rem; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .toolbar { flex-direction: column; }
  .toolbar #sort { width: 100%; }
}
