/* PDP Modern UI - Optimized for High-Performance Industrial E-commerce */
@import url('pdp-detail.css');

:root {
    --pdp-nav-height: 80px;
}

/* Visibility Override - Essential for the 'Invisible Page' bug fix */
.reveal-up, .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.js-active .reveal-up,
body.js-active .reveal {
    opacity: 0;
    transform: translateY(20px);
}

.reveal-up.active, .reveal.active, .reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Modern PDP container */
.pdp-main {
    padding-top: var(--pdp-nav-height);
    background: #f8fafc;
}

.product-container {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1300px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6;
}

@media (min-width: 1024px) {
    .product-container {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* Gallery Section */
.gallery-wrap {
    padding: 2.5rem;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #f1f5f9;
}

.main-img-container {
    aspect-ratio: 1/1;
    background: #fdfdfd;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.main-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Info Section */
.product-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .product-content {
        padding: 2rem;
    }
}

.product-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height:1.1;
    color: #0f172a;
}

/* Standardized Buttons for PDP */
.pdp-action-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 480px) {
    .pdp-action-group {
        flex-direction: row;
    }
}

/* Mobile-First Adjustments */
@media (max-width: 1023px) {
    .product-container {
        margin: 1rem;
        border-radius: 12px;
    }
    .gallery-wrap {
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }
}

/* Ensure font readability */
.info-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
}

.spec-table {
    width: 100%;
}

.spec-table tr td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.spec-table .label {
    font-weight: 600;
    color: #64748b;
    width: 40%;
}

.spec-table .value {
    color: #0f172a;
    font-weight: 700;
}
