/* ========================================
   PRODUCT INFO PAGE - UNIVERSAL STYLES
   Template CSS for all product information pages

   This file provides consistent styling for:
   - Hero slideshow sections
   - Interior/secondary slideshows
   - Technology sections
   - Specifications sections
   - Innovation sections
   - Responsive breakpoints for all screen modes

   Dependencies: style.css (must be loaded first)
======================================== */

/* ========================================
   HERO STATS ROW (Optional stats display in hero)
======================================== */
.hero-stats-row {
    display: flex;
    gap: 60px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.stat-item {
    text-align: center;
    color: #171a20;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    display: block;
}

.stat-value .unit {
    font-size: 16px;
    font-weight: 400;
}

.stat-label {
    font-size: 12px;
    color: #5c5e62;
    margin-top: 4px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    width: 100%;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* ========================================
   GENERAL SECTION STYLES
   Base styles for all product page sections
======================================== */
.product-section {
    min-height: 80vh;
    padding: 80px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.section-text {
    max-width: 500px;
    z-index: 2;
}

.section-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.section-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #393c41;
    margin-bottom: 30px;
}

/* ========================================
   HERO SLIDESHOW
   Full-screen product showcase
======================================== */
.hero-slideshow {
    height: 100vh;
    margin-top: 0;
    position: relative;
    z-index: 0;
}

/* Hero content positioning */
.hero-slideshow .hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Mobile fallback image (for problematic background-image scenarios) */
.hero-slideshow .slide img.mobile-bg {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ========================================
   INTERIOR / SECONDARY SLIDESHOW
   Dark-themed feature slideshow
======================================== */
.interior-slideshow {
    height: 70vh;
    min-height: 520px;
    position: relative;
    overflow: hidden;
    display: block;
    background: #000;
}

.interior-slideshow .slide {
    height: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.interior-slideshow .slide.active {
    opacity: 1;
    position: relative;
}

/* Remove tint overlay for clear images */
.interior-slideshow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

/* Interior slideshow content styling */
.interior-slideshow .hero-content {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    max-width: 900px;
    padding: 22px;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Text shadow for readability on dark backgrounds */
.interior-slideshow .hero-content h1,
.interior-slideshow .hero-content p,
.interior-slideshow .hero-content .cta-buttons a {
    text-shadow: 0 6px 10px rgba(0,0,0,0.98), 0 1px 2px rgba(0,0,0,0.85);
}

.interior-slideshow .hero-content h1 {
    font-size: 36px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.interior-slideshow .hero-content p {
    font-size: 16px;
    color: #f0f2f4;
    margin-bottom: 18px;
}

.interior-slideshow .cta-buttons a.btn {
    margin: 0 8px;
}

/* Interior slideshow navigation buttons */
.interior-slideshow .carousel-nav-btn {
    z-index: 3;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    padding: 10px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.interior-slideshow .carousel-nav-btn:hover {
    background: rgba(0,0,0,0.65);
}

.interior-slideshow .carousel-nav-prev { left: 12px; }
.interior-slideshow .carousel-nav-next { right: 12px; }

/* Interior slideshow indicators */
.interior-slideshow .slide-indicators {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.interior-slideshow .indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 0;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.interior-slideshow .indicator:hover {
    background: rgba(255,255,255,0.6);
}

.interior-slideshow .indicator.active {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

/* ========================================
   TECHNOLOGY SECTION
   Two-column card layout with gradient background
======================================== */
.product-tech {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.tech-item {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.tech-item h3 {
    font-size: 24px;
    margin-top: 5px;
    margin-bottom: 10px;
    color: #2B5CD4;
}

.tech-item p {
    font-size: 15px;
    line-height: 1.7;
    color: #5c5e62;
    margin-bottom: 15px;
}

.price-tag {
    display: inline-block;
    margin-top: 20px;
    font-weight: 600;
    color: #5c5e62;
    background: #f4f4f4;
    padding: 5px 10px;
    border-radius: 4px;
    font-style: italic;
}

/* ========================================
   SPECIFICATIONS SECTION
   Technical data with images and columns
======================================== */
.product-specs {
    padding: 72px 20px;
    background: #eeeeee;
    color: #0f1720;
}

.specs-header {
    max-width: 1100px;
    margin: 0 auto 30px auto;
    text-align: center;
}

.specs-header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.spec-intro {
    color: #3f4a52;
    max-width: 920px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.6;
}

.specs-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 28px;
}

/* Specification Images Row */
.spec-images-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.spec-images-top figure {
    margin: 0;
    background: transparent;
    padding: 4px;
    border-radius: 8px;
}

.spec-images-top img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.spec-images-top figure:hover img {
    transform: scale(1.02);
}

.spec-images-top figcaption {
    color: #3f4a52;
    font-size: 13px;
    margin-top: 6px;
    text-align: center;
    font-weight: 400;
}

/* Specification Data Columns */
.spec-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: start;
}

.spec-col {
    background: #eeeeee;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(16,24,32,0.04);
    color: #0b1317;
}

.spec-col h4 {
    margin-top: 0;
    color: #071014;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-bottom: 2px solid #2B5CD4;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.spec-col p {
    margin: 6px 0;
    color: #273238;
    line-height: 1.35;
    font-weight: 400;
    font-size: 14px;
}

.spec-col strong {
    color: #071014;
}

/* Specification Footnote */
.spec-footwrap {
    grid-column: 1 / -1;
    text-align: center;
}

.spec-footnote {
    color: #576066;
    font-size: 13px;
    margin-top: 12px;
    font-style: italic;
}

/* ========================================
   INNOVATION SECTION
   Two-column layout with text and gallery
======================================== */
.product-innovation {
    background: #ffffff;
    padding: 100px 40px;
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Innovation Text Column */
.innovation-item-text {
    padding-right: 20px;
}

.innovation-item-text h3 {
    font-size: 26px;
    color: #171a20;
    margin-bottom: 20px;
    border-bottom: 2px solid #2B5CD4;
    padding-bottom: 10px;
}

.innovation-item-text h4 {
    font-size: 20px;
    color: #171a20;
    margin-top: 30px;
    margin-bottom: 15px;
}

.innovation-item-text p {
    font-size: 15px;
    line-height: 1.7;
    color: #5c5e62;
}

/* Innovation Image Gallery */
.innovation-item-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.innovation-item-gallery figure {
    margin: 0;
    text-align: left;
    background: #f4f6f8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.innovation-item-gallery figure:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.innovation-item-gallery img {
    width: 260px;
    height: 173px;
    object-fit: cover;
    margin-right: 20px;
    flex-shrink: 0;
}

.innovation-item-gallery figcaption {
    font-size: 14px;
    color: #393c41;
    padding: 15px 15px 15px 0;
    line-height: 1.5;
}

/* ========================================
   ANIMATIONS
   Scroll-triggered and entrance animations
======================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   Mobile and tablet adaptations
======================================== */

/* Tablet (max-width: 1000px) */
@media (max-width: 1000px) {
    .spec-images-top {
        grid-template-columns: 1fr 1fr;
    }
    .spec-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet Portrait (max-width: 900px) */
@media (max-width: 900px) {
    .hero-slideshow {
        height: 70vh;
    }

    .innovation-grid {
        grid-template-columns: 1fr;
    }

    .innovation-item-text {
        padding-right: 0;
    }
}

/* Mobile Landscape / Small Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .hero-stats-row {
        gap: 20px;
    }

    .stat-value {
        font-size: 20px;
    }

    .carousel-nav-btn {
        display: none;
    }

    .hero-slideshow .hero-content {
        padding: 20px;
    }

    .interior-slideshow {
        height: 60vh;
        min-height: 360px;
    }

    .interior-slideshow .hero-content h1 {
        font-size: 24px;
    }

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

    .product-section {
        padding: 60px 20px;
        min-height: auto;
    }

    .tech-grid {
        gap: 20px;
    }

    .tech-item {
        padding: 25px;
    }

    .tech-item h3 {
        font-size: 20px;
    }

    .innovation-item-gallery figure {
        flex-direction: column;
    }

    .innovation-item-gallery img {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 0;
    }

    .innovation-item-gallery figcaption {
        padding: 15px;
    }
}

/* Mobile Portrait (max-width: 640px) */
@media (max-width: 640px) {
    .spec-images-top {
        grid-template-columns: 1fr;
    }

    .spec-columns {
        grid-template-columns: 1fr;
    }

    .product-specs {
        padding: 40px 16px;
    }

    .specs-header h2 {
        font-size: 26px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-slideshow {
        height: 60vh;
    }

    /* Show mobile fallback image if needed */
    .hero-slideshow .slide.use-mobile-img img.mobile-bg {
        display: block;
    }

    .product-section {
        padding: 40px 15px;
    }

    .section-text h2 {
        font-size: 24px;
    }

    .section-text p {
        font-size: 14px;
    }

    .product-innovation {
        padding: 60px 20px;
    }

    .innovation-item-text h3 {
        font-size: 22px;
    }

    .innovation-item-text h4 {
        font-size: 18px;
    }

    .innovation-item-text p {
        font-size: 14px;
    }
}
