/* ============================================
   VARIABLES CSS BASE
   Define colores y propiedades que serán
   sobrescritas por cada tema
   ============================================ */

:root {
    /* Colores principales */
    --color-bg-body: #efdcc0;
    --color-bg-category: #fff4e3;
    --color-bg-card: #f8f9fa;
    --color-bg-header: transparent;
    
    /* Textos */
    --color-text-primary: #000;
    --color-text-secondary: #666;
    --color-text-description: #666;
    
    /* Bordes y líneas */
    --color-border-category: #000;
    --color-border-accent: #fca84b;
    
    /* Precios */
    --color-price: #fca84b;
    --color-price-old: #999;
    --color-price-promo: #28a745;
    
    /* Promociones */
    --color-promo-badge: #28a745;
    --color-promo-bg: linear-gradient(135deg, #f8f9fa 0%, #e8f5e9 100%);
    --color-featured-bg: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    
    /* Botones */
    --color-btn-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-btn-text: white;
    
    /* Tipografía */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 1em;
    
    /* Espaciado */
    --spacing-card: 20px;
    --spacing-section: 30px;
    
    /* Bordes redondeados */
    --border-radius-card: 10px;
    --border-radius-category: 15px;
    
    /* Sombras */
    --shadow-card: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-category: 0 10px 30px rgba(0,0,0,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--color-bg-body);
    min-height: 100vh;
    padding: 5px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: 40px;
    background: var(--color-bg-header);
}

.header h1 {
    font-size: 2em;
    margin-bottom: 5px;
}

.header p {
    font-size: 1em;
    opacity: 0.9;
    color: var(--color-text-secondary);
}

.category {
    background: var(--color-bg-category);
    border: 1px solid var(--color-border-category);
    border-radius: var(--border-radius-category);
    padding: var(--spacing-section);
    margin-bottom: var(--spacing-section);
    box-shadow: var(--shadow-category);
}

.category-title {
    font-size: 2em;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--color-border-accent);
    padding-bottom: 10px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--color-bg-card);
    border-radius: var(--border-radius-card);
    padding: var(--spacing-card);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.product-card.has-promotion {
    border-color: var(--color-price-promo);
    background: var(--color-promo-bg);
}

.product-name {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.product-description {
    color: var(--color-text-description);
    font-size: 0.9em;
    margin-bottom: 15px;
    line-height: 1.4;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.product-price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-price);
}

.product-price.old-price {
    text-decoration: line-through;
    color: var(--color-price-old);
    font-size: 1.2em;
}

.product-price.promo-price {
    color: var(--color-price-promo);
}

.promotion-badge {
    background: var(--color-promo-badge);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}

.promotion-description {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    margin-top: 8px;
}

.loading {
    text-align: center;
    color: var(--color-text-primary);
    font-size: 1.5em;
    padding: 50px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
}

.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: #667eea;
    padding: 15px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

.admin-link:hover {
    transform: scale(1.05);
}

/* Stock (cod. 81) */
.product-card.out-of-stock {
    opacity: 0.6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e0e0e0 100%);
    border: 2px solid #999;
}

.product-card.out-of-stock .product-name {
    color: #666;
}

.product-card.out-of-stock .product-description {
    color: #999;
}

.product-card.out-of-stock .product-price {
    color: #999;
}

.out-of-stock-badge {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
    margin-top: 12px;
}

/* Imágenes */
.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius-card);
    margin-bottom: 15px;
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    border-radius: var(--border-radius-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: #999;
    margin-bottom: 15px;
}

/* Promociones destacadas */
.featured-section {
    background: var(--color-featured-bg);
    border-radius: var(--border-radius-category);
    padding: var(--spacing-section);
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.featured-title {
    font-size: 2.5em;
    color: white;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.featured-product-card {
    background: white;
    border-radius: var(--border-radius-card);
    padding: var(--spacing-card);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.featured-product-card:hover {
    transform: translateY(-5px);
}

.featured-badge {
    background: #ff6b6b;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

/* Logo */
.header-logo {
    text-align: center;
    margin-bottom: 15px;
}

.header-logo img {
    max-width: min(400px, 80%);
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 15px;
}

/* Navegación de categorías */
.category-nav {
    background: white;
    border-radius: var(--border-radius-category);
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-nav-title {
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
}

.category-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.category-button {
    background: var(--color-btn-primary);
    color: var(--color-btn-text);
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.category-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.category-button:active {
    transform: translateY(0);
}

/* Botón volver arriba */
.back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: var(--color-btn-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.4em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.back-to-top img {
    width: 22px;
    height: 22px;
    max-width: 35px;
    max-height: 35px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.arrow-fallback {
    display: none;
    font-size: 1.2em;
    line-height: 1;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

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

    .category {
        padding: 20px;
    }

    .header-logo img {
        max-width: 200px;
        max-height: 100px;
    }

    .header h1 {
        font-size: 1.5em;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .category-nav {
        position: sticky;
        top: 20px;
        z-index: 100;
        padding: 15px 30px;
        margin-bottom: 30px;
    }

    .category-nav-title {
        display: none;
    }

    .category-buttons {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .category-button {
        flex: 0 1 auto;
        padding: 12px 24px;
        border-radius: 25px;
        background: #f0f0f0;
        color: #667eea;
        font-size: 0.95em;
        box-shadow: none;
    }

    .category-button:hover {
        background: var(--color-btn-primary);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

    .category-button.active {
        background: var(--color-btn-primary);
        color: white;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }

    .back-to-top {
        display: none;
    }
}

@media (min-width: 1200px) {
    .category-nav {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   SELECTOR DE IDIOMA
   ============================================ */
.lang-selector {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.lang-btn {
    /* reset browser default button styles */
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px solid #ccc;
    background: transparent;
    cursor: pointer;
    font-size: 0.88em;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    line-height: 1.4;
    color: inherit;
    white-space: nowrap;
}

.lang-btn.active {
    border-color: var(--accent-color, #dd903e);
    background: var(--accent-color, #dd903e);
    color: white;
    font-weight: bold;
}

.lang-btn:not(.active):hover {
    border-color: var(--accent-color, #dd903e);
    color: var(--accent-color, #dd903e);
}

/* ============================================
   NAVEGACIÓN (NAV + CATEGORÍAS)
   ============================================ */
.nav-container {
    position: relative;
    z-index: 100;
    background: var(--color-bg-nav, white);
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.categories-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
    width: 100%;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-size: 1.2em;
    flex-shrink: 0;
}

.btn-label {
    font-size: 0.85em;
    font-weight: bold;
    text-align: center;
}

/* ============================================
   SUBCATEGORÍAS
   ============================================ */
.subcategories-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.subcategory-button {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1.5px solid var(--accent-color, #dd903e);
    background: transparent;
    color: var(--accent-color, #dd903e);
    cursor: pointer;
    font-size: 0.9em;
    font-weight: bold;
    transition: all 0.2s ease;
}

/* categories-buttons: siempre ancho completo dentro del nav */
.categories-buttons {
    width: 100%;
}

.subcategory-button.active,
.subcategory-button:hover {
    background: var(--accent-color, #dd903e);
    color: white;
}

/* ============================================
   MINIFLYERS (MENÚS ESPECIALES EN HOMEPAGE)
   ============================================ */
.miniflyer-grid {
    width: 100%;
    margin: 10px 0;
}

.miniflyer-card {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.miniflyer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

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

/* ============================================
   TÍTULOS DE SECCIÓN (SEPARADORES)
   ============================================ */
.section-title-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0 20px;
}

.section-title-lines {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color, #dd903e), transparent);
    opacity: 0.5;
}

.section-title-text {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--accent-color, #dd903e);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.section-group-box {
    border: 1.5px solid var(--accent-color, #dd903e);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.5);
}

/* ============================================
   PRODUCTO — FILA DE NOMBRE E ICONOS
   ============================================ */
.product-name-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.product-icon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 8px 0;
}

/* ============================================
   CHEF SPECIAL
   ============================================ */
.chef-special-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid var(--accent-color, #dd903e);
    margin-bottom: 20px;
}

.chef-special-img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}

.chef-special-name {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
}

.chef-special-desc {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.chef-special-price {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--accent-color, #dd903e);
}

@media (max-width: 600px) {
    .chef-special-card {
        grid-template-columns: 1fr;
    }
    .chef-special-img {
        width: 100%;
        height: 200px;
        margin-bottom: 10px;
    }
}

/* ============================================
   FEATURED PRODUCTS (SECCION DESTACADOS)
   ============================================ */
.featured-products-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--accent-color, #dd903e);
    text-align: center;
}

.featured-product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.featured-product-desc {
    font-size: 0.9em;
    color: #666;
    line-height: 1.5;
    margin: 8px 0;
    text-align: center;
}

/* ============================================
   SPONSOR
   ============================================ */
.sponsor-container {
    text-align: center;
    padding: 10px 15px;
    margin: 4px 0 0;
    width: 100%;
}

.sponsor-logo {
    max-width: 40%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .sponsor-logo {
        max-width: 55%;
        max-height: 70px;
    }
}

/* ============================================
   BANNER OFFLINE
   ============================================ */
.offline-banner {
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.85em;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

/* ============================================
   MENÚ ESPECIAL — COMPONENTES DE PÁGINA
   ============================================ */
.special-menu-header {
    text-align: center;
    padding: 30px 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--color-border-light, #e0e0e0);
}

.special-menu-title {
    font-size: 2em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.menu-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.menu-custom-text-primary {
    font-size: 1.05em;
    color: #444;
    margin-top: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.menu-custom-text-secondary {
    font-size: 0.95em;
    color: #666;
    margin-top: 8px;
    line-height: 1.5;
}

.menu-schedule-info,
.menu-payment-info {
    font-size: 1em;
    color: #555;
    margin-top: 8px;
}

.prix-fixe-box {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color, #dd903e) 0%, #c47a2d 100%);
    color: white;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.3em;
    display: inline-block;
}

.prix-fixe-box small {
    display: block;
    font-size: 0.65em;
    margin-top: 5px;
    font-weight: normal;
    opacity: 0.9;
}

.additional-info-box {
    margin-top: 15px;
    padding: 12px 16px;
    background: #fff9e6;
    border-radius: 8px;
    font-size: 0.95em;
    border-left: 3px solid var(--accent-color, #dd903e);
}

.featured-box {
    margin: 0 auto 30px;
    max-width: 600px;
    padding: 22px 28px;
    color: white;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

.featured-box-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.featured-box-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.featured-box-text {
    font-size: 1em;
    white-space: pre-line;
    opacity: 0.95;
    line-height: 1.6;
}

.subcategory-section {
    margin-bottom: 30px;
}

.subcategory-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border-light, #e0e0e0);
    color: var(--text-color, #333);
}

.category-description {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.empty-menu {
    text-align: center;
    padding: 50px;
    color: #999;
}

.back-btn-container {
    text-align: center;
    margin: 40px 0;
}

/* ============================================
   ICONOS DE PRODUCTO
   ============================================ */
.product-icon-emoji {
    font-size: 1.1em;
    display: inline-flex;
    align-items: center;
}

.product-icon-fa {
    font-size: 1em;
    margin-left: 3px;
}

.badge-nuevo {
    padding: 2px 8px;
    background: #2196F3;
    color: white;
    border-radius: 10px;
    font-size: 0.75em;
    font-weight: bold;
}

.badge-sin-tacc {
    padding: 2px 6px;
    background: #4caf50;
    color: white;
    border-radius: 10px;
    font-size: 0.7em;
    font-weight: bold;
}

.product-icon-custom {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-left: 2px;
}

/* ============================================
   BOTONES DE CATEGORÍA — ICONOS PERSONALIZADOS
   ============================================ */
.btn-icon img {
    width: 30px;
    height: 30px;
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

.custom-text-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ============================================
   IMAGEN FEATURED DE CATEGORÍA
   ============================================ */
.category-featured-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 12px;
   
}
.super-featured-card {
    border: 1.5px solid #e0d5c5;
    border-radius: 12px;
    background: #fdfaf7;
    overflow: hidden;
    margin: 20px auto;
}
.super-featured-card-especial {
    border: 1.5px solid #e0d5c5;
    border-radius: 12px;
    background: #fdfaf7;
    overflow: hidden;
    margin: 20px 9px;
    align-self: center;
    }

.super-featured-img {
    width: 100%;
    max-width: 500px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.super-featured-info {
    padding: 12px 14px;
    max-width: 500px;
}

.super-featured-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.super-featured-name {
    font-weight: bold;
    font-size: 1em;
}

.super-featured-desc {
    font-size: 0.95em;
    color: #555;
    line-height: 1.5;
}
/* ============================================
   GENERIC PROMO CARD
   ============================================ */
.generic-promo-in-category {
    border: 2px solid var(--color-price-promo, #28a745);
}

.promo-description {
    font-size: 1em;
    margin: 15px 0;
    line-height: 1.5;
}

.promo-description.featured {
    font-size: 1.1em;
}

.promo-price-wrapper {
    text-align: center;
    margin-top: 15px;
}

.promo-price-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.promo-price-value {
    font-weight: bold;
    color: var(--color-price, #dd903e);
}

.promo-price-value.in-category { font-size: 1.5em; }
.promo-price-value.featured     { font-size: 1.8em; }

.promo-schedule-box {
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9em;
    text-align: center;
    background: rgba(255,255,255,0.5);
}

.promo-schedule-box.in-category {
    background: #e8f5e9;
}

/* ============================================
   FEATURED PRODUCT CARD (en sección DESTACADAS)
   ============================================ */
.featured-promo-badge {
    background: var(--accent-color, #dd903e);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95em;
    margin-bottom: 15px;
    text-align: center;
}

.featured-product-name-large {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--color-text-primary, #333);
    text-align: center;
}

.featured-product-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    text-align: center;
}

.featured-price-container {
    margin-top: auto;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.featured-price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 1em;
}

.featured-price-new {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--accent-color, #dd903e);
}

.featured-price-original {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--accent-color, #dd903e);
}

.featured-promo-desc {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    padding: 8px 12px;
    background: rgba(221,144,62,0.08);
    border-radius: 6px;
    margin-top: 8px;
}

/* ============================================
   FLYERS SECTION
   ============================================ */
#flyers-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.flyers-section-title {
    text-align: center;
    margin-bottom: 30px;
}

.flyer-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: default;
    max-width: 100%;
}

.flyer-item.clickable {
    cursor: pointer;
}

.flyer-item.clickable:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.flyer-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   PRODUCT GROUPS (subcategorías inline)
   ============================================ */
.product-group-icons {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-top: 4px;
    flex-wrap: wrap;
}


/* ============================================
   SCROLL-MARGIN — pequeño respiro visual al anclar
   ============================================ */
.category[id] {
    scroll-margin-top: 20px;
}

/* ============================================
   PRECIO SIN IVA
   ============================================ */
.price-without-vat {
    font-size: 0.82em;
    color: #888;
    margin-top: 3px;
    line-height: 1.3;
}
@keyframes fadeInOverlay { from { opacity:0; } to { opacity:1; } }