/**
 * Luna Design - Collections Page Styles
 */

.collections-wrapper {
    padding-top: 120px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.45rem; /* ~20% increase from 1.2rem */
    color: var(--text-muted);
    font-style: italic; /* Added a subtle italic touch because it's a quote/slogan */
}

/* Product Blocks */
.product-block {
    display: flex;
    align-items: center;
    margin-bottom: 120px;
    gap: 5%;
    padding: 0 5%;
}

/* Gallery Slider Area */
.product-gallery {
    flex: 1;
    height: 600px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #f5f5f5; /* Fallback */
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.clean-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F8F6F2;
    z-index: 1;
}

.room-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Real Image Overlay positioning */
.dynamic-product-img {
    z-index: 2;
    width: 70%;
    height: 70%;
    object-fit: contain;
    position: relative;
    transition: opacity 0.3s ease;
}

/* Magic happens here: Position the transparent image exactly on the table of the AI room */
.dynamic-product-img.overlay-mode {
    width: 40%;
    height: 40%;
    /* These specific values ensure the transparent png sits where the empty table is in the AI image */
    transform: translateY(15%) translateX(-5%);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.3)); /* Add realistic shadow to blend with the real interior */
}

#hop .dynamic-product-img.overlay-mode {
    transform: translateY(20%) translateX(10%);
}

#reach .dynamic-product-img.overlay-mode {
    transform: translateY(-5%) translateX(0%);
}


/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.slider-arrow:hover { background: var(--text-dark); color: white; }
.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Product Info Area */
.product-info {
    flex: 1;
    padding: 40px 0;
}

.product-info h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.product-info .desc, .desc-content {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.desc-content p {
    margin-bottom: 12px;
}

.desc-content em {
    display: block;
    margin-top: 16px;
    font-style: italic;
    color: var(--text-dark);
}

.feature-bullets {
    list-style: none;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-info .price {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 40px;
}

.selector-title {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.selected-color-name {
    color: var(--text-muted);
    text-transform: capitalize;
}

.swatches {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.color-swatch {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { border-color: var(--text-dark); transform: scale(1.1); box-shadow: 0 0 0 2px white inset; }

/* --- MANUAL GRID SECTION --- */
.usage-manual {
    margin: 100px 5%;
    padding: 60px;
    background-color: #F8F6F2;
    border-radius: 20px;
}

.manual-header { text-align: center; margin-bottom: 48px; }
.manual-header h2 { font-size: 2.2rem; }

.manual-grid {
    display: flex;
    gap: 40px;
}

.manual-card {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.manual-card h3 { font-size: 1.4rem; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }

.instruction-list { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.instruction-list li { display: flex; gap: 16px; }
.step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--color-blue); color: #333; display: flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.instruction-list strong { display: block; margin-bottom: 4px; }

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}
.spec-icon { font-size: 1.5rem; }

.warnings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
    color: #e53935;
    background: rgba(229, 57, 53, 0.05);
    padding: 20px;
    border-radius: 8px;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media screen and (max-width: 900px) {
    .collections-wrapper {
        padding-top: 100px;
    }
    
    .page-header {
        margin-bottom: 40px;
        padding: 0 5%;
    }
    
    .page-header h1 {
        font-size: 2.6rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .product-block { 
        display: flex !important;
        flex-direction: column !important; 
        gap: 20px !important; 
        margin-bottom: 60px !important;
        padding: 0 5% !important;
    }
    
    .product-block.reverse { 
        flex-direction: column-reverse !important; 
    }
    
    .product-gallery { 
        display: block !important;
        height: 350px !important; 
        width: 100% !important; 
        border-radius: 12px !important;
        position: relative !important;
        overflow: hidden !important;
        background-color: #f5f5f5 !important;
        flex: none !important;
    }
    
    .gallery-slider {
        height: 100% !important;
        width: 100% !important;
    }
    
    .gallery-slide {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Override the default absolute positioning for mobile if needed, 
       but keeping it absolute is fine if the parent has height. */
    
    .product-info {
        padding: 10px 0 !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .product-info h2 {
        font-size: 2rem !important;
        margin-bottom: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
    }
    
    .desc-content {
        font-size: 0.9rem !important;
        max-width: 100%;
    }
    
    .feature-bullets {
        align-items: center;
        text-align: left;
        display: inline-flex;
        margin: 10px 0;
    }
    
    .product-info .price {
        font-size: 1.5rem !important;
        margin-bottom: 20px !important;
        margin-top: 10px !important;
    }
    
    .swatches {
        justify-content: center !important;
        margin-bottom: 24px !important;
    }
    
    .selector-title {
        font-size: 0.85rem !important;
    }
    
    .btn-primary.add-to-cart {
        width: 100% !important;
        max-width: 300px;
    }
    
    .usage-manual { 
        padding: 30px 15px !important; 
        margin: 40px 5% !important;
    }
    
    .manual-header h2 {
        font-size: 1.6rem !important;
    }
    
    .manual-card {
        padding: 24px 15px !important;
    }
    
    .manual-grid {
        gap: 20px !important;
    }
}

@media screen and (max-width: 480px) {
    .product-gallery {
        height: 300px !important;
    }
    
    .product-info h2 {
        font-size: 1.8rem !important;
    }
}
