/* =========================================================================
   TEMPLATE: ONYX - MENÚS, FEATURES, MODAL, BOTTOM NAV Y DETALLE PRODUCTO
   ========================================================================= */

.ez-menu-feature-section {
    padding: 1rem 20px 0 20px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.ez-menu-feature-header {
    margin-bottom: 14px;
}

.ez-menu-feature-title {
    margin: 0;
    color: var(--ez-theme-text-main);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.ez-menu-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ez-menu-feature-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border-radius: var(--ez-radius-md, 16px);
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.11);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.58);
    box-shadow: 0 12px 32px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    contain: layout paint;
}

html[data-theme="light"] .ez-menu-feature-card,
[data-theme="light"] .ez-menu-feature-card {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.88);
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
    box-shadow: 0 10px 28px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
}

.ez-product-media--feature {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    overflow: hidden;
    background: rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.08);
}

/* Base segura: picture NO debe ser absoluto globalmente.
   El modo absoluto solo aplica en contextos con marco de ratio fijo. */
.ez-product-picture {
    width: 100%;
    display: block;
}

.ez-product-picture img {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Featured: el media container define el ratio; la imagen solo rellena. */
.ez-product-media--feature .ez-product-picture {
    position: absolute;
    inset: 0;
    height: 100%;
}

.ez-product-media--feature .ez-product-picture img {
    height: 100%;
}

/* Compatibilidad por si algún producto destacado llega como img directo */
.ez-menu-feature-card > .ez-menu-feature-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    flex: 0 0 auto;
}

.ez-menu-feature-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    background: rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.08);
}

.ez-menu-feature-content {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    padding: 10px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-content: start;
}

.ez-menu-feature-name {
    margin: 0 0 4px 0;
    color: var(--ez-theme-text-main);
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    min-height: 2.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ez-menu-feature-meta {
    margin: 0 0 7px 0;
    color: var(--ez-theme-text-muted);
    font-size: 0.72rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.ez-menu-feature-price {
    margin: 0;
    color: var(--ez-theme-text-main);
    font-size: 1rem;
    font-weight: 950;
    align-self: end;
    text-shadow: 0 1px 2px rgba(var(--ez-pal-neutral-dark-rgb, 13, 13, 13), 0.38);
}

.ez-menu-open-btn {
    width: 100%;
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: var(--ez-radius-md, 16px);
    border: 1px solid rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.1);
    background: var(--ez-pal-secondary);
    color: var(--ez-pal-neutral-light);
    font-family: var(--ez-font-primary);
    font-size: 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(var(--ez-pal-secondary-rgb), 0.28);
}

/* =========================================================================
   MODAL MENÚ COMPLETO
   Base estructural movida a /statics/css/components/modal_system.css
   ========================================================================= */

.ez-menu-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 20px 92px 20px;
    scroll-behavior: smooth;
}

.ez-menu-full-category {
    padding-top: 22px;
    padding-bottom: 18px;
}

.ez-menu-full-cat-header {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ez-theme-border, rgba(255, 255, 255, 0.1));
    padding-bottom: 10px;
}

.ez-menu-full-cat-header h4 {
    margin: 0 0 4px 0;
    color: var(--ez-theme-text-main);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.ez-menu-full-cat-desc,
.ez-menu-full-subcat-desc {
    margin: 0;
    color: var(--ez-theme-text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.ez-menu-full-subcategory {
    margin-top: 18px;
}

.ez-menu-full-subcat-title {
    margin: 22px 0 10px 0;
    color: var(--ez-pal-secondary);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ez-menu-full-products-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* =========================================================================
   PRODUCT CARD FULL MENU - 5 LAYOUTS
   ========================================================================= */

.ez-menu-full-product {
    position: relative;
    cursor: pointer;
    min-width: 0;
}

.ez-menu-product-badge {
    position: absolute;
    top: 10px;
    left: 6px;
    z-index: 2;
    background: var(--ez-pal-secondary);
    color: var(--ez-pal-neutral-light);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.ez-product-media--card {
    position: relative;
    overflow: hidden;
    border-radius: var(--ez-radius-md, 16px);
    background: rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.08);
    flex-shrink: 0;
}

.ez-product-media--card .ez-product-picture {
    width: 100%;
    height: 100%;
}

.ez-product-media--card .ez-product-picture img,
.ez-menu-full-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* STANDARD: foto izquierda, info derecha */
.ez-menu-full-category[data-layout="standard"] .ez-menu-full-product {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--ez-theme-border, rgba(255, 255, 255, 0.1));
}

.ez-menu-full-category[data-layout="standard"] .ez-product-media--card {
    width: 82px;
    height: 82px;
}

/* GRID: dos columnas compactas sin foto */
.ez-menu-full-category[data-layout="grid"] .ez-menu-full-products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ez-menu-full-category[data-layout="grid"] .ez-menu-full-product {
    min-height: 176px;
    padding: 12px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.11);
    border-radius: var(--ez-radius-md, 16px);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.58);
    box-shadow: 0 12px 32px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: grid;
}

html[data-theme="light"] .ez-menu-full-category[data-layout="grid"] .ez-menu-full-product,
[data-theme="light"] .ez-menu-full-category[data-layout="grid"] .ez-menu-full-product {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.88);
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
    box-shadow: 0 10px 28px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
}

/* GRID PHOTO: dos columnas con foto arriba */
.ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-products-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, calc((100% - 18px) / 2));
    column-gap: 18px;
    row-gap: 22px;
    align-items: stretch;
    overflow: hidden;
}

.ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-product {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 12px;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.11);
    border-radius: var(--ez-radius-md, 16px);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.58);
    box-shadow: 0 12px 32px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.20);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    box-sizing: border-box;
    contain: layout paint;
}

html[data-theme="light"] .ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-product,
[data-theme="light"] .ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-product {
    background: rgba(var(--ez-pal-neutral-light-rgb, 248, 246, 242), 0.88);
    border-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
    box-shadow: 0 10px 28px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.10);
}

.ez-menu-full-category[data-layout="grid-photo"] .ez-product-media--card {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    height: auto;
    flex: 0 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
}

.ez-menu-full-category[data-layout="grid-photo"] .ez-product-media--card .ez-product-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
}

.ez-menu-full-category[data-layout="grid-photo"] .ez-product-media--card .ez-product-picture img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* LIST: lista vertical simple sin fotos */
.ez-menu-full-category[data-layout="list"] .ez-menu-full-products-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ez-menu-full-category[data-layout="list"] .ez-menu-full-product {
    padding: 13px 0;
    border-bottom: 1px solid var(--ez-theme-border, rgba(255, 255, 255, 0.1));
}

/* FULL: imagen protagonista arriba */
.ez-menu-full-category[data-layout="full"] .ez-menu-full-products-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ez-menu-full-category[data-layout="full"] .ez-menu-full-product {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    padding: 0 0 18px 0;
    border-bottom: 1px solid var(--ez-theme-border, rgba(255, 255, 255, 0.1));
}

.ez-menu-full-category[data-layout="full"] .ez-product-media--card {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
}

.ez-menu-full-product-info {
    min-width: 0;
    min-height: 100%;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    align-content: stretch;
}

.ez-menu-full-product-name-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    min-height: 42px;
}

.ez-menu-full-product-name-group {
    min-width: 0;
}

.ez-menu-full-product-name {
    margin: 0 0 3px 0;
    color: var(--ez-theme-text-main);
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.ez-menu-full-product-brand {
    margin: 0;
    color: var(--ez-theme-text-muted);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ez-menu-full-product-price {
    margin: 0;
    color: var(--ez-pal-secondary);
    font-size: 0.98rem;
    font-weight: 900;
    white-space: nowrap;
}

.ez-menu-full-product-meta {
    margin: 5px 0 0 0;
    min-height: 34px;
    color: var(--ez-theme-text-muted);
    font-size: 0.72rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ez-menu-full-product-desc {
    margin: 6px 0 0 0;
    color: var(--ez-theme-text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.ez-menu-full-product-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.08);
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    align-self: end;
}

.ez-menu-full-product-serving {
    color: var(--ez-theme-text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.25;
}

.ez-menu-full-product-footer-price {
    color: var(--ez-pal-secondary);
    font-size: 0.82rem;
    font-weight: 900;
    white-space: nowrap;
}

.ez-menu-full-category[data-layout="grid"] .ez-menu-full-product-price,
.ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-product-price,
.ez-menu-full-category[data-layout="list"] .ez-menu-full-product-price {
    display: block;
}

@media (max-width: 420px) {
    .ez-menu-full-category[data-layout="grid"] .ez-menu-full-products-grid,
    .ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-products-grid {
        grid-template-columns: repeat(2, calc((100% - 12px) / 2));
        column-gap: 12px;
        row-gap: 18px;
    }

    .ez-menu-full-category[data-layout="standard"] .ez-menu-full-product {
        grid-template-columns: 80px 1fr;
    }
}

/* Fallback visual cuando el producto no tiene foto propia.
   Se comporta como foto normal, sin padding ni modo logo. */
.ez-product-media--fallback {
    background: rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.08);
}

.ez-product-media--fallback img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    background: transparent;
}

.ez-menu-feature-card .ez-product-media--fallback img {
    padding: 0;
}

html[data-theme="light"] .ez-product-media--fallback {
    background: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.04);
}

html[data-theme="light"] .ez-product-media--fallback img {
    background: transparent;
}

/* Refuerzo anti-overflow para cards con imágenes */
.ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-product-info,
.ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-product-name-row,
.ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-product-name-group,
.ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-product-meta,
.ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-product-desc,
.ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-product-footer {
    min-width: 0;
    max-width: 100%;
}

/* =========================================================================
   BOTTOM NAV CATEGORÍAS
   ========================================================================= */

.ez-menu-bottom-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    overflow-x: visible;
    overflow-y: hidden;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) 12px;
    background: var(--ez-theme-bg-main);
    border-top: 1px solid var(--ez-theme-border, rgba(255, 255, 255, 0.1));
    flex-shrink: 0;
}

.ez-menu-bottom-nav::-webkit-scrollbar {
    display: none;
}

.ez-menu-bottom-nav-btn {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    flex: 1 1 calc(33.33% - 10px);
    min-width: 80px;
    max-width: 150px;
    height: 38px;
    padding: 0 10px;
    background: rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.03);
    border: 1px solid var(--ez-theme-border, rgba(255, 255, 255, 0.1));
    border-radius: 8px;
    color: var(--ez-theme-text-muted);
    font-family: var(--ez-font-primary);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
    position: relative;
}

.ez-menu-bottom-nav-btn span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ez-menu-bottom-nav-btn.active {
    background: var(--ez-pal-primary);
    color: var(--ez-pal-neutral-light);
    border-color: var(--ez-pal-primary);
    transform: translateY(-1px);
}

.ez-menu-bottom-nav-btn.active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 12px;
    height: 2px;
    transform: translateX(-50%);
    background: var(--ez-pal-secondary);
    border-radius: 4px;
}

/* =========================================================================
   DETALLE DE PRODUCTO
   ========================================================================= */

/* Panel/header/actions de detalle movidos a modal_system.css */

.ez-product-detail-body {
    overflow-y: auto;
    padding: 18px 20px calc(24px + env(safe-area-inset-bottom)) 20px;
}

.ez-product-media--detail {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 18px;
    background: rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.08);
}

/* Detalle: NO absoluto.
   Aquí el media sí debe ocupar espacio normal dentro del modal. */
.ez-product-media--detail .ez-product-picture {
    position: static;
    inset: auto;
    width: 100%;
    height: auto;
    display: block;
}

.ez-product-detail-image,
.ez-product-detail-video {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    max-height: 340px;
    object-fit: cover;
    display: block;
    background: rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.08);
}

.ez-product-detail-title-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.ez-product-detail-title {
    margin: 0;
    color: var(--ez-theme-text-main);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.15;
}

.ez-product-detail-brand {
    margin: 5px 0 0 0;
    color: var(--ez-theme-text-muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ez-product-detail-main-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
}

.ez-product-detail-main-price-prefix {
    color: var(--ez-theme-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ez-product-detail-main-price {
    margin: 0;
    color: var(--ez-pal-secondary);
    font-size: 1.45rem;
    font-weight: 900;
    white-space: nowrap;
}

.ez-product-detail-meta {
    margin: 0 0 12px 0;
    color: var(--ez-theme-text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.ez-product-detail-desc {
    margin: 0 0 18px 0;
    color: var(--ez-theme-text-main);
    font-size: 0.94rem;
    line-height: 1.6;
    opacity: 0.92;
}

.ez-product-detail-servings {
    border-top: 1px solid var(--ez-theme-border, rgba(255, 255, 255, 0.1));
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ez-product-detail-servings-title,
.ez-product-detail-info-title {
    margin: 0 0 6px 0;
    color: var(--ez-theme-text-main);
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ez-product-detail-serving-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.06);
}

.ez-product-detail-serving-label {
    color: var(--ez-theme-text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.ez-product-detail-serving-price {
    color: var(--ez-pal-secondary);
    font-size: 0.95rem;
    font-weight: 900;
    white-space: nowrap;
}

.ez-product-detail-serving-price--promo {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 8px;
}

.ez-product-detail-serving-price-original {
    color: var(--ez-theme-text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: line-through;
    opacity: 0.72;
}

.ez-product-detail-serving-price-current {
    color: var(--ez-pal-secondary);
    font-size: 0.98rem;
    font-weight: 900;
}

.ez-product-detail-info-block {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: var(--ez-radius-md, 16px);
    background: rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.035);
    border-left: 4px solid rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.28);
}

.ez-product-detail-info-block--notes {
    margin-top: 20px;
}

.ez-product-detail-note {
    margin: 0;
    color: var(--ez-theme-text-muted);
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.5;
}

.ez-product-detail-note + .ez-product-detail-note {
    margin-top: 8px;
}

.ez-product-detail-extra-divider {
    height: 1px;
    margin: 14px 0;
    border-top: 1px dashed rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.12);
}

.ez-product-detail-extra-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
}

.ez-product-detail-extra-title {
    margin: 0 0 6px 0;
    color: var(--ez-theme-text-main);
    font-size: 0.9rem;
    font-weight: 900;
}

.ez-product-detail-extra-items {
    margin: 0;
    color: var(--ez-theme-text-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.ez-product-detail-extra-price {
    margin: 1px 0 0 0;
    color: var(--ez-pal-secondary);
    font-size: 0.78rem;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.ez-product-detail-info-title {
    margin: 0 0 8px 0;
    color: var(--ez-theme-text-main);
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ez-product-detail-info-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ez-product-detail-info-item {
    color: var(--ez-theme-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

html[data-theme="light"] .ez-product-detail-info-block {
    background: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.035);
    border-left-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.18);
}

html[data-theme="light"] .ez-product-detail-extra-divider {
    border-top-color: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.12);
}

/* =========================================================================
   TOAST SHARE
   ========================================================================= */

.ez-product-share-toast {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom));
    transform: translateX(-50%) translateY(20px);
    z-index: 12000;
    opacity: 0;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 15px;
    border-radius: 999px;
    background: var(--ez-pal-secondary);
    color: var(--ez-pal-neutral-light);
    font-size: 0.85rem;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ez-product-share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 720px) {
    .ez-menu-feature-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ez-menu-full-category[data-layout="standard"] .ez-menu-full-products-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .ez-menu-full-category[data-layout="grid"] .ez-menu-full-products-grid,
    .ez-menu-full-category[data-layout="grid-photo"] .ez-menu-full-products-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ez-menu-full-category[data-layout="list"] .ez-menu-full-products-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
}
/* =========================================================================
   ONYX MEDIA STANDARD V1.1 — Productos 1:1 + galería segura
   Alcance: food/drinks. No cambia nombres de archivo ni reglas de datos.
   ========================================================================= */

.ez-menu-full-category[data-layout="full"] .ez-product-media--card,
.ez-product-media--detail,
.ez-product-media-gallery-stage {
    aspect-ratio: 1 / 1;
}

.ez-product-detail-image,
.ez-product-detail-video,
.ez-product-media-gallery-stage .ez-product-picture,
.ez-product-media-gallery-stage .ez-product-picture img,
.ez-product-media-gallery-stage .ez-product-video-poster,
.ez-product-media-gallery-stage .ez-product-detail-video {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    max-height: none;
    object-fit: cover;
}

.ez-product-video-poster {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ez-product-video-poster .ez-product-picture,
.ez-product-video-poster .ez-product-picture img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ez-product-video-play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--ez-pal-neutral-light, #fff);
    background: rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.92);
    box-shadow: 0 14px 34px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.36);
    font-size: 2rem;
    line-height: 1;
    pointer-events: none;
}

.ez-product-media-gallery {
    position: relative;
    width: 100%;
    display: grid;
    gap: 10px;
}

.ez-product-media-gallery-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.08);
}

.ez-product-media-gallery-stage > * {
    width: 100%;
    height: 100%;
}

.ez-product-media-gallery-nav {
    position: absolute;
    left: 10px;
    right: 10px;
    top: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.ez-product-media-gallery-btn {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(var(--ez-pal-neutral-light-rgb, 255, 255, 255), 0.22);
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: var(--ez-pal-neutral-light, #fff);
    background: rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.48);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(var(--ez-pal-neutral-dark-rgb, 7, 7, 8), 0.28);
    cursor: pointer;
}

.ez-product-media-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
}

.ez-product-media-thumbs::-webkit-scrollbar {
    display: none;
}

.ez-product-media-thumb {
    position: relative;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(var(--ez-theme-text-main-rgb, 255, 255, 255), 0.14);
    background: rgba(var(--ez-theme-bg-soft-rgb, 14, 14, 15), 0.62);
    cursor: pointer;
}

.ez-product-media-thumb.is-active {
    border-color: var(--ez-pal-secondary, #AA4493);
    box-shadow: 0 0 0 2px rgba(var(--ez-pal-secondary-rgb, 170, 68, 147), 0.22);
}

.ez-product-media-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ez-product-media-thumb .ez-product-video-play-badge {
    width: 24px;
    height: 24px;
    font-size: 1rem;
}

/* =========================================================================
   ONYX HOTFIX V1.1 — Centrado real del icono play en productos con video
   Alcance: solo .ez-product-video-play-badge. No toca layout, media, JS ni JSON.
   Motivo: Material Symbols tiene métricas ópticas que descentran el triángulo.
   Solución: ocultar el glyph y dibujar triángulo CSS centrado.
   ========================================================================= */

.ez-product-video-play-badge {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    text-align: center !important;
    overflow: hidden;
}

.ez-product-video-play-badge::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid currentColor;
    transform: translateX(2px);
}

.ez-product-media-thumb .ez-product-video-play-badge::before {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 8px;
    transform: translateX(1px);
}

/* =========================================================================
   ONYX MENU HEADER / CATEGORY SCROLL FIX
   - Mantiene el aviso de carrito fijo en la cabecera del modal.
   - El scroll por categorías aterriza en título + descripción de sección.
   ========================================================================= */
.ez-menu-modal-header--with-ordering {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
}

.ez-menu-modal-header--with-ordering .ez-drag-handle {
    grid-column: 1 / -1;
    justify-self: center;
}

.ez-menu-modal-header--with-ordering .ez-menu-modal-title {
    grid-column: 1;
    min-width: 0;
}

.ez-menu-modal-header--with-ordering .ez-menu-modal-close {
    grid-column: 2;
    justify-self: end;
}

.ez-menu-modal-header--with-ordering .ez-owned-ordering-banner--menu-header {
    grid-column: 1 / -1;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    margin: 2px 12px 0 0;
}

.ez-menu-modal-header--with-ordering + .ez-menu-modal-content {
    padding-top: 12px;
}

.ez-menu-full-category {
    scroll-margin-top: 10px;
}
