/* === product section === */
.product-section {
    display: flex;
    gap: 40px;
    margin: 50px auto 0;
    padding: 20px;
}

/* Left side thumbnails */
.product-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    width: 50%;
}

.thumbnails {
    grid-row: 1/4;
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
}

.thumbnails-img {
    border: 2px solid transparent;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #f0eeed;
}

.thumbnails img {
    width: 100%;
    cursor: pointer;
    object-fit: contain;
}

.thumbnails-img.active {
    border-color: #000;
}

.main-image {
    grid-row: 1/4;
    grid-column: 2/5;
    background-color: #f0eeed;
    border-radius: 3rem;
    overflow: hidden;
}

.main-image img {
    object-fit: contain;
    width: 100%;
}

@media (max-width: 992px) {
    .product-section {
        flex-direction: column;
    }
    
    .product-images {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
    
    .thumbnails {
        grid-column: 1/4;
        grid-row: 3/4;
        grid-template-rows: 1fr;
        grid-template-columns: repeat(3, 1fr);
    }
    
    .main-image {
        grid-row: 1/3;
        grid-column: 1/5;
        height: 30rem;
    }
}

/* Right side details */
.product-details {
    flex: 1;
}

.product-details h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.rating {
    color: gold;
    font-size: 16px;
    margin-bottom: 15px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
}

.price del {
    color: gray;
    margin-left: 10px;
}

.discount {
    color: red;
    margin-left: 10px;
    font-weight: bold;
}

.description {
    color: #555;
    margin: 15px 0 25px;
    line-height: 1.5;
}

/* Colors */
.colors {
    margin-bottom: 20px;
}

.color-option {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 2px solid transparent;
    display: inline-block;
    margin-right: 10px;
    cursor: pointer;
}

.color-option.active {
    border-color: #000;
}

/* Sizes */
.sizes {
    margin-bottom: 20px;
}

.size-option {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ccc;
    margin-right: 10px;
    cursor: pointer;
    background: #f5f5f5;
}

.size-option.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.size-option.disabled {
    background: #eee;
    color: #aaa;
    cursor: not-allowed;
}

/* Quantity & Add to Cart */
.cart-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 25px;
    overflow: hidden;
}

.quantity button {
    background: none;
    border: none;
    font-size: 20px;
    padding: 10px 15px;
    cursor: pointer;
}

.quantity span {
    padding: 0 15px;
    font-size: 18px;
}

.add-to-cart {
    background: #000;
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    border: none;
}