/* =====================================================
   PRODUCT DETAILS CSS
   PART 1: LAYOUT + GALLERY + PRODUCT INFO + VARIANTS
===================================================== */

.product-container{
    max-width:1280px;
}

.product-main-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
    align-items:start;
}

.pd-card{
    background:#fff;
    border:1px solid #e9eef5;
    border-radius:24px;
    box-shadow:0 14px 34px rgba(15,23,42,.08);
}

/* Gallery */
.gallery-card{
    padding:18px;
}

.main-img-container{
    min-height:420px;
    background:#f8fafc;
    border:1px solid #edf2f7;
    border-radius:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
}

.main-img{
    width:100%;
    max-height:420px;
    object-fit:contain;
    transition:.25s;
}

.main-img-container:hover .main-img{
    transform:scale(1.12);
}

.thumb-strip{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
    margin-top:14px;
}

.thumb-img{
    width:76px;
    height:76px;
    object-fit:cover;
    border-radius:14px;
    border:2px solid #e5e7eb;
    background:#fff;
    cursor:pointer;
    padding:4px;
    transition:.2s;
}

.thumb-img:hover,
.thumb-active{
    border-color:var(--primary);
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(13,110,253,.16);
}

/* Trust Strip */
.trust-strip{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin-top:16px;
}

.trust-strip .trust-item{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:12px 8px;
    text-align:center;
    font-size:12px;
    font-weight:900;
    color:#334155;
}

.trust-strip .trust-item i{
    display:block;
    font-size:22px;
    margin-bottom:4px;
}

/* Offer Hook */
.offer-hook-box{
    background:linear-gradient(135deg,#fff7ed,#fff);
    border:1px solid #fed7aa;
    border-radius:18px;
    padding:16px;
    margin-top:16px;
}

.offer-hook-box.compact{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:12px;
    align-items:center;
}

.offer-icon{
    width:48px;
    height:48px;
    border-radius:16px;
    background:linear-gradient(135deg,#ff6b00,#ff9f1a);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:24px;
    flex-shrink:0;
}

.offer-title{
    font-size:17px;
    font-weight:900;
    margin-bottom:4px;
}

.offer-text{
    color:#475569;
    font-size:14px;
    line-height:1.6;
}

/* Product Info */
.info-card{
    padding:22px;
}

.breadcrumb-item a{
    color:var(--primary);
    text-decoration:none;
}

.badge-row{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-bottom:10px;
}

.badge-soft{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:7px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.badge-tag{
    background:#eff6ff;
    color:var(--primary);
}

.badge-discount{
    background:#fff1f2;
    color:#dc3545;
}

.badge-stock{
    background:#ecfdf5;
    color:#15803d;
}

.badge-stock-out{
    background:#fff1f2;
    color:#dc3545;
}

.product-title{
    font-size:31px;
    line-height:1.35;
    font-weight:900;
    margin:8px 0;
    color:#111827;
}

.rating-line{
    display:flex;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
    color:#f59e0b;
    margin-bottom:14px;
}

.rating-line i{
    color:#f59e0b;
}

.product-meta{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-bottom:14px;
}

.meta-pill{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:999px;
    padding:8px 13px;
    font-size:13px;
    font-weight:800;
    color:#374151;
}

.price-box{
    background:#f8fafc;
    border:1px solid #eef0f3;
    border-radius:18px;
    padding:14px 16px;
    margin-bottom:14px;
    display:flex;
    align-items:flex-end;
    gap:10px;
    flex-wrap:wrap;
}

.price-new{
    color:var(--primary);
    font-size:38px;
    line-height:1;
    font-weight:900;
}

.price-old{
    color:#dc3545;
    font-size:21px;
    text-decoration:line-through;
    font-weight:800;
}

.short-desc{
    background:#f8fafc;
    border-left:5px solid var(--primary);
    border-radius:15px;
    padding:13px 15px;
    color:#475569;
    line-height:1.8;
    margin-bottom:14px;
}

/* Variants */
.variant-box{
    background:linear-gradient(180deg,#f8fbff,#fff);
    border:1px solid #dbeafe;
    border-radius:20px;
    padding:16px;
    margin-bottom:16px;
}

.variant-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:8px;
    margin-bottom:12px;
    font-weight:900;
}

.variant-required{
    background:#fff7ed;
    color:#ea580c;
    border:1px solid #fed7aa;
    padding:4px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
}

.variant-group-title{
    font-weight:900;
    margin-bottom:7px;
    font-size:14px;
}

.variant-choice{
    border:1.8px solid #dbe2ea;
    background:#fff;
    border-radius:14px;
    padding:10px 15px;
    min-width:58px;
    text-align:center;
    font-size:13px;
    font-weight:900;
    margin:4px;
    cursor:pointer;
    transition:.2s;
}

.variant-choice:hover{
    border-color:#ff9f1a;
    color:#ea580c;
}

.variant-choice.active{
    border-color:var(--orange);
    background:#fff7ed;
    color:var(--orange);
    box-shadow:0 6px 16px rgba(255,107,0,.13);
}

.variant-price-highlight{
    background:#fff7ed;
    border-left:5px solid var(--orange);
    border-radius:14px;
    padding:12px 15px;
    font-weight:900;
    color:#dc2626;
    margin-top:10px;
}

.single-product-note{
    background:#eff6ff;
    border:1px solid #bfdbfe;
    border-radius:18px;
    padding:14px 16px;
    color:#1e40af;
    font-weight:800;
    margin-bottom:16px;
}
/* =====================================================
   PRODUCT DETAILS CSS
   PART 2: BUTTONS + TABS + REVIEWS + RELATED + MOBILE STICKY + RESPONSIVE
===================================================== */

/* =========================
   ACTION BUTTONS
========================= */
.btn-action{
    padding:13px 18px;
    font-weight:900;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:52px;
    transition:.25s;
}

.btn-order{
    background:linear-gradient(135deg,#ff4757,#ff6b81);
    color:#fff!important;
    border:none;
    box-shadow:0 8px 20px rgba(255,71,87,.25);
}

.btn-order:hover{
    color:#fff!important;
    transform:translateY(-2px);
}

.whatsapp-btn{
    background:#168a55;
    color:#fff!important;
    border:none;
}

.whatsapp-btn:hover{
    background:#107343;
    color:#fff!important;
}

.stock-warning{
    margin-top:16px;
    background:#fff7ed;
    border:1px dashed #fb923c;
    color:#c2410c;
    border-radius:15px;
    padding:12px 14px;
    font-weight:900;
    text-align:center;
}

/* =========================
   TAB CARD
========================= */
.tab-card{
    background:#fff;
    border:1px solid #e9eef5;
    border-radius:22px;
    box-shadow:0 10px 28px rgba(15,23,42,.07);
    margin-top:26px;
    overflow:hidden;
}

.tab-card .nav-pills{
    padding:10px 12px 0;
    background:#f8fafc;
}

.tab-card .nav-link{
    border-radius:12px 12px 0 0;
    color:#334155;
    font-weight:900;
}

.tab-card .nav-link.active{
    background:var(--primary);
    color:#fff;
}

.description-content,
.policy-box{
    color:#334155;
    line-height:1.9;
    font-size:15px;
    overflow-wrap:anywhere;
}

/* =========================
   REVIEWS
========================= */
.review-summary{
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    padding:22px;
    text-align:center;
}

.review-score{
    font-size:46px;
    line-height:1;
    font-weight:900;
    color:var(--primary);
    margin-bottom:8px;
}

.star{
    color:#f59e0b;
}

.review-item{
    padding:16px 0;
    border-bottom:1px solid #e5e7eb;
}

.review-item:last-child{
    border-bottom:none;
}

.review-avatar{
    width:44px;
    height:44px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary),var(--primary2));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    flex-shrink:0;
}

/* =========================
   RELATED PRODUCTS
========================= */
.related-card{
    background:#fff;
    border:1px solid #eef0f3;
    border-radius:18px;
    box-shadow:0 7px 18px rgba(0,0,0,.06);
    transition:.25s;
    height:100%;
}

.related-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 26px rgba(0,0,0,.10);
}

/* =========================
   MOBILE STICKY ACTION
========================= */
.sticky-action-mobile{
    display:none;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    background:#fff;
    padding:10px;
    box-shadow:0 -4px 18px rgba(0,0,0,.12);
    z-index:9998;
    gap:10px;
}

.sticky-action-mobile .btn{
    flex:1;
    min-height:46px;
    border-radius:14px;
    font-weight:900;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:991px){
    .product-main-grid{
        grid-template-columns:1fr;
    }

    .main-img-container{
        min-height:320px;
    }

    .main-img{
        max-height:320px;
    }

    .product-title{
        font-size:25px;
    }

    .price-new{
        font-size:32px;
    }

    .trust-strip{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .product-container{
        padding-left:10px;
        padding-right:10px;
        margin-bottom:80px!important;
    }

    .desktop-action-row{
        display:none;
    }

    .sticky-action-mobile{
        display:flex;
    }

    .gallery-card,
    .info-card{
        padding:14px;
        border-radius:18px;
    }

    .pd-card{
        border-radius:18px;
    }

    .main-img-container{
        min-height:290px;
        border-radius:16px;
    }

    .main-img{
        max-height:290px;
    }

    .thumb-img{
        width:62px;
        height:62px;
        border-radius:12px;
    }

    .product-title{
        font-size:22px;
    }

    .price-new{
        font-size:29px;
    }

    .price-old{
        font-size:17px;
    }

    .btn-action{
        min-height:48px;
        font-size:14px;
    }

    .tab-card{
        border-radius:18px;
    }

    .tab-card .nav-pills{
        overflow-x:auto;
        flex-wrap:nowrap;
    }

    .tab-card .nav-link{
        white-space:nowrap;
        font-size:14px;
    }
}

@media(max-width:576px){
    .offer-hook-box.compact{
        grid-template-columns:1fr;
        text-align:center;
    }

    .offer-icon{
        margin:0 auto;
    }

    .product-meta{
        gap:7px;
    }

    .meta-pill{
        font-size:12px;
        padding:7px 10px;
    }

    .variant-choice{
        padding:9px 12px;
        min-width:52px;
    }

    .review-summary{
        padding:18px;
    }

    .review-score{
        font-size:40px;
    }

    .review-item{
        gap:10px!important;
    }

    .review-avatar{
        width:38px;
        height:38px;
    }
}
/* Mobile Order Button Fix - Above Bottom Menu */
@media(max-width:991px){
    body{
        padding-bottom:155px;
    }

    .desktop-action-row{
        display:none !important;
    }

    .sticky-action-mobile{
        display:flex !important;
        position:fixed !important;
        left:10px;
        right:10px;
        bottom:82px;
        z-index:99999 !important;
        background:#ffffff;
        padding:10px;
        border-radius:18px;
        box-shadow:0 -6px 24px rgba(0,0,0,.18);
        gap:10px;
    }

    .sticky-action-mobile .btn{
        flex:1;
        height:48px;
        border-radius:14px;
        font-weight:900;
        font-size:15px;
    }

    .product-container{
        margin-bottom:155px !important;
    }
}
/* =====================================================
   END OF PRODUCT DETAILS CSS
===================================================== */

/* =====================================================
   PERMANENT RESPONSIVE + ACTION FIX OVERRIDES
===================================================== */
.product-details-page,
body{
    overflow-x:hidden;
}

.product-main-grid > *{
    min-width:0;
}

.desktop-action-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.desktop-action-row .btn,
.desktop-action-row .whatsapp-btn{
    width:100%;
}

.btn-action:disabled,
.sticky-action-mobile .btn:disabled{
    opacity:.7;
    cursor:not-allowed;
}

.variant-error{
    margin-top:10px;
    padding:10px 12px;
    border-radius:12px;
    background:#fff1f2;
    color:#be123c;
    font-weight:800;
}

@media(max-width:991px){
    .product-main-grid{
        grid-template-columns:minmax(0,1fr);
    }

    .info-card{
        width:100%;
    }

    .main-img-container{
        min-height:340px;
    }

    .main-img{
        height:340px;
        max-height:340px;
    }
}

@media(max-width:767px){
    .product-container{
        width:calc(100% - 18px);
        max-width:none;
        margin-left:auto;
        margin-right:auto;
        padding-left:0;
        padding-right:0;
    }

    .gallery-card,
    .info-card{
        padding:13px;
    }

    .main-img-container{
        min-height:290px;
    }

    .main-img{
        height:290px;
        max-height:290px;
        padding:8px;
    }

    .thumb-strip{
        flex-wrap:nowrap;
        justify-content:flex-start;
        overflow-x:auto;
    }

    .desktop-action-row{
        display:none !important;
    }

    .sticky-action-mobile{
        display:flex !important;
        align-items:center;
    }

    .sticky-action-mobile .btn{
        display:flex;
        align-items:center;
        justify-content:center;
        gap:7px;
    }

    .tab-content{
        padding:16px !important;
    }

    .description-content img,
    .policy-box img{
        max-width:100% !important;
        height:auto !important;
    }
}

@media(max-width:480px){
    .product-container{
        width:calc(100% - 12px);
    }

    .product-title{
        font-size:21px;
    }

    .main-img-container{
        min-height:260px;
    }

    .main-img{
        height:260px;
        max-height:260px;
    }

    .trust-strip{
        gap:8px;
    }

    .trust-strip .trust-item{
        min-height:76px;
        padding:9px 5px;
    }

    .price-box{
        padding:12px 13px;
    }

    .price-new{
        font-size:28px;
    }

    .variant-choice{
        min-width:48px;
        padding:9px 10px;
    }

    .sticky-action-mobile{
        left:8px;
        right:8px;
        bottom:80px;
        padding:8px;
    }
}
