/*
* NEW PRODUCT PAGE STYLES
* Based on the 'STEPR' layout but re-skinned 
* for the 'Big Bright I' dark theme.
*/

/* --- 1. HEADER & MAIN CONTAINER SPACING --- */

/* Uses variables from your main style.css */
body {
    background-color: var(--dark-bg);
    color: var(--light-text);
}

#product-main {
    /* UPDATED: Increased padding-top from 100px to 120px */
    padding-top: 120px; 
    padding-bottom: 60px;
    min-height: 100vh;
}

/* --- 2. CORE DESKTOP LAYOUT (2 Columns) --- */
.product-wrapper {
    display: grid;
    /* --- UPDATED: Changed from 3fr 2fr to 2fr 1fr to make image column larger --- */
    grid-template-columns: 2fr 1fr; 
    gap: 50px; 
    align-items: start; 
}

/* A. Product Gallery (Left Column) */
.product-gallery {
    align-self: start; 
    width: 100%; 
    border-radius: 12px;
    overflow: hidden;
}

.main-product-image {
    width: 100%;
    height: auto; /* This respects the 3:2 aspect ratio */
    display: block;
    border-radius: 12px; 
    background-color: var(--medium-bg);
}

.thumbnail-selector {
    margin-top: 25px;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}
.thumbnail {
    cursor: pointer;
    border: 2px solid transparent; 
    transition: border-color 0.2s, opacity 0.2s, transform 0.1s;
    border-radius: 10px; 
    opacity: 0.7;
    width: 100px; 
    /* UPDATED: Changed height to respect 3:2 ratio */
    height: auto;
    aspect-ratio: 3 / 2; 
    object-fit: cover;
    background-color: var(--medium-bg);
}
.thumbnail:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.thumbnail.active {
    border-color: var(--primary-color); 
    opacity: 1;
    transform: translateY(0);
}


/* --- B. DETAILS SECTION (Title/Price) --- */
.product-info-header {
    margin-bottom: 25px; 
}

.product-title {
    font-size: 52px; 
    font-weight: 300; 
    margin-bottom: 10px; 
    line-height: 1.1; 
    color: var(--light-text);
}

.product-price {
    font-size: 28px; 
    font-weight: 400; 
    color: var(--primary-color); 
    margin-top: 0;
}


/* --- PURCHASE OPTIONS (Controls) --- */
.purchase-options {
    border-top: 1px solid #333;
    padding-top: 20px; 
    margin-bottom: 40px; 
    display: grid; 
    grid-template-columns: 1fr; /* Simplified to one column */
    gap: 20px; 
}

/* Labels */
.quantity-selector label {
    font-size: 14px; 
    font-weight: 700;
    color: var(--light-text); 
    padding: 0 0 5px 0; 
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block; 
}

/* Quantity Controls */
.input-group {
    height: 48px; 
    border-radius: 10px; 
    font-size: 16px;
    font-weight: 500; 
    border: 1px solid #555; 
    display: flex; 
    align-items: stretch; 
    justify-content: space-between;
    overflow: hidden;
    background-color: var(--medium-bg);
}
.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.qty-btn {
    padding: 0 18px; 
    height: 100%;
    font-size: 20px; 
    color: var(--light-text);
    background-color: var(--medium-bg); 
    border: none;
    border-left: 1px solid #555; 
    border-right: 1px solid #555;
    cursor: pointer;
    transition: background-color 0.1s; 
}
.qty-btn:first-child { 
    border-right: none;
    border-left: none;
}
.qty-btn:last-child { 
    border-left: none;
}
.qty-btn:hover:enabled {
    background-color: #444; 
}
.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.input-group input {
    flex-grow: 1;
    height: 100%;
    border: none;
    padding: 0 5px;
    text-align: center;
    font-weight: 500;
    color: var(--light-text);
    background-color: transparent;
    pointer-events: none;
}

/* CTA BUTTON (inherits from .btn in main style.css) */
.buy-button {
    height: 54px; 
    font-size: 17px; 
    letter-spacing: 2px; 
    width: 100%; 
}


/* --- Accordion Styles --- */
.accordion-separator {
    width: 100%;
    height: 1px;
    background-color: #333; 
    margin-bottom: 20px; 
}

.product-accordion {
    padding-top: 0; 
}

.accordion-item {
    border-bottom: 1px solid #333; 
}

.accordion-header {
    padding: 28px 0; 
    font-size: 19px; 
    font-weight: 500; 
    letter-spacing: 0.5px;
    width: 100%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    text-align: left;
    color: var(--light-text);
}

.accordion-icon {
    transition: transform 0.3s ease-out; 
    color: var(--primary-color);
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg); 
}

.accordion-content {
    max-height: 0; 
    overflow: hidden;
    transition: max-height 0.4s ease-in-out; 
}

.accordion-content-inner {
    padding: 0 0 30px 0; 
    font-size: 15px; 
    line-height: 1.7; 
    color: #ccc; 
}
.accordion-content-inner p {
    margin-bottom: 1rem;
}


/* --- MOBILE RESPONSIVENESS (BELOW 992px) --- */
@media (max-width: 992px) {
    
    #product-main {
        /* UPDATED: Increased mobile padding-top */
        padding-top: 100px; 
        padding-bottom: 30px; 
    }
    
    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 20px; 
    }

    .thumbnail-selector {
        justify-content: center; 
    }
    
    .product-title {
        font-size: 36px;
        text-align: center;
    }
    .product-price {
        font-size: 24px;
        text-align: center;
    }

    .accordion-header {
        padding: 20px 0; 
        font-size: 17px; 
    }
}