/* ===================================
   PAGE HERO
=================================== */

.page-hero {
    background: var(--primary);
    padding: 0.7rem 0;
    color: #fff;
}

.page-hero h1 {
    font-size: 1.4rem;
    font-weight: 600;
}



/* LAYOUT */


.product-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    align-items: start;
    min-width: 0; /* FIX overflow */
}

.product-container {
    min-width: 0;  /* critical fix */
    width: 100%;
}


.product-content {
    min-width: 0;
}


/* SIDEBAR */
.product-sidebar h3 {
    margin-bottom: 1rem;
}

.product-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;

    max-height: 450px;
    overflow-y: auto;
    padding-right: 6px;
}

/* Scrollbar */
.product-list::-webkit-scrollbar {
    width: 0px;
}

.product-list {
    scroll-behavior: smooth;
}


.product-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.product-list li {
    padding: 0.8rem 1rem;
    background: var(--light);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

/* Hover animation */
.product-list li:hover {
    background: var(--accent);
    color: #fff;
    transform: translateX(6px);
}

.newlaunches{
    color: var(--accent);
}

/* .product-list li:hover {
    background: var(--accent);
    color: #fff;
    transform: translateX(6px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
} */

.product-list li.active {
    background: var(--accent);
    color: #fff;
}

/* RIGHT SIDE CONTAINER */
.product-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

 .product-container h2 {
    text-align: center;
    margin-bottom: 1rem;
 }

.product-container:hover {
    transform: translateY(-6px);
}

/* DETAIL GRID */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

/* IMAGE STYLE */
.product-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.03);
}

/* Fade Animation */
.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* PRODUCT TEXT IMPROVEMENT */
.product-detail {
    align-items: center; /* was center — this fixes vertical alignment */
}

.product-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.product-description p {
    margin-bottom: 14px;
}

.product-description h2 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #111;
}

/* BULLET STYLE */
.product-description ul,
.product-description ol {
    margin: 18px 0 22px 20px;
    padding-left: 10px;
}

.product-description li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Nested bullets */
.product-description ul ul {
    margin-top: 8px;
    margin-left: 18px;
    padding-left: 1rem;
    list-style-type: circle;
}

.product-description ol > li {
    margin-bottom: 22px;
}

.product-description strong {
    font-weight: 600;
    color: var(--primary);
}

/* .product-container {
    border-left: 4px solid var(--accent);
} */

/* ============================
   PRODUCT NEXT BUTTON
============================ */

.product-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 2.5rem;
}

.next-product-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.9rem 1.6rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

.next-product-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}


/* ============================
   MINIMAL PRODUCT CTA
============================ */

.product-cta-minimal {
    margin-top: 1.8rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #777;
}

.product-cta-minimal i {
    font-size: 0.85rem;
    color: var(--accent);
}

.product-cta-minimal a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-left: 4px;
}

.product-cta-minimal a:hover {
    text-decoration: underline;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@media (max-width: 768px) {

    
     .product-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-sidebar {
        width: 100%;
        overflow: hidden;
    }

    .product-list {
        display: flex;
        flex-direction: row;
        gap: 10px;

        overflow-x: auto;
        overflow-y: hidden;

        white-space: nowrap;
        padding: 10px 0;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .product-list::-webkit-scrollbar {
        display: none;
    }

    .product-list li {
        flex: 0 0 auto;      /* THIS is critical */
        white-space: nowrap;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
    }

    .product-container {
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }

    
    /* .product-container {
        width: 100%;
        padding: 1.2rem;
        border-radius: 12px;
    } */

    .product-container h2 {
        font-size: 1.6rem;
    }

    .product-container p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .product-container img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .product-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        overflow: hidden;
    }

    /* Remove sidebar spacing on mobile */
    .product-sidebar {
        width: 100%;
    }

    .product-sidebar h3 {
        margin-bottom: 0.5rem;
    }

    /* Right content below */
    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-container {
        padding: 1.2rem;
        width: 100%;
    }

    .product-image img {
        max-width: 100%;
        height: auto;
    }

    .product-description {
    font-size: 15px;
    line-height: 1.7;
}

.product-description ul,
.product-description ol {
    margin-left: 18px;
}

.product-navigation {
        justify-content: flex-end;
    }

    .next-product-btn {
        width: 60%;
        padding: 0.7rem 1.6rem;
        text-align: center;
    }


.product-cta-minimal {
    font-size: 0.8rem;
    line-height: 1.5;
}


}

@media (max-width: 400px) {

    .product-container {
        padding: 2rem;
    }

    .product-container h2 {
        font-size: 1.4rem;
    }

}



