/* font */
:root{--pv-display:"Manrope","Hind Siliguri",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
/* রং বদলাতে চাইলে শুধু নিচের --pv-:root ভ্যারিয়েবলগুলো বদলাও */

:root{
    --product-name:#14161a;
    --details-text:#000000;
    --offer-text:#5b5f68;
    --section-line:#e4e0d6;
    --pv-bg:#f4f2ee;
    --offer-bord:#f8f6f1;
    --category-text:#6f5524;
    --floating-oder:#14161a;
    --floating-oder-darkg:#14161a;
    --discount-nunber:#F1F1F1;
    --discount-nunber-bg:#FF0000;
    --discount-save:#6f5524;
    --pv-gold:#a8864a;
    --pv-ink:#14161a;
}

body{
    background:var(--pv-bg);
    color:var(--product-name);
}

/* ---------- Header (শুধু এই পেজে) ---------- */
header{border-bottom:1px solid rgba(168,134,74,.55)}
.back{background:rgba(255,255,255,.08)}

/* ---------- Layout ---------- */
.product-page{max-width:1160px;margin:32px auto 44px;padding:0 20px}

.product-container{
    background:#fff;
    border:0;
    border-radius:28px;
    padding:32px;
    gap:56px;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:start;
    box-shadow:0 1px 0 #e9e5dc,0 36px 70px -44px rgba(20,22,26,.28);
}

/* ---------- Gallery ---------- */
.pv-gallery{position:sticky;top:24px}
.main-wrap{
    position:relative;
    border-radius:22px;
    overflow:hidden;
    background:#ebe8e1;
    aspect-ratio:1/1;
}
.main-wrap .main-image{
    width:100%;
    height:100%;
    border-radius:0;
    object-fit:cover;
    display:block;
}
.main-wrap .wish-btn{
    top:16px;right:16px;
    width:46px;height:46px;
    background:rgba(255,255,255,.92);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
    box-shadow:0 6px 18px -6px rgba(20,22,26,.35);
}
.pv-count{
    position:absolute;
    right:16px;bottom:16px;
    background:rgba(20,22,26,.78);
    color:#fff;
    font-size:13px;
    font-weight:500;
    padding:5px 12px;
    border-radius:999px;
    font-variant-numeric:tabular-nums;
}
.pv-count:empty{display:none}

.pv-gallery .thumbnails{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,84px));
    gap:12px;
    margin:16px 0 0;
    padding:0;
    overflow:visible;
}
.pv-gallery .thumbnails img{
    width:100%;
    height:auto;
    aspect-ratio:1/1;
    object-fit:cover;
    border-radius:14px;
    border:2px solid transparent;
    outline:0;
    opacity:.62;
    cursor:pointer;
    transition:opacity .2s,border-color .2s;
}
.pv-gallery .thumbnails img:hover{opacity:1;border-color:#c9b78f}
.pv-gallery .thumbnails img.active{opacity:1;border-color:var(--pv-ink)}

/* ---------- Info column ---------- */
.pv-info{padding-top:4px}
.category{
    display:flex;
    align-items:center;
    gap:0;
    color:var(--category-text);
    font-size:14px;
    font-weight:600;
    letter-spacing:.02em;
    text-transform:none;
    margin:0 0 12px;
}
.product-title{
    font-size:clamp(28px,3.3vw,40px);
    font-weight:600;
    line-height:1.14;
    letter-spacing:-.02em;
    margin:0 0 22px;
}

/* ---------- Price ---------- */
.pv-pricebox{
    padding:20px 0 20px;
    border-top:1px solid var(--section-line);
    border-bottom:1px solid var(--section-line);
    margin-bottom:22px;
}
.pv-pricebox .price{
    font-size:40px;
    font-weight:700;
    line-height:1.15;
    margin:0;
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px 14px;
    font-variant-numeric:tabular-nums;
}
.pv-pricebox .old-price{
    font-size:20px;
    font-weight:400;
    color:#7a7e87;
    margin:0;
}
.pv-pricebox .discount-badge{
    background:var(--discount-nunber-bg);
    color:var(--discount-nunber);
    font-family:"Manrope","Hind Siliguri",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    font-size:13px;
    font-weight:700;
    padding:3px 7px;
    border-radius:999px;
    margin:0;
}
.pv-save{
    margin-top:8px;
    font-size:14px;
    font-weight:600;
    color:var(--discount-save);
}
.pv-save[hidden]{display:none}

.description{
    font-size:16px;
    line-height:1.8;
    color:var(--details-text);
    max-width:62ch;
}

/* ---------- Options (রঙ / ফ্লেভার) ---------- */
.opt-group{margin-top:24px}
.opt-label{font-size:14px;font-weight:600;color:var(--product-name);margin-bottom:10px}
.opt-pills{gap:10px}
.opt-pill{
    min-height:46px;
    padding:9px 20px;
    border:1.5px solid #d9d4c8;
    border-radius:14px;
    background:#fff;
    font-size:15px;
    font-weight:500;
    transition:border-color .15s,background .15s,color .15s;
}
.opt-pill:hover{border-color:var(--pv-ink)}
.opt-pill.has-img{padding:5px 18px 5px 5px}
.opt-pill .pill-img{width:34px;height:34px;border-radius:10px}
.opt-pill.active{
    background:var(--pv-ink);
    border-color:var(--pv-ink);
    color:#fff;
}

/* ---------- Buttons ---------- */
.pv-actions{display:flex;flex-direction:column;gap:12px;margin-top:26px}
.pv-actions .buy-now,
.pv-actions .add-cart{
    width:100%;
    height:auto;
    min-height:48px;
    margin:0;
    padding:15px 20px;
    border-radius:16px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
    letter-spacing:.01em;
    transition:background .2s,color .2s,border-color .2s,transform .15s;
}
.pv-actions .buy-now{
    background:var(--pv-ink);
    color:#fff;
    border:1.5px solid var(--pv-gold);
    box-shadow:0 14px 28px -16px rgba(20,22,26,.6);
}
.pv-actions .buy-now:hover{background:#262a32}
.pv-actions .add-cart{
    background:transparent;
    color:var(--pv-ink);
    border:1.5px solid var(--pv-ink);
}
.pv-actions .add-cart:hover{background:var(--pv-ink);color:#fff;border-color:var(--pv-ink)}
.pv-actions .buy-now:active,
.pv-actions .add-cart:active{transform:translateY(1px)}
.pv-actions .buy-now:disabled,
.pv-actions .add-cart:disabled{
    background:#bbb!important;color:#fff;border-color:#bbb!important;cursor:not-allowed;box-shadow:none;
}

.pv-actions button:focus-visible,
.pv-bar-btn:focus-visible,
.opt-pill:focus-visible,
.pv-gallery .thumbnails img:focus-visible{
    outline:2px solid var(--pv-gold);
    outline-offset:2px;
}

/* ---------- Trust rows ---------- */
.pv-trust{
    list-style:none;
    margin:22px 0 0;
    padding:4px 0;
    background:var(--offer-bord);
    border:1px solid var(--section-line);
    border-radius:20px;
}
.pv-trust li{
    display:flex;
    align-items:center;
    gap:14px;
    padding:13px 18px;
}
.pv-trust li + li{border-top:1px solid var(--section-line)}
.pv-trust svg{
    width:34px;
    height:34px;
    padding:7px;
    flex:0 0 auto;
    border-radius:50%;
    background:#fff;
    box-shadow:inset 0 0 0 1px #e4dcc8;
    fill:none;
    stroke:var(--category-text);
    stroke-width:1.6;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.pv-trust b{display:block;font-size:15px;font-weight:600;line-height:1.35}
.pv-trust span{display:block;font-size:13px;color:var(--offer-text);line-height:1.4}

/* ---------- Details (আগের মতোই) ---------- */
.details{
    margin-top:30px;
    padding-top:24px;
    border-top:1px solid var(--section-line);
}
.details h3{font-size:18px;font-weight:700;margin-bottom:14px}
.pv-features{list-style:none;margin:0;padding:0;display:grid;gap:11px}
.pv-features li{
    position:relative;
    padding-left:32px;
    font-size:15px;
    line-height:1.6;
    color:var(--details-text);
}
.pv-features li::before{
    content:"";
    position:absolute;
    left:0;
    top:2px;
    width:21px;
    height:21px;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%23e7f6ec'/%3E%3Cpath d='M5.8 10.4l2.8 2.8 5.6-6' fill='none' stroke='%231f8a45' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Related ---------- */
.related{max-width:1160px;margin:0 auto 52px}
.related h2{font-family:var(--pv-display);font-size:22px;font-weight:600;margin-bottom:18px}
.rel-card{border-radius:20px}
.rel-name{font-weight:600}
.rel-cat{letter-spacing:0;text-transform:none;color:var(--category-text);font-weight:600;font-size:12px}

/* ---------- Mobile sticky buy bar ---------- */
.pv-bar{display:none}

@media(max-width:820px){

    .product-page{margin:16px auto 28px;padding:0 14px}

    .product-container{
        grid-template-columns:minmax(0,1fr);
        gap:26px;
        padding:16px;
        border-radius:24px;
    }

    .pv-gallery{position:static}
    .main-wrap{border-radius:18px}

    .product-title{font-size:24px;margin-bottom:16px}
    .pv-pricebox .price{font-size:34px}

    .mini-footer{padding-bottom:calc(26px + 72px)}

    .pv-bar{
        display:flex;
        align-items:center;
        gap:14px;
        position:fixed;
        left:0;
        right:0;
        bottom:0;
        z-index:1000;
        padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));
        background:rgba(255,255,255,.96);
        -webkit-backdrop-filter:blur(10px);
        backdrop-filter:blur(10px);
        border-top:1px solid var(--section-line);
        transform:translateY(110%);
        transition:transform .25s ease;
    }
    .pv-bar.show{transform:none}

    .pv-bar-price{
        flex:1;
        min-width:0;
        font-family:var(--pv-display);
        font-size:21px;
        font-weight:700;
        line-height:1.2;
        white-space:nowrap;
    }
    .pv-bar-price .old-price{font-size:14px;margin-left:6px}
    .pv-bar-price .discount-badge{display:none}

    .pv-bar-btn{
        flex:0 0 auto;
        height:38px;
        padding:0 28px;
        border:1.5px solid var(--pv-gold);
        border-radius:14px;
        background:var(--pv-ink);
        color:#fff;
        font-size:16px;
        font-weight:600;
        cursor:pointer;
    }
    .pv-bar-btn:disabled{background:#d0d5dd;border-color:#d0d5dd;cursor:not-allowed}
}

@media(max-width:380px){
    .pv-bar-price{font-size:18px}
    .pv-bar-btn{padding:0 20px}
}

@media(prefers-reduced-motion:reduce){
    .pv-bar,.pv-actions .buy-now,.pv-actions .add-cart,.pv-gallery .thumbnails img{transition:none}
}

/* ---------- পণ্য পাওয়া যায়নি (product-notfound.js) ---------- */
.pnf{max-width:460px;margin:64px auto;padding:0 20px;text-align:center}
.pnf-ico{width:76px;height:76px;margin:0 auto 18px;border-radius:50%;background:#fff;border:1px solid var(--section-line);display:grid;place-items:center;color:#a3a9b5}
.pnf-ico svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.pnf h1{font-size:22px;margin:0 0 8px;color:var(--pv-ink)}
.pnf p{margin:0 0 8px;color:var(--offer-text);line-height:1.6;font-size:15px}
.pnf-name b{color:var(--pv-ink);overflow-wrap:anywhere}
.pnf-btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:22px}
.pnf-btn{display:inline-block;padding:12px 22px;border-radius:12px;background:var(--pv-ink);color:#fff;font-weight:600;text-decoration:none;font-size:15px}
.pnf-btn.alt{background:#fff;color:var(--pv-ink);border:1px solid var(--section-line)}
