.product-container {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden; /* Ensures rounded corners */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Image Gallery Section */
.product-image-gallery {
    flex: 1; /* Takes up available space */
    min-width: 350px; /* Minimum width before wrapping */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.main-image {
    width: 100%;
    max-width: 450px; /* Adjust as needed */
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.thumbnail {
    width: 80px; /* Size of thumbnails */
    height: 80px;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    object-fit: cover; /* Ensures image covers the box */
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--colors);
    box-shadow: 0 0 5px rgba(255, 87, 34, 0.5);
}

/* Product Details Section */
.product-details {
    flex: 1; /* Takes up available space */
    min-width: 400px; /* Minimum width before wrapping */
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-category {
    background-color: var(--colors);
    color: #fff;
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 0.8em;
    font-weight: 500;
    width: fit-content;
    text-transform: uppercase;
}

.product-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.product-price {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--colors);
    line-height: 2rem;
}

.reseller-price {
    font-size: 1.4em;
    font-weight: 500;
    color: #1c1b1b;
    margin-top: 5px;
    line-height: 1.5rem;
}

/* Option Sections (Warna, Kuantitas) */
.product-option-section {
    margin-top: 15px;
}

.option-label {
    font-size: 0.95em;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.varian-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.varian-item {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.varian-item:hover {
    border-color: #ff5722;
    box-shadow: 0 0 5px rgba(255, 87, 34, 0.3);
}

.varian-item.active {
    border-color: #ff5722;
    background-color: #ffece6; /* Light background for active state */
    box-shadow: 0 0 5px rgba(255, 87, 34, 0.5);
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Color specific styles - add more as needed */
.color-box.lilac { background-color: #D8BFD8; }
.color-box.blue { background-color: #ADD8E6; }
.color-box.black { background-color: #333; }
.color-box.pink { background-color: #F08080; }


.varian-name {
    font-size: 0.9em;
    color: #444;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: fit-content;
}

.quantity-control button {
    background-color: #f0f0f0;
    border: none;
    padding: 8px 12px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 0; /* Remove default button border-radius */
}

.quantity-control button:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.quantity-control button:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.quantity-control button:hover {
    background-color: #e0e0e0;
}

.quantity-control input[type="number"] {
    width: 50px;
    text-align: center;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 8px 0;
    -moz-appearance: textfield; /* Hide arrows for Firefox */
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.add-to-cart-btn,
.buy-now-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn {
    background-color: #fff;
    color: var(--colors);
    border: 1px solid var(--colors);
}

.add-to-cart-btn:hover {
    background-color: #ffece6;
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.2);
}

.buy-now-btn {
    background-color: var(--colors);
    color: #fff;
}

.buy-now-btn:hover {
    background-color: darken(var(--colors), 5%);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        align-items: center;
    }

    .product-image-gallery,
    .product-details {
        min-width: unset; /* Remove min-width for smaller screens */
        width: 100%;
        padding: 15px;
    }

    .main-image {
        max-width: 100%; /* Ensure image scales down */
    }

    .product-title {
        font-size: 1.5em;
    }

    .product-price {
        font-size: 1.8em;
    }

    .product-actions {
        flex-direction: column;
        gap: 10px;
    }

    .add-to-cart-btn,
    .buy-now-btn {
        width: 100%;
    }
}