:root{--red:#c8281e;--ink:#2a1a14;--paper:#fbf6ec;--sesame:#e9d9b8;--line:#eadfcb;--mute:#7a6a5c}
*{box-sizing:border-box;margin:0}
body{background:#e8dfd0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:var(--ink);display:flex;justify-content:center}
a{color:inherit}
.app{position:relative;width:100%;max-width:430px;min-height:100vh;background:var(--paper);padding-bottom:62px}
header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--paper);z-index:4}
.brand{font-weight:800;font-size:23px;color:var(--red);text-decoration:none}
.bottom-navigation{position:fixed;bottom:0;width:100%;max-width:430px;height:62px;display:flex;background:var(--paper);border-top:1px solid var(--line);z-index:5}
.bottom-navigation a{flex:1;display:flex;align-items:center;justify-content:center;text-decoration:none;font-size:14px;color:#9b8a7a}
.bottom-navigation a.on{color:var(--ink);font-weight:700}
.stories{display:flex;gap:14px;padding:14px 16px;overflow-x:auto;border-bottom:1px solid var(--line)}
.story{flex:none;width:68px;text-align:center;font-size:12px;text-decoration:none}
.ring{width:68px;height:68px;border-radius:50%;padding:3px;background:conic-gradient(var(--red),#f0a43a,var(--red))}
.ring span{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;border:3px solid var(--paper);background:var(--ink) center/cover;color:#fff;font-weight:800}
.story small{display:block;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chips{display:flex;gap:8px;padding:10px 16px;overflow-x:auto}.chips a{flex:none;padding:6px 12px;border-radius:99px;background:var(--sesame);font-size:13px;text-decoration:none}.chips a.on{background:var(--red);color:#fff}
.post{border-bottom:8px solid var(--sesame)}
.phead{display:flex;align-items:center;gap:10px;padding:12px 16px}.phead small{display:block;color:var(--mute);font-size:12px}
.dot{width:36px;height:36px;border-radius:50%;background:var(--red);color:#fff;font-weight:800;font-size:13px;display:flex;align-items:center;justify-content:center}
.pimg{position:relative;aspect-ratio:1;display:flex;align-items:center;justify-content:center;text-align:center;padding:24px;font-weight:800;font-size:28px}
.pimg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.tag{position:absolute;top:12px;left:12px;background:var(--red);color:#fff;font:700 12px sans-serif;padding:5px 10px;border-radius:99px;z-index:1}
.acts{display:flex;gap:10px;padding:12px 16px 4px}
.btn{flex:1;height:46px;border-radius:12px;font:700 15px sans-serif;border:0;cursor:pointer;display:block;text-align:center;text-decoration:none;line-height:46px;padding:0}
.btn.o{border:1.5px solid var(--red);color:var(--red);background:none}.btn.f{background:var(--red);color:#fff}
.cap{padding:6px 16px 16px;font-size:14px;line-height:1.45}.cap b{font-size:17px}.cap s{color:var(--mute);font-size:13px}.cap p{color:#5a4a3e;margin-top:3px}
.pad{padding:16px}.mute{color:var(--mute);font-size:13px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}
.grid a{aspect-ratio:1;display:flex;align-items:center;justify-content:center;text-align:center;font:700 12px sans-serif;padding:6px;background:center/cover;text-decoration:none}
.reels{scroll-snap-type:y mandatory}
.reel{position:relative;height:calc(100vh - 62px);scroll-snap-align:start;color:#fff;display:flex;flex-direction:column;justify-content:flex-end;padding:20px 16px 24px;background:center/cover}
.reel video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.reel::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 35%,rgba(20,10,5,.88));z-index:1}.reel>*:not(video){position:relative;z-index:2}
.reel .acts{padding:12px 0 0}.reel .btn.o{color:#fff;border-color:#fff}
.row{display:flex;gap:10px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);font-size:14px}.row .t{width:60px;height:60px;border-radius:10px;background:center/cover;flex:none}.row>div:nth-child(2){flex:1}
.row form{display:flex;gap:6px;align-items:center}.row form button{width:28px;height:28px;border-radius:50%;border:0;background:var(--sesame);font-weight:700}
input,textarea,select{width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;font:inherit;margin:4px 0 10px;background:#fff}
.ok{background:#e7f3e6;padding:14px;border-radius:10px;margin:16px}.err{background:#fde8e6;padding:12px;border-radius:10px;margin:0 0 12px;color:#8a1c14}
/* v2 upgrade */
header{padding:10px 16px}.logo img{height:38px;max-width:180px;object-fit:contain;display:block}
.cartb{position:relative;width:44px;height:44px;border-radius:50%;background:var(--sesame);display:flex;align-items:center;justify-content:center;text-decoration:none}
.ic{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.cartb i,.bottom-navigation i{position:absolute;top:-2px;right:-2px;background:var(--red);color:#fff;font:700 11px sans-serif;min-width:18px;height:18px;border-radius:99px;display:flex;align-items:center;justify-content:center;font-style:normal;padding:0 4px}
.bottom-navigation{height:70px;justify-content:space-around;align-items:center;padding:0 12px}
.bottom-navigation a{flex:none;position:relative;width:52px;height:52px;border-radius:50%;background:var(--sesame);color:var(--ink);transition:background .2s}
.bottom-navigation a.on{background:var(--red);color:#fff;box-shadow:0 0 0 4px rgba(200,40,30,.2)}
.bottom-navigation a:focus-visible,.cartb:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.app{padding-bottom:78px}
.stories{scroll-snap-type:x mandatory;gap:16px}.story{scroll-snap-align:start;width:74px}.ring{width:74px;height:74px}
.phead{display:block;padding:12px 16px 10px}.pn{font-size:18px;line-height:1.25;margin-bottom:4px}.pn a{text-decoration:none}
.meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:13px;color:var(--mute);margin-top:3px}
.cat{background:var(--sesame);color:var(--ink);padding:2px 10px;border-radius:99px;font-weight:600;font-size:12px}
.stars{color:#e8a010;letter-spacing:1px;font-size:15px}
.stk{font-weight:700}.stk.in{color:#1f7a3a}.stk.out{color:var(--red)}.sku{font-family:ui-monospace,monospace}
.pimg{text-decoration:none;color:var(--ink)}
.btns{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:12px 16px 4px}
.btns .btn{height:48px;line-height:1.15;font-size:13px;display:flex;align-items:center;justify-content:center;padding:0 6px}
.btn.wa{background:#1f9d55;color:#fff}.btn:disabled{opacity:.45;cursor:not-allowed}
.cap{padding:8px 16px 18px}.pr{display:flex;align-items:baseline;gap:10px}.pr b{font-size:24px}.pr s{color:var(--mute);font-size:15px}.pr em{font-style:normal;background:var(--red);color:#fff;font:700 12px sans-serif;padding:3px 8px;border-radius:99px}
.desc{margin-top:8px;font-size:14px;line-height:1.5;color:#5a4a3e;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.desc.full{display:block;-webkit-line-clamp:unset}
.more{display:inline-block;margin-top:8px;padding:8px 14px;border:1.5px solid var(--ink);border-radius:99px;font-size:13px;font-weight:700;text-decoration:none}
.rv{padding:12px 16px;border-top:1px solid var(--line);font-size:14px}
/* v3 polish */
body{background:#efe6d6}
header{box-shadow:0 2px 12px rgba(42,26,20,.06);border-bottom:0}
.stories{border-bottom:0;padding:16px 16px 8px}.ring{box-shadow:0 4px 10px rgba(200,40,30,.2)}.story small{font-weight:600;margin-top:6px}
.chips{padding:8px 16px 14px}.chips a{padding:8px 14px;font-weight:600}
.post{background:#fff;border:0;border-radius:20px;margin:0 12px 18px;box-shadow:0 6px 22px rgba(42,26,20,.09);overflow:hidden}
.phead{display:flex;align-items:center;gap:12px;padding:14px 14px 12px}
.av2{flex:none;width:54px;height:54px;border-radius:50%;background:center/cover;border:3px solid #fff;box-shadow:0 0 0 2.5px var(--red);display:flex;align-items:center;justify-content:center;font-weight:800;color:var(--ink);text-decoration:none}
.pinfo{min-width:0;flex:1}.pn{font-size:17px;margin:0 0 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.meta{gap:2px 10px;flex-wrap:nowrap;white-space:nowrap}.meta .stars{font-size:14px}.meta small{margin-left:2px}
.stk{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:99px;font-size:12px}.stk::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.stk.in{background:#e3f3e8}.stk.out{background:#fde8e6}
.sku{font-size:12px;overflow:hidden;text-overflow:ellipsis}
.pimg{border-radius:0}.btns{padding:14px 14px 4px}.btns .btn{border-radius:14px}.cap{padding:10px 14px 18px}
.btn.f{box-shadow:0 4px 12px rgba(200,40,30,.28)}.btn.wa{box-shadow:0 4px 12px rgba(31,157,85,.25)}
.pad{padding-left:16px;padding-right:16px}.rv{background:#fff;margin:0 12px 10px;border-radius:14px;border:0}

/* Targeted header/menu update; existing home-page design is intentionally preserved. */
.site-header{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:8px;padding:10px 14px;position:sticky;top:0;background:var(--paper);z-index:20;border-bottom:1px solid var(--line);min-height:62px}
.site-header .logo-centered{grid-column:2;justify-self:center;display:flex;align-items:center;justify-content:center;min-width:0;max-width:100%;text-decoration:none}
.site-header .logo-centered img{display:block;max-width:170px;max-height:38px;object-fit:contain}
.menu-trigger,.cart-square,.drawer-close{display:flex;align-items:center;justify-content:center;border:1px solid rgba(42,26,20,.10);background:rgba(42,26,20,.06);color:var(--ink);cursor:pointer}
.menu-trigger{width:36px;height:36px;border-radius:11px;grid-column:1}
.cart-square{position:relative;width:38px;height:38px;border-radius:10px;grid-column:3;justify-self:end}
.site-header .ic,.menu-trigger .ic,.cart-square .ic,.drawer-close .ic{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cart-square i{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;border-radius:99px;background:var(--red);color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;font-style:normal}
.drawer-shade{position:fixed;inset:0;background:rgba(22,14,10,.45);z-index:39}
.site-drawer{position:fixed;z-index:40;left:0;top:0;bottom:0;width:min(82vw,330px);background:var(--paper);padding:18px 17px;box-shadow:12px 0 35px rgba(20,12,7,.18);transform:translateX(-105%);transition:transform .25s ease;overflow-y:auto}
.site-drawer.is-open{transform:translateX(0)}
body.menu-open{overflow:hidden}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:15px;border-bottom:1px solid var(--line)}
.drawer-brand{display:flex;align-items:center;gap:10px;min-width:0;color:var(--red)}
.drawer-brand img{max-width:48px;max-height:42px;object-fit:contain}
.drawer-brand strong{font-size:18px;line-height:1.2}
.drawer-close{width:34px;height:34px;border-radius:10px;flex:none}
.drawer-about{font-size:13px;line-height:1.55;color:var(--mute);padding:14px 0}
.drawer-links{display:flex;flex-direction:column;gap:5px;margin:3px 0 18px}
.drawer-links a,.drawer-contact a{display:flex;align-items:center;gap:11px;padding:12px 10px;border-radius:11px;text-decoration:none;font-size:14px;font-weight:650}
.drawer-links a:hover,.drawer-contact a:hover{background:rgba(200,40,30,.08);color:var(--red)}
.drawer-links .ic,.drawer-contact .ic,.drawer-social .ic{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.drawer-contact{border-top:1px solid var(--line);padding-top:12px}
.drawer-contact a{font-size:12px;overflow-wrap:anywhere}
.drawer-social{display:flex;gap:10px;padding:12px 10px}
.drawer-social a{display:flex;width:37px;height:37px;border-radius:50%;align-items:center;justify-content:center;background:rgba(42,26,20,.07);color:var(--ink)}
.drawer-foot{display:block;color:var(--mute);font-size:10px;padding:8px 10px}
.bottom-navigation a{background:rgba(42,26,20,.045);margin:7px 6px;border-radius:13px;opacity:.8;transition:all .18s ease}
.bottom-navigation a .ic{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottom-navigation a.on{background:rgba(200,40,30,.12);color:var(--red);opacity:1;box-shadow:0 3px 8px rgba(42,26,20,.12);transform:translateY(-1px)}
.product-meta-line{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;white-space:nowrap;overflow:hidden;font-size:9px}
.product-meta-line>*{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.product-meta-line .review-meta{margin-left:auto;flex:0 0 auto}
.product-meta-line .review-meta .mute{font-size:9px;white-space:nowrap}
.product-meta-line .review-meta .stars{font-size:10px;white-space:nowrap}
.btns .ic{width:14px;height:14px;vertical-align:-2px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.more-wrap{display:flex;justify-content:flex-end;margin-top:7px}
.more{display:inline-flex;align-items:center;gap:5px}
.more .ic{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
@media(prefers-reduced-motion:reduce){.site-drawer{transition:none}}

.home-category-list{scroll-behavior:smooth}
.home-category{flex-basis:calc((100% - 45px)/4)}
.home-category-img{width:min(72px,100%);height:auto;aspect-ratio:1}
@media(max-width:360px){.home-category-list{gap:10px}.home-category{flex-basis:calc((100% - 30px)/4)}}

/* Product sharing controls: compact row immediately before "Read full description". */
.product-share{display:flex;align-items:center;gap:8px;margin-top:10px}
.product-share .share-icon{display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);padding:0;text-decoration:none;cursor:pointer;transition:transform .16s ease,background .16s ease}
.product-share .share-icon:active{transform:scale(.94)}
.product-share .share-icon .ic{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.product-share .share-facebook{color:#1877f2}
.product-share .share-instagram{color:#b52c75}
.product-share .share-whatsapp{color:#168b51}
.product-share .share-print{color:var(--mute)}
.product-share .share-icon:hover{background:#f8f0e5}
.home-feature-carousel{scroll-behavior:smooth}
.home-feature-card{position:relative}
@media print{nav,.site-header,.site-drawer,.product-share,.more-wrap,.btns{display:none!important}}

/* HotnSour Mart: center the logo within the header without enlarging it */
.premium-header {
    position: relative;
}
.premium-header .premium-logo {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    grid-column: auto !important;
    justify-self: auto !important;
    width: max-content !important;
    max-width: calc(100% - 124px) !important;
    margin: 0 !important;
}
.premium-header .premium-logo img {
    display: block !important;
    width: auto !important;
    height: 38px !important;
    max-height: 38px !important;
    max-width: 170px !important;
    object-fit: contain !important;
}
@media (max-width: 430px) {
    .premium-header .premium-logo {
        max-width: calc(100% - 100px) !important;
    }
    .premium-header .premium-logo img {
        height: 38px !important;
        max-height: 38px !important;
        max-width: 100% !important;
    }
}

/* Product heading metadata: category, SKU, stock, reviews on one line */
.phead .pinfo {
    min-width: 0;
    flex: 1 1 auto;
}
.phead .pn {
    margin: 0 0 7px;
    min-width: 0;
}
.phead .product-meta-line {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start;
    gap: 5px 9px !important;
    width: 100%;
    min-width: 0;
    margin-top: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.3;
}
.phead .product-meta-line .cat {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 3px 8px;
    font-size: 11px;
}
.phead .product-meta-line .sku {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
}
.phead .product-meta-line .stk {
    flex: 0 0 auto;
    padding: 3px 7px;
    font-size: 10px;
}
.phead .product-meta-line .stk::before {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
}
.phead .product-review {
    flex: 0 1 auto;
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: right;
    font-size: 10px;
    white-space: nowrap;
}
.phead .product-review .stars {
    font-size: 11px;
    letter-spacing: 0;
}
.phead .product-review small,
.phead .product-review .mute {
    font-size: 10px;
    white-space: nowrap;
}
@media (max-width: 380px) {
    .phead { gap: 8px; padding-left: 10px; padding-right: 10px; }
    .phead .product-meta-line { gap: 4px !important; }
    .phead .product-meta-line .sku { max-width: 75px; }
    .phead .product-meta-line .cat { max-width: 66px; }
    .phead .product-review .stars { display: none; }
}

/* =========================================
   HOTNSOUR MART — PREMIUM FLOATING NAV
   ========================================= */

.bottom-navigation {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    transform: translateX(-50%);
    z-index: 1000;

    width: min(406px, calc(100% - 24px)) !important;
    max-width: 406px !important;
    height: 72px !important;
    padding: 7px 9px !important;

    display: flex !important;
    align-items: center;
    justify-content: space-around;
    gap: 3px;

    background: rgba(255, 252, 246, 0.84) !important;
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    backdrop-filter: blur(22px) saturate(155%);

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 25px;
    box-shadow:
        0 12px 35px rgba(42, 26, 20, 0.13),
        0 3px 10px rgba(42, 26, 20, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    overflow: visible !important;
    isolation: isolate;
}

/* Individual navigation items */
.bottom-navigation .nav-item {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 54px;
    padding: 5px 2px;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    color: #8b8177 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 17px;
    margin: 0 !important;

    text-decoration: none;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.1;
    opacity: 1 !important;

    transition:
        color .25s ease,
        background .25s ease,
        transform .25s cubic-bezier(.2,.8,.2,1);
}

.bottom-navigation .nav-item .ic {
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 auto;
    stroke-width: 1.8;
    transition: transform .25s ease;
}

.bottom-navigation .nav-item span {
    display: block;
}

/* Active item */
.bottom-navigation .nav-item.on {
    color: #c8281e !important;
    background: rgba(200, 40, 30, 0.09) !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

.bottom-navigation .nav-item.on .ic {
    stroke-width: 2.2;
    transform: translateY(-1px);
}

.bottom-navigation .nav-item:active {
    transform: scale(.92);
}

/* Raised central Shop button */
.bottom-navigation .nav-shop {
    position: relative;
    z-index: 2;
    align-self: stretch;

    flex: 0 0 66px;
    min-width: 66px;
    margin: -23px 0 0 !important;
    padding: 0;

    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;

    color: #c8281e !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    text-decoration: none;

    transition: transform .25s ease;
}

.bottom-navigation .nav-shop-icon {
    width: 62px;
    height: 62px;
    flex: 0 0 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: linear-gradient(145deg, #f04436, #bd2119);
    border: 4px solid rgba(255, 255, 255, .9);
    border-radius: 50%;

    box-shadow:
        0 5px 14px rgba(200, 40, 30, .3),
        0 0 0 2px rgba(200, 40, 30, .12);

    animation: navShopFloat 3s ease-in-out infinite;
    transition:
        box-shadow .25s ease,
        background .25s ease,
        transform .25s ease;
}

.bottom-navigation .nav-shop-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-navigation .nav-shop-label {
    font-size: 10px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: .2px;
    color: #c8281e;
}

.bottom-navigation .nav-shop:active {
    transform: scale(.92);
}

.bottom-navigation .nav-shop:active .nav-shop-icon {
    animation: none;
    transform: scale(.94);
}

@keyframes navShopFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Cart quantity badge */
.bottom-navigation .nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bottom-navigation .nav-badge {
    position: absolute;
    top: -7px;
    right: -10px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: #c8281e;
    border: 2px solid #fffaf2;
    border-radius: 20px;

    font-size: 9px;
    font-weight: 800;
    font-style: normal;
    line-height: 1;
}

/* Keyboard accessibility */
.bottom-navigation a:focus-visible {
    outline: 2px solid #c8281e;
    outline-offset: 2px;
}

/* Smaller screens */
@media (max-width: 360px) {
    .bottom-navigation {
        width: calc(100% - 16px) !important;
        bottom: max(8px, env(safe-area-inset-bottom)) !important;
        height: 68px !important;
        padding: 6px !important;
        border-radius: 22px;
    }

    .bottom-navigation .nav-shop {
        flex-basis: 58px;
        min-width: 58px;
    }

    .bottom-navigation .nav-shop-icon {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .bottom-navigation .nav-item {
        font-size: 9px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .bottom-navigation *,
    .bottom-navigation *::before,
    .bottom-navigation *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Stable global alignment: keep every page centred in the same app frame. */
html{min-height:100%;overflow-y:scroll;scrollbar-gutter:stable;}
html,body{width:100%;max-width:100%;overflow-x:clip;}
body{display:flex;justify-content:center;align-items:stretch;}
.app{flex:0 0 min(100%,430px);width:min(100%,430px);max-width:430px;min-width:0;margin-inline:auto;left:auto;right:auto;transform:none;}
main{width:100%;min-width:0;}
.bottom-navigation{left:50%;right:auto;transform:translateX(-50%);width:min(100%,430px);max-width:430px;box-sizing:border-box;}
@media(max-width:430px){html{scrollbar-gutter:auto}.app{flex-basis:100%;width:100%;max-width:430px}.bottom-navigation{width:100%;}}

/* Performance and rendering refinements */
img, video {
    max-width: 100%;
}

img {
    height: auto;
}

.pimg img,
.reel video {
    height: 100%;
}

.stories,
.chips {
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

button,
.btn,
a {
    -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
