/* Layout Container */
.product-container {
    display: flex;
    gap: 30px;
    padding: 30px 15px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

/* Left Side - Gallery (Takes up more space) */
.product-gallery {
    flex: 3; /* Takes ~75% of the width */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-wrapper img {
    width: 100%;
    /* Use aspect-ratio to keep it perfectly proportional, or a fixed height like height: 500px; */
    aspect-ratio: 4 / 3;
    object-fit: contain; /* Ensures the image fills the box without stretching */
    border-radius: 8px;
    border: 1px solid var(--color-border);
    display: block; 
}

.thumbnails-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.thumbnail-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    box-sizing: border-box;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
    opacity: 0.7;
}

.thumbnail-img:hover {
    opacity: 1;
    border-color: var(--color-accent-hover);
}

.thumbnail-img.active {
    opacity: 1;
    border-color: var(--color-accent);
}




.product-info {
    flex: 1;
    background-color: var(--color-surface);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.product-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--color-text-white);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.info-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--color-surface-alt);
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li span {
    color: var(--color-text-muted);
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }
    .product-info {
        width: 100%;
        box-sizing: border-box;
    }
    
}
