.product-main{
    width:min(1240px,94%);
    margin:0 auto;
    padding:34px 0 110px;
}

.product-detail-shell{
    display:grid;
    grid-template-columns:.92fr 1.08fr;
    gap:26px;
    align-items:start;
    margin-bottom:28px;
}

.product-gallery,
.product-detail-panel,
.description-card,
.related-section{
    border-radius:34px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.11), transparent 35%),
        var(--surface);
    border:1px solid var(--border);
    box-shadow:var(--shadow2);
}

.product-gallery{
    position:sticky;
    top:112px;
    padding:22px;
}

.back-link{
    display:inline-flex;
    text-decoration:none;
    color:var(--text);
    background:var(--soft);
    border:1px solid var(--border);
    padding:11px 15px;
    border-radius:16px;
    font-weight:900;
    margin-bottom:18px;
}

.product-image-frame{
    min-height:520px;
    border-radius:30px;
    overflow:hidden;
    position:relative;
    background:var(--soft);
}

.product-image-frame img{
    width:100%;
    height:100%;
    min-height:520px;
    object-fit:cover;
    display:block;
}

.category-badge{
    position:absolute;
    left:18px;
    bottom:18px;
    padding:10px 14px;
    border-radius:999px;
    color:#050505;
    font-size:12px;
    font-weight:900;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    box-shadow:0 12px 28px rgba(212,175,55,.25);
}

.image-mini-info{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-top:16px;
}

.image-mini-info div{
    padding:15px;
    border-radius:19px;
    background:var(--surface2);
    border:1px solid var(--border);
}

.image-mini-info span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:6px;
}

.image-mini-info strong{
    color:var(--gold);
    font-size:14px;
}

/* DETAIL PANEL */
.product-detail-panel{
    padding:28px;
}

.product-top-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
}

.product-top-meta span{
    font-size:12px;
    font-weight:900;
    color:var(--muted);
}

.stock-good{
    color:var(--green) !important;
}

.stock-bad{
    color:var(--red) !important;
}

.product-detail-panel h1{
    font-size:clamp(34px,4vw,58px);
    line-height:1;
    letter-spacing:-2.3px;
    margin-bottom:15px;
}

.rating-row{
    display:flex;
    align-items:center;
    gap:9px;
    margin-bottom:18px;
}

.rating-row span{
    color:var(--gold);
    letter-spacing:2px;
}

.rating-row b{
    color:var(--text);
}

.rating-row small{
    color:var(--muted);
}

.price-row{
    padding:20px;
    border-radius:24px;
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.18), transparent 40%),
        var(--surface2);
    border:1px solid var(--border);
    margin-bottom:18px;
}

.price-row strong{
    display:block;
    color:var(--gold);
    font-size:36px;
    letter-spacing:-1px;
}

.price-row span{
    color:var(--muted);
    font-size:13px;
}

.merchant-card{
    display:flex;
    align-items:center;
    gap:14px;
    padding:16px;
    border-radius:24px;
    background:var(--surface2);
    border:1px solid var(--border);
    margin-bottom:18px;
}

.merchant-card img{
    width:62px;
    height:62px;
    border-radius:20px;
    object-fit:cover;
    background:var(--soft);
    border:1px solid var(--border);
}

.merchant-card span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:5px;
}

.merchant-card strong{
    display:block;
    color:var(--text);
}

.merchant-card small{
    display:block;
    color:var(--muted);
    margin-top:4px;
}

/* PURCHASE */
.purchase-box{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.purchase-section,
.delivery-calculator,
.summary-box{
    padding:18px;
    border-radius:24px;
    background:var(--surface2);
    border:1px solid var(--border);
}

.section-label{
    margin-bottom:14px;
}

.section-label h3{
    font-size:18px;
    margin-bottom:5px;
}

.section-label p{
    color:var(--muted);
    font-size:13px;
    line-height:1.5;
}

.qty-selector{
    width:max-content;
    height:54px;
    display:flex;
    overflow:hidden;
    border-radius:18px;
    border:1px solid var(--border);
    background:var(--surface);
}

.qty-selector button{
    width:54px;
    height:54px;
    border:none;
    cursor:pointer;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    color:#050505;
    font-size:22px;
    font-weight:900;
}

.qty-selector input{
    width:76px;
    height:54px;
    border:none;
    outline:none;
    text-align:center;
    color:var(--text);
    background:transparent;
    font-weight:900;
    font-size:17px;
}

.option-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:13px;
}

.fulfillment-option{
    cursor:pointer;
    padding:17px;
    border-radius:21px;
    background:var(--surface);
    border:1px solid var(--border);
    transition:.25s ease;
}

.fulfillment-option input{
    display:none;
}

.fulfillment-option span{
    width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#050505;
    border-radius:16px;
    background:linear-gradient(135deg,var(--gold),var(--gold2));
    margin-bottom:12px;
    font-weight:900;
}

.fulfillment-option strong{
    display:block;
    margin-bottom:6px;
}

.fulfillment-option small{
    color:var(--muted);
    line-height:1.5;
    display:block;
}

.fulfillment-option.active{
    border-color:rgba(212,175,55,.65);
    box-shadow:0 0 0 3px rgba(212,175,55,.11);
}

.delivery-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.delivery-grid div,
.summary-box div{
    padding:15px;
    border-radius:18px;
    background:var(--surface);
    border:1px solid var(--border);
}

.delivery-grid span,
.summary-box span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:6px;
}

.delivery-grid strong,
.summary-box strong{
    color:var(--gold);
    font-size:15px;
}

.delivery-note{
    margin-top:13px;
    color:var(--muted);
    font-size:12px;
    line-height:1.6;
}

.summary-box{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
}

.summary-box .grand-total{
    background:
        radial-gradient(circle at top left, rgba(212,175,55,.18), transparent 40%),
        var(--surface);
}

.summary-box .grand-total strong{
    font-size:20px;
}

.cta-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:13px;
}

.add-cart-btn,
.checkout-btn{
    min-height:58px;
    border:none;
    cursor:pointer;
    border-radius:20px;
    font-family:inherit;
    font-weight:900;
    font-size:15px;
}

.add-cart-btn{
    color:var(--text);
    background:var(--soft);
    border:1px solid var(--border);
}

.checkout-btn{
    color:#050505;
    background:linear-gradient(135deg,var(--gold),var(--gold2),#b88a1e);
    box-shadow:0 16px 34px rgba(212,175,55,.25);
}

.add-cart-btn:disabled,
.checkout-btn:disabled{
    cursor:not-allowed;
    opacity:.45;
}

/* DESCRIPTION */
.description-section{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    margin-bottom:30px;
}

.description-card{
    padding:28px;
}

.description-card h2{
    font-size:28px;
    letter-spacing:-1px;
    margin-bottom:14px;
}

.description-card p{
    color:var(--muted);
    line-height:1.85;
}

.merchant-info-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:13px;
}

.merchant-info-grid div{
    padding:15px;
    border-radius:18px;
    background:var(--surface2);
    border:1px solid var(--border);
}

.merchant-info-grid span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:6px;
}

.merchant-info-grid strong{
    color:var(--text);
    line-height:1.5;
}

/* RELATED */
.related-section{
    padding:25px;
}

.related-scroll{
    display:flex;
    gap:16px;
    overflow-x:auto;
    padding-bottom:12px;
}

.related-scroll::-webkit-scrollbar{
    height:7px;
}

.related-scroll::-webkit-scrollbar-track{
    background:var(--soft);
    border-radius:20px;
}

.related-scroll::-webkit-scrollbar-thumb{
    background:linear-gradient(90deg,var(--gold),var(--gold2));
    border-radius:20px;
}

.related-card{
    flex:0 0 210px;
    text-decoration:none;
    border-radius:24px;
    overflow:hidden;
    background:var(--surface2);
    border:1px solid var(--border);
}

.related-card img{
    width:100%;
    height:145px;
    object-fit:cover;
    background:var(--soft);
}

.related-card div{
    padding:15px;
}

.related-card h3{
    font-size:15px;
    line-height:1.35;
    margin-bottom:7px;
}

.related-card span{
    display:block;
    color:var(--muted);
    font-size:12px;
    margin-bottom:8px;
}

.related-card strong{
    color:var(--gold);
}

/* RESPONSIVE */
@media(max-width:1050px){
    .product-detail-shell{
        grid-template-columns:1fr;
    }

    .product-gallery{
        position:relative;
        top:auto;
    }

    .product-image-frame,
    .product-image-frame img{
        min-height:440px;
    }

    .description-section{
        grid-template-columns:1fr;
    }
}

@media(max-width:720px){
    .product-main{
        width:94%;
        padding-top:22px;
    }

    .product-gallery,
    .product-detail-panel,
    .description-card,
    .related-section{
        border-radius:28px;
    }

    .product-gallery{
        padding:16px;
    }

    .product-image-frame,
    .product-image-frame img{
        min-height:330px;
        border-radius:24px;
    }

    .image-mini-info{
        grid-template-columns:1fr;
    }

    .product-detail-panel{
        padding:22px;
    }

    .product-detail-panel h1{
        font-size:34px;
        letter-spacing:-1.5px;
    }

    .price-row strong{
        font-size:30px;
    }

    .option-grid,
    .delivery-grid,
    .summary-box,
    .cta-row,
    .merchant-info-grid{
        grid-template-columns:1fr;
    }

    .qty-selector{
        width:100%;
    }

    .qty-selector input{
        flex:1;
    }

    .add-cart-btn,
    .checkout-btn{
        width:100%;
    }

    .related-card{
        flex-basis:180px;
    }
}

.product-range-warning{
    margin:14px 0;
    padding:13px 15px;
    border-radius:16px;
    color:#7f1d1d;
    background:rgba(239,68,68,.10);
    border:1px solid rgba(239,68,68,.20);
    font-size:13px;
    font-weight:800;
    line-height:1.6;
}

html[data-theme="dark"] .product-range-warning{
    color:#fecdd3;
}

.product-distance-pill,
.related-distance{
    display:inline-flex;
    align-items:center;
    width:max-content;
    margin-top:8px;
    padding:6px 10px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
    color:#166534;
    background:rgba(22,163,74,.10);
    border:1px solid rgba(22,163,74,.18);
}

html[data-theme="dark"] .product-distance-pill,
html[data-theme="dark"] .related-distance{
    color:#bbf7d0;
}