/* Shopavix — interaction layer: carousels, mega menu, motion, phone app shell, back-to-top, quick view. */

/* ---------- announcement ticker ---------- */
.ticker { background: var(--g-950); color: rgba(255, 255, 255, .9); font-size: 13px; overflow: hidden; position: relative; z-index: 61; }
.ticker__in { display: flex; width: max-content; animation: tickerMove var(--ticker-s, 40s) linear infinite; }
.ticker:hover .ticker__in { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; padding: 8px 28px; white-space: nowrap; }
.ticker__item .ico { width: 15px; height: 15px; color: var(--gold); }
.ticker__item a { color: var(--gold); font-weight: 600; }
@keyframes tickerMove { to { transform: translateX(-50%); } }

/* ---------- carousels (all widths) ---------- */
.rail { position: relative; --gap: 16px; }
.rail__track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; padding: 1px 0; --per: 4; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > *, .rail__track > .cquad > * { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); min-width: 0; scroll-snap-align: start; }
.cquad { display: contents; }
.rail--p6 .rail__track { --per: 6; }
.rail--p4 .rail__track { --per: 4; }
.rail--p3 .rail__track { --per: 3; }
.rail__nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.rail__nav[hidden] { display: none !important; }
.rail__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--g-700); transition: background .2s, color .2s, border-color .2s; }
.rail__btn:hover:not([disabled]) { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.rail__btn[disabled] { opacity: .35; cursor: default; }
.rail__dots { display: flex; align-items: center; }
.rail__dot { width: 24px; height: 40px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.rail__dot::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--g-100); transition: width .25s, background .25s; }
.rail__dot.is-on::before { width: 22px; background: var(--g-700); }
.rail__count { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; }
/* categories: 4 per page carousel on desktop (3 / 2 on tablets), 2×2 swipe pages on phones */
.rail--cats .rail__track { --gap: 18px; }
@media (max-width: 1180px) { .rail--p6 .rail__track { --per: 5; } }
@media (max-width: 1024px) { .rail--p6 .rail__track { --per: 4; } .rail--p4 .rail__track { --per: 3; } .rail--p3 .rail__track { --per: 2; } }
@media (max-width: 860px) { .rail--p6 .rail__track { --per: 3; } .rail--p4 .rail__track { --per: 2; } }
@media (max-width: 767px) {
    .rail { --gap: var(--gutter); }
    .rail__track > *, .rail__track > .cquad > * { flex-basis: 100%; scroll-snap-stop: always; }
    .rail--quad .cquad, .rail--pair .cquad, .rail--cats .cquad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; align-content: start; }
    .rail--quad .cquad > *, .rail--pair .cquad > *, .rail--cats .cquad > * { flex: none; }
    .rail--quad .cquad.is-partial { display: none; }
    .rail--cats .rail__track { display: flex; gap: var(--gutter); overflow-x: auto; }
    .rail__nav { margin-top: 14px; }
}

/* ---------- mega menu ---------- */
.mainnav__in { position: static; }
.mainnav__item { display: flex; }
.mainnav__item > a .ico { width: 15px; height: 15px; transition: transform .25s; }
.mainnav__item.is-open > a .ico, .mainnav__item:focus-within > a .ico { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; color: var(--ink); border-top: 3px solid var(--gold); box-shadow: 0 24px 50px color-mix(in srgb, var(--g-950) 16%, transparent); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s; z-index: 55; }
.mainnav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega__in { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 26px; padding: 26px var(--gutter) 30px; max-width: var(--wrap); margin: 0 auto; }
.mega__col h4 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--g-900); margin-bottom: 10px; }
.mega__col h4 a:hover { color: var(--g-600); }
.mega__col h4 .mega__ic { width: 34px; height: 34px; border-radius: 10px; background: var(--g-50); color: var(--g-700); display: grid; place-items: center; flex: none; }
.mega__col h4 .ico { width: 18px; height: 18px; }
.mega__col ul { display: grid; gap: 2px; }
.mega__col li a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-left: -8px; border-radius: 7px; font-size: 14px; color: var(--ink-2); transition: background .2s, color .2s, padding .2s; }
.mega__col li a:hover { background: var(--g-50); color: var(--g-700); padding-left: 12px; }
.mega__col li a small { margin-left: auto; color: var(--muted); font-size: 12px; }
.mega__group + .mega__group { margin-top: 16px; }
.mega__card { position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff; min-height: 220px; display: flex; align-items: flex-end; isolation: isolate; }
.mega__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.mega__card:hover img { transform: scale(1.05); }
.mega__card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--g-950) 85%, transparent)); }
.mega__card div { padding: 18px; }
.mega__card strong { display: block; font-size: 17px; }
.mega__card span { font-size: 13px; opacity: .9; }
.mega__card .btn { margin-top: 10px; }
.mega__foot { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line-2); }
.mega__chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px; background: var(--g-50); color: var(--g-800); font-size: 13px; font-weight: 500; }
.mega__chip:hover { background: var(--g-700); color: #fff; }
.mega__chip .ico { width: 15px; height: 15px; }
/* phone drawer accordion */
.dgroup { border-radius: 10px; }
.dgroup > button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; border: 0; background: none; font-weight: 500; text-align: left; border-radius: 10px; }
.dgroup > button .ico:first-child { color: var(--g-700); }
.dgroup > button .ico:last-child { margin-left: auto; transition: transform .25s; color: var(--muted); }
.dgroup.is-open > button { background: var(--g-50); color: var(--g-800); }
.dgroup.is-open > button .ico:last-child { transform: rotate(180deg); }
.dgroup__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.dgroup.is-open .dgroup__body { grid-template-rows: 1fr; }
.dgroup__body > div { overflow: hidden; padding-left: 36px; }
.drawer__body .dgroup__body a { padding: 9px 12px; font-size: 14.5px; }

/* ---------- motion ---------- */
.hero__slide.is-on .hero__img { animation: kenburns 9s ease-out both; }
.hero__slide.is-on .hero__eyebrow { animation: riseIn .7s .05s var(--ease) both; }
.hero__slide.is-on .hero__title { animation: riseIn .8s .12s var(--ease) both; }
.hero__slide.is-on .hero__sub { animation: riseIn .8s .22s var(--ease) both; }
.hero__slide.is-on .hero__btns { animation: riseIn .8s .32s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.09); } to { transform: scale(1); } }
/* never starts invisible: text is readable even if the animation is paused */
@keyframes riseIn { from { opacity: .3; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.is-in [data-stagger] > :not(.cquad), .is-in [data-stagger] > .cquad > * { animation: riseIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.sec__title { position: relative; }
.sec__head .sec__title::after { content: ""; display: block; width: 44px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--gold); transform-origin: left; transition: transform .6s var(--ease) .1s; }
.sec[data-rv]:not(.is-in) .sec__title::after { transform: scaleX(0); }
.btn--gold { position: relative; overflow: hidden; }
.btn--gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn--gold:hover::after { left: 120%; }
.catc__badge { transition: transform .4s var(--ease); }
.catc:hover .catc__badge { transform: rotate(-8deg) scale(1.06); }
.step__ico { transition: background .3s, color .3s, transform .4s var(--ease); }
.step:hover .step__ico { background: var(--g-700); color: #fff; transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
    .ticker__in, .hero__slide.is-on *, [data-stagger] > *, .hero__img { animation: none !important; }
}

/* ---------- back to top ---------- */
.to-top { position: fixed; right: var(--fab-right); bottom: var(--fab-bottom); z-index: 70; width: var(--fab); height: var(--fab); border-radius: 50%; border: 0; background: #fff; color: var(--g-700); box-shadow: 0 8px 22px rgba(0, 0, 0, .16); display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--g-700); color: #fff; }
.wa-float ~ .to-top { bottom: calc(var(--fab-bottom) + var(--fab) + var(--fab-gap)); }
.to-top svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top svg.ring circle { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 138; stroke-dashoffset: var(--off, 138); stroke-linecap: round; }
.to-top .ico { width: 20px; height: 20px; position: relative; }

/* ---------- phone: premium app shell ---------- */
@media (max-width: 767px) {
    .page-home main { display: flex; flex-direction: column; }
    .page-home main > * { order: 10; }
    .page-home main > .hero { order: 1; }
    .page-home main > .sec--cats { order: 2; }
    .page-home main > .qsearch { order: 3; }
    .hero { margin: 10px var(--gutter) 0; border-radius: 22px; }
    .hero__slide { min-height: 58svh; align-items: flex-end; }
    .hero__body { padding: 28px 0 58px; }
    .hero__title { font-size: 29px; }
    .hero__sub { font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .hero__dots { bottom: 14px; }
    .hero .wrap { padding: 0 18px; }
    .qsearch { margin-top: 0; padding-top: 6px; }
    .sec--cats { padding-top: 22px; }
    .ticker { font-size: 12px; }
    .mega { display: none; }
}
.quote { margin: 0; height: 100%; }
.rail__track > .quote, .rail__track > .tile { height: auto; }

/* ---------- "Get the app" band (PWA) ---------- */
.appband { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 44px 48px; border-radius: 24px; background: linear-gradient(135deg, var(--g-900), var(--g-700) 70%); color: #fff; }
.appband__ring { position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); }
.appband__ring--1 { width: 520px; height: 520px; right: -120px; top: -160px; }
.appband__ring--2 { width: 760px; height: 760px; right: -240px; top: -280px; border-color: rgba(255, 255, 255, .06); }
.appband__eyebrow { color: var(--gold); }
.appband__title { font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; line-height: 1.15; }
.appband__sub { margin-top: 10px; color: rgba(255, 255, 255, .85); font-size: 16px; max-width: 520px; }
.appband__list { display: grid; gap: 12px; margin: 22px 0 26px; }
.appband__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: rgba(255, 255, 255, .92); }
.appband__list .ico { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: var(--gold); }
.appband__list span { padding-top: 6px; }
.appband__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.appband__note { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.appband__note .ico { width: 16px; height: 16px; color: var(--gold); }
.appband__hint { display: flex; gap: 8px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .1); font-size: 13.5px; line-height: 1.5; }
.appband__hint[hidden] { display: none; }
.appband__hint .ico { flex: none; width: 18px; height: 18px; color: var(--gold); }
.appband__visual { position: relative; display: flex; justify-content: flex-end; padding-right: 6%; min-height: 500px; }
/* the phone */
.device { width: 262px; height: 532px; border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #2a2f2b, #0c0f0d); box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 2px #3c423e; transform: rotate(-4deg); animation: devFloat 6s ease-in-out infinite; }
@keyframes devFloat { 50% { transform: rotate(-4deg) translateY(-10px); } }
.device__screen { position: relative; height: 100%; border-radius: 35px; overflow: hidden; background: var(--cream); color: var(--ink); display: flex; flex-direction: column; font-size: 10px; }
.dv-status { display: flex; align-items: center; justify-content: space-between; padding: 9px 18px 4px; font-weight: 700; font-size: 10px; background: var(--g-700); color: #fff; }
.dv-island { width: 64px; height: 18px; border-radius: 10px; background: #000; }
.dv-sig { display: flex; align-items: flex-end; gap: 1.5px; }
.dv-sig b { width: 3px; background: #fff; border-radius: 1px; }
.dv-sig b:nth-child(1) { height: 4px; }
.dv-sig b:nth-child(2) { height: 6px; }
.dv-sig b:nth-child(3) { height: 8px; }
.dv-sig b:nth-child(4) { height: 10px; }
.dv-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px 10px; background: var(--g-700); color: #fff; }
.dv-menu { display: grid; gap: 3px; }
.dv-menu i { width: 14px; height: 2px; background: #fff; border-radius: 2px; display: block; }
.dv-logo { display: flex; align-items: center; gap: 4px; font-family: var(--font-logo); font-weight: 700; font-size: 18px; line-height: 1; }
.dv-logo svg { width: 20px; height: 16px; }
.dv-cart .ico { width: 16px; height: 16px; }
.dv-search { display: flex; align-items: center; gap: 6px; margin: 10px 12px 0; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.dv-search .ico { width: 12px; height: 12px; color: var(--g-700); }
.dv-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-hero { position: relative; margin: 10px 12px 0; height: 150px; border-radius: 16px; overflow: hidden; background: var(--g-800); color: #fff; display: flex; align-items: flex-end; }
.dv-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dv-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 20%, color-mix(in srgb, var(--g-950) 85%, transparent)); }
.dv-hero div { position: relative; z-index: 2; padding: 10px; display: grid; gap: 3px; }
.dv-hero small { color: var(--gold); font-weight: 700; font-size: 7.5px; letter-spacing: .06em; text-transform: uppercase; }
.dv-hero strong { font-size: 13px; line-height: 1.15; }
.dv-btn { justify-self: start; margin-top: 4px; padding: 4px 9px; border-radius: 6px; background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 9px; }
.dv-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 10px 12px 0; }
.dv-cats span { position: relative; height: 58px; border-radius: 10px; overflow: hidden; background: var(--tone); }
.dv-cats img { width: 100%; height: 38px; object-fit: cover; }
.dv-cats em { display: block; padding: 3px 6px; color: #fff; font-style: normal; font-weight: 600; font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dv-tabs { margin-top: auto; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 8px 6px 14px; background: #fff; border-top: 1px solid var(--line); color: var(--muted); }
.dv-tabs span { display: grid; place-items: center; }
.dv-tabs .ico { width: 16px; height: 16px; }
.dv-tabs .is-on { color: var(--g-700); }
.dv-fab { width: 38px; height: 38px; margin: -26px auto 0; border-radius: 50%; background: var(--g-700); color: #fff; box-shadow: 0 6px 14px color-mix(in srgb, var(--g-700) 45%, transparent); }
.dv-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .18), transparent 32%); }
/* home-screen icon preview */
.homeicon { position: absolute; left: 0; bottom: 18px; width: 172px; padding: 14px 14px 12px; border-radius: 20px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .2); text-align: center; animation: devFloat2 7s ease-in-out infinite; }
@keyframes devFloat2 { 50% { transform: translateY(8px); } }
.homeicon__grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "ours a" "ours b"; gap: 10px; justify-items: center; margin-bottom: 10px; }
.homeicon__app { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; opacity: .55; }
.homeicon__app .ico { width: 20px; height: 20px; }
.homeicon__app--g { background: #34a853; }
.homeicon__app--b { background: #3b82f6; }
.homeicon__app--o { display: none; }
.homeicon__ours { grid-area: ours; align-self: center; }
.homeicon__ours img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.homeicon strong { display: block; font-size: 13px; }
.homeicon small { display: block; margin-top: 2px; font-size: 11px; color: rgba(255, 255, 255, .75); line-height: 1.35; }
@media (max-width: 1024px) { .appband { grid-template-columns: 1fr; padding: 36px 32px; } .appband__visual { min-height: 480px; justify-content: center; padding-right: 0; } }
@media (max-width: 767px) {
    .appband { padding: 28px 20px 24px; border-radius: 22px; gap: 18px; }
    .appband__btns .btn { width: 100%; }
    .appband__visual { min-height: 450px; }
    .device { width: 236px; height: 480px; }
    .homeicon { left: -4px; width: 146px; bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) { .device, .homeicon { animation: none; } }

/* ---------- product card tools: wishlist + quick view, WhatsApp beside Add to cart ---------- */
.pcard__tools { position: absolute; right: 8px; top: 8px; z-index: 3; display: grid; gap: 6px; }
.pcard__tool { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--ink-2); transition: color .2s, background .2s, opacity .25s, transform .25s var(--ease); }
.pcard__tool .ico { width: 18px; height: 18px; }
.pcard__tool:hover { color: var(--g-700); }
.pcard__tool.is-on { color: var(--red); }
.pcard__tool.is-on .ico { fill: currentColor; }
@media (hover: hover) {
    .pcard__tool[data-quick-view] { opacity: 0; transform: translateX(6px); }
    .pcard:hover .pcard__tool[data-quick-view], .pcard__tool[data-quick-view]:focus-visible { opacity: 1; transform: none; }
}
.pcard__actions { position: relative; z-index: 2; display: flex; align-items: stretch; gap: 8px; margin-top: 10px; }
.pcard__actions .pcard__btn { flex: 1; min-width: 0; margin-top: 0; }
.pcard__actions .pcard__oos { flex: 1; margin-top: 0; }
.pcard__wa { flex: none; width: 36px; min-height: 36px; border-radius: 7px; background: #1f9d55; color: #fff; display: grid; place-items: center; transition: background .2s; }
.pcard__wa:hover { background: #178345; }
.pcard__wa .ico { width: 19px; height: 19px; }
.pcard__tool--wa { display: none; background: #1f9d55; color: #fff; }
.pcard__tool--wa:hover { color: #fff; background: #178345; }
@media (max-width: 767px) {
    /* phones: WhatsApp moves to the round tools on the photo; the cart button gets the whole row */
    .pcard__actions .pcard__wa { display: none; }
    .pcard__tool--wa { display: grid; }
    .pcard__actions .btn { padding: 0 8px; font-size: 13px; gap: 5px; }
}
@media (max-width: 380px) {
    .pcard__actions .btn { font-size: 12.5px; padding: 0 6px; }
    .pcard__actions .btn .ico { display: none; }
    .hero__btns .btn { font-size: 13.5px; padding: 0 8px; gap: 6px; }
    .hero__btns .btn .ico { display: none; }
}

/* ---------- virtual eyewear try-on ---------- */
.tryon { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(8, 14, 10, .78); opacity: 0; transition: opacity .25s; }
.tryon.is-on { opacity: 1; }
.tryon__box { width: min(1040px, 100%); max-height: calc(100vh - 36px); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); grid-template-rows: auto 1fr; background: #0f1411; color: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transform: translateY(14px) scale(.98); transition: transform .3s var(--ease); }
.tryon.is-on .tryon__box { transform: none; }
.tryon__head { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; background: #151c17; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tryon__badge { width: 38px; height: 38px; border-radius: 11px; background: var(--blue); display: grid; place-items: center; flex: none; }
.tryon__badge .ico { width: 20px; height: 20px; }
.tryon__titles { flex: 1; min-width: 0; display: grid; }
.tryon__titles strong { font-size: 16px; }
.tryon__titles small { font-size: 13px; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tryon__x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.tryon__x:hover { background: rgba(255, 255, 255, .2); }
.tryon__stage { position: relative; background: #000; min-height: 440px; height: 100%; overflow: hidden; }
.tryon__stage video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tryon__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tryon__guide { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(70%, 320px); aspect-ratio: 3 / 4; border: 2px dashed rgba(255, 255, 255, .55); border-radius: 50% / 42%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding-bottom: 18px; text-align: center; font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.tryon__guide[hidden] { display: none; }
.tryon__guide .ico { width: 30px; height: 30px; }
.tryon__state { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; background: rgba(10, 16, 12, .86); }
.tryon__state[hidden] { display: none; }
.tryon__state p { max-width: 380px; font-size: 15px; line-height: 1.5; }
.tryon__state.is-error p { color: #ffd6d2; }
.tryon__spin { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--gold); animation: tspin .8s linear infinite; }
@keyframes tspin { to { transform: rotate(360deg); } }
.tryon__acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tryon__acts[hidden] { display: none; }
.tryon__priv { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 20px; background: rgba(0, 0, 0, .5); font-size: 11.5px; color: rgba(255, 255, 255, .9); max-width: calc(100% - 24px); }
.tryon__priv .ico { width: 14px; height: 14px; flex: none; color: var(--gold); }
.tryon__ctrl { padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: auto; background: #121814; }
.tryon__row { display: flex; align-items: center; gap: 12px; }
.tryon__size { flex: 1; display: grid; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .8); }
.tryon__size input { width: 100%; accent-color: var(--gold); }
.tryon__ctrl .btn--line { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .18); }
.tryon__ctrl .btn--line:hover { border-color: var(--gold); color: var(--gold); }
.tryon__label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .6); font-weight: 600; margin-top: 4px; }
.tryon__frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tryon__frame { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #fff; text-align: left; transition: border-color .2s, background .2s; }
.tryon__frame:hover { border-color: rgba(255, 255, 255, .3); }
.tryon__frame.is-on { border-color: var(--gold); background: rgba(244, 191, 31, .08); }
.tryon__thumb { position: relative; display: block; min-width: 0; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: linear-gradient(135deg, #f3ece2, #e3d6c5); }
.tryon__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 861px) { .tryon__frame:last-child:nth-child(odd) { grid-column: 1 / -1; } .tryon__frame:last-child:nth-child(odd) .tryon__thumb { aspect-ratio: 8 / 3; } }
.tryon__fname { font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tryon__fprice { font-size: 12.5px; color: var(--gold); font-weight: 600; }
.tryon__note { font-size: 12px; color: rgba(255, 255, 255, .55); margin-top: auto; }
@media (max-width: 860px) {
    .tryon { padding: 0; }
    .tryon__box { width: 100%; height: 100%; max-height: none; border-radius: 0; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto; }
    .tryon__stage { min-height: 0; height: auto; }
    .tryon__ctrl { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); gap: 10px; max-height: 42vh; }
    .tryon__frames { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .tryon__frames::-webkit-scrollbar { display: none; }
    .tryon__frame { flex: 0 0 calc((100% - 20px) / 3); scroll-snap-align: start; scroll-snap-stop: always; }
    .tryon__fprice { font-size: 12px; }
    .tryon__fname { font-size: 12px; }
    .tryon__note { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tryon, .tryon__box { transition: none; } .tryon__spin { animation-duration: 2s; } }

/* narrow cards (any grid, any width): the cart button drops its icon instead of cutting its text */
.pcard { container-type: inline-size; }
@container (max-width: 240px) {
    .pcard__actions .btn { padding: 0 8px; gap: 4px; }
    .pcard__actions .btn .ico { display: none; }
}
@container (max-width: 160px) {
    .pcard__actions .btn { font-size: 12px; padding: 0 5px; }
}
.tryon__frames--mine { margin-bottom: 6px; }
.tryon__frames--mine .tryon__frame:only-child { grid-column: 1 / -1; }
.tryon__frames--mine .tryon__frame:only-child .tryon__thumb { aspect-ratio: 8 / 3; }

/* home: category tabs */
.ctabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding: 2px; }
.ctabs::-webkit-scrollbar { display: none; }
.ctabs__tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.ctabs__tab .ico { width: 18px; height: 18px; }
.ctabs__tab:hover { border-color: var(--g-600); color: var(--g-800); }
.ctabs__tab.is-on { background: var(--g-700); border-color: var(--g-700); color: #fff; }
.ctabs__tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 70%, transparent); outline-offset: 2px; }
.ctabs__panel[hidden] { display: none; }
.ctabs__all { margin: 18px auto 0; display: flex; width: max-content; }
@media (max-width: 767px) { .ctabs { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 2px var(--gutter); } .ctabs__tab { padding: 9px 14px; font-size: 13.5px; } }

/* ---------- slide-in cart (header / tab bar cart button) ---------- */
.scrim { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cdw { position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(440px, 100vw); display: flex; flex-direction: column; background: color-mix(in srgb, var(--line-2) 70%, #fff); box-shadow: -24px 0 60px -30px rgba(0, 0, 0, .45); transform: translateX(102%); visibility: hidden; transition: transform .32s var(--ease), visibility .32s; outline: 0; }
.cdw.is-open { transform: none; visibility: visible; }
.cdw { border-radius: 20px 0 0 20px; overflow: hidden; }
.cdw__head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.cdw__title { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: 17px; color: var(--ink); }
.cdw__title .ico { width: 20px; height: 20px; color: var(--g-700); }
.cdw__count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--g-700); color: #fff; font: 700 12px/22px inherit; font-style: normal; text-align: center; }
.cdw__head .icon-btn { margin-left: auto; }
.cdw__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cdw-lines { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 16px; overscroll-behavior: contain; }
.cdw-seller { display: flex; align-items: center; gap: 6px; margin: 12px 2px 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cdw-seller .ico { width: 15px; height: 15px; color: var(--g-700); }
.cdw-seller span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cdw-line { position: relative; display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: start; padding: 12px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: opacity .2s; }
.cdw-line.is-busy, .cline.is-busy { opacity: .55; pointer-events: none; }
.cdw-line__img { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--line-2); }
.cdw-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cdw-line__info { display: grid; gap: 3px; min-width: 0; }
.cdw-line__name { font-weight: 600; font-size: 14px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cdw-line__opt { font-size: 12.5px; color: var(--muted); }
.cdw-line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.cdw-line__total { font-size: 15px; color: var(--ink); white-space: nowrap; }
.cdw-line__rm .icon-btn { width: 34px; height: 34px; color: var(--muted); }
.cdw-line__rm .icon-btn:hover { color: var(--red); }
.cdw-foot { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); display: grid; gap: 10px; box-shadow: 0 -12px 30px -24px rgba(0, 0, 0, .35); }
.cdw-sum { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.cdw-sum strong { font-size: 17px; color: var(--ink); }
.cdw-sum--save { color: var(--g-700); font-size: 14px; }
.cdw-sum--save strong { font-size: 14px; color: var(--g-700); }
.cdw-foot__note { margin: 0; font-size: 12.5px; color: var(--muted); }
.cdw-empty { flex: 1; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 32px 28px; text-align: center; color: var(--muted); }
.cdw-empty__ico { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--g-700), var(--g-600)); margin-bottom: 6px; }
.cdw-empty__ico .ico { width: 28px; height: 28px; }
.cdw-empty__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.cdw-empty p { margin: 0; }
.cdw-empty .btn { margin-top: 10px; }
.cdw-error { padding: 24px; text-align: center; color: var(--red); }
.cdw-skel { display: grid; gap: 10px; padding: 18px 16px; }
.cdw-skel span { height: 96px; border-radius: var(--radius); background: linear-gradient(90deg, var(--line-2) 25%, #fff 50%, var(--line-2) 75%); background-size: 200% 100%; animation: cdwShine 1.2s linear infinite; }
@keyframes cdwShine { to { background-position: -200% 0; } }
@media (max-width: 860px) {
    /* the tab bar already has the cart, so the header shows it only on wider screens */
    .head-act--cart { display: none; }
    .cdw { width: min(420px, 100vw); }
}
@media (max-width: 380px) { .cdw-line { grid-template-columns: 60px 1fr auto; gap: 10px; padding: 10px; } .cdw-line__img { width: 60px; height: 60px; } }
@media (max-width: 860px) {
    /* toasts sit above the tab bar and left of the WhatsApp / back-to-top column, so they never cover a button */
    .toast-zone { left: 16px; transform: none; bottom: var(--fab-bottom); width: calc(100% - 32px - var(--fab) - 12px); }
}

/* ======================================================================
   Structure + motion (update 1.0.1). Only transform / opacity are animated (no layout shifts, no slowdown);
   content is never hidden waiting for JavaScript; everything rests under "reduce motion".
   ====================================================================== */
/* section heads: "View all" sits on the title line, not under the underline */
.sec__head:not(:has(.sec__sub)) .sec__more { margin-bottom: 11px; }
.sec__more .ico, .link .ico, .btn .ico, .catc__go .ico { transition: transform .3s var(--ease); }
.sec__more:hover .ico, .link:hover .ico, .btn:hover .ico[data-i="arrow-right"], .btn:hover > .ico:last-child:not(:first-child) { transform: translateX(4px); }

/* trust bar: icons in tiles, every item top-aligned so titles line up */
.trust__item { align-items: flex-start; }
.trust__ico { width: 48px; height: 48px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--g-100); transition: background .3s, color .3s, transform .45s var(--ease); }
.trust__ico .ico { width: 24px; height: 24px; stroke-width: 1.8; }
.trust__item:hover .trust__ico { background: var(--g-700); color: #fff; transform: rotate(-6deg); }
.trust__item strong { margin-top: 3px; }

/* how it works: the dashed path runs, each step lights up in turn when the section comes into view */
.step:not(:last-child)::after { border-top: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--g-100) 0 8px, transparent 8px 14px); background-size: 28px 2px; }
.is-in .step:not(:last-child)::after { animation: lvDash 1.2s linear infinite; }
@keyframes lvDash { to { background-position: 28px 0; } }
.is-in .step__ico { animation: lvPop .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 140ms + .1s); }
@keyframes lvPop { 0% { transform: scale(.7); } 70% { transform: scale(1.08); } 100% { transform: none; } }

/* homestay page: section titles with icon tiles, extras as an icon list, aligned address line */
.sblock h2 { display: flex; align-items: center; gap: 10px; }
.sblock h2 > .ico { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--g-50); color: var(--g-700); }
.stay__where { display: flex; align-items: flex-start; gap: 8px; }
.stay__where > .ico { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--red); }

/* cards: inner motion only (border colour already changes; no lift, no shadow) */
.lcard__img img, .hcard__media img, .scard img { transition: transform .6s var(--ease); }
.lcard:hover .lcard__meta .ico, .hcard:hover .hcard__area .ico { animation: lvBob .6s var(--ease); }
@keyframes lvBob { 40% { transform: translateY(-3px); } }
.hcard__facil span { transition: background .25s, color .25s; }
.hcard:hover .hcard__facil span { background: var(--g-700); color: #fff; }
.hcard:hover .hcard__facil span:nth-child(2) { transition-delay: .04s; } .hcard:hover .hcard__facil span:nth-child(3) { transition-delay: .08s; }
.hcard:hover .hcard__facil span:nth-child(4) { transition-delay: .12s; } .hcard:hover .hcard__facil span:nth-child(5) { transition-delay: .16s; }

/* cart and wishlist feedback */
.badge-count.is-bump, .cdw__count.is-bump { animation: lvBump .45s var(--ease); }
@keyframes lvBump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
[data-wish].is-pop .ico { animation: lvHeart .45s var(--ease); }
@keyframes lvHeart { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }
.cdw.is-entering .cdw-line, .cdw.is-entering .cdw-empty { animation: riseIn .45s var(--ease) both; }
.cdw.is-entering .cdw-line:nth-child(2) { animation-delay: .05s; } .cdw.is-entering .cdw-line:nth-child(3) { animation-delay: .1s; }
.cdw.is-entering .cdw-line:nth-child(4) { animation-delay: .15s; } .cdw.is-entering .cdw-line:nth-child(n+5) { animation-delay: .2s; }
.cdw-empty__ico { animation: lvFloat 3.2s ease-in-out infinite; }
@keyframes lvFloat { 50% { transform: translateY(-6px); } }

/* buttons: a soft press */
.btn { transition: background .2s, color .2s, border-color .2s, transform .15s; }
.btn:active:not(:disabled) { transform: scale(.97); }

@media (prefers-reduced-motion: reduce) {
    .is-in .step:not(:last-child)::after, .is-in .step__ico, .badge-count.is-bump, .cdw__count.is-bump, [data-wish].is-pop .ico,
    .cdw.is-entering .cdw-line, .cdw.is-entering .cdw-empty, .cdw-empty__ico, .lcard:hover .lcard__meta .ico, .hcard:hover .hcard__area .ico { animation: none !important; }
    .trust__item:hover .trust__ico, .btn:active:not(:disabled) { transform: none; }
}
