:root{
    --bg:#f6f4ef;
    --surface:#ffffff;
    --surface2:#fdfbf7;
    --text:#101010;
    --muted:#777;
    --soft:#ece7dc;
    --gold:#d4af37;
    --gold2:#fff1a8;
    --silver:#9ca3af;
    --border:rgba(16,16,16,.08);
    --shadow:0 20px 55px rgba(17,17,17,.08);
    --shadow2:0 35px 90px rgba(17,17,17,.12);
    --green:#16a34a;
    --red:#ef4444;
}

html[data-theme="dark"]{
    --bg:#050505;
    --surface:rgba(255,255,255,.065);
    --surface2:rgba(255,255,255,.04);
    --text:#ffffff;
    --muted:#a9a9a9;
    --soft:rgba(255,255,255,.08);
    --border:rgba(255,255,255,.10);
    --shadow:0 25px 70px rgba(0,0,0,.45);
    --shadow2:0 40px 120px rgba(0,0,0,.70);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    font-family:'Inter',sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.16), transparent 27%),
        linear-gradient(135deg,var(--bg),var(--bg));
    overflow-x:hidden;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background-image:
        linear-gradient(rgba(212,175,55,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,.045) 1px, transparent 1px);
    background-size:48px 48px;
    opacity:.35;
    z-index:-1;
}

a{
    color:inherit;
}

/* HEADER */
.store-header{
    position:sticky;
    top:0;
    z-index:1000;
    padding:16px 0 12px;
    background:rgba(246,244,239,.78);
    backdrop-filter:blur(22px);
    border-bottom:1px solid var(--border);
    transition:transform .32s ease, background .25s ease;
}

html[data-theme="dark"] .store-header{
    background:rgba(5,5,5,.78);
}

.store-header.hide{
    transform:translateY(-110%);
}

.header-main,
.mobile-search,
.store-main{
    width:min(1240px,94%);
    margin:0 auto;
}

.header-main{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:22px;
}

.brand{
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:12px;
}

.brand img{
    width:52px;
    height:52px;
    object-fit:contain;
    filter:drop-shadow(0 10px 25px rgba(212,175,55,.20));
}

.brand strong{
    display:block;
    font-size:20px;
    letter-spacing:-.5px;
}

.brand span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-top:3px;
}

.search-form{
    height:54px;
    display:flex;
    align-items:center;
    border-radius:20px;
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    overflow:hidden;
}

.search-form input{
    flex:1;
    height:100%;
    border:none;
    outline:none;
    background:transparent;
    padding:0 18px;
    color:var(--text);
    font-family:inherit;
}

.search-form input::placeholder{
    color:var(--muted);
}

.search-form button{
    width:58px;
    height:100%;
    border:none;
    cursor:pointer;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#050505;
    font-weight:900;
    font-size:18px;
}

.header-actions{
    display:flex;
    align-items:center;
    gap:12px;
}

.theme-toggle,
.auth-chip,
.wallet-chip{
    min-height:48px;
    border-radius:18px;
    border:1px solid var(--border);
    background:var(--surface);
    color:var(--text);
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:0 15px;
    box-shadow:var(--shadow);
    font-family:inherit;
}

.theme-toggle{
    cursor:pointer;
}

.theme-toggle b{
    font-size:13px;
}

.auth-chip{
    color:#050505;
    border:none;
    font-weight:900;
    background:linear-gradient(135deg,var(--gold),var(--gold2),#b88a1e);
}

.wallet-chip{
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:0;
}

.wallet-chip span{
    color:var(--muted);
    font-size:11px;
}

.wallet-chip strong{
    color:var(--gold);
    font-size:13px;
}

.mobile-search{
    display:none;
    margin-top:12px;
}

/* HERO */
.store-main{
    padding:32px 0 110px;
}

.store-hero{
    min-height:430px;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:28px;
    align-items:center;
    margin-bottom:36px;
}

.hero-copy{
    padding:36px;
    border-radius:36px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.18), transparent 38%),
        var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow2);
}

.premium-pill{
    width:max-content;
    display:flex;
    align-items:center;
    gap:9px;
    padding:10px 14px;
    border-radius:999px;
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    font-weight:900;
    font-size:12px;
    margin-bottom:20px;
}

.premium-pill span{
    width:9px;
    height:9px;
    border-radius:50%;
    background:#16a34a;
    box-shadow:0 0 15px #16a34a;
}

.hero-copy h1{
    font-size:clamp(40px,5vw,68px);
    line-height:1;
    letter-spacing:-3px;
    margin-bottom:20px;
}

.hero-copy h1 span{
    display:block;
    color:var(--gold);
}

.hero-copy p{
    color:var(--muted);
    line-height:1.8;
    max-width:640px;
}

.hero-buttons{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:28px;
}

.primary-btn,
.secondary-btn{
    min-height:52px;
    padding:0 22px;
    border-radius:18px;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
}

.primary-btn{
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2),#b88a1e);
}

.secondary-btn{
    background:var(--soft);
    color:var(--text);
    border:1px solid var(--border);
}

.hero-panel{
    min-height:430px;
    position:relative;
    border-radius:36px;
    background:
        radial-gradient(circle at center, rgba(212,175,55,.25), transparent 42%),
        var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow2);
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}

.hero-orbit{
    position:absolute;
    width:330px;
    height:330px;
    border:1px solid rgba(212,175,55,.35);
    border-radius:50%;
    animation:spin 16s linear infinite;
}

@keyframes spin{
    to{transform:rotate(360deg);}
}

.hero-product-preview{
    width:260px;
    min-height:260px;
    border-radius:34px;
    background:var(--surface2);
    border:1px solid var(--border);
    box-shadow:var(--shadow2);
    text-align:center;
    padding:30px;
    position:relative;
    z-index:2;
}

.hero-product-preview img{
    width:105px;
    height:105px;
    object-fit:contain;
    margin-bottom:18px;
}

.hero-product-preview h3{
    font-size:26px;
    color:var(--gold);
    margin-bottom:10px;
}

.hero-product-preview p{
    color:var(--muted);
    line-height:1.7;
    font-size:14px;
}

.hero-card{
    position:absolute;
    z-index:3;
    width:210px;
    padding:18px;
    border-radius:24px;
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.top-card{
    top:32px;
    left:32px;
}

.bottom-card{
    bottom:32px;
    right:32px;
}

.hero-card span{
    color:var(--muted);
    font-size:12px;
}

.hero-card strong{
    display:block;
    color:var(--gold);
    margin-top:6px;
}

/* SECTIONS */
.category-section,
.horizontal-section,
.products-section{
    margin-bottom:34px;
}

.section-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    margin-bottom:18px;
}

.section-heading h2{
    font-size:clamp(24px,3vw,34px);
    letter-spacing:-1px;
}

.section-heading p,
.result-count{
    color:var(--muted);
    margin-top:6px;
    font-size:14px;
}

.section-heading a{
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    text-decoration:none;
    padding:11px 16px;
    border-radius:15px;
    font-weight:900;
}

/* CATEGORY SCROLL */
.category-scroll{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding:5px 0 12px;
    scroll-snap-type:x mandatory;
}

.category-scroll::-webkit-scrollbar,
.horizontal-products::-webkit-scrollbar,
.inline-horizontal-scroll::-webkit-scrollbar{
    height:7px;
}

.category-scroll::-webkit-scrollbar-track,
.horizontal-products::-webkit-scrollbar-track,
.inline-horizontal-scroll::-webkit-scrollbar-track{
    background:var(--soft);
    border-radius:20px;
}

.category-scroll::-webkit-scrollbar-thumb,
.horizontal-products::-webkit-scrollbar-thumb,
.inline-horizontal-scroll::-webkit-scrollbar-thumb{
    background:linear-gradient(90deg,var(--gold),var(--gold2));
    border-radius:20px;
}

.category-pill{
    scroll-snap-align:start;
    flex:0 0 auto;
    text-decoration:none;
    min-height:58px;
    padding:0 20px;
    border-radius:20px;
    display:flex;
    align-items:center;
    gap:10px;
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    font-weight:800;
}

.category-pill span{
    width:34px;
    height:34px;
    border-radius:13px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
}

/* HORIZONTAL PRODUCTS */
.horizontal-products{
    display:flex;
    gap:16px;
    overflow-x:auto;
    padding:5px 0 16px;
    scroll-snap-type:x mandatory;
}

.horizontal-card{
    flex:0 0 220px;
    scroll-snap-align:start;
    text-decoration:none;
    border-radius:26px;
    overflow:hidden;
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    transition:.28s ease;
}

.horizontal-card:hover{
    transform:translateY(-5px);
}

.horizontal-img{
    height:160px;
    background:var(--soft);
}

.horizontal-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.horizontal-body{
    padding:16px;
}

.horizontal-body h3{
    font-size:15px;
    line-height:1.35;
    margin-bottom:8px;
}

.horizontal-body span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:8px;
}

.horizontal-body strong{
    color:var(--gold);
    font-size:17px;
}

/* PRODUCT FLOW */
.product-flow{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.product-card{
    display:grid;
    grid-template-columns:190px 1fr;
    gap:18px;
    padding:15px;
    border-radius:28px;
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    transition:.28s ease;
}

.product-card:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow2);
}

.product-image{
    min-height:180px;
    border-radius:23px;
    overflow:hidden;
    background:var(--soft);
    position:relative;
    text-decoration:none;
}

.product-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.product-image span{
    position:absolute;
    left:12px;
    bottom:12px;
    max-width:80%;
    padding:8px 11px;
    border-radius:999px;
    background:rgba(0,0,0,.72);
    color:white;
    font-size:11px;
    font-weight:800;
    backdrop-filter:blur(10px);
}

.product-info{
    padding:4px 4px 4px 0;
    display:flex;
    flex-direction:column;
}

.product-topline,
.meta-line,
.product-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.product-topline span{
    font-size:12px;
    font-weight:900;
}

.in-stock{
    color:var(--green);
}

.out-stock{
    color:var(--red);
}

.product-topline small,
.meta-line span{
    color:var(--muted);
    font-size:12px;
}

.product-title{
    text-decoration:none;
    font-size:22px;
    font-weight:900;
    letter-spacing:-.5px;
    margin:12px 0 8px;
}

.product-info p{
    color:var(--muted);
    line-height:1.6;
    font-size:14px;
}

.store-line{
    margin-top:14px;
    padding:12px 14px;
    border-radius:18px;
    background:var(--surface2);
    border:1px solid var(--border);
}

.store-line span{
    color:var(--muted);
    display:block;
    font-size:11px;
    margin-bottom:4px;
}

.store-line strong{
    color:var(--gold);
    font-size:14px;
}

.meta-line{
    margin:12px 0;
}

.product-bottom{
    margin-top:auto;
}

.product-bottom > strong{
    color:var(--gold);
    font-size:24px;
}

.product-actions{
    display:flex;
    gap:9px;
}

.cart-btn,
.view-btn{
    min-height:42px;
    border:none;
    cursor:pointer;
    border-radius:15px;
    padding:0 16px;
    font-weight:900;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-family:inherit;
}

.cart-btn{
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
}

.view-btn{
    color:var(--text);
    background:var(--soft);
}

/* INLINE HORIZONTAL AFTER 10 ITEMS */
.inline-horizontal-block{
    padding:18px;
    border-radius:30px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.14), transparent 36%),
        var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.mini-section-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
}

.mini-section-title h3{
    font-size:20px;
}

.mini-section-title span{
    color:var(--muted);
    font-size:12px;
}

.inline-horizontal-scroll{
    display:flex;
    gap:14px;
    overflow-x:auto;
    padding-bottom:8px;
}

.mini-product-card{
    flex:0 0 170px;
    text-decoration:none;
    border-radius:22px;
    overflow:hidden;
    background:var(--surface2);
    border:1px solid var(--border);
}

.mini-product-card img{
    width:100%;
    height:120px;
    object-fit:cover;
    background:var(--soft);
}

.mini-product-card div{
    padding:13px;
}

.mini-product-card h4{
    font-size:14px;
    line-height:1.35;
    margin-bottom:6px;
}

.mini-product-card span{
    display:block;
    color:var(--muted);
    font-size:11px;
    margin-bottom:7px;
}

.mini-product-card strong{
    color:var(--gold);
}

/* EMPTY */
.empty-state{
    text-align:center;
    padding:60px 20px;
    border-radius:32px;
    background:var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.empty-state div{
    width:76px;
    height:76px;
    margin:0 auto 18px;
    border-radius:26px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#050505;
    font-size:32px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
}

.empty-state h3{
    font-size:26px;
    margin-bottom:8px;
}

.empty-state p{
    color:var(--muted);
    margin-bottom:20px;
}

.empty-state a{
    text-decoration:none;
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    padding:13px 18px;
    border-radius:16px;
    font-weight:900;
}

/* BOTTOM NAV */
.bottom-nav{
    position:fixed;
    left:50%;
    bottom:18px;
    transform:translateX(-50%);
    width:min(560px,92%);
    height:72px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
    padding:8px;
    border-radius:28px;
    background:rgba(255,255,255,.78);
    backdrop-filter:blur(22px);
    border:1px solid var(--border);
    box-shadow:var(--shadow2);
    z-index:1000;
    transition:transform .32s ease, opacity .32s ease;
}

html[data-theme="dark"] .bottom-nav{
    background:rgba(20,20,20,.78);
}

.bottom-nav.hide{
    transform:translate(-50%, 130%);
    opacity:0;
}

.bottom-nav a{
    text-decoration:none;
    color:var(--muted);
    border-radius:20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    font-size:12px;
    font-weight:800;
}

.bottom-nav a span{
    font-size:18px;
}

.bottom-nav a.active{
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
}

/* DESKTOP GRID OPTION */
@media(min-width:1020px){
 .product-flow{
    max-width:980px;
}

.products-section{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 320px;
    gap:24px;
    align-items:start;
}

.products-section .section-heading{
    grid-column:1 / -1;
}

.products-section .product-flow{
    grid-column:1;
}

.products-section .merchant-map-panel{
    grid-column:2;
    grid-row:2;
}

 
}

.merchant-map-panel{
    position:sticky;
    top:120px;
    min-height:430px;
    padding:22px;
    border-radius:30px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.20), transparent 42%),
        radial-gradient(circle at bottom right, rgba(156,163,175,.12), transparent 40%),
        var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    overflow:hidden;
}

.merchant-map-panel h3{
    font-size:22px;
    margin-bottom:8px;
    color:var(--text);
}

.merchant-map-panel > p{
    color:var(--muted);
    font-size:13px;
    line-height:1.7;
    margin-bottom:16px;
}

.merchant-real-map{
    width:100%;
    height:240px;
    border-radius:24px;
    margin-bottom:16px;
    border:1px solid var(--border);
    overflow:hidden;
    box-shadow:inset 0 0 0 1px rgba(212,175,55,.08);
    background:var(--soft);
}

.leaflet-container{
    font-family:'Inter',sans-serif;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip{
    background:var(--surface);
    color:var(--text);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.leaflet-popup-content{
    font-size:13px;
    line-height:1.6;
}

.leaflet-control-attribution{
    font-size:10px;
}

.merchant-map-box{
    min-height:190px;
    border-radius:24px;
    margin-bottom:16px;
    background:
        linear-gradient(135deg, rgba(212,175,55,.10), rgba(156,163,175,.10)),
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,.045) 0,
            rgba(255,255,255,.045) 1px,
            transparent 1px,
            transparent 18px
        );
    border:1px solid var(--border);
    position:relative;
    overflow:hidden;
}

.map-pin{
    position:absolute;
    width:16px;
    height:16px;
    border-radius:50% 50% 50% 0;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    transform:rotate(-45deg);
    box-shadow:0 8px 20px rgba(212,175,55,.35);
}

.map-pin::after{
    content:"";
    position:absolute;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#050505;
    top:5px;
    left:5px;
}

.merchant-list{
    display:grid;
    gap:10px;
    max-height:230px;
    overflow:auto;
    padding-right:4px;
}

.merchant-list::-webkit-scrollbar{
    width:6px;
}

.merchant-list::-webkit-scrollbar-thumb{
    background:linear-gradient(var(--gold),var(--gold2));
    border-radius:999px;
}

.merchant-map-item{
    width:100%;
    border:none;
    cursor:pointer;
    text-align:left;
    padding:13px;
    border-radius:18px;
    background:var(--surface2);
    border:1px solid var(--border);
    color:var(--text);
    font-family:inherit;
    transition:.25s ease;
}

.merchant-map-item:hover,
.merchant-map-item.active{
    transform:translateY(-2px);
    border-color:rgba(212,175,55,.45);
    background:rgba(212,175,55,.08);
}

.merchant-map-item strong{
    display:block;
    color:var(--gold);
    font-size:14px;
    margin-bottom:4px;
}

.merchant-map-item span{
    display:block;
    color:var(--muted);
    font-size:12px;
    line-height:1.5;
}

.merchant-detail-card{
    margin-top:15px;
    padding:15px;
    border-radius:20px;
    background:rgba(212,175,55,.08);
    border:1px solid rgba(212,175,55,.22);
}

.merchant-detail-card h4{
    margin-bottom:7px;
    color:var(--text);
}

.merchant-detail-card p{
    color:var(--muted);
    font-size:13px;
    line-height:1.7;
    margin-bottom:8px;
}

.merchant-detail-card a{
    display:inline-flex;
    min-height:38px;
    align-items:center;
    justify-content:center;
    padding:0 13px;
    border-radius:13px;
    text-decoration:none;
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    font-weight:900;
    font-size:12px;
}

@media(max-width:1019px){
    .merchant-map-panel{
        position:relative;
        top:auto;
        margin-top:22px;
    }
}

/* RESPONSIVE */
@media(max-width:900px){
    .header-main{
        grid-template-columns:1fr auto;
    }

    .desktop-search{
        display:none;
    }

    .mobile-search{
        display:block;
    }

    .brand span{
        display:none;
    }

    .store-hero{
        grid-template-columns:1fr;
    }

    .hero-panel{
        min-height:350px;
    }

    .product-card{
        grid-template-columns:160px 1fr;
    }

    .product-image{
        min-height:165px;
    }
}

@media(max-width:640px){
    .store-header{
        padding-top:12px;
    }

    .header-main{
        gap:12px;
    }

    .brand img{
        width:44px;
        height:44px;
    }

    .brand strong{
        font-size:17px;
    }

    .theme-toggle{
        width:46px;
        padding:0;
        justify-content:center;
    }

    .theme-toggle b{
        display:none;
    }

    .auth-chip{
        min-height:44px;
        padding:0 12px;
        font-size:12px;
    }

    .store-main{
        width:94%;
        padding-top:22px;
    }

    .hero-copy{
        padding:25px;
        border-radius:30px;
    }

    .hero-copy h1{
        font-size:40px;
        letter-spacing:-2px;
    }

    .hero-buttons{
        flex-direction:column;
    }

    .primary-btn,
    .secondary-btn{
        width:100%;
    }

    .hero-card{
        display:none;
    }

    .hero-product-preview{
        width:235px;
    }

    .section-heading{
        align-items:flex-start;
        flex-direction:column;
    }

    .product-card{
        grid-template-columns:128px 1fr;
        gap:13px;
        padding:12px;
        border-radius:24px;
    }

    .product-image{
        min-height:150px;
        border-radius:20px;
    }

    .product-image span{
        display:none;
    }

    .product-title{
        font-size:16px;
        margin:8px 0 6px;
    }

    .product-info p{
        display:none;
    }

    .store-line{
        margin-top:8px;
        padding:9px 10px;
        border-radius:15px;
    }

    .store-line strong{
        font-size:12px;
    }

    .meta-line{
        margin:8px 0;
    }

    .product-bottom{
        align-items:flex-start;
        flex-direction:column;
    }

    .product-bottom > strong{
        font-size:18px;
    }

    .product-actions{
        width:100%;
    }

    .cart-btn,
    .view-btn{
        flex:1;
        min-height:38px;
        font-size:12px;
        border-radius:13px;
    }

    .horizontal-card{
        flex-basis:185px;
    }

    .bottom-nav{
        height:68px;
        bottom:12px;
        border-radius:24px;
    }
}

@media(max-width:390px){
    .product-card{
        grid-template-columns:112px 1fr;
    }

    .product-image{
        min-height:138px;
    }

    .auth-chip{
        display:inline-flex;
        min-height:40px;
        padding:0 10px;
        font-size:11px;
        border-radius:14px;
        white-space:nowrap;
    }
}

@media(max-width:640px){
    .header-actions{
        gap:7px;
    }

    .header-main{
        grid-template-columns:minmax(0,1fr) auto;
    }

    .brand{
        min-width:0;
    }

    .brand strong{
        white-space:nowrap;
        overflow:hidden;
        text-overflow:ellipsis;
        max-width:135px;
    }
}

.quick-cart-form{
    display:inline-flex;
}

.quick-cart-form .cart-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
}

@media(max-width:480px){
    .auth-chip{
        min-height:42px;
        padding:0 12px;
        font-size:12px;
        border-radius:15px;
    }

    .theme-toggle{
        min-height:42px;
        width:42px;
    }
}

.location-notice-card{
    width:min(820px,94%);
    margin:28px auto;
    padding:34px;
    border-radius:32px;
    text-align:center;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.16), transparent 38%),
        var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.location-notice-card h2{
    font-size:clamp(28px,4vw,44px);
    letter-spacing:-1.5px;
    margin-bottom:12px;
    color:var(--text);
}

.location-notice-card p{
    color:var(--muted);
    line-height:1.8;
    max-width:620px;
    margin:0 auto 20px;
}

.location-notice-card a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    padding:0 24px;
    border-radius:17px;
    text-decoration:none;
    font-weight:900;
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    box-shadow:0 16px 34px rgba(212,175,55,.24);
}

.storefront-business-panel{
    position:sticky;
    top:120px;
    min-height:360px;
    padding:28px;
    border-radius:30px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.22), transparent 42%),
        radial-gradient(circle at bottom right, rgba(255,255,255,.06), transparent 38%),
        var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    color:var(--text);
    overflow:hidden;
}

.storefront-business-panel::before{
    content:"";
    position:absolute;
    width:140px;
    height:140px;
    right:-45px;
    top:-45px;
    border-radius:50%;
    background:rgba(212,175,55,.12);
}

.business-panel-badge{
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(212,175,55,.12);
    border:1px solid rgba(212,175,55,.28);
    color:var(--gold);
    font-size:12px;
    font-weight:900;
    letter-spacing:.4px;
    text-transform:uppercase;
    margin-bottom:16px;
}

.storefront-business-panel h3{
    position:relative;
    margin:0 0 12px;
    font-size:24px;
    line-height:1.2;
    color:var(--text);
    font-weight:900;
}

.business-panel-text{
    position:relative;
    margin:0 0 20px;
    color:var(--muted);
    font-size:14px;
    line-height:1.8;
    font-weight:600;
}

.business-contact-box{
    position:relative;
    display:grid;
    gap:12px;
    margin:18px 0 22px;
}

.business-contact-item{
    display:flex;
    gap:12px;
    padding:14px;
    border-radius:20px;
    background:rgba(255,255,255,.04);
    border:1px solid var(--border);
}

.contact-icon{
    width:38px;
    height:38px;
    flex:0 0 38px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:rgba(212,175,55,.14);
    color:var(--gold);
    font-size:18px;
}

.business-contact-item strong{
    display:block;
    font-size:13px;
    color:var(--text);
    margin-bottom:4px;
}

.business-contact-item p{
    margin:0;
    color:var(--muted);
    font-size:13px;
    line-height:1.6;
    font-weight:600;
}

.business-panel-actions{
    position:relative;
    display:grid;
    gap:10px;
}

.business-whatsapp-btn,
.business-link-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:12px 16px;
    border-radius:16px;
    text-decoration:none;
    font-size:14px;
    font-weight:900;
    transition:.25s ease;
}

.business-whatsapp-btn{
    color:#06130b;
    background:linear-gradient(135deg,#25d366,#86efac);
    box-shadow:0 14px 28px rgba(37,211,102,.22);
}

.business-link-btn{
    color:var(--text);
    background:rgba(212,175,55,.08);
    border:1px solid rgba(212,175,55,.26);
}

.business-link-btn.courier{
    background:rgba(255,255,255,.045);
    border:1px solid var(--border);
}

.business-whatsapp-btn:hover,
.business-link-btn:hover{
    transform:translateY(-2px);
}

.business-link-btn:hover{
    color:var(--gold);
    border-color:rgba(212,175,55,.5);
}

@media(max-width:980px){
    .storefront-business-panel{
        position:relative;
        top:auto;
        margin-top:24px;
    }
}

.merchant-map-panel{
    position:sticky;
    top:120px;
    min-height:430px;
    padding:22px;
    border-radius:30px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.20), transparent 42%),
        radial-gradient(circle at bottom right, rgba(156,163,175,.12), transparent 40%),
        var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    overflow:hidden;
}

.merchant-map-panel h3{
    font-size:22px;
    margin-bottom:8px;
    color:var(--text);
}

.merchant-map-panel > p{
    color:var(--muted);
    font-size:13px;
    line-height:1.7;
    margin-bottom:16px;
}

.merchant-map-box{
    min-height:190px;
    border-radius:24px;
    margin-bottom:16px;
    background:
        radial-gradient(circle at 20% 25%, rgba(212,175,55,.18), transparent 16%),
        radial-gradient(circle at 75% 65%, rgba(156,163,175,.18), transparent 18%),
        linear-gradient(135deg, rgba(212,175,55,.10), rgba(156,163,175,.10)),
        repeating-linear-gradient(
            45deg,
            rgba(255,255,255,.055) 0,
            rgba(255,255,255,.055) 1px,
            transparent 1px,
            transparent 18px
        );
    border:1px solid var(--border);
    position:relative;
    overflow:hidden;
}

.merchant-map-box::before{
    content:"";
    position:absolute;
    inset:20px;
    border-radius:22px;
    border:1px dashed rgba(212,175,55,.30);
}

.map-pin{
    position:absolute;
    width:18px;
    height:18px;
    border-radius:50% 50% 50% 0;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    transform:rotate(-45deg);
    box-shadow:0 8px 20px rgba(212,175,55,.35);
    z-index:2;
}

.map-pin::after{
    content:"";
    position:absolute;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#050505;
    top:6px;
    left:6px;
}

.merchant-list{
    display:grid;
    gap:10px;
    max-height:230px;
    overflow:auto;
    padding-right:4px;
}

.merchant-list::-webkit-scrollbar{
    width:6px;
}

.merchant-list::-webkit-scrollbar-thumb{
    background:linear-gradient(var(--gold),var(--gold2));
    border-radius:999px;
}

.merchant-map-item{
    width:100%;
    border:none;
    cursor:pointer;
    text-align:left;
    padding:13px;
    border-radius:18px;
    background:var(--surface2);
    border:1px solid var(--border);
    color:var(--text);
    font-family:inherit;
    transition:.25s ease;
}

.merchant-map-item:hover,
.merchant-map-item.active{
    transform:translateY(-2px);
    border-color:rgba(212,175,55,.45);
    background:rgba(212,175,55,.08);
}

.merchant-map-item strong{
    display:block;
    color:var(--gold);
    font-size:14px;
    margin-bottom:4px;
}

.merchant-map-item span{
    display:block;
    color:var(--muted);
    font-size:12px;
    line-height:1.5;
}

.merchant-detail-card{
    margin-top:15px;
    padding:15px;
    border-radius:20px;
    background:rgba(212,175,55,.08);
    border:1px solid rgba(212,175,55,.22);
}

.merchant-detail-card h4{
    margin-bottom:7px;
    color:var(--text);
}

.merchant-detail-card p{
    color:var(--muted);
    font-size:13px;
    line-height:1.7;
    margin-bottom:8px;
}

.merchant-detail-card a{
    display:inline-flex;
    min-height:38px;
    align-items:center;
    justify-content:center;
    padding:0 13px;
    border-radius:13px;
    text-decoration:none;
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    font-weight:900;
    font-size:12px;
}

@media(max-width:1019px){
    .merchant-map-panel{
        position:relative;
        top:auto;
        margin-top:22px;
    }
}

/* INFINITE SCROLL */
.infinite-scroll-status {
    width: 100%;
    min-height: 58px;
    margin: 18px 0 6px;
    padding: 0 18px;
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.16), transparent 35%),
        var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.infinite-scroll-status.done {
    color: var(--gold);
}

.infinite-scroll-status.error {
    color: var(--red);
}

.loader-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 rgba(212,175,55,.35);
}

.infinite-scroll-status.loading .loader-dot {
    animation: loaderPulse 1s infinite ease-in-out;
}

@keyframes loaderPulse {
    0% {
        transform: scale(.85);
        box-shadow: 0 0 0 0 rgba(212,175,55,.35);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(212,175,55,0);
    }

    100% {
        transform: scale(.85);
        box-shadow: 0 0 0 0 rgba(212,175,55,0);
    }
}

.product-load-sentinel {
    width: 100%;
    height: 2px;
}