/* ====================================
   PRODUCT DETAILS PAGE
==================================== */

.product-detail-page{
    padding:40px 0 70px;
    background:#f8fafc;
}

.breadcrumb-line{
    margin-bottom:25px;
    font-size:14px;
    color:#64748b;
}

.breadcrumb-line a{
    color:#2563eb;
    text-decoration:none;
}

.breadcrumb-line span{
    margin:0 8px;
}

.product-detail-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
    margin-bottom:60px;
}

/* ====================================
   GALLERY
==================================== */

.product-gallery{
    background:#fff;
    padding:20px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.main-product-image{
    width:100%;
    height:500px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:18px;
    overflow:hidden;
}

.main-product-image img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.thumbnail-row{
    display:flex;
    gap:12px;
    margin-top:15px;
    flex-wrap:wrap;
}

.thumb-btn{
    width:80px;
    height:80px;
    border:none;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    cursor:pointer;
    border:1px solid #e5e7eb;
}

.thumb-btn img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.no-detail-img{
    text-align:center;
    color:#94a3b8;
}

.no-detail-img span{
    font-size:70px;
}

/* ====================================
   PRODUCT INFO
==================================== */

.product-detail-info{
    background:#fff;
    padding:30px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.brand-chip{
    display:inline-block;
    padding:6px 14px;
    border-radius:30px;
    background:#eff6ff;
    color:#2563eb;
    font-size:13px;
    font-weight:700;
    margin-bottom:15px;
}

.product-detail-info h1{
    font-size:34px;
    font-weight:800;
    margin-bottom:15px;
    color:#0f172a;
}

.short-desc{
    color:#64748b;
    line-height:1.7;
    margin-bottom:20px;
}

.detail-price{
    font-size:34px;
    font-weight:900;
    color:#16a34a;
    margin-bottom:20px;
}

.detail-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:25px;
}

.detail-meta span{
    padding:8px 14px;
    border-radius:10px;
    background:#f1f5f9;
    font-size:13px;
}

.stock-in{
    background:#dcfce7 !important;
    color:#15803d;
}

.stock-out{
    background:#fee2e2 !important;
    color:#dc2626;
}

/* ====================================
   VARIANTS
==================================== */

.variant-box{
    margin-bottom:25px;
}

.variant-box h3{
    font-size:18px;
    margin-bottom:15px;
}

.variant-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.variant-option{
    display:flex;
    gap:12px;
    padding:14px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    cursor:pointer;
    background:#fff;
}

.variant-option:hover{
    border-color:#2563eb;
}

.variant-option input{
    margin-top:4px;
}

.variant-option small{
    display:block;
    color:#64748b;
    margin-top:4px;
}

/* ====================================
   DETAIL ACTIONS
==================================== */

.detail-actions{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:30px;
}

.detail-cart-form{
    display:flex;
    gap:12px;
    align-items:end;
    flex-wrap:wrap;
}

.qty-control{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.qty-control label{
    font-size:13px;
    font-weight:800;
    color:#334155;
}

.qty-control input{
    width:100px;
    height:46px;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:10px;
}

.primary-btn,
.secondary-btn{
    min-height:46px;
    padding:0 24px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.primary-btn{
    background:#2563eb;
    color:#fff;
}

.primary-btn:hover{
    background:#1d4ed8;
    color:#fff;
}

.secondary-btn{
    background:#f1f5f9;
    color:#0f172a;
}

.secondary-btn:hover{
    background:#e2e8f0;
    color:#0f172a;
}

/* ====================================
   DESCRIPTION
==================================== */

.description-box{
    border-top:1px solid #e5e7eb;
    padding-top:25px;
}

.description-box h3{
    margin-bottom:15px;
}

.description-box p{
    line-height:1.9;
    color:#475569;
}

/* ====================================
   SPECIFICATIONS
==================================== */

.spec-section{
    margin-bottom:70px;
}

.spec-table{
    background:#fff;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.05);
}

.spec-row{
    display:grid;
    grid-template-columns:280px 1fr;
    border-bottom:1px solid #e5e7eb;
}

.spec-row:last-child{
    border-bottom:none;
}

.spec-row strong{
    background:#f8fafc;
    padding:18px;
}

.spec-row span{
    padding:18px;
}

/* ====================================
   RELATED PRODUCTS SECTION
==================================== */

.related-section{
    margin-bottom:50px;
}

.section-header{
    text-align:center;
    margin-bottom:30px;
}

.section-header span{
    color:#2563eb;
    font-weight:700;
}

.section-header h2{
    margin-top:10px;
    font-size:34px;
    font-weight:800;
    color:#0f172a;
}

.section-header p{
    color:#64748b;
}

/* ====================================
   RELATED PRODUCT CARDS
==================================== */

.product-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
}

.product-card{
    position:relative;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:26px;
    overflow:hidden;
    box-shadow:0 14px 34px rgba(15,23,42,.07);
    transition:.25s ease;
}

.product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 26px 58px rgba(15,23,42,.14);
}

.product-badges{
    position:absolute;
    top:14px;
    left:14px;
    z-index:5;
    display:flex;
    gap:7px;
}

.product-badge{
    padding:7px 11px;
    border-radius:999px;
    font-size:11px;
    font-weight:950;
}

.badge-new{
    background:#dcfce7;
    color:#166534;
}

.badge-featured{
    background:#eff6ff;
    color:#2563eb;
}

.product-actions{
    position:absolute;
    top:14px;
    right:14px;
    z-index:5;
    display:grid;
    gap:8px;
}

.product-actions form{
    margin:0;
}

.product-icon-btn{
    width:38px;
    height:38px;
    border-radius:50%;
    border:1px solid #e5e7eb;
    background:#fff;
    color:#0f172a;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 10px 22px rgba(15,23,42,.10);
    cursor:pointer;
    transition:.2s;
}

.product-icon-btn:hover{
    background:#2563eb;
    color:#fff;
}

.product-img{
    height:250px;
    background:linear-gradient(180deg,#f8fafc,#eef4ff);
    display:flex;
    align-items:center;
    justify-content:center;
    border-bottom:1px solid #eef2f7;
}

.product-img img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:30px;
}

.no-product-img{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    color:#64748b;
    text-align:center;
}

.no-product-img span{
    font-size:50px;
    margin-bottom:10px;
}

.product-info{
    padding:20px;
}

.product-info small{
    color:#64748b;
    font-weight:800;
}

.product-info h3{
    font-size:17px;
    line-height:1.45;
    min-height:50px;
    margin:8px 0;
}

.product-info h3 a{
    color:#0f172a;
    text-decoration:none;
}

.product-info h3 a:hover{
    color:#2563eb;
}

.rating-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
    font-size:13px;
}

.rating-row span{
    color:#f59e0b;
}

.rating-row small{
    color:#64748b;
}

.product-price{
    font-size:24px;
    font-weight:950;
    color:#2563eb;
    margin-bottom:14px;
}

.product-bottom{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

.stock-badge{
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:900;
}

.stock-badge.in{
    background:#dcfce7;
    color:#166534;
}

.stock-badge.out{
    background:#fee2e2;
    color:#991b1b;
}

.cart-mini-btn{
    border:none;
    background:#2563eb;
    color:#fff;
    padding:10px 14px;
    border-radius:14px;
    font-size:13px;
    font-weight:950;
    cursor:pointer;
}

.cart-mini-btn:hover{
    background:#1d4ed8;
    color:#fff;
}

.cart-mini-btn.disabled{
    background:#e5e7eb;
    color:#64748b;
    cursor:not-allowed;
}

/* ====================================
   RESPONSIVE
==================================== */

@media(max-width:1200px){
    .product-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media(max-width:992px){
    .product-detail-grid{
        grid-template-columns:1fr;
    }

    .main-product-image{
        height:400px;
    }

    .product-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .product-detail-info h1{
        font-size:28px;
    }

    .detail-price{
        font-size:28px;
    }

    .spec-row{
        grid-template-columns:1fr;
    }
}

@media(max-width:576px){
    .product-grid{
        grid-template-columns:1fr;
    }

    .main-product-image{
        height:300px;
    }

    .detail-actions{
        flex-direction:column;
    }

    .primary-btn,
    .secondary-btn{
        width:100%;
    }

    .detail-cart-form{
        width:100%;
    }

    .detail-cart-form .qty-control,
    .detail-cart-form .qty-control input{
        width:100%;
    }
}

/* WHOLESALE */
.wholesale-chip {
    display: inline-flex;
    margin-left: 8px;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #0f3d2e;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.wholesale-chip.pending {
    background: #fef3c7;
    color: #92400e;
}

.detail-price del,
.variant-option del,
.product-price del {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    margin-top: 4px;
}

.wholesale-note {
    margin-top: -8px;
    margin-bottom: 18px;
    color: #0f3d2e;
    font-weight: 700;
}

.wholesale-note.pending {
    color: #92400e;
}

.wholesale-primary-btn {
    background: #0f3d2e !important;
}