/**
 * Menu Configurator Styles
 * Styles pour le configurateur de menus
 */

/* Cacher le bouton panier standard UNIQUEMENT sur les produits qui ont le configurateur */
.menu-configurator ~ .product-add-to-cart.js-product-add-to-cart,
body:has(.menu-configurator) .product-add-to-cart.js-product-add-to-cart {
    display: none !important;
}

.menu-configurator {
    margin: 30px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-title {
    font-family: 'TT Fors Trial Variable', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

/* Catégorie de choix */
.menu-category {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.menu-category:last-of-type {
    border-bottom: none;
}

.category-title {
    font-family: 'TT Fors Trial Variable', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-badge {
    font-size: 14px;
}

.badge-free {
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.badge-paid {
    background: #FF3200;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

/* Style CARD - Grille avec images */
.menu-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.menu-product-card {
    position: relative;
    display: block;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.menu-product-card:hover {
    border-color: #FF3200;
    box-shadow: 0 4px 12px rgba(255, 50, 0, 0.2);
    transform: translateY(-3px);
}

.menu-product-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.menu-product-card input[type="radio"]:checked + .product-card-content {
    border-color: #FF3200;
    background: #fff5f3;
}

.menu-product-card input[type="radio"]:checked + .product-card-content::before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #FF3200;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 10;
}

.product-card-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-no-image {
    color: #ccc;
    font-size: 48px;
}

.product-no-image i {
    font-size: 48px;
}

.product-info {
    padding: 15px;
    text-align: center;
}

.product-name {
    font-family: 'TT Fors Trial Variable', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-supplement {
    display: block;
    font-size: 14px;
    color: #FF3200;
    font-weight: 700;
    margin-top: 4px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #FF3200;
    margin: 0;
}

.product-price-free {
    color: #28a745;
}

/* Style RADIO - Boutons radio simples */
.menu-products-radio {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-radio-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.menu-radio-option:hover {
    border-color: #FF3200;
    background: #fff5f3;
}

.menu-radio-option input[type="radio"] {
    margin-right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.menu-radio-option input[type="radio"]:checked ~ .radio-content {
    color: #FF3200;
    font-weight: 600;
}

.menu-radio-option:has(input[type="radio"]:checked) {
    border-color: #FF3200;
    background: #fff5f3;
}

.radio-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.radio-name {
    font-family: 'TT Fors Trial Variable', sans-serif;
    font-size: 16px;
}

.radio-price {
    font-size: 16px;
    font-weight: 700;
    color: #FF3200;
}

.radio-price-free {
    color: #28a745;
}

/* Style SELECT - Liste déroulante */
.menu-products-select {
    margin-top: 10px;
}

.menu-select {
    width: 100%;
    padding: 12px 15px;
    font-family: 'TT Fors Trial Variable', sans-serif;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-select:hover {
    border-color: #FF3200;
}

.menu-select:focus {
    outline: none;
    border-color: #FF3200;
    box-shadow: 0 0 0 3px rgba(255, 50, 0, 0.1);
}

/* Récapitulatif et total */
.menu-summary {
    margin-top: 40px;
    padding: 25px;
    background: #f8f8f8;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-total {
    display: flex;
    align-items: center;
    gap: 15px;
}

.total-label {
    font-family: 'TT Fors Trial Variable', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.total-price {
    font-family: 'TT Fors Trial Variable', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #FF3200;
}

.add-to-cart-btn {
    background: #FF3200;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-family: 'TT Fors Trial Variable', sans-serif;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.add-to-cart-btn:hover {
    background: #e02d00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 50, 0, 0.3);
}

.add-to-cart-btn i {
    font-size: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-configurator {
        padding: 20px;
    }

    .menu-title {
        font-size: 24px;
    }

    .menu-products-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .menu-summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .menu-total {
        flex-direction: column;
        gap: 5px;
    }

    .add-to-cart-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .menu-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .menu-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
