.product-detail-section {
    padding: 10px 0 50px;
}

.product-detail-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    grid-template-areas: 
        "gallery details"
        "description details";
    column-gap: 50px;
    align-items: start;
}

/* Gallery layout */
.product-gallery-container {
    grid-area: gallery;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.product-detail-image {
    width: 100%;
    height: 480px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-subtle);
}

.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-detail-image img.fade-out {
    opacity: 0;
}

.product-thumbnails {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    max-width: 100%;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.product-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 3px;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.thumbnail-item {
    width: 76px;
    height: 76px;
    min-width: 76px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-item.active, .thumbnail-item:hover {
    border-color: var(--primary);
}

/* Gallery Slider Buttons */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-subtle);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}

.gallery-nav-btn:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.prev-btn { left: 15px; }
.next-btn { right: 15px; }

/* Details content area */
.product-detail-content {
    grid-area: details;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 100px;
}

.product-detail-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 15px;
}

.detail-tags-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.detail-pricing {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 15px 20px;
    border-radius: 12px;
    width: fit-content;
}

.detail-price-current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-price);
}

.detail-price-compare {
    font-size: 1.2rem;
    color: var(--text-dim);
    text-decoration: line-through;
}

.detail-discount {
    background: var(--accent-gold);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
}

.description-heading {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.product-detail-description {
    grid-area: description;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-top: 35px;
    margin-bottom: 35px;
}

.product-detail-description .description-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.product-detail-description p {
    margin-bottom: 15px;
}

.product-detail-description ul, .product-detail-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* ==========================================================================
   Product Specifications & Architecture Styling
   ========================================================================== */

/* 1. Spec Section (Card Wrapper) */
.spec-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 20px;
    transition: var(--transition, all 0.3s ease);
    backdrop-filter: blur(8px);
}

.spec-section:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 2. Section Headers */
.spec-section h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
}

/* Subtle red accent line before the heading */
.spec-section h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background: var(--primary, #FF2E2E);
    border-radius: 2px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* 3. Grid for Specs */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

/* 4. Individual Spec Item (Interactive Mini-Tiles) */
.spec-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.spec-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

/* Spec Label */
.spec-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--text-dim, #8f8f94);
}

/* Spec Value */
.spec-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f5f5f7;
    line-height: 1.3;
}

/* 5. Architectural Highlights Box */
.highlight-box {
    background: rgba(255, 46, 46, 0.03);
    border: 1px solid rgba(255, 46, 46, 0.15);
    border-radius: 10px;
    padding: 18px 20px;
}

.highlight-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.highlight-box li {
    font-size: 0.92rem;
    color: #d1d1d6;
    line-height: 1.6;
    position: relative;
    padding-left: 22px;
}

/* Custom bullet indicator */
.highlight-box li::before {
    content: '▪';
    position: absolute;
    left: 4px;
    top: -1px;
    color: var(--primary, #FF2E2E);
    font-size: 1.2rem;
}

.highlight-box strong {
    color: #ffffff;
    font-weight: 600;
}

/* Call to Actions - Contact */
.contact-section-card {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.contact-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: #fff;
}

.contact-buttons-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-btn-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 10px;
    line-height: 1.4;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-modal.show {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
}

.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-nav-btn:hover {
    background: var(--primary);
    color: #000;
}

.lightbox-prev-btn { left: 40px; }
.lightbox-next-btn { right: 40px; }

/* Responsive details page */
@media (max-width: 1024px) {
    .product-detail-card {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "gallery"
            "details"
            "description";
        gap: 30px;
        padding: 0;
    }

    .product-detail-content {
        position: static;
    }

    .product-detail-description {
        margin-top: 10px;
    }

    .thumbnail-item {
        width: 68px;
        height: 68px;
        min-width: 68px;
    }

    .product-detail-image {
        height: 380px;
    }
}

@media (max-width: 500px) {
    .product-detail-card {
        padding: 0;
    }
    .product-detail-title {
        font-size: 1.6rem;
    }
    .detail-price-current {
        font-size: 1.6rem;
    }
    .contact-buttons-wrapper {
        grid-template-columns: 1fr;
    }
    .lightbox-nav-btn {
        width: 44px;
        height: 44px;
    }
    .lightbox-prev-btn { left: 10px; }
    .lightbox-next-btn { right: 10px; }
    .spec-grid {
        grid-template-columns: 1fr;
    }
    .spec-section {
        padding: 16px;
    }
}
