/* ============================================================
   PAN ENGINEERS - SINGLE PRODUCT COMMERCIAL DETAIL & ZOOM CSS
============================================================ */

.pe-single-product-page {
    background: #f8fafc;
    min-height: 100vh;
    padding-top: 90px; /* Offset fixed header cleanly */
    padding-bottom: 80px;
}

/* 1. Top Nav & Breadcrumbs */
.product-top-nav-bar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 0;
    margin-top: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-back-to-products {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.btn-back-to-products:hover {
    background: #0ea5e9;
    color: #ffffff;
    border-color: #0ea5e9;
    transform: translateX(-3px);
}

.product-breadcrumb {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-breadcrumb a:hover {
    color: #0ea5e9;
}

.bc-cat {
    color: #0284c7;
    font-weight: 600;
}

.bc-current {
    color: #0f172a;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 2. Main Product Showcase Grid */
.single-product-main-section {
    padding: 40px 0;
}

.product-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
    align-items: start;
}

/* 3. Left Column: Image Zoom Gallery */
.product-gallery-col {
    position: sticky;
    top: 100px;
}

.main-image-zoom-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 24px;
    overflow: visible;
}

.zoom-hint-pill {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
}

.zoom-viewer-frame {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    cursor: crosshair;
    background: radial-gradient(circle, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-base-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.2s ease;
    user-select: none;
    pointer-events: none;
}

/* Magnifier Lens / Flyout Result Box */
.zoom-preview-flyout {
    position: absolute;
    top: 0;
    left: calc(100% + 24px);
    width: 520px;
    height: 520px;
    background: #ffffff;
    border: 2px solid #0ea5e9;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    background-repeat: no-repeat;
    background-size: 280% 280%; /* 2.8x Zoom Factor */
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: scale(0.95);
}

.zoom-preview-flyout.active {
    opacity: 1;
    transform: scale(1);
}

/* Thumbs Strip */
.product-thumbs-strip {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.thumb-slot {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    padding: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumb-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb-slot:hover,
.thumb-slot.active {
    border-color: #0ea5e9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    transform: translateY(-2px);
}

/* Trust Strip below Gallery */
.gallery-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.g-trust-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gt-icon {
    font-size: 22px;
}

.g-trust-item strong {
    display: block;
    font-size: 12px;
    color: #0f172a;
    font-weight: 700;
}

.g-trust-item span {
    font-size: 10px;
    color: #64748b;
}

/* 4. Right Column: Product Info & Action Box */
.product-info-col {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 36px;
}

.info-header-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.single-cat-badge {
    padding: 5px 12px;
    background: rgba(14, 165, 233, 0.1);
    color: #0284c7;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.single-sku-badge {
    padding: 5px 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.single-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #059669;
    margin-left: auto;
}

.stock-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.single-product-title {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 16px;
}

.single-product-short-desc {
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
    margin-bottom: 24px;
}

/* Specs Tiles */
.specs-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.spec-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-k {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.spec-v {
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
}

/* Commercial Purchasing Box */
.single-action-box {
    background: #f0f9ff;
    border: 1.5px solid rgba(14, 165, 233, 0.25);
    border-radius: 16px;
    padding: 24px;
}

.action-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.action-qty-row label {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.single-stepper {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}

.s-step-btn {
    width: 36px;
    height: 36px;
    background: #f8fafc;
    border: none;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    transition: background 0.15s ease;
}

.s-step-btn:hover {
    background: #e2e8f0;
}

.s-qty-input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    outline: none;
}

.single-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-single-add-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(12, 74, 110, 0.3);
    transition: all 0.25s ease;
}

.btn-single-add-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(12, 74, 110, 0.4);
}

.btn-single-wa-direct {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
    transition: all 0.25s ease;
}

.btn-single-wa-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}

.direct-call-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(14, 165, 233, 0.15);
    font-size: 12px;
    color: #475569;
}

.direct-call-bar a {
    font-weight: 800;
    color: #0284c7;
    text-decoration: none;
}

/* 5. Detailed Specifications & Tabs Section */
.single-product-details-section {
    margin-top: 40px;
}

.product-tabs-wrapper {
    background: #ffffff;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    overflow: hidden;
}

.product-tabs-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
}

.p-tab-btn {
    padding: 18px 28px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.p-tab-btn:hover {
    color: #0f172a;
}

.p-tab-btn.active {
    color: #0284c7;
    background: #ffffff;
    border-bottom-color: #0284c7;
}

.product-tabs-content {
    padding: 36px;
}

.p-tab-pane {
    display: none;
}

.p-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.desc-prose {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}

.tech-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.tech-specs-table th,
.tech-specs-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
    text-align: left;
}

.tech-specs-table th {
    width: 30%;
    color: #64748b;
    font-weight: 700;
    background: #f8fafc;
}

.tech-specs-table td {
    color: #0f172a;
    font-weight: 600;
}

.dispatch-info-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.d-info-col h4 {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.d-info-col p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* 6. Related Products Section */
.related-products-section {
    margin-top: 60px;
}

.related-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
}

.rel-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0284c7;
    letter-spacing: 0.5px;
}

.related-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
    margin: 4px 0 0;
}

.rel-all-link {
    font-size: 14px;
    font-weight: 700;
    color: #0284c7;
    text-decoration: none;
}

.related-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-item-img-link {
    display: block;
    text-decoration: none;
}

.product-title-link {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-title-link:hover {
    color: #0ea5e9;
}

/* 7. Product Card Image Size Enhancement on /products Page */
.product-items-grid .product-item-img {
    height: 260px !important; /* Made Bigger as requested */
    background: radial-gradient(circle, #ffffff 0%, #f1f5f9 100%) !important;
}

.product-items-grid .product-item h3 {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-showcase-grid {
        grid-template-columns: 1fr;
    }
    .zoom-preview-flyout {
        display: none !important; /* Disabled on tablets/mobile, zoom inside frame */
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .single-btn-group {
        grid-template-columns: 1fr;
    }
    .gallery-trust-strip {
        grid-template-columns: 1fr;
    }
    .dispatch-info-box {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .product-tabs-nav {
        flex-wrap: wrap;
    }
    .p-tab-btn {
        flex: 1 1 100%;
        padding: 12px 16px;
    }
}
