/* ==================== PRODUCT DETAILS CSS ==================== */

.product-details-section {
    padding: 80px 0;
    overflow: hidden;
    /* Prevent spillover */
}

.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Image Left, Text Right (in RTL Image Right, Text Left visual? No, RTL means Col 1 is Right, Col 2 is Left) */
    /* "square layout on the left" - In RTL, 'Left' is the end. So Text (Start/Right) - Image (End/Left). */
    /* If user specifically said "images ... on the left", in RTL context that usually means visually Left (column 2). */
    gap: 60px;
    align-items: center;
}

/* --- Carousel Styles --- */
.product-carousel-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Square layout */
    background-color: var(--white);
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* direction: ltr; Force LTR for carousel mechanics often easier, but let's try RTL native */
}

.product-carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    color: var(--primary-blue);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.carousel-arrow:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.carousel-arrow.prev {
    left: 10px;
    /* In RTL, 'left' is physically left. */
}

.carousel-arrow.next {
    right: 10px;
    /* Visually right */
}

/* --- Text Content --- */
.product-info-wrapper {
    /* RTL default alignment */
}

.product-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.product-description {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Flavors List */
.flavors-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: 15px;
}

.flavors-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns for flavors */
    gap: 15px;
}

.flavor-item {
    position: relative;
    padding-right: 25px;
    /* Space for bullet in RTL */
    font-size: 15px;
    color: var(--text-light);
    font-weight: 600;
}

.flavor-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    /* Center with text approx */
    width: 10px;
    height: 10px;
    background-color: var(--primary-blue);
    border-radius: 50%;
}

/* --- Gallery Layout (Wrapper for Carousel + Thumbs) --- */
.gallery-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    /* Ensure it fills the grid cell */
}

/* --- Thumbnails --- */
.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping if many images */
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.thumbnail-item {
    width: 70px;
    /* Slightly larger thumbnail */
    height: 70px;
    border-radius: 12px;
    border: 2px solid #eee;
    cursor: pointer;
    object-fit: contain;
    /* Keep aspect ratio inside square */
    background-color: var(--white);
    padding: 5px;
    opacity: 0.7;
    transition: all 0.3s;
}

.thumbnail-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: #ccc;
}

.thumbnail-item.active {
    border-color: var(--primary-blue);
    opacity: 1;
    box-shadow: 0 4px 10px rgba(13, 91, 168, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .product-details-container {
        grid-template-columns: 1fr;
    }

    /* .product-carousel-wrapper was constrained here previously? 
       Now .gallery-wrapper might need constraint if it replaces direct usage? 
       Actually previously .product-carousel-wrapper { max-width: 500px; margin: 0 auto; }
       Let's apply that to gallery-wrapper instead or keep it.
    */
    .gallery-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .flavors-list {
        grid-template-columns: 1fr;
    }
}