/* Paste this into your theme's custom CSS or child theme style.css */

/* --- Container Layout --- */
.custom-product-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
    font-family: 'Open', sans-serif;
    margin-top: 115px;
    /* Ensure font is loaded */
}

/* --- Left Gallery --- */
.product-gallery {
    flex: 1;
    min-width: 300px;
}

.main-image-wrapper {
    position: relative;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    background: #fff;
}

.main-image-wrapper img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
}

.veg-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 11px;
    color: #2e7d32;
    text-align: center;
    font-weight: 600;
}

.veg-badge i {
    display: block;
    font-size: 22px;
    margin-bottom: 2px;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thumb {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.thumb:hover,
.thumb.active {
    border-color: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.thumb img {
    max-width: 100%;
    max-height: 100%;
}


/* --- Right Details --- */
.product-details {
    flex: 1.2;
}

.product-title {
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
    line-height: 1.1;
    margin-left: 0px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tag {
    background: #fff;
    border: 1px solid #ddd;
    padding: 6px 14px;
    border-radius: 4px;
    /* More rectangular than pill */
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.flavor-info {
    margin-bottom: 20px;
    font-size: 16px;
}

.flavor-info .value {
    color: #2CA8A2;
    /* Teal */
    font-weight: 600;
}

/* --- Variations Table --- */
.variations-table {
    margin-bottom: 30px;
    /* max-width: 600px; */
}

.variation-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    padding: 0 10px;
}

.variation-header .qty-label-header {
    flex: 1;
    text-align: center;
}

.variation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    gap: 10px;
}

.badge-style {
    border: 1px solid #2CA8A2;
    background: #fff;
    color: #2CA8A2;
    padding: 10px 0;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    min-width: 120px;
}

.variant-name.selected {
    /* If you want active state styling */
    background: #2CA8A2;
    color: #fff;
}

.price-style {
    /* Price badge look */
}

.price-style .amount {
    color: inherit;
}

/* Quantity */
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #bceae8;
    border-radius: 6px;
    height: 42px;
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: #fff;
    width: 35px;
    height: 100%;
    color: #2CA8A2;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #f5fbfc;
}

.qty-input {
    width: 50px;
    border: none;
    background: transparent;
    text-align: center;
    color: #2CA8A2;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    padding: 0;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Buy Button */
.buy-now-btn {
    display: block;
    width: 100%;
    background-color: #2CA8A2;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 30px;
}

.buy-now-btn:hover {
    background-color: #258f8a;
}

/* Other Flavors */
.flavor-label {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.flavor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.flavor-btn {
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.flavor-btn:hover {
    border-color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-product-container {
        flex-direction: column;
        gap: 30px;
    }

    .variation-row {
        /*flex-wrap: wrap;*/
        justify-content: center;
        gap: 5px;
    }

    .badge-style {
        width: 100%;
    }

    .qty-selector {
        width: 100%;
        justify-content: center;
    }
    .qty-btn{
        width: 20px;
        font-size: 15px;
    }
}