/* ==========================================================================
   IMEX Group — phone experience.
   App-style chrome (compact header, bottom tab bar, sheets, sticky buy bars)
   and touch-native versions of the desktop motion. Loaded last so it wins.
   ========================================================================== */

.search-toggle, .tabbar, .buybar, .filter-fab, .sheet-head, .carousel-dots, .menu-gear { display: none; }

/* Top bar: on desktop show one copy spread across the width; phones turn it into a ticker. */
.topbar-track { width: 100%; }
.topbar-set { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.topbar-set[aria-hidden="true"] { display: none; }
@media (max-width: 900px) {
    .topbar-track { width: max-content; }
    .topbar-set, .topbar-set[aria-hidden="true"] { display: flex; width: auto; justify-content: flex-start; }
}

@media (max-width: 900px) {
    :root { --tabbar-h: 68px; --header-h: 60px; }
    body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }

    /* ---------- Ticker top bar ---------- */
    .topbar .container { overflow: hidden; padding-inline: 0; justify-content: flex-start; min-height: 32px; }
    .topbar-track { display: flex; width: max-content; animation: ticker 26s linear infinite; }
    [dir="rtl"] .topbar-track { animation-name: ticker-rtl; }
    .topbar-set { display: flex; gap: 28px; padding-inline: 14px; }
    .topbar-group { gap: 28px; }
    .topbar .hide-sm, .topbar-sep { display: inline-block !important; }
    .topbar-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--brand-400); align-self: center; }

    /* ---------- Compact header ---------- */
    .site-header { box-shadow: 0 6px 20px -14px rgba(15, 27, 42, .4); }
    .header-main { position: relative; flex-wrap: nowrap !important; gap: 4px !important; min-height: 60px !important; padding-block: 0 !important; }
    .site-header.is-scrolled .header-main { min-height: 56px !important; }
    .menu-toggle { display: grid !important; order: 0; }
    /* Centre the logo on the full header width, independent of how many buttons sit on each side */
    .logo { order: 1; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
    .header-actions { margin-inline-start: auto !important; }
    /* Single-column heroes must not grow wider than the screen (long words/grids pushed text off-canvas) */
    .catalog-hero .container, .hero-inner, .value-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .logo img { height: 36px !important; }
    .header-actions { order: 2; margin-inline-start: 0; gap: 2px; }
    .search-toggle { display: grid; }
    .lang-switch, .account-link, .header-actions > a.icon-btn { display: none !important; }
    .cart-pill { padding: 0 !important; background: none; border: 0; }
    .cart-pill .text { display: none; }
    .icon-btn { width: 42px; height: 42px; }

    .header-search {
        position: absolute; top: 100%; inset-inline: 0; z-index: 5; order: 3;
        max-width: none !important; margin: 0; padding: 10px 14px 14px; gap: 8px;
        background: #fff; border: 0; border-radius: 0 0 20px 20px; box-shadow: 0 18px 30px -18px rgba(15, 27, 42, .45);
        opacity: 0; transform: translateY(-10px); pointer-events: none; visibility: hidden;
        transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s;
    }
    .header-search.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
    .header-search input { border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); padding: 12px 14px; font-size: 16px; }
    .header-search input:focus { border-color: var(--brand); background: #fff; }
    .header-search button { width: 48px; border-radius: 12px; }
    .search-toggle[aria-expanded="true"] { background: var(--brand-50); color: var(--brand); }

    /* ---------- Bottom tab bar ---------- */
    .tabbar {
        position: fixed; inset-inline: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 80;
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: var(--tabbar-h);
        padding: 6px 6px 8px; border-radius: 22px;
        background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border: 1px solid rgba(15, 27, 42, .06);
        box-shadow: 0 18px 40px -14px rgba(15, 27, 42, .35), 0 2px 8px rgba(15, 27, 42, .06);
        transition: transform .45s var(--ease);
    }
    .tabbar.is-hidden { transform: translateY(calc(100% + 20px)); }
    .tabbar .tab { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding-top: 6px; color: #4A5B6E; font-size: 11.5px; font-weight: 800; letter-spacing: .01em; transition: color .3s; -webkit-tap-highlight-color: transparent; }
    .tabbar .tab .icon { width: 22px; height: 22px; transition: transform .4s var(--ease); }
    .tabbar .tab.is-active { color: var(--brand); }
    .tabbar .tab.is-active .icon { transform: translateY(-2px); }
    .tabbar .tab:active .icon { transform: scale(.85); }
    .tab-icon { position: relative; display: grid; }
    .tabbar .counter { top: -6px; inset-inline-end: -10px; border-color: #fff; }
    .tabbar-pill { position: absolute; top: 6px; height: 4px; width: 22px; border-radius: 4px; background: var(--brand-400); box-shadow: 0 0 12px var(--brand-400); transition: left .5s var(--ease), opacity .3s; opacity: 0; }
    .tab-cart { align-self: start; gap: 2px; }
    .tab-cart .tab-dial { width: 56px; height: 56px; margin-top: -36px; }
    .tab-cart-label { margin-top: 5px; line-height: 1; font-size: 11px; }
    .tabbar .tab > span:not(.tab-dial):not(.tab-icon) { white-space: nowrap; }
    .tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .tab-dial { position: relative; width: 62px; height: 62px; margin-top: -28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, var(--brand-400), var(--brand) 55%, var(--brand-800)); box-shadow: 0 10px 24px -6px rgba(43, 103, 140, .6), 0 0 0 5px #fff; }
    .tab-dial .icon { width: 24px; height: 24px; position: relative; z-index: 1; }
    .tab-dial-ticks { position: absolute; inset: 0; width: 100%; height: 100%; stroke: rgba(255, 255, 255, .55); stroke-width: 1.4; transition: transform 1s var(--ease); }
    .tab-dial.is-spinning .tab-dial-ticks { transform: rotate(360deg); }
    .tab-cart.is-active .tab-dial { box-shadow: 0 10px 24px -6px rgba(43, 103, 140, .6), 0 0 0 5px #fff, 0 0 0 7px var(--brand-400); }
    .tab-dial .counter { top: 2px; inset-inline-end: 2px; border-color: var(--brand); background: #F5B301; color: var(--ink); }

    /* Floating helpers sit above the tab bar */
    .to-top { display: none; }
    .wa-float { bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); inset-inline-end: 14px; width: 48px; height: 48px; }
    .toasts { bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
    body.has-buybar .wa-float { bottom: calc(var(--tabbar-h) + 124px + env(safe-area-inset-bottom)); }

    /* ---------- Full-screen menu ---------- */
    /* Frosted-glass menu: the page stays visible behind it, heavily blurred */
    #nav-drawer {
        width: 100vw; max-width: none; color: #DCE7F0;
        background: linear-gradient(160deg, rgba(14, 26, 40, .62), rgba(28, 59, 85, .5));
        -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
    }
    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        #nav-drawer { background: linear-gradient(160deg, #0E1A28, #1C3B55); }
    }    #nav-drawer .drawer-head { border-color: rgba(255, 255, 255, .08); }
    /* "IMEX" wordmark: see-through outlined letters with a light sweep running left → right */
    /* Built from the logo's own "iMEX" lettering (masks cut from logo.png):
       ::before draws the glowing outline, ::after is the glass body the light sweeps across. */
    .menu-wordmark { position: relative; display: block; width: 190px; aspect-ratio: 732 / 156; }
    .menu-wordmark::before, .menu-wordmark::after {
        content: ""; position: absolute; inset: 0;
        -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center;
    }
    .menu-wordmark::before {
        -webkit-mask-image: var(--wm-outline); mask-image: var(--wm-outline);
        background: rgba(140, 200, 238, .85);
        filter: drop-shadow(0 0 6px rgba(76, 147, 192, .7));
    }
    .menu-wordmark::after {
        -webkit-mask-image: var(--wm-fill); mask-image: var(--wm-fill);
        background-color: rgba(140, 200, 238, .12);
        background-image: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, 0) 70%);
        background-size: 250% 100%; background-repeat: no-repeat; background-position: 100% 0;
        animation: wordmark-sweep 3s ease-in-out infinite;
    }
    @keyframes wordmark-sweep { 0% { background-position: 100% 0; } 70%, 100% { background-position: 0% 0; } }
    #nav-drawer .drawer-head .icon-btn { color: #fff; background: rgba(255, 255, 255, .08); }
    #nav-drawer .drawer-body { position: relative; overflow-x: hidden; }
    .menu-gear { display: block; position: absolute; width: 320px; inset-inline-end: -120px; bottom: -80px; color: rgba(140, 200, 238, .07); animation: spin 40s linear infinite; pointer-events: none; }
    #nav-drawer .mobile-nav a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-color: rgba(255, 255, 255, .07); color: #fff; font-size: 19px; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: 0s; }
    #nav-drawer.is-open .mobile-nav a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * 55ms); }
    #nav-drawer .mobile-nav a.is-active { color: #8CC8EE; }
    .mn-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #8CC8EE; flex-shrink: 0; }
    .mn-icon .icon { width: 20px; height: 20px; }
    .mobile-nav a.is-active .mn-icon { background: var(--brand); color: #fff; }
    .mn-label { flex: 1; font-weight: 800; }
    .mn-no { font-size: 11px; color: rgba(255, 255, 255, .3); }
    #nav-drawer .drawer-foot { background: rgba(0, 0, 0, .2); border-color: rgba(255, 255, 255, .08); }
    #nav-drawer .drawer-foot .btn-outline { --btn-color: #fff; --btn-border: rgba(255, 255, 255, .25); }

    /* Mini cart becomes a bottom sheet */
    #cart-drawer { top: auto; height: 82vh; width: 100vw; max-width: none; border-radius: 26px 26px 0 0; transform: translateY(100%) !important; inset-inline: 0; left: 0; right: 0; }
    #cart-drawer.is-open { transform: none !important; }
    #cart-drawer .drawer-head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: var(--line-2); }
    #cart-drawer .drawer-head { position: relative; padding-top: 24px; }
    #cart-drawer .drawer-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

    /* ---------- Sticky buy bars ---------- */
    .buybar {
        position: fixed; inset-inline: 10px; z-index: 79; display: flex; align-items: center; gap: 12px;
        bottom: calc(var(--tabbar-h) + 40px + env(safe-area-inset-bottom));
        padding: 10px 10px 10px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line);
        box-shadow: 0 16px 40px -14px rgba(15, 27, 42, .45);
        transform: translateY(160%); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
    }
    [dir="rtl"] .buybar { padding: 10px 14px 10px 10px; }
    .buybar.is-visible { transform: none; opacity: 1; }
    .buybar img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: var(--surface); padding: 3px; }
    .buybar-info { flex: 1; min-width: 0; line-height: 1.3; }
    .buybar-info small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .buybar-info strong { font-size: 18px; font-weight: 900; color: var(--brand-700); }
    .buybar .btn { min-height: 46px; padding-inline: 16px; font-size: 14px; flex-shrink: 0; }

    /* ---------- Filters bottom sheet ---------- */
    .filters[data-sheet] {
        position: fixed !important; inset-inline: 0; bottom: 0; top: auto; z-index: 110; max-height: 86vh; overflow-y: auto;
        display: grid; gap: 14px; padding: 0 14px calc(20px + env(safe-area-inset-bottom));
        background: var(--surface); border-radius: 26px 26px 0 0; box-shadow: 0 -20px 50px -10px rgba(0, 0, 0, .35);
        transform: translateY(105%); transition: transform .55s var(--ease); overscroll-behavior: contain;
    }
    .filters[data-sheet].is-open { transform: none; }
    .filters[data-sheet] [data-reveal] { opacity: 1; transform: none; }
    .sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 4px 10px; background: var(--surface); }
    .sheet-head strong { display: flex; gap: 8px; align-items: center; font-size: 17px; }
    .sheet-handle { position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: var(--line-2); }
    .filter-fab {
        position: fixed; z-index: 78; left: 50%; bottom: calc(var(--tabbar-h) + 44px + env(safe-area-inset-bottom));
        display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
        background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6);
        transform: translateX(-50%); transition: transform .4s var(--ease), opacity .3s;
    }
    .filter-fab .icon { width: 18px; height: 18px; }
    .filter-fab .dot { background: #F5B301; }
    .filter-fab.is-hidden { transform: translate(-50%, 150%); opacity: 0; }
    .shop-layout { display: block; }

    /* ---------- How it works: scroll-driven on phones too ---------- */
    .how { height: 280vh !important; }
    .how-sticky { position: sticky !important; top: var(--header-h) !important; height: calc(100svh - var(--header-h)) !important; padding-block: 18px 90px !important; align-items: flex-start; }
    .how-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .how-visual { order: -1; }
    .how-visual .btn { display: none; }
    .how h2 { font-size: 22px; margin-block: 6px 4px; }
    .how .section-head p { display: none; }
    .how .section-head h2::after { display: none; }
    .how-steps { position: relative; display: block; min-height: 118px; margin-top: 12px; }
    .how-step { position: absolute; inset: 0 0 auto; opacity: 0 !important; transform: translateY(16px) !important; pointer-events: none; }
    .how-step.is-active { opacity: 1 !important; transform: none !important; pointer-events: auto; }
    .how-progress { margin-top: 12px; }

    /* ---------- Touch feedback ---------- */
    .product-card, .cat-tile, .industry-card, .value-feature, .pillar-card, .team-card, .trust-item, .social-tile { -webkit-tap-highlight-color: transparent; }
    .product-card:active, .cat-tile:active, .industry-card:active, .value-feature:active, .social-tile:active { transform: scale(.975) !important; transition-duration: .15s; }
    .product-card:hover { transform: none; }
    .product-card:hover .product-media img { transform: none; }
    .product-card.is-scanning .pc-xray { clip-path: inset(0 0 0 0); }
    .product-card.is-scanning .pc-xray::after { animation: xray-scan 1.6s ease-in-out 1 .5s; }
    .product-card.is-scanning .xray-tag { opacity: 1; transform: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
    /* Gentle, quick reveals: vertical only so nothing slides in from off-screen */
    [data-reveal] { transition-duration: .7s; }
    [data-reveal="up"], [data-reveal="start"], [data-reveal="end"], [dir="ltr"] [data-reveal="start"], [dir="ltr"] [data-reveal="end"] { transform: translateY(26px); }
    [data-reveal="zoom"] { transform: scale(.95); }
    [data-reveal="blur"] { filter: blur(6px); }

    /* Hero: vault leads, stats in a compact row */
    .hero { padding-block: 26px 70px; }
    .hero-inner { display: flex; flex-direction: column; gap: 6px; }
    .hero-vault { order: -1; display: block !important; width: 230px; max-width: 62vw; margin: 0 auto 4px; padding-bottom: 46px; }
    .hero-vault .vault-readout { bottom: -40px; font-size: 12px; gap: 8px; }
    .hero-vault .vault-readout span { min-width: 0; padding: 4px 10px; }
    .hero-badge { font-size: 12px; }
    .hero h1 { font-size: 29px; margin-block: 14px 12px; }
    .hero p.lead { font-size: 15px; line-height: 1.85; }
    .hero-ctas { margin-top: 22px; display: grid; grid-template-columns: 1fr; gap: 10px; }
    .hero-ctas .btn { width: 100%; }
    .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 26px; }
    .stat-glass { padding: 12px 10px; text-align: center; }
    .stat-glass .num { font-size: 20px; justify-content: center; flex-wrap: wrap; gap: 2px; }
    .stat-glass .num small { font-size: 11px; width: 100%; }
    .stat-glass p { font-size: 11px; line-height: 1.5; }

    /* Section rhythm */
    .section { padding-block: 54px; }
    .section-head { margin-bottom: 24px; gap: 12px; }
    .section-head h2 { font-size: 24px; }
    .section-head p { font-size: 14.5px; }
    .floater:nth-child(n+3) { display: none; }

    /* Swipe carousels (home categories & featured products) */
    [data-carousel] {
        display: flex !important; gap: 12px !important; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
        margin-inline: -16px; padding: 6px 16px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    [data-carousel]::-webkit-scrollbar { display: none; }
    [data-carousel] > * { flex: 0 0 auto; scroll-snap-align: center; }
    .cat-grid[data-carousel] > * { width: 46%; }
    .product-grid[data-carousel] > * { width: 76%; }
    .product-grid[data-carousel] .product-summary, .product-grid[data-carousel] .product-features { display: -webkit-box; }
    .product-grid[data-carousel] .product-features { display: flex; }
    .product-grid[data-carousel] .product-foot { flex-direction: row; align-items: flex-end; }
    .carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
    .carousel-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line-2); transition: all .4s var(--ease); }
    .carousel-dots i.is-active { width: 22px; background: var(--brand); }
    .dark-section .carousel-dots i { background: rgba(255, 255, 255, .2); }
    [data-carousel].is-nudging { animation: nudge 1.4s var(--ease) 1; }

    /* Product cards in 2-col grids */
    .product-grid:not([data-carousel]) .product-body { padding: 12px; gap: 6px; }
    .product-grid:not([data-carousel]) .product-meta span:first-child { display: none; }
    .product-grid:not([data-carousel]) .price small { display: none; }
    .product-grid:not([data-carousel]) .add-btn span { display: none; }
    .product-grid:not([data-carousel]) .add-btn { min-height: 40px; }
    .wish-btn { width: 36px; height: 36px; }
    .badge { font-size: 10.5px; padding: 3px 7px; }

    /* Kinetic band */
    .kinetic-row span { font-size: 40px; gap: 20px; }
    .kinetic-row { gap: 20px; }

    /* Industry & value cards: horizontal snap too */
    .industry-visual { height: 150px; }
    .value-features { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .value-feature { padding: 14px; }
    .value-feature h3 { font-size: 14px; }
    .value-feature p { font-size: 12.5px; }
    .form-card { padding: 20px; border-radius: 20px; }

    /* Vault CTA */
    .vault-cta { padding: 26px 20px; gap: 18px; text-align: center; }
    .vault-cta .vault { max-width: 180px; order: -1; }
    .vault-cta .actions { justify-content: center; }
    .vault-cta .actions .btn { flex: 1 1 100%; }

    /* Trust strip as 2x2 */
    .trust-grid { grid-template-columns: 1fr 1fr !important; }
    .trust-item { flex-direction: column; text-align: center; padding: 18px 10px; border-inline-end: 1px solid var(--line) !important; }
    .trust-item:nth-child(2n) { border-inline-end: 0 !important; }
    .trust-item h4 { font-size: 13.5px; }
    .trust-item p { font-size: 12px; }

    /* Footer: tighter, two columns of links */
    .footer-main { grid-template-columns: 1fr 1fr !important; gap: 26px 18px !important; }
    .footer-main > div:first-child, .footer-main > div:last-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; text-align: center; font-size: 12px; }

    /* Inner pages */
    .page-head-card { border-radius: 20px; }
    .page-head-card h1 { font-size: 24px; }
    .tabs-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: -22px; padding-inline: 22px; scrollbar-width: none; }
    .tabs-row::-webkit-scrollbar { display: none; }
    .tab-pill { flex-shrink: 0; }
    .sub-nav .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .sub-nav .control { flex-basis: 100%; }
    .page-bar .container { gap: 8px; }
    .crumbs { font-size: 12.5px; }
    .about-hero h1, .contact-hero h1, .catalog-hero h1 { font-size: 28px; }
    /* Phone factory card: the scene on top, captions in their own strip underneath instead of over the conveyor */
    .factory-frame { height: auto; border-radius: 20px; margin-top: 28px; display: flex; flex-direction: column; }
    .factory-frame .blueprint { position: absolute; inset: 0 0 auto; height: 220px; }
    .factory-frame::before { content: ""; display: block; height: 220px; flex-shrink: 0; }
    .factory-frame .factory-line { bottom: auto; top: 172px; }
    .factory-frame .factory-items { bottom: auto; top: 112px; height: 60px; }
    .factory-frame .factory-items img { height: 52px; }
    .factory-frame .bp-gear.a { width: 64px; }
    .factory-frame .bp-gear.b { width: 40px; }
    .factory-caption { position: relative; inset: auto; z-index: 1; display: grid; justify-content: stretch; gap: 8px; padding: 14px; background: #0D1D2E; border-top: 1px solid rgba(140, 200, 238, .18); }
    .factory-caption > span { justify-content: center; text-align: center; font-size: 13px; line-height: 1.6; padding: 9px 12px; background: rgba(255, 255, 255, .05); backdrop-filter: none; }
    .factory-caption .mono { font-size: 12px; color: #8CC8EE; }
    .about-stats { grid-template-columns: 1fr 1fr !important; }
    .about-stat { border-bottom: 1px solid var(--line); }
    .gradient-cta { text-align: center; }
    .gradient-cta .actions { justify-content: center; width: 100%; }
    .help-banner, .cta-strip { text-align: center; justify-content: center; }
    .help-banner .lead, .cta-strip .lead { flex-direction: column; }

    /* Product page */
    .pdp-thumbs { grid-template-columns: repeat(3, 1fr); }
    .pdp-stage { padding: 10px; }
    .pdp-stage-top { top: 10px; inset-inline: 10px; }
    .pdp-badges .chip { font-size: 11px; padding: 4px 9px; }
    .buy-row .btn { min-height: 52px; }
}

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes ticker-rtl { to { transform: translateX(50%); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(-38px); } 60% { transform: translateX(6px); } }
[dir="rtl"] [data-carousel].is-nudging { animation-name: nudge-rtl; }
@keyframes nudge-rtl { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(38px); } 60% { transform: translateX(-6px); } }

@media (prefers-reduced-motion: reduce) {
    .topbar-track { animation: none; }
    .how { height: auto !important; }
    .how-sticky { position: relative !important; height: auto !important; }
    .how-step { position: relative; opacity: 1 !important; transform: none !important; }
    .how-steps { display: grid; }
}

/* Pages with a filter button: lift WhatsApp so the two never collide. */
@media (max-width: 900px) {
    .page-shop .wa-float, .page-catalog .wa-float { bottom: calc(var(--tabbar-h) + 100px + env(safe-area-inset-bottom)); }
}

/* Phones: long button labels wrap onto a second line instead of pushing the button off-screen. */
@media (max-width: 760px) {
    .btn { white-space: normal; text-align: center; max-width: 100%; line-height: 1.45; padding-block: 11px; }
    .btn .icon { flex-shrink: 0; }
    .btn-lg { width: 100%; }
    .hero-ctas .btn, .gradient-cta .actions .btn, .urgent-band .actions .btn, .cta-strip .actions .btn, .vault-cta .actions .btn, .soon-body .actions .btn { flex: 1 1 100%; }
    .cta-strip .actions, .urgent-band .actions, .gradient-cta .actions { width: 100%; }
    .chip { white-space: normal; text-align: start; }
    .blueprint .bp-caption span { font-size: 11px; padding: 5px 9px; }
    .test-chips .chip { flex: 1 1 100%; }
}

/* Phones: the glowing wordmark leads the hero */
@media (max-width: 760px) {
    .hero-vault.hero-logo { width: 320px; max-width: 86vw; padding-bottom: 0; margin-bottom: 0; }
}

/* Phones: the top strip scrolls our product photos instead of text */
.topbar-products { display: none; }
@media (max-width: 900px) {
    .topbar-products { display: flex; width: max-content; animation: ticker 30s linear infinite; }
    [dir="rtl"] .topbar-products { animation-name: ticker-rtl; }
    .topbar-track.has-products { display: none; }
    .tp-set { display: flex; align-items: center; gap: 18px; padding-inline: 9px; }
    .tp-set img { height: 34px; width: auto; max-width: 72px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
    .tp-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--brand-400); opacity: .7; flex-shrink: 0; }
    .topbar:has(.topbar-products) .container { min-height: 46px; align-items: center; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .topbar-products { animation: none; } }
