/* Universal Menu System - Public Styles */

.ums-menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ums-menu-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    border-bottom: 3px solid #333;
    padding-bottom: 20px;
}

/* Catégories */
.ums-category-section {
    margin-bottom: 50px;
}

.ums-category-title {
    font-size: 1.8em;
    color: #555;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e5e5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ums-category-subtitle {
    font-size: 1.1em;
    color: #777;
    font-style: italic;
    margin-top: -5px;
    margin-bottom: 25px;
}

/* Liste des produits */
.ums-products-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Produit individuel */
.ums-product-item {
    background: #fafafa;
    padding: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ums-product-item:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ums-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.ums-product-info {
    flex: 1;
}

.ums-product-name {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.ums-product-details {
    font-size: 0.9em;
    color: #666;
    font-weight: normal;
}

.ums-product-description {
    color: #666;
    margin: 8px 0;
    line-height: 1.5;
    font-size: 0.95em;
}

.ums-product-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #d35400;
    white-space: nowrap;
}

/* Variantes */
.ums-variants-list {
    margin-top: 15px;
    padding-left: 20px;
    border-left: 3px solid #e5e5e5;
}

.ums-variant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dotted #e5e5e5;
}

.ums-variant-item:last-child {
    border-bottom: none;
}

.ums-variant-name {
    font-size: 0.95em;
    color: #555;
}

.ums-variant-price {
    font-weight: 600;
    color: #d35400;
    font-size: 1.1em;
}

/* Message d'erreur */
.ums-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Design responsive */
@media (max-width: 768px) {
    .ums-menu-container {
        padding: 10px;
    }
    
    .ums-menu-title {
        font-size: 2em;
    }
    
    .ums-category-title {
        font-size: 1.4em;
    }
    
    .ums-product-header {
        flex-direction: column;
    }
    
    .ums-product-name {
        font-size: 1.1em;
        flex-direction: column;
        gap: 5px;
    }
    
    .ums-product-price {
        font-size: 1.2em;
        margin-top: 10px;
    }
    
    .ums-variants-list {
        margin-top: 10px;
        padding-left: 10px;
    }
}

/* Styles d'impression */
@media print {
    .ums-menu-container {
        max-width: 100%;
    }
    
    .ums-product-item {
        background: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .ums-product-item:hover {
        box-shadow: none;
    }
}

/* Thème sombre (optionnel) */
body.dark-theme .ums-menu-container {
    color: #e5e5e5;
}

body.dark-theme .ums-menu-title {
    color: #e5e5e5;
    border-bottom-color: #555;
}

body.dark-theme .ums-category-title {
    color: #d5d5d5;
    border-bottom-color: #444;
}

body.dark-theme .ums-product-item {
    background: #2a2a2a;
}

body.dark-theme .ums-product-item:hover {
    background: #333;
}

body.dark-theme .ums-product-name {
    color: #e5e5e5;
}

body.dark-theme .ums-product-details,
body.dark-theme .ums-product-description,
body.dark-theme .ums-variant-name {
    color: #aaa;
}