/**
 * Product Detail Page Styles for The Namah Group
 * Visual foundation: Architectural, clean, modern, generous whitespace.
 */

/* Container */
.product-detail-wrapper {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.product-detail-container {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 36px;
    box-sizing: border-box;
}

/* ==========================================================
 * A. PRODUCT SHOWCASE (2-COLUMN: IMAGE & DESCRIPTION SIDE-BY-SIDE)
 * ========================================================== */
.product-showcase-section {
    margin-top: 130px;
    margin-bottom: 70px;
}

.product-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* LEFT COLUMN: PRODUCT IMAGE CARD (SCREENSHOT 2 STYLE) */
.product-showcase-media-col {
    width: 100%;
}

.product-image-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.product-image-card:hover {
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.14);
}

.product-image-card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-image-card:hover .product-card-img {
    transform: scale(1.045);
}

/* RIGHT COLUMN: PRODUCT INFO & DESCRIPTION */
.product-showcase-info-col {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.product-info-categories {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #8E8E93;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-info-title {
    font-family: inherit;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    color: #111111;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.product-info-divider {
    width: 100%;
    height: 1px;
    background-color: #E5E5E5;
    margin: 0 0 24px 0;
}

.product-info-description {
    font-size: 15px;
    line-height: 1.65;
    color: #4A4A4A;
    margin-bottom: 28px;
}

.product-info-description p {
    margin: 0 0 14px 0;
}

.product-info-description p:last-child {
    margin-bottom: 0;
}

/* WhatsApp Inquiry CTA Button */
.product-info-action {
    margin-top: 10px;
}

.product-inquire-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #111111;
    color: #FFFFFF !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.product-inquire-btn svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.product-inquire-btn:hover {
    background: #25D366;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.3);
}

.product-inquire-btn:hover svg {
    transform: scale(1.1);
}


/* ==========================================================
 * B. PRODUCT SPECIFICATIONS & TECHNICAL DRAWING (SIDE-BY-SIDE)
 * ========================================================== */
.product-specs-sketch-section {
    margin-bottom: 90px;
    width: 100%;
}

.product-specs-sketch-grid {
    width: 100%;
    box-sizing: border-box;
}

.product-specs-sketch-grid.has-both {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-specs-sketch-grid.only-specs {
    max-width: 760px;
}

.product-specs-sketch-grid.only-sketch {
    max-width: 600px;
}

.product-specs-column,
.product-sketch-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.product-section-subtitle {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
    margin: 0 0 18px 0;
    letter-spacing: -0.2px;
    text-transform: uppercase;
}

/* Specifications Table Inside Column */
.product-specs-table-wrap {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #ECECEC;
    border-radius: 14px;
    padding: 10px 24px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.product-specs-table {
    width: 100%;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: none !important;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    background: transparent !important;
}

.product-specs-table tbody tr {
    border: none !important;
    border-bottom: 1px solid #ECECEC !important;
    background: transparent !important;
    transition: background-color 0.2s ease;
}

.product-specs-table tbody tr:last-child {
    border-bottom: none !important;
}

.product-specs-table tbody tr:hover {
    background-color: #FAFAFA !important;
}

.product-specs-table td {
    padding: 13px 8px !important;
    vertical-align: middle !important;
    border: none !important;
    border-bottom: 1px solid #ECECEC !important;
    background: transparent !important;
}

.product-specs-table tbody tr:last-child td {
    border-bottom: none !important;
}

.product-specs-table td.spec-label {
    width: 44%;
    color: #111111;
    font-weight: 500;
    letter-spacing: 0.1px;
    padding-left: 0 !important;
}

.product-specs-table td.spec-value {
    width: 56%;
    color: #555555;
    font-weight: 400;
    padding-right: 0 !important;
}

/* Technical Drawing Wrap Inside Column */
.product-sketch-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FAFAFA;
    border: 1px solid #E5E5E5;
    border-radius: 14px;
    padding: 24px;
    box-sizing: border-box;
    min-height: 280px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease;
}

.product-sketch-wrap:hover {
    border-color: #CCCCCC;
}

.product-sketch-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    mix-blend-mode: multiply;
}


/* ==========================================================
 * C. PRODUCT GALLERY
 * ========================================================== */
.product-gallery-section {
    margin-bottom: 120px;
    width: 100%;
}

.product-gallery-header {
    margin-bottom: 20px;
}

.product-gallery-section-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
    margin: 0;
    letter-spacing: -0.3px;
    text-transform: uppercase;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
}

.product-gallery-grid.gallery-count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.product-gallery-grid.gallery-count-1 {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.product-gallery-item {
    position: relative;
    overflow: hidden;
    background: #FAFAFA;
    border-radius: 14px;
    aspect-ratio: 410 / 480;
    display: block;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.product-gallery-item:hover {
    box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.14);
}

.product-gallery-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: zoom-in;
    outline: none;
}

.product-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scale(1);
    will-change: transform;
}

/* Subtle Desktop Hover Zoom */
@media (hover: hover) and (pointer: fine) {
    .product-gallery-item:hover img {
        transform: scale(1.05);
    }
}


/* ==========================================================
 * RESPONSIVE BREAKPOINTS (ALL DEVICES)
 * ========================================================== */

/* Large Tablets / Small Laptops */
@media (max-width: 1199px) {
    .product-detail-container {
        padding: 0 28px;
    }

    .product-showcase-section {
        margin-top: 100px;
        margin-bottom: 75px;
    }

    .product-showcase-grid {
        gap: 40px;
    }

    .product-info-title {
        font-size: 34px;
    }

    .product-specs-sketch-section {
        margin-bottom: 75px;
    }

    .product-specs-sketch-grid.has-both {
        gap: 36px;
    }

    .product-gallery-section {
        margin-bottom: 90px;
    }

    .product-gallery-grid {
        gap: 20px;
    }
}

/* Tablets (Portrait) */
@media (max-width: 991px) {
    .product-showcase-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .product-showcase-media-col {
        position: static;
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    .product-image-card {
        aspect-ratio: 1 / 1;
    }

    .product-info-title {
        font-size: 30px;
    }

    .product-specs-sketch-grid.has-both {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .product-sketch-wrap {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .product-specs-sketch-section {
        margin-bottom: 60px;
    }

    .product-gallery-section {
        margin-bottom: 80px;
    }

    .product-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Small Tablets / Large Phones */
@media (max-width: 767px) {
    .product-detail-container {
        padding: 0 20px;
    }

    .product-showcase-section {
        margin-top: 85px;
        margin-bottom: 50px;
    }

    .product-showcase-grid {
        gap: 28px;
    }

    .product-showcase-media-col {
        max-width: 400px;
    }

    .product-image-card {
        padding: 22px;
        border-radius: 14px;
    }

    .product-info-categories {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .product-info-title {
        font-size: 26px;
        margin-bottom: 14px;
    }

    .product-info-divider {
        margin: 0 0 18px 0;
    }

    .product-section-subtitle,
    .product-gallery-section-title {
        font-size: 19px;
    }

    .product-specs-table td {
        padding: 11px 4px !important;
        font-size: 13.5px;
    }

    .product-specs-table-wrap {
        padding: 8px 16px;
    }

    .product-inquire-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 14px;
    }

    .product-sketch-wrap {
        padding: 20px;
        min-height: 220px;
        border-radius: 12px;
    }

    .product-specs-sketch-section {
        margin-bottom: 50px;
    }

    .product-gallery-section {
        margin-bottom: 70px;
    }
}

/* Mobile Devices */
@media (max-width: 575px) {
    .product-detail-container {
        padding: 0 16px;
    }

    .product-showcase-section {
        margin-top: 75px;
        margin-bottom: 40px;
    }

    .product-showcase-grid {
        gap: 24px;
    }

    .product-showcase-media-col {
        max-width: 100%;
    }

    .product-image-card {
        padding: 18px;
        border-radius: 12px;
    }

    .product-info-title {
        font-size: 22px;
        line-height: 1.25;
    }

    .product-info-categories {
        font-size: 11px;
        letter-spacing: 1.2px;
    }

    .product-section-subtitle,
    .product-gallery-section-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .product-specs-table td {
        padding: 10px 2px !important;
        font-size: 13px;
    }

    .product-specs-table td.spec-label {
        width: 45%;
    }

    .product-specs-table td.spec-value {
        width: 55%;
    }

    .product-specs-table-wrap {
        padding: 6px 12px;
    }

    .product-sketch-wrap {
        padding: 14px;
        min-height: 180px;
        border-radius: 10px;
    }

    .product-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .product-gallery-item {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }

    .product-specs-sketch-section {
        margin-bottom: 40px;
    }

    .product-gallery-section {
        margin-bottom: 50px;
    }
}

/* ==========================================================
 * MOBILE STICKY HEADER FIX
 * Ensures sticky header remains flush at top (top: 0) without any gap
 * ========================================================== */
@media (max-width: 600px) {
    html body.admin-bar .alsha-header.alsha-header-sticky,
    html body .alsha-header.alsha-header-sticky {
        top: 0 !important;
        margin-top: 0 !important;
    }
}
@media (max-width: 1199px) {
    body:not(.admin-bar) .alsha-header.alsha-header-sticky {
        top: 0 !important;
        margin-top: 0 !important;
    }
    .alsha-header.alsha-header-sticky .elementor-element-df503bd {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    }
}
