/* --- Product Page Specific Styles --- */
.product-page-body {
    overflow: hidden; /* Prevent full page scroll, handle scroll in panes */
    background-color: var(--clr-bg);
}

.product-nav {
    border-bottom: none;
    box-shadow: none;
    position: absolute;
}

.product-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- Left Pane (Sticky Details) --- */
.product-details-pane {
    width: 35%;
    height: 100%;
    display: flex;
    padding: 6rem 4rem 4rem 4rem;
    background-color: #FFF;
    z-index: 10;
    box-shadow: 10px 0 30px rgba(0,0,0,0.03);
    overflow-y: auto;
}

.details-content {
    max-width: 400px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #444;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.size-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.size-selector span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #EAEAEA;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.size-selector span:hover {
    border-color: #000;
}

.size-selector span.selected {
    background-color: #000;
    color: #FFF;
    border-color: #000;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
}

/* --- Right Pane (Creative Gallery) --- */
.creative-gallery-pane {
    width: 65%;
    height: 100%;
    position: relative;
    background-color: var(--clr-product-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.huge-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40vw; /* Massive text */
    color: rgba(255,255,255,0.7);
    z-index: 1;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.gallery-main-view {
    width: 80%;
    height: 80%;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-view img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 30px 40px rgba(0,0,0,0.15));
    transition: opacity 0.4s ease, transform 0.1s ease-out; /* Transform handles JS parallax */
}

.gallery-main-view img.fade-out {
    opacity: 0;
}

.gallery-thumbnails {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 1rem;
    z-index: 3;
    max-width: 90%;
    overflow-x: auto;
    padding-top: 15px;
    padding-bottom: 5px;
}

.thumb-btn {
    width: 70px;
    height: 90px;
    background-color: #FFF;
    border: 1px solid transparent;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast);
    padding: 5px;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb-btn:hover {
    border-color: #CCC;
    transform: translateY(-5px);
}

.thumb-btn.active {
    border-color: #000;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .product-page-body {
        overflow: auto;
    }
    .product-layout {
        flex-direction: column;
        height: auto;
    }
    .product-details-pane {
        width: 100%;
        order: 2;
        padding: 4rem 2rem;
    }
    .creative-gallery-pane {
        width: 100%;
        height: 70vh;
        order: 1;
        margin-top: 4rem; /* For navbar */
    }
    .huge-bg-text {
        font-size: 60vw;
    }
    .gallery-thumbnails {
        bottom: 1rem;
        right: 1rem;
    }
}

/* --- Accordion --- */
.product-accordion {
    margin-top: 3rem;
    border-top: 1px solid #EAEAEA;
    width: 100%;
}

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

.accordion-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.25rem 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}

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

.accordion-content p, .accordion-content ul {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    padding-bottom: 1.25rem;
}

.accordion-content ul {
    padding-left: 1.25rem;
    margin: 0;
}
