/* =========================================================
   Header v2 · logo left, nav centre, CTA right
   Tunnel hero · curved 3D ring of product reels
   Reel cards + full-screen reels viewer
   ========================================================= */

/* ---------- header ---------- */
.hdr { background: rgba(246,248,252,.82); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.hdr__in { grid-template-columns: 1fr auto 1fr; }
.hdr .logo { justify-self: start; }
.hdr__nav { gap: 6px; padding: 5px; border-radius: 99px; background: rgba(21,22,26,.04); box-shadow: inset 0 0 0 1px var(--line); }
.hdr__link { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 99px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); transition: background .35s var(--ease), color .35s; }
.hdr__link:hover { color: var(--text); background: rgba(255,255,255,.9); box-shadow: 0 2px 10px -4px rgba(10,18,48,.25); }
.hdr__reels { color: var(--text); }
.hdr__reels i { width: 7px; height: 7px; border-radius: 50%; background: #e0464e; box-shadow: 0 0 0 0 rgba(224,70,78,.5); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(224,70,78,0); } 100% { box-shadow: 0 0 0 0 rgba(224,70,78,0); } }
.hdr__cta { display: inline-flex; align-items: center; gap: 8px; height: 42px; margin-left: 10px; padding: 0 18px 0 14px; border-radius: 99px; background: #dff3e4; color: #0f6b3c; font-size: 13px; font-weight: 700; transition: background .35s var(--ease), transform .35s var(--ease); }
.hdr__cta .ico { width: 18px; height: 18px; }
.hdr__cta:hover { background: var(--wa); color: #fff; transform: translateY(-1px); }

/* ---------- tunnel hero ---------- */
.th { position: relative; min-height: calc(100svh - var(--announce-h)); padding: clamp(36px, 6vh, 70px) 0 0; overflow: hidden; display: flex; flex-direction: column;
  background: radial-gradient(120% 70% at 50% 0%, #fff 0%, var(--paper) 55%, #e7efff 100%); }
.th__copy { position: relative; z-index: 3; text-align: center; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.th__pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px; border-radius: 99px; background: var(--ice); color: var(--blue); font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.th__pill span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.th__title { font-family: var(--serif); font-weight: 500; font-size: clamp(54px, 8.6vw, 140px); line-height: .92; letter-spacing: -.035em; margin: 0; }
.th__title .line { display: block; overflow: hidden; padding: 0 .04em .08em; }
.th__title .line > span { display: inline-block; }
.th__title em { color: var(--gold-2); font-weight: 400; }
.th__sub { max-width: 560px; margin: 20px auto 0; color: var(--muted); font-size: clamp(15px, 1.25vw, 18px); }
.th__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.th__actions .btn .ico { width: 20px; height: 20px; }
.th__foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 18px; display: flex; justify-content: space-between; padding: 0 var(--gutter); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; }

.tunnel { position: relative; flex: 1; min-height: clamp(300px, 46vh, 520px); margin-top: clamp(10px, 3vh, 40px); perspective: 820px; perspective-origin: 50% 46%; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tunnel.is-drag { cursor: grabbing; }
.tunnel__ring { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; }
.tcard { position: absolute; left: 0; top: 0; width: var(--tw, 168px); height: calc(var(--tw, 168px) * 16 / 9); margin: calc(var(--tw, 168px) * -8 / 9) 0 0 calc(var(--tw, 168px) / -2);
  border-radius: 16px; overflow: hidden; background: var(--sand); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 60px -30px rgba(10,18,48,.45), inset 0 0 0 1px rgba(255,255,255,.2); will-change: transform, opacity; }
.tcard img, .tcard video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,18,48,.7)); }
.tcard__tag { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; color: #fff; display: grid; gap: 2px; text-align: left; }
.tcard__tag b { font: 500 16px/1.15 var(--serif); }
.tcard__tag em { font-style: normal; font-size: 12px; font-weight: 700; opacity: .85; }
.tcard__live { position: absolute; z-index: 1; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 99px; background: rgba(10,18,48,.55); backdrop-filter: blur(6px); color: #fff; font: 700 9px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.tcard__live i { width: 0; height: 0; border-left: 6px solid #fff; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
/* No-JS fallback: a flat swipeable row */
html:not(.tunnel-on) .tunnel__ring { position: static; display: flex; gap: 12px; width: auto; height: auto; overflow-x: auto; padding: 0 var(--gutter) 60px; transform: none; }
html:not(.tunnel-on) .tcard { position: relative; flex: none; margin: 0; }

/* ---------- reel cards (inline) ---------- */
.reels .reels__row { display: flex; gap: clamp(12px, 1.4vw, 20px); overflow-x: auto; padding: 10px var(--gutter) 30px; max-width: none; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.reels .reels__row::-webkit-scrollbar { display: none; }
.sec-sub--left { margin: 18px 0 0; text-align: left; }
.rc { position: relative; flex: 0 0 clamp(220px, 19vw, 290px); aspect-ratio: 9/16; border-radius: 20px; overflow: hidden; background: var(--ink); color: #fff; scroll-snap-align: start; isolation: isolate; transition: transform .7s var(--ease), box-shadow .7s var(--ease); box-shadow: 0 24px 50px -30px rgba(10,18,48,.6); }
.rc:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -30px rgba(10,18,48,.7); }
.rc__media { position: absolute; inset: 0; z-index: -2; }
.rc__media video, .rc__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc__slide { opacity: 0; animation: rcShow 9s infinite; }
.rc__slide:nth-child(2) { animation-delay: 3s; }
.rc__slide:nth-child(3) { animation-delay: 6s; }
.rc__media[data-n="1"] .rc__slide { opacity: 1; animation: kb 12s ease-in-out infinite alternate; }
.rc__media[data-n="2"] .rc__slide { animation-name: rcShow2; animation-duration: 6s; }
@keyframes rcShow { 0% { opacity: 0; transform: scale(1.12); } 4% { opacity: 1; } 33% { opacity: 1; } 38% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
@keyframes rcShow2 { 0% { opacity: 0; transform: scale(1.12); } 6% { opacity: 1; } 50% { opacity: 1; } 56% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.14) translateY(-2%); } }
.rc__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,18,48,.35) 0%, transparent 22%, transparent 55%, rgba(10,18,48,.85)); }
.rc__top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 6px; }
.rc__badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; background: rgba(10,18,48,.45); backdrop-filter: blur(8px); font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.rc__badge--gold { background: var(--gold); color: var(--ink); }
.rc__badge--light { background: rgba(246,248,252,.9); color: var(--ink); }
.rc__play { width: 0; height: 0; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; }
.rc__dots { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid #fff; }
.rc__tag { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(246,248,252,.14); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(255,255,255,.18); transition: background .4s var(--ease); }
.rc:hover .rc__tag { background: rgba(246,248,252,.95); color: var(--ink); }
.rc__tag img { width: 40px; height: 50px; object-fit: cover; border-radius: 8px; flex: none; }
.rc__tag-text { display: grid; min-width: 0; flex: 1; }
.rc__tag-text b { font: 500 16px/1.15 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc__tag-text em { font-style: normal; font-size: 12px; font-weight: 700; opacity: .85; }
.rc__tag-go { flex: none; padding: 8px 12px; border-radius: 99px; background: var(--gold); color: var(--ink); font: 700 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }

/* reels trigger buttons on shop & product pages */
.reel-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 99px; background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 700; white-space: nowrap; }
.reel-btn .ico { width: 18px; height: 18px; }
.reel-btn:hover { background: var(--navy-2); }
.pdp__reel { position: absolute; z-index: 3; left: 16px; top: 16px; box-shadow: 0 10px 30px -10px rgba(10,18,48,.6); }
.pdp__gallery { position: relative; }

/* ---------- reels viewer ---------- */
.rv { position: fixed; inset: 0; z-index: 150; background: #05091a; color: #fff; display: none; }
.rv.is-open { display: block; animation: rvIn .5s var(--ease); }
@keyframes rvIn { from { opacity: 0; transform: scale(1.03); } }
.rv__bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(.45) saturate(1.2); transform: scale(1.1); transition: background-image .6s; }
.rv__feed { position: relative; height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.rv__feed::-webkit-scrollbar { display: none; }
.rv__item { position: relative; height: 100svh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.rv__frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: #0a0f24; }
.rv__media { position: absolute; inset: 0; }
.rv__media video, .rv__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rv__media img { opacity: 0; transition: opacity .6s var(--ease); }
.rv__media img.is-on { opacity: 1; animation: kb 7s ease-out forwards; }
.rv__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, transparent 16%, transparent 48%, rgba(5,9,26,.92) 100%); }
.rv__bars { position: absolute; z-index: 3; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 4px; }
.rv__bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.rv__bars b { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.rv__bars i.is-done b { transform: scaleX(1); }

.rv__top { position: absolute; z-index: 5; top: calc(24px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.rv__top > * { pointer-events: auto; }
.rv__brand { display: flex; align-items: center; gap: 8px; margin-right: auto; font: 500 17px/1 var(--serif); letter-spacing: .04em; }
.rv__brand .logo__mono { width: 32px; height: 32px; font-size: 18px; }
.rv__round { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(5,9,26,.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.rv__round .ico { width: 20px; height: 20px; }

.rv__rail { position: absolute; z-index: 4; right: 10px; bottom: calc(230px + env(safe-area-inset-bottom)); display: grid; gap: 16px; justify-items: center; }
.rv__act { display: grid; justify-items: center; gap: 4px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #fff; }
.rv__act span:first-child, .rv__act > .ico-wrap { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(5,9,26,.38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .3s var(--ease), background .3s; }
.rv__act:active span:first-child { transform: scale(.88); }
.rv__act .ico { width: 24px; height: 24px; }
.rv__act--wa span:first-child { background: var(--wa); }
.rv__act[aria-pressed="true"] .ico { fill: #ff4d6a; stroke: #ff4d6a; }
.rv__act img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; border: 2px solid #fff; }

.rv__info { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.rv__cat { justify-self: start; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); font: 700 10px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.rv__name { font: 500 clamp(28px, 7vw, 36px)/1.02 var(--serif); padding-right: 64px; }
.rv__price { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 18px; margin-top: -4px; }
.rv__price s { font-weight: 400; font-size: 14px; opacity: .6; }
.rv__short { font-size: 13px; line-height: 1.5; opacity: .82; margin: 0; padding-right: 64px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv__chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.rv__chips::-webkit-scrollbar { display: none; }
.rv__chip { flex: none; height: 34px; min-width: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: rgba(5,9,26,.25); backdrop-filter: blur(6px); color: #fff; font-size: 12px; font-weight: 700; transition: all .25s var(--ease); }
.rv__chip.is-on { background: #fff; color: var(--ink); border-color: #fff; }
.rv__chip--color { border-radius: 99px; font-weight: 600; }
.rv__sizes.is-err { animation: shake .4s; }
.rv__sizes.is-err .rv__chip { border-color: #ff6b6b; }
.rv__hint { font-size: 12px; color: #ffb4b4; margin: -4px 0 0; }
.rv__buy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv__buy .btn { min-height: 50px; padding: 0 14px; font-size: 12px; }
.rv__buy .btn .ico { width: 18px; height: 18px; }

.rv__burst { position: absolute; z-index: 6; width: 110px; height: 110px; margin: -55px 0 0 -55px; pointer-events: none; color: #ff4d6a; animation: burst .9s var(--ease) forwards; }
.rv__burst .ico { width: 100%; height: 100%; fill: currentColor; stroke: none; filter: drop-shadow(0 8px 20px rgba(0,0,0,.4)); }
@keyframes burst { 0% { transform: scale(.2) rotate(-15deg); opacity: 0; } 25% { transform: scale(1.15) rotate(0); opacity: 1; } 60% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.3) translateY(-60px); opacity: 0; } }
.rv__muted { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: rgba(5,9,26,.5); backdrop-filter: blur(8px); pointer-events: none; animation: fadeOut 1s .4s forwards; }
.rv__muted .ico { width: 30px; height: 30px; }
@keyframes fadeOut { to { opacity: 0; transform: translate(-50%, -50%) scale(.8); } }
.rv__nav { display: none; }
.rv__count { font-size: 12px; font-weight: 700; opacity: .7; letter-spacing: .1em; }

@media (min-width: 901px) {
  .rv__item { padding: 3vh 0; }
  .rv__frame { width: min(calc(94vh * 9 / 16), 480px); height: 94vh; border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8); }
  .rv__top { position: fixed; top: 22px; left: 28px; right: 28px; }
  .rv__brand { font-size: 20px; }
  .rv__nav { position: fixed; z-index: 5; right: 32px; top: 50%; transform: translateY(-50%); display: grid; gap: 12px; }
  .rv__nav .rv__round { width: 52px; height: 52px; background: rgba(255,255,255,.12); }
  .rv__nav .rv__round:hover { background: rgba(255,255,255,.24); }
  .rv__rail { right: -76px; bottom: 30px; }
  .rv__frame { overflow: visible; }
  .rv__media, .rv__shade { border-radius: 22px; overflow: hidden; }
  .rv__info { border-radius: 0 0 22px 22px; }
  .rv__name, .rv__short { padding-right: 0; }
}

/* ---------- reels page ---------- */
.is-reels .ftr, .is-reels .tabbar, .is-reels .announce, .is-reels .wa-float { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hdr__in { grid-template-columns: 1fr auto; }
  .hdr__nav { display: none; }
  .hdr__burger { display: block; margin-left: 4px; }
}
@media (max-width: 900px) {
  .hdr__cta span { display: none; }
  .hdr .logo__word { font-size: 15px; white-space: nowrap; }
  .hdr .logo { gap: 9px; }
  .hdr__cta { width: 40px; height: 40px; padding: 0; justify-content: center; margin-left: 4px; }
  .th { min-height: calc(100svh - var(--announce-h) - var(--tabbar-h)); padding-top: 28px; }
  .th__pill { font-size: 10px; margin-bottom: 16px; }
  .th__title { font-size: clamp(46px, 13.5vw, 72px); }
  .th__sub { font-size: 14px; margin-top: 14px; }
  .th__actions { width: 100%; margin-top: 20px; }
  .th__actions .btn { flex: 1 1 0; min-height: 50px; padding: 0 14px; font-size: 12px; }
  .th__foot { bottom: 10px; font-size: 9px; }
  .tunnel { min-height: 340px; }
  .tcard__tag b { font-size: 13px; }
  .rc { flex-basis: 64vw; border-radius: 16px; }
  .sec-head--row .btn { align-self: flex-start; }
  .wa-float { display: flex; right: 14px; bottom: calc(var(--tabbar-h) + 14px); height: 52px; width: 52px; padding: 0; justify-content: center; }
  .wa-float span { display: none; }
  .is-pdp .wa-float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rc__slide { animation: none; }
  .rc__slide:first-child { opacity: 1; }
}
