:root{--brand:#0b6b50;--dark:#10231d;--ink:#17221f;--muted:#71807a;--line:#e4ebe8;--bg:#f7f9f8;--white:#fff;--mint:#e9f7f1;--gold:#f2b84b;--shadow:0 14px 40px #122a2214;--r:16px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}a{text-decoration:none;color:inherit}button,input,select{font:inherit}button{cursor:pointer}.container{width:min(1220px,calc(100% - 32px));margin:auto}
.top{height:34px;background:var(--dark);color:#d7e4df;font-size:12px}.top .container{height:100%;display:flex;align-items:center;justify-content:space-between}
.nav{height:72px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}.navin{height:100%;display:flex;align-items:center;gap:24px}.logo{font-size:25px;font-weight:900;letter-spacing:-1.3px;color:var(--brand);white-space:nowrap}.logo b{color:var(--ink)}
.search{height:44px;flex:1;max-width:650px;display:flex;border:1px solid #cfd9d5;border-radius:12px;overflow:hidden;background:#fff}.search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px #0b6b5015}.search input{flex:1;min-width:0;border:0;outline:0;padding:0 14px}.search button{width:88px;border:0;background:var(--brand);color:#fff;font-weight:800}.navlinks{display:flex;gap:18px;align-items:center;font-size:13px}.cart{position:relative;font-weight:800}.cartcount{position:absolute;right:-10px;top:-11px;background:#e04f4f;color:#fff;font-size:10px;min-width:17px;height:17px;border-radius:99px;display:grid;place-items:center}
.hero{background:linear-gradient(135deg,#eff9f5,#fff 65%);padding:76px 0 84px}.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:50px;align-items:center}.eyebrow{color:var(--brand);font-size:12px;font-weight:900;letter-spacing:1.4px}.hero h1{font-size:clamp(44px,6vw,76px);line-height:.96;letter-spacing:-4px;margin:14px 0 22px}.hero h1 span{color:var(--brand)}.hero p{color:var(--muted);font-size:17px;line-height:1.7;max-width:650px}.hero-search{margin-top:28px;height:62px;max-width:690px;background:#fff;border:1px solid #cdd9d4;border-radius:15px;display:flex;box-shadow:var(--shadow);overflow:hidden}.hero-search input{flex:1;border:0;outline:0;padding:0 20px}.hero-search button{border:0;background:var(--brand);color:#fff;width:125px;font-weight:800}.hero-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--shadow)}.hero-art{height:340px;border-radius:18px;background:linear-gradient(145deg,#d8eee5,#f7fbf9);display:grid;place-items:center;overflow:hidden}.hero-art img{width:100%;height:100%;object-fit:contain;display:block}.hero-mini{display:flex;gap:12px;margin-top:14px}.mini{flex:1;background:#f7faf8;border-radius:12px;padding:12px}.mini strong{display:block;font-size:14px}.mini small{color:var(--muted)}
.section{padding:56px 0}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px}.section h2{font-size:28px;letter-spacing:-1px;margin:0}.sub,.muted{color:var(--muted);font-size:14px;margin-top:5px}
.categories{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}.cat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px 8px;text-align:center;transition:.2s}.cat:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.cat i{display:block;font-style:normal;font-size:29px;margin-bottom:9px}.cat strong{font-size:12px}
.products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.product-card{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;transition:.22s}.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.product-card>a{display:block;height:100%}.product-image-wrap{height:220px;position:relative;background:#eef3f1;overflow:hidden}.product-image{width:100%;height:100%;background-color:#eef3f1;background-repeat:no-repeat;background-size:cover;background-position:center;display:block}.product-image.no-image{display:grid;place-items:center;font-size:64px;color:#78908a}.product-body{padding:15px}.product-title{font-weight:750;font-size:14px;line-height:1.35;margin:0 0 9px;min-height:38px}.old-price{color:#a1aaa6;font-size:12px;text-decoration:line-through;margin-left:5px;font-weight:500}.wishlist-btn{z-index:3}.card{background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;transition:.22s}.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.pimg{height:220px;background:#eef3f1;display:grid;place-items:center;font-size:82px;position:relative}.heart{position:absolute;right:12px;top:12px;width:36px;height:36px;border:0;border-radius:50%;background:#fff;box-shadow:0 4px 14px #0001}.pbody{padding:15px}.ptitle{font-weight:750;font-size:14px;line-height:1.35;margin:0 0 9px}.price{font-weight:900;font-size:19px;color:var(--brand)}.old{text-decoration:line-through;color:#a1aaa6;font-size:12px;margin-left:5px}.stars{font-size:12px;color:#9b7416;margin-top:7px}.seller{font-size:12px;color:var(--muted);margin-top:8px}.verified{color:var(--brand);font-weight:800}
.footer{background:var(--dark);color:#c8d7d2;padding:48px 0;margin-top:35px}.footgrid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:40px}.footer h3{color:#fff;font-size:14px}.footer a{display:block;color:#aebdb7;font-size:13px;margin:10px 0}.footer .logo{color:#fff}
.breadcrumb{padding:22px 0 8px;color:var(--muted);font-size:12px}.page-title{font-size:38px;letter-spacing:-1.5px;margin:10px 0 25px}.results{display:grid;grid-template-columns:230px 1fr;gap:28px}.filters,.box,.aboutbox{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px}.filter{padding:16px 0;border-bottom:1px solid var(--line)}.filter:last-child{border:0}.filter h4{margin:0 0 12px}.filter label{display:block;color:var(--muted);font-size:13px;margin:9px 0}.sort{padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:#fff}
.detail{display:grid;grid-template-columns:1.05fr .95fr;gap:60px;padding:28px 0 70px}.mainimg{height:530px;border-radius:22px;background:#edf3f0;display:grid;place-items:center;font-size:180px}.thumbs{display:flex;gap:10px;margin-top:12px}.thumb{width:70px;height:70px;border-radius:11px;background:#edf3f0;border:1px solid var(--line);display:grid;place-items:center;font-size:27px}.detail h1{font-size:42px;line-height:1.05;letter-spacing:-2px;margin:10px 0 15px}.detailprice{font-size:34px;color:var(--brand);font-weight:900;margin:18px 0}.divider{height:1px;background:var(--line);margin:24px 0}.actions{display:flex;gap:10px;margin-top:18px}.btn{border:0;border-radius:10px;padding:13px 20px;font-weight:800}.primary{background:var(--brand);color:#fff}.secondary{background:var(--mint);color:var(--brand)}.full{width:100%}.qty{display:flex;border:1px solid var(--line);width:max-content;border-radius:9px;overflow:hidden;margin-top:9px}.qty button{border:0;width:40px;height:40px}.qty span{width:42px;display:grid;place-items:center}.vendorbox{border:1px solid var(--line);border-radius:15px;padding:17px;margin-top:24px;display:flex;gap:13px;align-items:center}.avatar{width:48px;height:48px;border-radius:50%;background:#d9eee6;color:var(--brand);display:grid;place-items:center;font-weight:900}
.checkout{display:grid;grid-template-columns:1.3fr .7fr;gap:25px;padding:25px 0 70px}.box+.box{margin-top:16px}.box h2{font-size:20px;margin:0 0 18px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.field{display:flex;flex-direction:column;gap:6px}.field.full{grid-column:1/-1}.field label{font-size:12px;font-weight:800}.field input,.field select{height:44px;border:1px solid #ccd7d2;border-radius:8px;padding:0 11px;outline:0}.sumrow{display:flex;justify-content:space-between;margin:12px 0;color:var(--muted);font-size:14px}.total{border-top:1px solid var(--line);padding-top:15px;font-size:19px;font-weight:900;color:var(--ink)}
.vendorhero{background:#eaf5f0;border-bottom:1px solid #dbe9e3;padding:42px 0}.vendorhead{display:flex;align-items:center;gap:22px}.vendoravatar{width:108px;height:108px;border-radius:50%;background:#d2e9df;display:grid;place-items:center;font-size:43px;font-weight:900;color:var(--brand);border:5px solid #fff;box-shadow:var(--shadow)}.vendorhead h1{font-size:36px;letter-spacing:-1.5px;margin:3px 0 7px}.vendoractions{margin-left:auto;display:flex;gap:9px}.vstats{display:flex;gap:28px;margin-top:15px;color:var(--muted);font-size:13px}.vnav{background:#fff;border-bottom:1px solid var(--line)}.vnavin{display:flex;gap:28px;height:54px;align-items:center}.vnav a{font-size:13px;font-weight:800}.vnav a.active{height:100%;display:flex;align-items:center;color:var(--brand);border-bottom:2px solid var(--brand)}.vendorbody{padding:30px 0}.vendorlayout{display:grid;grid-template-columns:1fr 270px;gap:30px}.aboutbox{margin-bottom:18px}.aboutbox h3{margin:0 0 12px}.sideitem{padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}.sideitem:last-child{border:0}.review{padding:13px 0;border-bottom:1px solid var(--line)}.review strong{font-size:13px}.review p{font-size:12px;color:var(--muted);line-height:1.5}
.toast{position:fixed;bottom:24px;right:24px;background:var(--dark);color:#fff;padding:13px 17px;border-radius:10px;box-shadow:var(--shadow);transform:translateY(120px);opacity:0;transition:.25s;z-index:100}.toast.show{transform:none;opacity:1}
@media(max-width:950px){.hero-grid{grid-template-columns:1fr}.hero-card{display:none}.categories{grid-template-columns:repeat(4,1fr)}.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.navlinks a:not(.cart){display:none}.results,.detail,.checkout,.vendorlayout{grid-template-columns:1fr}.filters{display:none}.footgrid{grid-template-columns:1fr 1fr}.vendoractions{margin-left:0}}
@media(max-width:760px){.product-image-wrap{height:160px}.product-title{font-size:13px;min-height:34px}.product-body{padding:11px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}@media(max-width:600px){.top{display:none}.nav{height:62px}.navin{gap:10px}.logo{font-size:21px}.search{height:39px}.search button{width:65px;font-size:12px}.hero{padding:55px 0}.hero h1{font-size:48px;letter-spacing:-3px}.hero-search{height:54px}.categories{grid-template-columns:repeat(2,1fr)}.products{grid-template-columns:repeat(2,1fr);gap:10px}.pimg{height:150px;font-size:56px}.pbody{padding:11px}.ptitle{font-size:13px}.price{font-size:16px}.section{padding:42px 0}.detail h1{font-size:31px}.mainimg{height:340px;font-size:120px}.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}.vendorhead{align-items:flex-start;flex-wrap:wrap}.vendorhead h1{font-size:29px}.vendoravatar{width:82px;height:82px;font-size:32px}.vstats{gap:13px;flex-wrap:wrap}.footgrid{grid-template-columns:1fr 1fr}}


/* Salesyards live-data integration helpers */
.salesyards-toast{position:fixed;right:22px;bottom:22px;z-index:9999;background:#10231d;color:#fff;padding:12px 16px;border-radius:10px;box-shadow:0 12px 30px rgba(0,0,0,.18);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.salesyards-toast.show{opacity:1;transform:translateY(0)}
.salesyards-loading{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:10px;padding:45px;color:#64736e}.salesyards-spinner{width:18px;height:18px;border:2px solid #cfd9d5;border-top-color:#163f32;border-radius:50%;animation:syspin .8s linear infinite}@keyframes syspin{to{transform:rotate(360deg)}}
.salesyards-empty{grid-column:1/-1;padding:45px 20px;text-align:center;border:1px dashed #ccd7d2;border-radius:14px;background:#fbfcfb;color:#263a34}.empty-icon{font-size:32px;margin-bottom:10px}.out-of-stock{display:inline-block;margin-top:6px;font-size:11px;color:#a43d3d;background:#fff0f0;padding:4px 7px;border-radius:5px}.vendor-line{display:flex;align-items:center;gap:7px;margin-top:10px;font-size:12px;color:#65736e}.vendor-mini-logo{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#e7efeb;font-weight:800;font-size:10px;overflow:hidden;flex:none}.vendor-logo-image{background-color:#edf3f0}.verified{font-size:11px;color:#17704f}.heart{cursor:pointer}.order-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e5ece8}.order-row-remove{border:0;background:transparent;color:#8a5a5a;cursor:pointer}.order-total{font-weight:800;padding-top:16px;margin-top:4px}.order-thumb{width:48px;height:48px;border-radius:8px;background:#eef3f0;background-size:cover;background-position:center;flex:none}.product-description{line-height:1.7}.btn-wide{width:100%;margin-top:10px}.gallery-main{width:100%;height:440px;border-radius:14px;background:#f1f5f3;background-size:cover;background-position:center}.thumb-image{width:64px;height:64px;border-radius:8px;background-size:cover;background-position:center}.fulfillment-options{display:flex;gap:20px}.fulfillment-options label{display:flex;align-items:center;gap:7px}.confirmation{max-width:650px;margin:70px auto;text-align:center;padding:50px 30px}.success-icon{width:64px;height:64px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;background:#e6f4ed;color:#176c4c;font-size:32px;font-weight:800}.order-code{margin:25px auto;display:flex;justify-content:center;gap:12px;align-items:center;background:#f5f8f6;padding:15px;border-radius:10px}.order-code strong{letter-spacing:1px}.filter-link{display:block;padding:7px 0;color:#596a64;text-decoration:none}.filter-link-active{font-weight:700;color:#123f31}.vendor-logo-image{background-color:#eef3f0;background-size:cover;background-position:center}.vendor-card{display:block;margin-top:20px;padding:14px;border:1px solid #dfe8e4;border-radius:12px;text-decoration:none;color:inherit}.vendor-card-top{display:flex;gap:12px;align-items:center}.vendor-card .avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#e7efeb;font-weight:800;overflow:hidden}
}

/* Salesyards: consistent product grids for related products and vendor storefront */
.related-products,
#related-products,
.vendor-products,
#vendorProducts,
.vendorbody .products,
.vendorlayout .products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 950px) {
    .related-products,
    #related-products,
    .vendor-products,
    #vendorProducts,
    .vendorbody .products,
    .vendorlayout .products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .related-products,
    #related-products,
    .vendor-products,
    #vendorProducts,
    .vendorbody .products,
    .vendorlayout .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .related-products .product-image-wrap,
    #related-products .product-image-wrap,
    .vendor-products .product-image-wrap,
    #vendorProducts .product-image-wrap,
    .vendorbody .products .product-image-wrap,
    .vendorlayout .products .product-image-wrap {
        height: 160px;
    }
}

/* Live Related Products / Vendor Products grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 950px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-grid .product-image-wrap {
        height: 160px;
    }
}


/* Vendor profile logo */
.vendor-avatar {
    width:108px;
    height:108px;
    border-radius:50%;
    background:#d2e9df;
    display:grid;
    place-items:center;
    font-size:43px;
    font-weight:900;
    color:var(--brand);
    border:5px solid #fff;
    box-shadow:var(--shadow);
    flex:none;
    background-size:cover !important;
    background-position:center !important;
    background-repeat:no-repeat !important;
}

@media(max-width:600px){
    .vendor-avatar {
        width:82px;
        height:82px;
        font-size:32px;
    }
}

/* Product page: full-image viewing and lightbox overlay */
.product-gallery {
    min-width: 0;
}

.gallery-main {
    width: 100%;
    height: 560px;
    border-radius: 18px;
    background-color: #f1f5f3;
    background-repeat: no-repeat;
    background-size: contain !important;
    background-position: center !important;
    cursor: zoom-in;
    border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}

.gallery-main:hover {
    box-shadow: 0 10px 30px rgba(16,35,29,.08);
}

.gallery-main.no-image {
    display: grid;
    place-items: center;
    font-size: 120px;
    cursor: default;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.gallery-thumbs .thumb {
    width: 76px;
    height: 76px;
    padding: 0;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-thumbs .thumb-image {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain !important;
    background-position: center !important;
    background-color: #f1f5f3;
}

.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: rgba(8, 20, 16, .88);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.image-viewer.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.image-viewer-content {
    width: min(1200px, 96vw);
    height: min(900px, 92vh);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 70px rgba(0,0,0,.35);
    background: #fff;
}

.image-viewer-close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.96);
    color: #10231d;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

body.image-viewer-open {
    overflow: hidden;
}

@media (max-width: 950px) {
    .gallery-main {
        height: 500px;
    }
}

@media (max-width: 600px) {
    .gallery-main {
        height: 390px;
        border-radius: 14px;
    }

    .image-viewer {
        padding: 15px;
    }

    .image-viewer-content {
        width: 96vw;
        height: 88vh;
    }

    .image-viewer-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }
}

/* ─────────────────────────────────────────────────────────────
   Premium product detail styling
   ───────────────────────────────────────────────────────────── */
.detail {
    gap: 54px;
    padding: 34px 0 78px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 98px;
}

.gallery-main {
    height: 590px;
    border: 1px solid #dfe9e5;
    border-radius: 24px;
    background-color: #fff;
    box-shadow: 0 18px 45px rgba(16, 35, 29, .07);
}

.gallery-main:hover {
    border-color: #b8d7cc;
    box-shadow: 0 22px 55px rgba(16, 35, 29, .11);
}

.gallery-thumbs .thumb {
    width: 82px;
    height: 82px;
    border-radius: 13px;
    border: 2px solid #dfe9e5;
    background: #fff;
    transition: .18s ease;
}

.gallery-thumbs .thumb:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
}

.product-info {
    padding: 12px 0 0;
}

.product-info > .muted:first-child {
    color: #687b74;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.detail h1 {
    max-width: 760px;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -2.8px;
    margin: 13px 0 18px;
    color: #10231d;
}

.detail-price {
    display: inline-flex;
    align-items: center;
    font-size: 31px;
    line-height: 1;
    color: #087653;
    font-weight: 950;
    letter-spacing: -.7px;
    margin: 0 0 18px;
}

.product-description {
    max-width: 720px;
    color: #667871;
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 20px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #263c34;
    font-size: 15px;
    font-weight: 650;
    margin: 8px 0;
}

.info-row:first-of-type {
    color: #087653;
}

.detail .divider {
    margin: 26px 0 25px;
    background: #dfe8e4;
}

.product-info > strong {
    display: block;
    font-size: 15px;
    margin-bottom: 9px;
}

.product-info .qty {
    height: 48px;
    margin: 0 0 18px;
    border: 1px solid #d5e1dc;
    border-radius: 13px;
    background: #f7faf8;
    box-shadow: inset 0 1px 2px rgba(16, 35, 29, .03);
}

.product-info .qty button {
    width: 48px;
    height: 46px;
    background: transparent;
    color: #123b30;
    font-size: 21px;
    font-weight: 800;
    transition: .16s ease;
}

.product-info .qty button:hover {
    background: #e1f4ed;
    color: #087653;
}

.product-info .qty span {
    width: 55px;
    font-weight: 800;
    color: #10231d;
    background: #fff;
}

/* app.js uses .btn-primary/.btn-secondary on the product page */
.product-info .btn-primary,
.product-info .btn-secondary {
    width: 100%;
    min-height: 54px;
    margin-top: 11px;
    border-radius: 13px;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -.15px;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.product-info .btn-primary {
    background: linear-gradient(135deg, #087653 0%, #0b8a68 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(8, 118, 83, .22);
}

.product-info .btn-primary:hover {
    background: linear-gradient(135deg, #076849 0%, #087b5d 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(8, 118, 83, .28);
}

.product-info .btn-secondary {
    background: #ff9f1c;
    color: #fff;
    box-shadow: 0 9px 22px rgba(255, 159, 28, .20);
}

.product-info .btn-secondary:hover {
    background: #f28b00;
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(255, 159, 28, .27);
}

.product-info .btn-primary:active,
.product-info .btn-secondary:active {
    transform: translateY(0);
}

.product-info .btn-secondary[disabled] {
    background: #d9dfdc;
    color: #71807a;
    box-shadow: none;
    cursor: not-allowed;
}

.product-info .vendor-card {
    margin-top: 24px;
    padding: 17px 18px;
    border: 1px solid #dce8e3;
    border-radius: 16px;
    background: linear-gradient(135deg, #f7fbf9, #fff);
    box-shadow: 0 8px 24px rgba(16, 35, 29, .045);
    transition: .18s ease;
}

.product-info .vendor-card:hover {
    border-color: #b9d9cd;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(16, 35, 29, .08);
}

.product-info .vendor-card-top {
    min-height: 52px;
}

.product-info .vendor-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 3px;
}

.product-info .vendor-card .muted {
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 950px) {
    .product-gallery {
        position: static;
    }

    .gallery-main {
        height: 500px;
    }

    .detail h1 {
        font-size: 42px;
    }
}

@media (max-width: 600px) {
    .detail {
        gap: 28px;
        padding-top: 20px;
    }

    .gallery-main {
        height: 390px;
        border-radius: 18px;
    }

    .gallery-thumbs .thumb {
        width: 70px;
        height: 70px;
    }

    .product-info {
        padding-top: 0;
    }

    .detail h1 {
        font-size: 31px;
        letter-spacing: -1.6px;
    }

    .detail-price {
        font-size: 27px;
    }

    .product-description {
        font-size: 14px;
    }

    .product-info .btn-primary,
    .product-info .btn-secondary {
        min-height: 52px;
    }
}


/* API-driven homepage categories */
.category-loading {
    grid-column: 1 / -1;
    min-height: 90px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
    background: #fff;
    border: 1px dashed var(--line);
    border-radius: 14px;
}

/* ─────────────────────────────────────────────────────────────
   Professional checkout form
   ───────────────────────────────────────────────────────────── */
.checkout {
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    gap: 28px;
    align-items: start;
    padding: 28px 0 80px;
}

.checkout > section > form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.checkout .box {
    border: 1px solid #dce7e2;
    border-radius: 18px;
    padding: 26px 28px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 8px 28px rgba(16,35,29,.045);
}

.checkout .box:hover {
    border-color: #cbded6;
    box-shadow: 0 12px 34px rgba(16,35,29,.065);
}

.checkout-section-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
}

.checkout-section-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #e7f6ef;
    font-size: 18px;
}

.checkout .box h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -.5px;
}

.checkout-section-head p {
    margin: 5px 0 0;
    color: #7a8984;
    font-size: 13px;
    line-height: 1.45;
}

.checkout .formgrid {
    gap: 18px;
}

.checkout .field {
    gap: 8px;
}

.checkout .field label {
    color: #253831;
    font-size: 13px;
    font-weight: 800;
}

.checkout .field input,
.checkout .field textarea,
.checkout .field select {
    width: 100%;
    min-height: 50px;
    border: 1.5px solid #d2dfda;
    border-radius: 11px;
    background: #fbfdfc;
    color: #17221f;
    padding: 0 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.checkout .field textarea {
    min-height: 112px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.5;
}

.checkout .field input::placeholder,
.checkout .field textarea::placeholder {
    color: #a0aaa6;
}

.checkout .field input:focus,
.checkout .field textarea:focus,
.checkout .field select:focus {
    border-color: #087653;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(8,118,83,.10);
}

.checkout .fulfillment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkout .fulfillment-options label {
    position: relative;
    min-height: 62px;
    padding: 0 16px;
    border: 1.5px solid #d7e3de;
    border-radius: 13px;
    background: #fbfdfc;
    color: #253831;
    font-size: 14px;
    font-weight: 800;
    transition: .18s ease;
}

.checkout .fulfillment-options label:hover {
    border-color: #9fc8b8;
    background: #f5fbf8;
}

.checkout .fulfillment-options label:has(input:checked) {
    border-color: #087653;
    background: #edf9f4;
    color: #086a4b;
    box-shadow: 0 5px 16px rgba(8,118,83,.08);
}

.checkout .fulfillment-options input {
    accent-color: #087653;
    width: 18px;
    height: 18px;
}

#delivery-address-field {
    margin-top: 16px !important;
    padding: 16px;
    border: 1px solid #dfe9e5;
    border-radius: 13px;
    background: #f8fbfa;
}

.checkout-payment-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 15px;
    border: 1px solid #d8ebe3;
    border-radius: 12px;
    background: #f3faf7;
}

.checkout-payment-note > span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #087653;
    color: #fff;
    font-weight: 900;
}

.checkout-payment-note strong,
.checkout-payment-note small {
    display: block;
}

.checkout-payment-note strong {
    color: #18372d;
    font-size: 13px;
}

.checkout-payment-note small {
    margin-top: 3px;
    color: #71817b;
    font-size: 12px;
    line-height: 1.45;
}

.checkout-submit {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px !important;
    background: linear-gradient(135deg,#087653,#0a8b69) !important;
    box-shadow: 0 10px 25px rgba(8,118,83,.20);
    font-size: 16px !important;
}

.checkout-submit span:last-child {
    font-size: 20px;
    transition: transform .18s ease;
}

.checkout-submit:hover span:last-child {
    transform: translateX(4px);
}

.checkout-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(8,118,83,.26);
}

.checkout > aside {
    position: sticky;
    top: 98px;
}

.checkout > aside .box {
    padding: 24px;
}

.checkout > aside .box h2 {
    font-size: 21px;
    margin-bottom: 8px;
}

.checkout > aside .muted {
    line-height: 1.5;
}

.checkout .order-row {
    padding: 15px 0;
    border-bottom: 1px solid #e5ece8;
}

.checkout .order-row > div:first-child {
    min-width: 0;
}

.checkout .order-row > div:first-child span {
    font-size: 13px;
    line-height: 1.35;
}

.checkout .order-thumb {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    border: 1px solid #e1e9e5;
}

.checkout .order-row-remove {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #a45a5a;
    background: #fff4f4;
}

.checkout .order-row-remove:hover {
    background: #ffe8e8;
    color: #913d3d;
}

.checkout .order-total {
    padding: 18px 0 0;
    font-size: 18px;
    color: #17221f;
}

@media (max-width: 950px) {
    .checkout > aside {
        position: static;
    }
}

@media (max-width: 600px) {
    .checkout {
        padding-top: 15px;
        gap: 16px;
    }

    .checkout .box {
        padding: 21px 18px;
        border-radius: 15px;
    }

    .checkout .formgrid,
    .checkout .fulfillment-options {
        grid-template-columns: 1fr;
    }

    .checkout-section-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}

/* ─────────────────────────────────────────────────────────────
   Checkout mobile optimization
   ───────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: calc(100% - 24px);
        max-width: 100%;
    }

    .navin {
        gap: 8px;
        min-width: 0;
    }

    .nav .logo {
        flex: 0 0 auto;
    }

    .nav .search {
        min-width: 0;
        flex: 1 1 auto;
    }

    .nav .search input {
        min-width: 0;
        padding: 0 10px;
        font-size: 13px;
    }

    .nav .search button {
        width: 62px;
        flex: 0 0 62px;
        font-size: 12px;
    }

    .navlinks {
        flex: 0 0 auto;
    }

    .navlinks .cart {
        font-size: 12px;
    }

    .breadcrumb {
        padding: 15px 0 4px;
    }

    .page-title {
        font-size: 30px;
        line-height: 1.1;
        margin: 8px 0 14px;
    }

    .checkout {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 10px 0 40px;
        width: 100%;
    }

    .checkout > section,
    .checkout > aside {
        width: 100%;
        min-width: 0;
    }

    .checkout > section > form {
        gap: 14px;
    }

    .checkout .box,
    .checkout > aside .box {
        width: 100%;
        min-width: 0;
        padding: 18px 14px;
        border-radius: 14px;
        box-shadow: 0 5px 18px rgba(16,35,29,.045);
    }

    .checkout-section-head {
        gap: 10px;
        margin-bottom: 16px;
    }

    .checkout-section-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        border-radius: 10px;
        font-size: 16px;
    }

    .checkout .box h2,
    .checkout > aside .box h2 {
        font-size: 18px;
        line-height: 1.25;
    }

    .checkout-section-head p {
        font-size: 12px;
        line-height: 1.4;
    }

    .checkout .formgrid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .checkout .field input,
    .checkout .field textarea,
    .checkout .field select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        font-size: 15px;
    }

    .checkout .field textarea {
        min-height: 105px;
    }

    .checkout .fulfillment-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .checkout .fulfillment-options label {
        min-width: 0;
        min-height: 56px;
        padding: 0 10px;
        font-size: 13px;
        white-space: nowrap;
    }

    .checkout .fulfillment-options input {
        width: 17px;
        height: 17px;
        flex: 0 0 auto;
    }

    #delivery-address-field {
        width: 100%;
        min-width: 0;
        margin-top: 12px !important;
        padding: 12px;
    }

    .checkout-payment-note {
        align-items: flex-start;
        gap: 9px;
        padding: 11px;
        margin-bottom: 14px;
    }

    .checkout-payment-note > span {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .checkout-payment-note small {
        font-size: 11.5px;
    }

    .checkout-submit {
        width: 100%;
        min-height: 52px;
        font-size: 15px !important;
    }

    .checkout > aside {
        position: static;
        order: 2;
    }

    .checkout > aside .box {
        padding: 18px 14px;
    }

    .checkout .order-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 0;
    }

    .checkout .order-row > div:first-child {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .checkout .order-row > div:first-child span {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: 12.5px;
    }

    .checkout .order-row > div:last-child {
        flex: 0 0 auto;
        gap: 6px !important;
        white-space: nowrap;
    }

    .checkout .order-thumb {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }

    .checkout .order-row-remove {
        width: 26px;
        height: 26px;
        flex: 0 0 26px;
    }

    .checkout .order-total {
        font-size: 17px;
        padding-top: 15px;
    }

    .checkout > aside .muted {
        font-size: 12px;
    }

    .footer {
        margin-top: 20px;
        padding: 34px 0;
    }

    .footgrid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 18px;
    }
}

@media (max-width: 420px) {
    .nav .logo {
        font-size: 19px;
        letter-spacing: -1px;
    }

    .nav .search button {
        width: 56px;
        flex-basis: 56px;
        padding: 0 6px;
    }

    .navlinks .cart {
        font-size: 11px;
    }

    .checkout .fulfillment-options {
        grid-template-columns: 1fr;
    }

    .checkout .fulfillment-options label {
        justify-content: flex-start;
    }

    .checkout .order-row > div:last-child > span {
        font-size: 12px;
    }

    .footgrid {
        grid-template-columns: 1fr;
    }
}


/* Salesyards auto-loading product pagination */
.salesyards-load-sentinel {
  grid-column: 1 / -1;
  min-height: 52px;
  margin: 18px 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #64736e;
  font-size: 13px;
}
.salesyards-load-sentinel:not(.is-loading) .salesyards-spinner { display: none; }
.salesyards-load-retry { padding: 9px 14px; }
@media (max-width: 600px) {
  .salesyards-load-sentinel { min-height: 46px; font-size: 12px; }
}

/* Homepage app download buttons */
.hero-card .app-downloads {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}

.hero-card .app-store-btn,
.hero-card .google-play-btn {
    min-width: 0;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 10px 14px;
    border-radius: 13px;
    background: #10231d;
    color: #fff;
    border: 1px solid #10231d;
    box-shadow: 0 8px 18px rgba(16,35,29,.14);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hero-card .app-store-btn:hover,
.hero-card .google-play-btn:hover {
    transform: translateY(-2px);
    background: #17372d;
    box-shadow: 0 12px 24px rgba(16,35,29,.20);
}

.hero-card .app-store-btn:active,
.hero-card .google-play-btn:active {
    transform: translateY(0);
}

.hero-card .app-store-btn svg,
.hero-card .google-play-btn svg {
    width: 30px;
    height: 30px;
    min-width: 30px;
    max-width: 30px;
    flex: 0 0 30px;
    display: block;
}

.hero-card .app-store-btn span,
.hero-card .google-play-btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.05;
    min-width: 0;
}

.hero-card .app-store-btn small,
.hero-card .google-play-btn small {
    display: block;
    margin: 0 0 3px;
    color: rgba(255,255,255,.82);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .1px;
    white-space: nowrap;
}

.hero-card .app-store-btn strong,
.hero-card .google-play-btn strong {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .hero-card .app-downloads {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 950px) {
    .hero-card .app-downloads {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .hero-card .app-downloads {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hero-card .app-store-btn,
    .hero-card .google-play-btn {
        min-height: 56px;
        padding: 8px 9px;
        gap: 7px;
        border-radius: 10px;
    }

    .hero-card .app-store-btn svg,
    .hero-card .google-play-btn svg {
        width: 24px;
        height: 24px;
        min-width: 24px;
        max-width: 24px;
        flex-basis: 24px;
    }

    .hero-card .app-store-btn small,
    .hero-card .google-play-btn small {
        font-size: 7px;
    }

    .hero-card .app-store-btn strong,
    .hero-card .google-play-btn strong {
        font-size: 12px;
    }
}

/* Legal / policy pages */
.legal-wrap{padding:46px 0 80px}
.legal-shell{display:grid;grid-template-columns:230px minmax(0,1fr);gap:38px;align-items:start}
.legal-nav{position:sticky;top:92px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px}
.legal-nav a{display:block;padding:11px 12px;border-radius:10px;color:var(--muted);font-size:13px;font-weight:750}
.legal-nav a:hover,.legal-nav a.active{background:var(--mint);color:var(--brand)}
.legal-content{background:#fff;border:1px solid var(--line);border-radius:20px;padding:42px 48px;box-shadow:0 8px 30px rgba(16,35,29,.04)}
.legal-kicker{color:var(--brand);font-size:11px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase}
.legal-content h1{font-size:42px;letter-spacing:-1.8px;margin:8px 0 8px;color:var(--dark)}
.legal-updated{color:var(--muted);font-size:13px;margin-bottom:34px}
.legal-content h2{font-size:21px;letter-spacing:-.5px;margin:30px 0 10px;color:var(--dark)}
.legal-content p,.legal-content li{font-size:15px;line-height:1.8;color:#52625c}
.legal-content ul{padding-left:22px}
.legal-content a{color:var(--brand);font-weight:750;text-decoration:underline;text-underline-offset:2px}
.legal-note{background:#f3faf7;border:1px solid #d9eee6;border-radius:14px;padding:17px 18px;margin:24px 0;color:#39574d}
@media(max-width:800px){.legal-wrap{padding:28px 0 55px}.legal-shell{grid-template-columns:1fr;gap:16px}.legal-nav{position:static;display:grid;grid-template-columns:1fr 1fr;gap:4px}.legal-content{padding:28px 22px;border-radius:16px}.legal-content h1{font-size:34px}}
@media(max-width:480px){.legal-nav{grid-template-columns:1fr}.legal-content h1{font-size:30px}.legal-content p,.legal-content li{font-size:14px}}


/* Vendor follow + contact modal */
.vendor-follow-btn{min-width:128px;transition:.2s ease;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.vendor-follow-btn.is-following{background:#0b6b50;color:#fff;border-color:#0b6b50}
.vendor-follow-btn:disabled{opacity:.65;cursor:wait}
.vnav-tab{border:0;background:transparent;color:inherit;font:inherit;font-size:13px;font-weight:800;cursor:pointer;height:100%;padding:0;position:relative}
.vnav-tab:hover{color:var(--brand)}
.vendor-modal{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:20px}
.vendor-modal.open{display:flex}
.vendor-modal-backdrop{position:absolute;inset:0;background:rgba(16,35,29,.62);backdrop-filter:blur(4px)}
.vendor-modal-dialog{position:relative;width:min(520px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:22px;padding:30px;box-shadow:0 25px 80px rgba(0,0,0,.25);z-index:1}
.vendor-modal-close{position:absolute;right:16px;top:14px;width:38px;height:38px;border:0;border-radius:50%;background:#f1f5f3;color:#263a34;font-size:27px;line-height:1;cursor:pointer}
.vendor-modal-dialog h2{margin:7px 42px 7px 0;font-size:30px;letter-spacing:-1px;color:var(--dark)}
.vendor-modal-sub{margin:0 0 22px;color:var(--muted);font-size:14px;line-height:1.6}
.vendor-form-field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px}
.vendor-form-field label{font-size:13px;font-weight:800;color:var(--ink)}
.vendor-form-field input,.vendor-form-field textarea{width:100%;border:1px solid #cdd9d4;border-radius:11px;background:#fff;padding:12px 13px;outline:none;transition:.18s;resize:vertical;color:var(--ink)}
.vendor-form-field input{height:46px}
.vendor-form-field input:focus,.vendor-form-field textarea:focus{border-color:var(--brand);box-shadow:0 0 0 4px rgba(11,107,80,.1)}
.vendor-contact-submit{width:100%;margin-top:4px;background:#0b6b50;box-shadow:0 8px 18px rgba(11,107,80,.18)}
.vendor-contact-submit:hover{background:#075c45;transform:translateY(-1px)}
.vendor-form-status{min-height:20px;margin-top:12px;font-size:13px;color:var(--muted)}
.vendor-form-status.success{color:#16704f;font-weight:700}
.vendor-form-status.error{color:#b34747;font-weight:700}
body.modal-open{overflow:hidden}
@media(max-width:600px){.vendor-modal{padding:12px}.vendor-modal-dialog{padding:24px 18px;border-radius:18px}.vendor-modal-dialog h2{font-size:25px}.vendor-follow-btn{min-width:110px}.vnav-tab{font-size:12px}}

/* Vendor ratings */
.vendor-rating-summary{border:0;background:transparent;padding:0;color:var(--muted);font:inherit;cursor:pointer;display:inline-flex;align-items:center;gap:3px}
.vendor-rating-summary:hover{color:var(--brand)}
.vendor-rating-summary u{text-underline-offset:3px}
.rating-count{font-size:12px}
.reviews-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px}
.reviews-head h3{margin:0 0 4px}
.store-rating-value{font-size:34px;font-weight:900;line-height:1.1}
.review-stars{color:#e4a51a;letter-spacing:1px}
.vendor-review-empty{padding:18px 0;color:var(--muted);font-size:13px}
.star-picker{display:flex;gap:6px;margin-top:2px}
.star-picker button{border:0;background:transparent;color:#c8d0cc;font-size:38px;line-height:1;padding:0 2px;cursor:pointer;transition:.15s transform,.15s color}
.star-picker button:hover,.star-picker button.selected{color:#f2b84b;transform:scale(1.06)}
.star-picker button:focus-visible{outline:3px solid rgba(11,107,80,.18);border-radius:6px}
.star-label{margin-top:5px;font-size:12px;color:var(--muted);font-weight:700}
.vendor-rating-dialog{max-width:540px}
@media(max-width:600px){.reviews-head{align-items:flex-start;flex-direction:column}.reviews-head .btn{width:100%}.vendor-rating-summary{font-size:12px}.star-picker button{font-size:34px}}

/* Premium Salesyards cart navigation */
.navlinks .cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 15px 0 12px;
    border: 1px solid #dce7e2;
    border-radius: 13px;
    background: #ffffff;
    color: #10231d;
    font-weight: 850;
    box-shadow: 0 4px 14px rgba(16,35,29,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.navlinks .cart:hover {
    transform: translateY(-1px);
    border-color: #0b6b50;
    background: #f1faf6;
    box-shadow: 0 8px 22px rgba(11,107,80,.12);
}

.navlinks .cart:active {
    transform: translateY(0);
}

.navlinks .cart-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #e8f6f0;
    font-size: 16px;
    line-height: 1;
}

.navlinks .cart-label {
    line-height: 1;
}

.navlinks .cartcount {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #e84f50;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(232,79,80,.28);
}

.navlinks .cartcount.cart-empty {
    background: #8b9994;
    box-shadow: none;
}

@media (max-width: 600px) {
    .navlinks .cart {
        min-height: 40px;
        padding: 0 10px 0 8px;
        gap: 6px;
        border-radius: 11px;
    }

    .navlinks .cart-icon {
        width: 27px;
        height: 27px;
        font-size: 14px;
    }

    .navlinks .cart-label {
        font-size: 12px;
    }

    .navlinks .cartcount {
        top: -6px;
        right: -6px;
        min-width: 19px;
        height: 19px;
        font-size: 9px;
    }
}

/* Vendor reviews pulled from Pister Invoice */
.review-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.review-top time{margin-left:auto;color:var(--muted);font-size:11px}
.review-stars{color:#e4a51a;letter-spacing:1px;white-space:nowrap}

/* Vendor product filtering controls */
.vendor-product-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vendor-product-controls .sort{min-width:150px}

/* Vendor modals stay open until the explicit close button is clicked. */
.vendor-modal-backdrop{pointer-events:none;cursor:default}
.vendor-modal-dialog{position:relative;z-index:2}

@media(max-width:600px){
  .vendor-product-controls{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .vendor-product-controls .sort{min-width:0;width:100%}
}




/* =====================================
   TIKTOK LIVE VENDORS
===================================== */

.live-section {
    background: #fff;
}

.live-heading-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    margin-right: 7px;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .12);
    vertical-align: middle;
}

.live-vendors-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.live-vendor-card {
    border: 1px solid #e8eeeb;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.live-vendor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,.07);
}

.live-vendor-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f1f5f3;
    overflow: hidden;
}

.live-vendor-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.live-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef3333;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 5px;
    letter-spacing: .4px;
}

.live-vendor-info {
    padding: 14px;
}

.live-vendor-name {
    font-size: 15px;
    font-weight: 750;
    color: #17231f;
    margin-bottom: 5px;
}

.live-vendor-category {
    font-size: 12px;
    color: #718078;
    margin-bottom: 13px;
}

.live-vendor-actions {
    display: flex;
    gap: 8px;
}

.live-vendor-actions a {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.live-join-btn {
    background: #087456;
    color: #fff;
}

.live-store-btn {
    background: #f0f5f2;
    color: #087456;
}

.live-vendor-actions a:hover {
    opacity: .88;
}

@media(max-width: 900px) {
    .live-vendors-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media(max-width: 600px) {
    .live-vendors-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .live-vendor-info {
        padding: 10px;
    }

    .live-vendor-name {
        font-size: 13px;
    }

    .live-vendor-actions {
        flex-direction: column;
    }

    .live-vendor-actions a {
        padding: 9px 5px;
    }

    .live-see-all {
        font-size: 12px;
    }
}



/* Vendor storefront layout refinements + TikTok LIVE badge */
.vendorhead { min-width: 0; }
.vendor-profile-main { min-width: 0; flex: 1 1 auto; }
.vendor-title-row { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.vendor-title-row h1 { min-width:0; }
.vendor-live-link {
  display:inline-flex; align-items:center; gap:7px; padding:7px 12px;
  border-radius:999px; background:#e51b3e; color:#fff; font-size:12px;
  line-height:1; font-weight:900; letter-spacing:.5px;
  box-shadow:0 5px 14px rgba(229,27,62,.2);
}
.vendor-live-link[hidden] { display:none !important; }
.vendor-live-link:hover { background:#c91534; transform:translateY(-1px); }
.vendor-live-dot { width:8px; height:8px; border-radius:50%; background:#fff; box-shadow:0 0 0 4px rgba(255,255,255,.2); }
.vendor-product-controls { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.vendorhead .vendoractions { flex:0 0 auto; }
@media(max-width:950px) {
  .vendorhead { flex-wrap:wrap; align-items:flex-start; }
  .vendor-profile-main { flex:1 1 calc(100% - 140px); }
  .vendorhead .vendoractions { width:100%; margin-left:130px; }
}
@media(max-width:600px) {
  .vendorhead { gap:14px; }
  .vendor-profile-main { flex:1 1 calc(100% - 100px); }
  .vendor-title-row { gap:8px; }
  .vendor-title-row h1 { font-size:27px; }
  .vendorhead .vendoractions { margin-left:0; }
  .vendor-product-controls { width:100%; }
  .vendor-product-controls .sort { flex:1 1 130px; min-width:0; }
  .vendorlayout { gap:14px; }
  .vendorbody { padding-top:18px; }
  .section-head { align-items:flex-start; flex-direction:column; gap:14px; }
}


/* Product page vendor LIVE indicator */
.product-card-copy { min-width:0; }
.product-vendor-live {
  display:inline-flex; align-items:center; gap:7px; margin-top:8px;
  padding:6px 9px; border-radius:999px; background:#fff0f2; color:#c81737;
  font-size:10px; line-height:1.2; font-weight:900; letter-spacing:.35px;
}
.product-vendor-live[hidden] { display:none !important; }
.product-vendor-live .vendor-live-dot {
  width:7px; height:7px; flex:0 0 7px; border-radius:50%;
  background:#e51b3e; box-shadow:0 0 0 3px rgba(229,27,62,.13);
}
.vendor-card-copy { min-width:0; }
