/**
 * Product Detail Page - Specific Styles
 * Uses homepage-enhancements.css for common components
 */

/* Body */
body.product-detail-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #222;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Override for Product Detail Page - Dark initially, white on scroll */
.product-detail-page .site-header {
    background: rgba(13, 13, 13, 0.98);
}

.product-detail-page .site-header .logo img {
    filter: brightness(0) invert(1);
}

.product-detail-page .site-header .main-nav a {
    color: #999;
}

.product-detail-page .site-header .main-nav a:hover,
.product-detail-page .site-header .main-nav a.active {
    color: #fff;
}

.product-detail-page .site-header .lang-switch a {
    color: #666;
}

.product-detail-page .site-header .lang-switch a.active,
.product-detail-page .site-header .lang-switch a:hover {
    color: #fff;
}

.product-detail-page .site-header .lang-switch span {
    color: #444;
}

.product-detail-page .site-header .mobile-menu-toggle span {
    background: #fff;
}

/* Scrolled state - white background */
.product-detail-page .site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

.product-detail-page .site-header.scrolled .logo img {
    filter: none;
}

.product-detail-page .site-header.scrolled .main-nav a {
    color: #666;
}

.product-detail-page .site-header.scrolled .main-nav a:hover,
.product-detail-page .site-header.scrolled .main-nav a.active {
    color: #000;
}

.product-detail-page .site-header.scrolled .lang-switch a {
    color: #999;
}

.product-detail-page .site-header.scrolled .lang-switch a.active,
.product-detail-page .site-header.scrolled .lang-switch a:hover {
    color: #000;
}

.product-detail-page .site-header.scrolled .lang-switch span {
    color: #ddd;
}

.product-detail-page .site-header.scrolled .mobile-menu-toggle span {
    background: #222;
}

/* Product Hero - Split Layout */
.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: max-content;
    margin-top: 98px;
}

.product-hero-image {
    position: relative;
    overflow: hidden;
}

.product-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.product-hero-content {
    background: #1a1a1a;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 70px;
    position: relative;
}

.product-hero-content .section-tag {
    color: #05809f;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.product-hero-content h1 {
    font-size: 4.5rem;
    font-weight: 300;
    margin: 0 0 30px 0;
    letter-spacing: 6px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
}

.product-hero-content p {
    font-size: 15px;
    line-height: 1.9;
    color: rgba(255,255,255,0.6);
    margin: 0 0 40px 0;
    font-weight: 300;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: #05809f;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.hero-btn:hover {
    background: #fff;
    color: #1a1a1a;
}

.hero-btn span {
    transition: transform 0.3s ease;
}

.hero-btn:hover span {
    transform: translateX(4px);
}

/* Product Full Image */
.product-full-image {
    width: 100%;
}

.product-full-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Configurations */
.product-configurations {
    padding: 80px 0;
    background: #fafafa;
}

.product-configurations h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #222;
    margin: 0 0 40px 0;
    text-align: center;
}

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

.config-item {
    overflow: hidden;
    background: #fff;
}

.config-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.config-item:hover img {
    transform: scale(1.05);
}

/* Technical Data */
.product-technical {
    padding: 80px 0;
    background: #fff;
}

.product-technical h2 {
    font-size: 2rem;
    font-weight: 300;
    color: #222;
    margin: 0 0 50px 0;
    text-align: center;
}

.technical-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.feature-box {
    background: #fafafa;
    padding: 40px;
    border: 1px solid #f0f0f0;
}

.feature-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-box p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0 0 25px 0;
}

.feature-box img {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

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

.specs-table tr td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}

.specs-table tr td:first-child {
    color: #666;
}

.specs-table tr td:last-child {
    color: #222;
    font-weight: 500;
    text-align: right;
}

.specs-table tr:first-child td {
    border-top: 1px solid #e5e5e5;
}

/* Product Gallery */
.product-gallery {
    padding: 80px 0;
    background: #fafafa;
}

.product-gallery h2 {
    font-size: 1.4rem;
    font-weight: 400;
    color: #666;
    margin: 0 0 40px 0;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.product-gallery .gallery-item {
    overflow: hidden;
}

.product-gallery .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.product-gallery .gallery-item:hover img {
    transform: scale(1.05);
}

/* Product Navigation */
.product-navigation {
    padding: 50px 0;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.product-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-navigation a:hover {
    color: #05809f;
}

.product-navigation .nav-all {
    padding: 12px 25px;
    background: #222;
    color: #fff;
}

.product-navigation .nav-all:hover {
    background: #05809f;
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .product-hero-content {
        padding: 60px 50px;
    }

    .product-hero-content h1 {
        font-size: 3.5rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 960px) {
    .product-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 70px;
    }

    .product-hero-image {
        height: 50vh;
    }

    .product-hero-content {
        padding: 50px 30px;
    }

    .product-hero-content h1 {
        font-size: 2.8rem;
        letter-spacing: 3px;
    }

    .product-description {
        padding: 60px 0;
    }

    .product-description .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-configurations {
        padding: 60px 0;
    }

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

    .product-technical {
        padding: 60px 0;
    }

    .technical-features {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-gallery {
        padding: 60px 0;
    }

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

@media (max-width: 768px) {
    .product-hero-image {
        height: 45vh;
    }

    .product-hero-content {
        padding: 40px 25px;
    }

    .product-hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .product-hero-content p {
        font-size: 14px;
    }

    .hero-btn {
        padding: 14px 28px;
        font-size: 12px;
    }

    .product-configurations h2,
    .product-technical h2 {
        font-size: 1.6rem;
    }

    .feature-box {
        padding: 30px 25px;
    }

    .product-navigation .container {
        flex-direction: column;
        gap: 20px;
    }

    .product-navigation .nav-all {
        order: -1;
    }
}

@media (max-width: 480px) {
    .product-hero-image {
        height: 40vh;
    }

    .product-hero-content {
        padding: 35px 20px;
    }

    .product-hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .product-hero-content .section-tag {
        font-size: 11px;
    }

    .product-hero-content p {
        font-size: 13px;
    }

    .hero-btn {
        width: 100%;
        justify-content: center;
    }

    .config-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .specs-table tr td {
        padding: 10px 12px;
        font-size: 13px;
    }
}
