/* ==========================================================================
   PC KUMAR — DEDICATED PRODUCT DETAIL PAGE STYLESHEET (product.css)
   Full Responsive White Theme Architecture with Sticky Gallery, Tabs & Badges
   ========================================================================== */

:root {
    --bg-page-white: #ffffff;
    --bg-surface-light: #f8fafc;
    --bg-card-hover: #f1f5f9;
    --bg-dark-header: #0f172a;

    --brand-red: #dc2626;
    --brand-red-hover: #b91c1c;
    --brand-red-light: rgba(220, 38, 38, 0.08);
    --brand-red-border: rgba(220, 38, 38, 0.25);

    --brand-green: #16a34a;
    --brand-green-hover: #15803d;
    --brand-green-light: rgba(22, 163, 74, 0.08);

    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-white: #ffffff;

    --border-subtle: #e2e8f0;
    --border-medium: #cbd5e1;

    --font-main: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-page-white);
    color: var(--text-dark);
    font-family: var(--font-main);
    overflow-x: hidden;
}

body.product-page-body {
    min-height: 100vh;
    background-color: var(--bg-page-white) !important;
    color: var(--text-dark) !important;
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden !important;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font-main); border: none; background: none; cursor: pointer; outline: none; }

/* BREADCRUMB STRIP */
.cat-breadcrumb-strip {
    background: #f4f5f8;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    font-size: 13px;
    font-weight: 600;
}

.cat-breadcrumb-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bc-path {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    flex-wrap: wrap;
}

.bc-link {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bc-link:hover {
    color: #dc2626;
}

.bc-sep {
    color: #cbd5e1;
    font-size: 14px;
}

.bc-current {
    color: #dc2626;
    font-weight: 700;
    text-transform: uppercase;
}

/* MAIN PRODUCT DETAIL SECTION & GRID */
.product-page-main {
    padding: 40px 0 80px;
    background: #ffffff;
    color: var(--text-dark);
}

.product-detail-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: start;
    margin-bottom: 50px;
}

/* GALLERY STAGE & THUMBNAILS */
.product-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
    align-self: start;
}

.gallery-main-stage {
    position: relative;
    width: 100%;
    height: auto;
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    cursor: zoom-in; /* Indicates image is zoomable */
}

.gallery-counter-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    pointer-events: none;
}

.gallery-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.12s ease-out, transform-origin 0.12s ease-out;
    will-change: transform, transform-origin;
}
.gallery-main-stage:hover .gallery-main-img {
    transform: scale(1.05);
}

.gallery-thumbnails-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumb-box {
    aspect-ratio: 1;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.2s ease;
}

.thumb-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-box:hover,
.thumb-box.active {
    border-color: #dc2626;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* RIGHT PRODUCT INFO PANEL */
.product-info-column {
    display: flex;
    flex-direction: column;
}

.product-category-tag {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #dc2626;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-title-heading {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: #0f172a;
    margin-bottom: 16px;
}

.product-summary-text {
    font-size: 15px;
    color: #475569;
    line-height: 1.7;
    font-weight: 400;
    margin-bottom: 24px;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 32px;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: -0.5px;
}

.price-original {
    font-size: 18px;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

.price-discount-pill {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.25);
    font-weight: 800;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.stock-status-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stock-indicator-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f4f5f8;
    border: 1px solid rgba(22, 163, 74, 0.25);
    padding: 8px 16px;
    border-radius: 8px;
    color: #15803d;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.stock-dot-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.5);
}

.shipping-info-tag {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

/* ACTIONS GROUP (QUANTITY, ADD TO CART, WHATSAPP) */
.product-actions-group {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.quantity-selector-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    height: 48px;
}

.qty-btn {
    width: 40px;
    height: 100%;
    border: none;
    color: #475569;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    background: #f8fafc;
    transition: background 0.2s ease;
}

.qty-btn:hover {
    background: #e2e8f0;
    color: #dc2626;
}

.qty-input {
    width: 44px;
    height: 100%;
    background: transparent;
    border: none;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    outline: none;
}

.btn-add-to-cart {
    flex: 1;
    height: 48px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.btn-add-to-cart:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-ask-whatsapp {
    flex: 0.5;
    height: 48px;
    background: #25d366;
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    min-width: 160px;
}

.btn-ask-whatsapp:hover {
    background: #20ba5a;
}

/* PAYMENTS STRIP & TRUST BADGES */
.secure-payments-strip {
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.secure-label {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #64748b;
    margin-bottom: 10px;
}

.payment-badge-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pay-chip {
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
}

.product-trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.trust-chip {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 6px;
    border-radius: 8px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.trust-chip i {
    color: #dc2626;
}

/* PRODUCT DETAILS TABS SYSTEM */
.product-tabs-container {
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    margin-top: 40px;
}

.product-tabs-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #cbd5e1;
    overflow-x: auto;
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #64748b;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.tab-btn:hover {
    color: #0f172a;
    background: rgba(220, 38, 38, 0.04);
}

.tab-btn.active {
    color: #dc2626;
    background: #ffffff;
    border-bottom-color: #dc2626;
}

.product-tabs-body {
    padding: 28px;
    background: #ffffff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeInTab 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.specs-bullet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specs-bullet-list li {
    font-size: 14px;
    color: #334155;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.specs-bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #000000;
    font-size: 18px;
    line-height: 1;
}

.specs-bullet-list li strong {
    color: #0f172a;
}


/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-gallery-column {
        position: static;
    }

    .gallery-main-stage {
        height: 380px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .product-detail-container,
    .cat-breadcrumb-container,
    .related-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .product-title-heading {
        font-size: 28px;
    }

    .price-current {
        font-size: 26px;
    }

    .gallery-main-stage {
        height: 320px;
    }

    .product-actions-group {
        align-items: stretch;
    }

    .quantity-selector-box {
        width: 100%;
        justify-content: center;
    }

    .btn-add-to-cart,
    .btn-ask-whatsapp {
        width: 100%;
    }

    .product-trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .product-detail-container,
    .cat-breadcrumb-container,
    .related-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .product-title-heading {
        font-size: 24px;
    }

    .gallery-main-stage {
        height: 260px;
    }

    .related-products-grid {
        grid-template-columns: 1fr;
    }
}