/* ========================================
   TEMA ITALICA AVENTURA
   Version: 2026.08.04-6
   Base: theme-italica.css (cargar en paralelo via #theme-base-stylesheet — sin @import)
   Variante: más naranja en títulos y destacados (carta impresa FOOD 2026).
   Tipografía: Jost Bold solo en .category-title (alternativa OFL a Futura);
               resto Nexa del tema base. Sin fondo verde en títulos. Botonera: sin cambios.
   ======================================== */

@font-face {
    font-family: 'Jost';
    src: url('../fonts/Jost-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Naranjas de la carta impresa / marca Italica */
    --aventura-orange: #ed7a00;
    --aventura-orange-bright: #f5a100;
    --aventura-orange-deep: #d96a00;
    --accent-color: #ed7a00;
    --titulos-color: #ed7a00;
}

/* Títulos de categoría PRINCIPALES: Jost Bold + naranja, sin caja verde.
   Nota: menu.jsx anida <h2.category-title> dentro de otro — solo el exterior lleva líneas. */
body.theme-italica-aventura .category-title,
.theme-italica-aventura .category-title {
    all: unset !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 30px 0 20px !important;
    padding: 0 8px !important;
    font-family: 'Jost', 'Nexa', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.85em !important;
    line-height: 1.2 !important;
    color: var(--aventura-orange) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    white-space: normal !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Una sola línea continua a cada lado (sólida, sin difuminado) */
body.theme-italica-aventura .category > .category-title::before,
body.theme-italica-aventura .category > .category-title::after,
.theme-italica-aventura .category > .category-title::before,
.theme-italica-aventura .category > .category-title::after {
    all: unset !important;
    content: '' !important;
    display: block !important;
    flex: 1 1 0 !important;
    height: 2px !important;
    min-width: 24px !important;
    max-width: none !important;
    align-self: center !important;
    background: var(--aventura-orange) !important;
    background-image: none !important;
    opacity: 1 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* El h2 anidado no genera otra pareja de líneas */
body.theme-italica-aventura .category-title > .category-title,
.theme-italica-aventura .category-title > .category-title {
    all: unset !important;
    display: contents !important;
}

body.theme-italica-aventura .category-title .category-title::before,
body.theme-italica-aventura .category-title .category-title::after,
.theme-italica-aventura .category-title .category-title::before,
.theme-italica-aventura .category-title .category-title::after {
    content: none !important;
    display: none !important;
}

body.theme-italica-aventura .subcategory-title,
.theme-italica-aventura .subcategory-title {
    font-family: 'Nexa', Arial, sans-serif !important;
    font-weight: 900 !important;
    color: var(--aventura-orange) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-bottom-color: var(--aventura-orange) !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.theme-italica-aventura .section-title-divider,
.theme-italica-aventura .section-title-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.theme-italica-aventura .section-title-text,
.theme-italica-aventura .section-title-text {
    font-family: 'Nexa', Arial, sans-serif !important;
    font-weight: 900 !important;
    color: var(--aventura-orange) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.theme-italica-aventura .section-title-description,
.theme-italica-aventura .section-title-description {
    text-align: center !important;
}

body.theme-italica-aventura .section-title-lines,
.theme-italica-aventura .section-title-lines {
    border-color: var(--aventura-orange) !important;
    background: var(--aventura-orange) !important;
    background-image: none !important;
    opacity: 1 !important;
}

body.theme-italica-aventura .featured-title,
body.theme-italica-aventura .featured-products-title,
body.theme-italica-aventura .flyers-section-title,
body.theme-italica-aventura .presale-title,
.theme-italica-aventura .featured-title,
.theme-italica-aventura .featured-products-title,
.theme-italica-aventura .flyers-section-title,
.theme-italica-aventura .presale-title {
    color: var(--aventura-orange) !important;
    font-family: 'Nexa', Arial, sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Destacados: borde naranja más presente (estilo cajas de la carta) */
body.theme-italica-aventura .featured-products-section,
.theme-italica-aventura .featured-products-section {
    background: rgba(255, 248, 240, 0.9) !important;
    border: 2px solid var(--aventura-orange) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.theme-italica-aventura .featured-product-card,
.theme-italica-aventura .featured-product-card {
    border: 2px solid var(--aventura-orange) !important;
    border-radius: 12px !important;
    border-left: 2px solid var(--aventura-orange) !important;
}

body.theme-italica-aventura .featured-badge,
body.theme-italica-aventura .featured-promo-badge,
.theme-italica-aventura .featured-badge,
.theme-italica-aventura .featured-promo-badge {
    background: var(--aventura-orange) !important;
    color: #fff !important;
}

body.theme-italica-aventura .section-group-box,
.theme-italica-aventura .section-group-box {
    border: 2px solid var(--aventura-orange) !important;
    border-radius: 12px !important;
}

body.theme-italica-aventura .super-featured-card,
.theme-italica-aventura .super-featured-card {
    border-color: var(--aventura-orange) !important;
}

/* —— Superdestacadas: nombre + precio mismo verde; texto sin rebalse en desktop —— */
body.theme-italica-aventura .super-featured-name,
body.theme-italica-aventura .super-featured-name-row .super-featured-name,
.theme-italica-aventura .super-featured-name,
.theme-italica-aventura .super-featured-name-row .super-featured-name {
    color: var(--verde) !important;
}

body.theme-italica-aventura .super-featured-card,
body.theme-italica-aventura .super-featured-card-especial,
body.theme-italica-aventura .products-grid .super-featured-card--in-grid,
.theme-italica-aventura .super-featured-card,
.theme-italica-aventura .super-featured-card-especial,
.theme-italica-aventura .products-grid .super-featured-card--in-grid {
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body.theme-italica-aventura .super-featured-card-body,
body.theme-italica-aventura .products-grid .super-featured-card--in-grid .super-featured-card-body,
.theme-italica-aventura .super-featured-card-body {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body.theme-italica-aventura .super-featured-info,
body.theme-italica-aventura .products-grid .super-featured-card--in-grid .super-featured-info,
.theme-italica-aventura .super-featured-info {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
}

body.theme-italica-aventura .super-featured-desc,
body.theme-italica-aventura .super-featured-name-row,
.theme-italica-aventura .super-featured-desc,
.theme-italica-aventura .super-featured-name-row {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* Desktop: superdestacada compacta (móvil ya se ve bien) */
@media (min-width: 769px) {
    body.theme-italica-aventura .menu-content .super-featured-pinned-section .super-featured-card,
    body.theme-italica-aventura .menu-content .super-featured-pinned-section .super-featured-card-especial,
    body.theme-italica-aventura .super-featured-pinned-section .super-featured-card,
    body.theme-italica-aventura .super-featured-pinned-section .super-featured-card-especial,
    body.theme-italica-aventura .menu-content .products-grid .super-featured-card--in-grid,
    body.theme-italica-aventura .menu-content .products-grid .super-featured-card-especial.super-featured-card--in-grid,
    body.theme-italica-aventura .category-products-column .products-grid .super-featured-card--in-grid,
    body.theme-italica-aventura .products-grid .super-featured-card--in-grid,
    .theme-italica-aventura .super-featured-pinned-section .super-featured-card,
    .theme-italica-aventura .products-grid .super-featured-card--in-grid {
        width: 100% !important;
        max-width: min(340px, 36vw) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.theme-italica-aventura .super-featured-pinned-section .super-featured-card-body,
    body.theme-italica-aventura .products-grid .super-featured-card--in-grid .super-featured-card-body,
    .theme-italica-aventura .super-featured-pinned-section .super-featured-card-body {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 12px !important;
        flex-direction: column !important;
    }

    body.theme-italica-aventura .products-grid .super-featured-card--in-grid .super-featured-img,
    body.theme-italica-aventura .super-featured-pinned-section .super-featured-img,
    .theme-italica-aventura .products-grid .super-featured-card--in-grid .super-featured-img {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    body.theme-italica-aventura .products-grid .super-featured-card--in-grid .super-featured-info,
    .theme-italica-aventura .products-grid .super-featured-card--in-grid .super-featured-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Precios y acentos secundarios en naranja (base; se pisa abajo donde haga falta) */
body.theme-italica-aventura .product-price,
body.theme-italica-aventura .featured-product-price,
body.theme-italica-aventura .promo-price,
body.theme-italica-aventura .multi-price-value,
.theme-italica-aventura .product-price,
.theme-italica-aventura .featured-product-price,
.theme-italica-aventura .promo-price,
.theme-italica-aventura .multi-price-value {
    color: var(--aventura-orange-deep) !important;
}

/* Tarjetas de producto REGULARES: nombre + precio negro; descripción gris oscuro */
body.theme-italica-aventura .product-card .product-name,
body.theme-italica-aventura .product-card a.product-name,
body.theme-italica-aventura .product-card .product-price,
body.theme-italica-aventura .product-card .multi-price-value,
body.theme-italica-aventura .product-card .multi-price-label,
body.theme-italica-aventura .product-name-row .product-price,
.theme-italica-aventura .product-card .product-name,
.theme-italica-aventura .product-card .product-price,
.theme-italica-aventura .product-card .multi-price-value {
    color: #111 !important;
}

body.theme-italica-aventura .product-card .product-description,
body.theme-italica-aventura .product-card .product-desc,
.theme-italica-aventura .product-card .product-description {
    color: #444 !important;
}

/* Superdestacadas: nombre + precio mismo verde */
body.theme-italica-aventura .super-featured-name,
body.theme-italica-aventura .super-featured-name-row .super-featured-name,
body.theme-italica-aventura .super-featured-name-row .price-container .product-price,
body.theme-italica-aventura .super-featured-name-row .price-container .multi-price-value,
body.theme-italica-aventura .super-featured-name-row .price-container span,
body.theme-italica-aventura .super-featured-info > .price-container .product-price,
.theme-italica-aventura .super-featured-name,
.theme-italica-aventura .super-featured-name-row .price-container .product-price,
.theme-italica-aventura .super-featured-name-row .price-container .multi-price-value {
    color: var(--verde) !important;
}

/* —— Especiales del chef: fondo suave; nombre/precio naranja; mismo tamaño (también multiprecio) —— */
body.theme-italica-aventura .product-card.chef-special-card,
body.theme-italica-aventura .chef-special-card,
.theme-italica-aventura .product-card.chef-special-card,
.theme-italica-aventura .chef-special-card {
    background: rgba(237, 122, 0, 0.09) !important;
    border: 1.5px solid rgba(237, 122, 0, 0.35) !important;
    border-radius: 8px !important;
}

body.theme-italica-aventura .product-card.chef-special-card .product-name,
body.theme-italica-aventura .product-card.chef-special-card a.product-name,
body.theme-italica-aventura .chef-special-name,
.theme-italica-aventura .product-card.chef-special-card .product-name,
.theme-italica-aventura .chef-special-name {
    font-family: 'Nexa', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1em !important;
    line-height: 1.25 !important;
    color: var(--aventura-orange) !important;
}

body.theme-italica-aventura .product-card.chef-special-card .price-container,
body.theme-italica-aventura .product-card.chef-special-card .product-price,
body.theme-italica-aventura .product-card.chef-special-card .multi-price,
body.theme-italica-aventura .product-card.chef-special-card .multi-price-value,
body.theme-italica-aventura .product-card.chef-special-card .multi-price-label,
body.theme-italica-aventura .chef-special-price,
.theme-italica-aventura .product-card.chef-special-card .price-container,
.theme-italica-aventura .product-card.chef-special-card .product-price,
.theme-italica-aventura .product-card.chef-special-card .multi-price-value,
.theme-italica-aventura .product-card.chef-special-card .multi-price-label,
.theme-italica-aventura .chef-special-price {
    font-family: 'Nexa', Arial, sans-serif !important;
    font-weight: 700 !important;
    font-size: 1em !important;
    line-height: 1.25 !important;
    color: var(--aventura-orange) !important;
}

/* Header: nombre del restaurante — solo tipografía naranja, sin caja */
body.theme-italica-aventura .menu-header h1,
.theme-italica-aventura .menu-header h1 {
    color: var(--aventura-orange) !important;
    background: transparent !important;
    background-color: transparent !important;
    font-family: 'Nexa', Arial, sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 0 !important;
}

body.theme-italica-aventura .menu-header .subtitle,
body.theme-italica-aventura .menu-header h2,
.theme-italica-aventura .menu-header .subtitle {
    color: var(--aventura-orange) !important;
}

@media (max-width: 768px) {
    body.theme-italica-aventura .category-title,
    .theme-italica-aventura .category-title {
        font-size: 2.45em !important; /* ~70% más que 1.45em */
        letter-spacing: 0.03em !important;
        gap: 10px !important;
        background: transparent !important;
        padding: 0 6px !important;
    }

    /* Superdestacadas móvil: no cortar la descripción a 2 renglones */
    body.theme-italica-aventura .super-featured-desc,
    body.theme-italica-aventura .super-featured-desc.product-description--excerpt,
    .theme-italica-aventura .super-featured-desc,
    .theme-italica-aventura .super-featured-desc.product-description--excerpt {
        display: block !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        overflow: visible !important;
        max-height: none !important;
    }
}
