/* =========================================================
   YOLI BANQUETES / ORDER NOW
   Mobile-first WooCommerce Menu
   ========================================================= */

:root {
    --menu-accent: #a9231f;
    --menu-accent-dark: #831a17;
    --menu-black: #111111;
    --menu-text: #292929;
    --menu-muted: #5d5d5d;
    --menu-border: #e6e6e6;
    --menu-white: #ffffff;
    --menu-soft: #f7f7f7;
    --menu-container: 760px;
    --menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* El atributo hidden debe ganar siempre */
[hidden] {
    display: none !important;
}

/* =========================================================
   QUITAR ASTRA EN ORDER NOW
   ========================================================= */

body.page-order-now,
body.yoli-order-now-page,
body.amc-order-page-body,
body.yoli-quick-product,
body.amc-quick-product {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
}

body.page-order-now #masthead,
body.page-order-now .site-header,
body.page-order-now .ast-mobile-header-wrap,
body.page-order-now .ast-desktop-header-content,
body.page-order-now .ast-above-header-wrap,
body.page-order-now .ast-main-header-wrap,
body.page-order-now .ast-primary-header-bar,
body.page-order-now .ast-below-header-wrap,
body.page-order-now #colophon,
body.page-order-now .site-footer,
body.page-order-now .site-above-footer-wrap,
body.page-order-now .site-primary-footer-wrap,
body.page-order-now .site-below-footer-wrap,
body.yoli-order-now-page #masthead,
body.yoli-order-now-page .site-header,
body.yoli-order-now-page #colophon,
body.yoli-order-now-page .site-footer {
    display: none !important;
}

body.page-order-now #page,
body.page-order-now #content,
body.page-order-now .site-content,
body.page-order-now .site-content > .ast-container,
body.page-order-now #primary,
body.yoli-order-now-page #page,
body.yoli-order-now-page #content,
body.yoli-order-now-page .site-content,
body.yoli-order-now-page .site-content > .ast-container,
body.yoli-order-now-page #primary {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =========================================================
   ESTRUCTURA GENERAL
   ========================================================= */

.amc-order-page {
    width: 100%;
    min-height: 100vh;
    padding-bottom: 112px;
    color: var(--menu-text);
    background: #ffffff;
    font-family: Poppins, Arial, Helvetica, sans-serif;
}

.amc-menu-container {
    width: min(calc(100% - 34px), var(--menu-container));
    margin-inline: auto;
}

/* =========================================================
   TOP: LOGO PEQUEÑO + BUSCADOR
   ========================================================= */

.amc-top-header {
    width: 100%;
    padding: 14px 0 10px;
    background: #ffffff;
}

.amc-top-header-inner {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.amc-top-logo {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    color: #ffffff;
    background: #111111;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none;
}

.amc-top-logo img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.amc-top-logo span {
    color: #ffffff;
    font-weight: 800;
}

.amc-top-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.amc-search-icon {
    position: absolute;
    left: 18px;
    z-index: 2;
    width: 18px;
    height: 18px;
    border: 2px solid #1376bf;
    border-radius: 50%;
    pointer-events: none;
}

.amc-search-icon::after {
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 8px;
    height: 2px;
    content: "";
    background: #1376bf;
    border-radius: 999px;
    transform: rotate(45deg);
}

#amc-menu-search {
    width: 100%;
    min-height: 54px;
    padding: 12px 48px 12px 52px;
    border: 1px solid #dedede;
    border-radius: 999px;
    outline: none;
    color: #222222;
    background: #ffffff;
    font-family: inherit;
    font-size: 16px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

#amc-menu-search:focus {
    border-color: #111111;
}

.amc-search-clear {
    position: absolute;
    right: 10px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #444444;
    background: #eeeeee;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* =========================================================
   VIDEO / FLYER
   ========================================================= */

.amc-promo-video {
    width: 100%;
    padding: 4px 0 16px;
    background: #ffffff;
}

.amc-promo-video .amc-menu-container {
    width: min(calc(100% - 20px), var(--menu-container));
}

.amc-promo-video-frame {
    width: 100%;
    aspect-ratio: 2.7 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: #eeeeee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.amc-promo-video-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border: 0;
    background: transparent;
}

/* =========================================================
   CATEGORÍAS VISUALES
   2 filas, slider horizontal en bloque
   ========================================================= */

.amc-category-showcase {
    width: 100%;
    padding: 4px 0 8px;
    overflow: hidden;
    background: #ffffff;
}

.amc-category-icon-grid {
    display: grid;
    grid-template-columns: repeat(6, calc((100% - 27px) / 4));
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: row;
    gap: 18px 9px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 2px 8px;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.amc-category-icon-grid::-webkit-scrollbar {
    display: none;
}

.amc-category-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: #171717;
    text-decoration: none;
    text-align: center;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
}

.amc-category-icon-card:hover {
    color: #171717;
    text-decoration: none;
}

.amc-category-icon-media {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.amc-category-icon-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.amc-category-icon-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    background: var(--menu-accent);
    font-size: 27px;
    font-weight: 700;
}

.amc-category-icon-name {
    display: -webkit-box;
    width: 100%;
    min-height: 28px;
    overflow: hidden;
    color: #191919;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Dots de slider de categorías */
.amc-category-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 0;
}

.amc-category-slider-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cfcfcf;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amc-category-slider-dot.is-active {
    width: 20px;
    background: #111111;
}

/* =========================================================
   MENÚ HORIZONTAL STICKY
   Aparece con JS a partir de la segunda categoría
   ========================================================= */

.amc-category-navigation {
    display: none;
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    backdrop-filter: blur(14px);
}

.amc-category-navigation.is-visible {
    display: block;
}

.admin-bar .amc-category-navigation {
    top: 32px;
}

.amc-category-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 0 7px;
    scroll-behavior: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.amc-category-scroll::-webkit-scrollbar {
    display: none;
}

.amc-category-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 10px 18px;
    border: 1px solid #cccccc;
    border-radius: 16px;
    color: #4a4a4a;
    background: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    touch-action: pan-x pan-y;
}

.amc-category-chip:hover {
    color: #111111;
    text-decoration: none;
}

.amc-category-chip.is-active {
    color: #ffffff;
    background: #111111;
    border-color: #111111;
}

/* =========================================================
   PRODUCTOS
   ========================================================= */

.amc-menu-content {
    padding: 14px 0 25px;
}

.amc-menu-category {
    scroll-margin-top: 88px;
    margin-bottom: 55px;
}

.amc-category-title {
    margin: 0 0 22px;
    color: #111111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.amc-products-list {
    display: flex;
    flex-direction: column;
}

.amc-menu-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 21px;
    align-items: center;
    min-height: 175px;
    padding: 18px 0025em;
}

.amc-products-list {
    display: flex;
    flex-direction: column;
}

.amc-menu-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) ;
    border-bottom: 1px solid var(--menu-border);
}

.amc-menu-product:first-child {
    padding-top: 0;
}

.amc-product-information {
    min-width: 0;
}

.amc-product-name {
    margin: 0 0 8px;
    color: #171717;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.amc-product-price {
    margin-bottom: 14px;
    color: #111111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.amc-product-price del {
    margin-right: 7px;
    color: #888888;
    opacity: 1;
}

.amc-product-price ins {
    color: #111111;
    text-decoration: none;
}

.amc-product-description {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #4f4f4f;
    font-size: 16px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.amc-product-visual,
.amc-product-visual img {
    width: 140px;
    height: 140px;
}

.amc-product-visual {
    position: relative;
}

.amc-product-visual img {
    display: block;
    object-fit: cover;
    border-radius: 23px;
    background: #eeeeee;
}

.amc-product-add {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 1px solid #bdbdbd;
    border-radius: 16px;
    color: #111111;
    background: #ffffff;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.15);
    transition: transform 0.18s ease, background 0.18s ease;
}

.amc-product-add:hover {
    background: #f5f5f5;
    transform: scale(1.04);
}

.amc-product-add span {
    position: relative;
    top: -1px;
}

/* =========================================================
   SIN RESULTADOS / MENSAJES
   ========================================================= */

.amc-no-results,
.amc-message {
    padding: 60px 0;
    text-align: center;
}

.amc-no-results h2,
.amc-message h1 {
    margin: 0 0 10px;
    color: #111111;
    font-size: 28px;
}

.amc-no-results p,
.amc-message p {
    margin: 0;
    color: var(--menu-muted);
    font-size: 16px;
}

/* =========================================================
   BARRA FIJA DEL CARRITO
   ========================================================= */

.amc-order-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    padding:
        12px
        max(17px, env(safe-area-inset-right))
        calc(12px + env(safe-area-inset-bottom))
        max(17px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e9e9e9;
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(15px);
}

.amc-order-bar[hidden] {
    display: none !important;
}

.amc-order-bar-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, var(--menu-container));
    min-height: 65px;
    margin-inline: auto;
    padding: 14px 24px;
    border: 0;
    border-radius: 17px;
    color: #ffffff;
    background: var(--menu-accent);
    font-family: inherit;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
}

.amc-order-bar-button:hover {
    background: var(--menu-accent-dark);
}

.amc-order-summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
}

.amc-order-summary .woocommerce-Price-amount {
    color: inherit;
}

/* =========================================================
   POPUP DEL PRODUCTO
   ========================================================= */

body.amc-modal-open {
    overflow: hidden;
}

.amc-product-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.amc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.amc-modal-dialog {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: min(100%, var(--menu-container));
    height: min(91vh, 850px);
    margin-inline: auto;
    overflow: hidden;
    background: #ffffff;
    border-radius: 25px 25px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.22);
    animation: amcModalUp 0.28s ease both;
}

.amc-modal-header {
    min-height: 67px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 17px 12px 21px;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
}

.amc-modal-header h2 {
    margin: 0;
    color: #111111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
}

.amc-modal-close {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #222222;
    background: #eeeeee;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
}

.amc-modal-body {
    position: relative;
    height: calc(100% - 67px);
    background: #ffffff;
}

.amc-product-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
    background: #ffffff;
}

.amc-modal-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 12px;
    background: #ffffff;
}

.amc-modal-loading[hidden] {
    display: none !important;
}

.amc-modal-loading span {
    width: 38px;
    height: 38px;
    border: 4px solid #dddddd;
    border-top-color: var(--menu-accent);
    border-radius: 50%;
    animation: amcSpin 0.75s linear infinite;
}

.amc-modal-loading p {
    margin: 0;
    color: #555555;
    font-size: 15px;
}

/* =========================================================
   PRODUCTO DENTRO DEL POPUP
   ========================================================= */

body.yoli-quick-product #masthead,
body.yoli-quick-product .site-header,
body.yoli-quick-product .ast-mobile-header-wrap,
body.yoli-quick-product .ast-desktop-header-content,
body.yoli-quick-product .ast-above-header-wrap,
body.yoli-quick-product .ast-main-header-wrap,
body.yoli-quick-product .ast-primary-header-bar,
body.yoli-quick-product .ast-below-header-wrap,
body.yoli-quick-product #colophon,
body.yoli-quick-product .site-footer,
body.yoli-quick-product .woocommerce-breadcrumb,
body.yoli-quick-product .related,
body.yoli-quick-product .up-sells,
body.yoli-quick-product .woocommerce-tabs,
body.yoli-quick-product .product_meta,
body.amc-quick-product #masthead,
body.amc-quick-product .site-header,
body.amc-quick-product #colophon,
body.amc-quick-product .site-footer,
body.amc-quick-product .woocommerce-breadcrumb,
body.amc-quick-product .related,
body.amc-quick-product .up-sells,
body.amc-quick-product .woocommerce-tabs,
body.amc-quick-product .product_meta {
    display: none !important;
}

body.yoli-quick-product #page,
body.yoli-quick-product #content,
body.yoli-quick-product .site-content,
body.yoli-quick-product .site-content > .ast-container,
body.yoli-quick-product #primary,
body.amc-quick-product #page,
body.amc-quick-product #content,
body.amc-quick-product .site-content,
body.amc-quick-product .site-content > .ast-container,
body.amc-quick-product #primary {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.yoli-quick-product div.product,
body.amc-quick-product div.product {
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 18px 110px !important;
}

body.yoli-quick-product div.product .woocommerce-product-gallery,
body.yoli-quick-product div.product .summary,
body.amc-quick-product div.product .woocommerce-product-gallery,
body.amc-quick-product div.product .summary {
    width: 100% !important;
    float: none !important;
}

body.yoli-quick-product div.product .woocommerce-product-gallery,
body.amc-quick-product div.product .woocommerce-product-gallery {
    max-width: 410px;
    margin: 0 auto 18px !important;
}

body.yoli-quick-product div.product .woocommerce-product-gallery img,
body.amc-quick-product div.product .woocommerce-product-gallery img {
    border-radius: 20px;
}

body.yoli-quick-product div.product .product_title,
body.amc-quick-product div.product .product_title {
    margin: 0 0 10px !important;
    color: #111111 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
}

body.yoli-quick-product div.product p.price,
body.yoli-quick-product div.product span.price,
body.amc-quick-product div.product p.price,
body.amc-quick-product div.product span.price {
    color: #111111 !important;
    font-size: 21px !important;
    font-weight: 700 !important;
}

body.yoli-quick-product .woocommerce-product-details__short-description,
body.amc-quick-product .woocommerce-product-details__short-description {
    color: #4e4e4e;
    font-size: 16px;
    line-height: 1.55;
}

body.yoli-quick-product form.cart,
body.amc-quick-product form.cart {
    margin-top: 22px !important;
}

body.yoli-quick-product form.cart .quantity,
body.amc-quick-product form.cart .quantity {
    margin-bottom: 14px;
}

body.yoli-quick-product form.cart .qty,
body.amc-quick-product form.cart .qty {
    min-height: 48px;
    border: 1px solid #d7d7d7;
    border-radius: 12px;
}

body.yoli-quick-product .single_add_to_cart_button,
body.amc-quick-product .single_add_to_cart_button {
    width: 100%;
    min-height: 58px;
    margin: 12px 0 0 !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    background: var(--menu-accent) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

body.yoli-quick-product .single_add_to_cart_button:hover,
body.amc-quick-product .single_add_to_cart_button:hover {
    background: var(--menu-accent-dark) !important;
}

/* =========================================================
   ADVANCED PRODUCT FIELDS / WAPF
   ========================================================= */

body.yoli-quick-product .wapf,
body.yoli-quick-product .wapf-wrapper,
body.yoli-quick-product .wapf-product-totals,
body.amc-quick-product .wapf,
body.amc-quick-product .wapf-wrapper,
body.amc-quick-product .wapf-product-totals {
    font-family: Poppins, Arial, Helvetica, sans-serif !important;
}

body.yoli-quick-product .wapf-field-container,
body.amc-quick-product .wapf-field-container {
    margin-bottom: 22px !important;
}

body.yoli-quick-product .wapf-field-label,
body.amc-quick-product .wapf-field-label {
    display: block !important;
    margin: 0 0 10px !important;
    color: #111111 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

body.yoli-quick-product .wapf-radios,
body.yoli-quick-product .wapf-checkboxes,
body.amc-quick-product .wapf-radios,
body.amc-quick-product .wapf-checkboxes {
    display: grid !important;
    gap: 10px !important;
    margin-top: 10px !important;
}

body.yoli-quick-product .wapf-checkable,
body.amc-quick-product .wapf-checkable {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 14px !important;
    background: #ffffff !important;
    border: 1px solid #dddddd !important;
    border-radius: 12px !important;
    color: #222222 !important;
    cursor: pointer !important;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

body.yoli-quick-product .wapf-checkable:hover,
body.amc-quick-product .wapf-checkable:hover {
    border-color: #b5b5b5 !important;
    background: #fafafa !important;
}

body.yoli-quick-product .wapf-checkable:has(input:checked),
body.amc-quick-product .wapf-checkable:has(input:checked) {
    border-color: var(--menu-accent) !important;
    background: rgba(169, 35, 31, 0.06) !important;
    box-shadow: 0 0 0 1px rgba(169, 35, 31, 0.12) !important;
}

body.yoli-quick-product .wapf-field-input input[type="radio"],
body.yoli-quick-product .wapf-field-input input[type="checkbox"],
body.amc-quick-product .wapf-field-input input[type="radio"],
body.amc-quick-product .wapf-field-input input[type="checkbox"] {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
    accent-color: var(--menu-accent);
    transform: none !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
}

body.yoli-quick-product .wapf-checkable label,
body.yoli-quick-product .wapf-checkable span,
body.yoli-quick-product .wapf-checkable .wapf-label-text,
body.amc-quick-product .wapf-checkable label,
body.amc-quick-product .wapf-checkable span,
body.amc-quick-product .wapf-checkable .wapf-label-text {
    color: #222222 !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
}

body.yoli-quick-product .wapf-field-input input:not([type="radio"]):not([type="checkbox"]),
body.yoli-quick-product .wapf-field-input select,
body.yoli-quick-product .wapf-field-input textarea,
body.amc-quick-product .wapf-field-input input:not([type="radio"]):not([type="checkbox"]),
body.amc-quick-product .wapf-field-input select,
body.amc-quick-product .wapf-field-input textarea {
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 12px !important;
    border: 1px solid #d1d1d1 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    font-size: 15px !important;
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes amcModalUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes amcSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 900px) {
    body.page-order-now {
        background: #f2f2f2 !important;
    }

    .amc-order-page {
        width: 820px;
        margin-inline: auto;
        box-shadow: 0 0 32px rgba(0, 0, 0, 0.08);
    }

    .amc-menu-product {
        grid-template-columns: minmax(0, 1fr) 165px;
        min-height: 195px;
    }

    .amc-product-visual,
    .amc-product-visual img {
        width: 165px;
        height: 165px;
    }

    .amc-modal-dialog {
        bottom: 25px;
        height: min(88vh, 850px);
        border-radius: 25px;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .amc-menu-container {
        width: calc(100% - 34px);
    }

    .amc-top-header {
        padding-top: 12px;
    }

    .amc-top-header-inner {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
    }

    .amc-top-logo {
        width: 52px;
        height: 52px;
    }

    .amc-top-logo img {
        width: 46px;
        height: 46px;
    }

    #amc-menu-search {
        min-height: 52px;
        padding-left: 50px;
        font-size: 15px;
    }

    .amc-promo-video {
        padding-bottom: 14px;
    }

    .amc-promo-video-frame {
        border-radius: 16px;
    }

    .amc-category-icon-grid {
        grid-template-columns: repeat(6, calc((100% - 27px) / 4));
        gap: 16px 9px;
        padding-top: 8px;
        padding-bottom: 6px;
    }

    .amc-category-icon-media {
        width: 64px;
        height: 64px;
    }

    .amc-category-icon-name {
        font-size: 10.5px;
    }

    .amc-menu-content {
        padding-top: 12px;
    }

    .amc-category-title {
        font-size: 29px;
        margin-bottom: 20px;
    }

    .amc-menu-product {
        grid-template-columns: minmax(0, 1fr) 125px;
        gap: 17px;
        min-height: 166px;
    }

    .amc-product-visual,
    .amc-product-visual img {
        width: 125px;
        height: 125px;
    }

    .amc-product-visual img {
        border-radius: 21px;
    }

    .amc-product-name {
        font-size: 20px;
    }

    .amc-product-price {
        font-size: 17px;
    }

    .amc-product-description {
        font-size: 15px;
        line-height: 1.45;
    }

    .amc-product-add {
        width: 47px;
        height: 47px;
        border-radius: 15px;
        font-size: 32px;
    }

    .amc-order-bar-button {
        min-height: 63px;
        border-radius: 16px;
        font-size: 19px;
    }

    .amc-order-summary {
        font-size: 13px;
    }
}

/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 390px) {
    .amc-menu-container {
        width: calc(100% - 26px);
    }

    .amc-top-header-inner {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 10px;
    }

    .amc-top-logo {
        width: 48px;
        height: 48px;
    }

    .amc-top-logo img {
        width: 43px;
        height: 43px;
    }

    #amc-menu-search {
        min-height: 50px;
        padding-left: 47px;
        font-size: 14px;
    }

    .amc-category-icon-grid {
        grid-template-columns: repeat(6, calc((100% - 24px) / 4));
        gap: 15px 8px;
    }

    .amc-category-icon-media {
        width: 60px;
        height: 60px;
    }

    .amc-category-icon-name {
        font-size: 10px;
    }

    .amc-menu-product {
        grid-template-columns: minmax(0, 1fr) 110px;
        gap: 13px;
    }

    .amc-product-visual,
    .amc-product-visual img {
        width: 110px;
        height: 110px;
    }

    .amc-product-name {
        font-size: 18px;
    }

    .amc-product-price {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .amc-product-description {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }

    .amc-product-add {
        width: 44px;
        height: 44px;
        font-size: 29px;
    }
}
/* =========================================================
   FIX PRODUCTOS ORDER NOW - TEXTO IZQUIERDA / IMAGEN DERECHA
   ========================================================= */

/* Contenedor principal más ancho en desktop */
@media (min-width: 900px) {
    .amc-order-page {
        width: 100% !important;
        max-width: 920px !important;
        margin-inline: auto !important;
        background: #ffffff !important;
        box-shadow: none !important;
    }

    .amc-menu-container {
        width: min(calc(100% - 60px), 860px) !important;
        max-width: 860px !important;
    }
}

/* Cada producto como fila correcta */
.amc-menu-product {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;

    width: 100% !important;
    min-height: 170px !important;

    padding: 22px 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
}

/* Texto siempre a la izquierda */
.amc-product-information {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 170px) !important;

    display: block !important;
    text-align: left !important;
    order: 1 !important;
}

/* Imagen siempre a la derecha */
.amc-product-visual {
    flex: 0 0 145px !important;
    width: 145px !important;
    height: 145px !important;

    position: relative !important;
    order: 2 !important;
    margin: 0 !important;
}

.amc-product-visual img {
    width: 145px !important;
    height: 145px !important;

    display: block !important;
    object-fit: cover !important;
    border-radius: 22px !important;
}

/* Botón + */
.amc-product-add {
    right: 8px !important;
    bottom: 8px !important;
}

/* Títulos del producto */
.amc-product-name {
    margin: 0 0 8px !important;

    color: #111111 !important;

    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    text-align: left !important;
}

/* Precio */
.amc-product-price {
    margin: 0 0 10px !important;

    color: #111111 !important;

    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;

    text-align: left !important;
}

/* Descripción */
.amc-product-description {
    max-width: 100% !important;
    margin: 0 !important;

    color: #555555 !important;

    font-size: 15px !important;
    line-height: 1.45 !important;

    text-align: left !important;
}

/* =========================================================
   FIX MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .amc-menu-product {
        gap: 16px !important;
        min-height: 150px !important;
        padding: 20px 0 !important;
    }

    .amc-product-information {
        max-width: calc(100% - 125px) !important;
    }

    .amc-product-visual,
    .amc-product-visual img {
        width: 118px !important;
        height: 118px !important;
    }

    .amc-product-name {
        font-size: 19px !important;
    }

    .amc-product-price {
        font-size: 16px !important;
    }

    .amc-product-description {
        font-size: 14px !important;
        -webkit-line-clamp: 3 !important;
    }

    .amc-product-add {
        width: 44px !important;
        height: 44px !important;
        font-size: 30px !important;
        border-radius: 14px !important;
    }
}

/* =========================================================
   FIX CATEGORÍAS SI NO TIENEN IMAGEN
   ========================================================= */

.amc-category-icon-fallback {
    background: var(--menu-accent) !important;
    color: #ffffff !important;
    border-radius: 16px !important;
}

.amc-category-icon-media {
    overflow: hidden !important;
}