/* ==========================================================================
   VARIABLES
========================================================================== */
:root {
    --primary: #ff5500;
    --primary-dark: #cc4400;
    --primary-light: rgba(255, 85, 0, 0.14);
    --bg-black: #0a0a0a;
    --bg-surface: #141414;
    --bg-app: #f4f4f5;
    --bg-card: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --text-light: #ffffff;
    --border-color: #e8e8ec;

    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --safe-area-top: env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ==========================================================================
   RESET Y PROTECCIÓN BASE
========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-family);
    background-color: var(--bg-black);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
}

body.modal-open {
    overflow: hidden;
}

input, textarea, select {
    user-select: text;
    -webkit-user-select: text;
    font-family: inherit;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
}

/* Ocultar scrollbars */
html, body, .app-container, .sidebar-nav, .cart-sheet-content, .product-modal-body, .search-dropdown {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.app-container::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar,
.cart-sheet-content::-webkit-scrollbar,
.product-modal-body::-webkit-scrollbar,
.search-dropdown::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   APP CONTAINER
========================================================================== */
.app-container {
    width: 100%;
    max-width: 480px;
    min-height: 100dvh;
    background-color: var(--bg-app);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    overflow-x: clip;
}

/* ==========================================================================
   HEADER
========================================================================== */
.app-header {
    background-color: var(--bg-black);
    padding: calc(14px + var(--safe-area-top)) 20px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    position: relative;
    z-index: 2;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.header-logo img {
    height: 76px;
    object-fit: contain;
    display: block;
}

.cart-header-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background-color: var(--primary);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-black);
}

/* ==========================================================================
   BARRA DE ESTADO (ABIERTO / CERRADO EN SU POSICIÓN ORIGINAL A LA DERECHA)
========================================================================== */
.top-info-bar {
    background-color: var(--bg-black);
    padding: 0 16px 12px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.info-pill {
    background-color: var(--bg-surface);
    color: var(--text-light);
    border-radius: 20px;
    padding: 7px 14px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.status-pill {
    font-weight: 700;
    color: var(--primary);
}

.status-time {
    color: #aaaaaa;
    font-weight: 400;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
}

.status-closed .status-dot {
    background-color: #ff3333;
}

.status-closed {
    color: #ff3333 !important;
}

.btn-closed {
    border-color: #ff3333 !important;
    color: #ff3333 !important;
}

/* ==========================================================================
   BUSCADOR INFORMATIVO + DESPLEGABLE CON FOTO PRIMERO + FILTRO
========================================================================== */
.search-section {
    background-color: var(--bg-black);
    padding: 0 16px 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-bottom-left-radius: var(--radius-xl);
    border-bottom-right-radius: var(--radius-xl);
    position: relative;
    z-index: 95;
}

.search-box {
    flex: 1;
    background-color: var(--bg-surface);
    border: 1px solid #262626;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    padding: 0 12px;
    height: 44px;
    gap: 8px;
}

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 14px;
    outline: none;
}

.search-box input::placeholder {
    color: #888888;
}

.search-clear-btn {
    color: #999999;
    font-size: 20px;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
}

.filter-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
    background-color: var(--bg-surface);
    border: 1px solid #262626;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.filter-btn.has-filter::after {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
    box-shadow: 0 0 0 2px var(--bg-surface);
}

/* Desplegable informativo de la barra de búsqueda */
.search-dropdown {
    position: absolute;
    top: calc(100% - 8px);
    left: 16px;
    right: 16px;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    max-height: 360px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    z-index: 250;
}

.search-dropdown.show {
    display: flex;
}

.search-dropdown-header {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background-color: #f8f8fa;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 2;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    background: var(--bg-card);
    transition: background 0.15s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:active {
    background-color: #f5f5f7;
}

.search-result-img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: #eeeeee;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-desc {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
}

.search-result-price {
    font-size: 13px;
    font-weight: 900;
    color: var(--text-main);
    flex-shrink: 0;
}

.search-empty {
    padding: 20px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   MAIN CONTENT & HERO
========================================================================== */
.main-content {
    flex: 1;
    padding-bottom: 36px;
}

.hero-banner {
    padding: 16px 16px 8px;
    position: relative;
}

.hero-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-pagination {
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 50%;
}

.dot.active {
    background: var(--primary);
}

/* ==========================================================================
   ENCABEZADOS Y SEPARACIÓN DE CATEGORÍAS
========================================================================== */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 12px;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-title h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.2px;
}

.view-all {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--primary);
    padding: 5px 12px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Bloques separados por categoría en Ver Menú Completo */
.menu-category-block {
    background-color: var(--bg-app);
    padding: 20px 0 10px;
    border-top: 8px solid #e4e4e7;
}

.menu-category-block:first-child {
    border-top: none;
    padding-top: 6px;
}

.category-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 14px;
}

.category-block-header h4 {
    font-size: 16px;
    font-weight: 900;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: relative;
    padding-left: 12px;
}

.category-block-header h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 2px;
    width: 4px;
    border-radius: 4px;
    background-color: var(--primary);
}

.cat-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background-color: #e4e4e7;
    padding: 3px 10px;
    border-radius: 12px;
}

/* Resumen de filtros activos */
.active-filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 12px;
}

.active-filters-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.active-filter-pill {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
}

.clear-filters-link {
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
    flex-shrink: 0;
}

.empty-state-box {
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================================================
   TARJETAS DE PRODUCTOS
========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 0 16px 20px;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.product-card:active {
    transform: scale(0.98);
}

.card-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1.15 / 1;
    background-color: #ececef;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    z-index: 2;
}

.badge-dark {
    background-color: rgba(10, 10, 10, 0.85);
    color: var(--text-light);
}

.badge-primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.card-info {
    padding: 11px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-info h4 {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1.25;
}

.card-info p {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

.price {
    font-size: 15px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.1;
}

.price-from {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    display: block;
}

.add-btn {
    background-color: var(--primary);
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(255, 85, 0, 0.3);
}

.add-btn:active {
    transform: scale(0.9);
    background-color: var(--primary-dark);
}

/* ==========================================================================
   FOOTER
========================================================================== */
.site-footer {
    background-color: var(--bg-black);
    padding: 24px 16px calc(96px + var(--safe-area-bottom));
    margin-top: auto;
}

.footer-container {
    background-color: #111111;
    border-radius: 16px;
    padding: 22px 18px;
    border: 1px solid #222222;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 380px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-border-right {
        border-right: 1px solid #2a2a2a;
        padding-right: 14px;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-text {
    color: #cccccc;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.footer-status-btn {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-list li {
    color: #cccccc;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
}

.social-icons {
    display: flex;
    gap: 14px;
}

.payment-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ==========================================================================
   BARRA CARRITO INFERIOR
========================================================================== */
.bottom-cart-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 12px 16px calc(12px + var(--safe-area-bottom));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    cursor: pointer;
}

.cart-resume {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-badge-inline {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--bg-card);
    color: var(--primary);
    font-size: 10px;
    font-weight: 900;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-text {
    display: flex;
    flex-direction: column;
}

.cart-text .title {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

.cart-text .subtitle {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.92;
}

.cart-total {
    font-size: 17px;
    font-weight: 900;
}

.btn-checkout {
    background-color: var(--bg-black);
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

/* ==========================================================================
   BARRA LATERAL (SIN EMOJIS, SIN SUBRAYADO)
========================================================================== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    max-width: 82%;
    height: 100dvh;
    background-color: var(--bg-black);
    z-index: 2001;
    transition: left 0.28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.55);
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    padding: calc(18px + var(--safe-area-top)) 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #222222;
}

.sidebar-logo {
    height: 44px;
    object-fit: contain;
}

.close-sidebar {
    color: var(--text-light);
    padding: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.sidebar-item {
    display: block;
    padding: 13px 24px;
    color: #e5e5e5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-left: 4px solid transparent;
    transition: background 0.18s, color 0.18s;
}

.sidebar-item:hover,
.sidebar-item:active {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    text-decoration: none;
}

.sidebar-item.active {
    color: var(--primary);
    background-color: var(--primary-light);
    border-left-color: var(--primary);
    font-weight: 700;
}

.sidebar-divider {
    height: 1px;
    background-color: #222222;
    margin: 8px 20px;
}

.sidebar-footer {
    padding: 16px 20px calc(16px + var(--safe-area-bottom));
    border-top: 1px solid #222222;
}

.codex-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.codex-link span {
    color: #ff0033;
    font-weight: 900;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   MODALES BOTTOM-SHEET (CARRITO, PRODUCTO, FILTROS)
========================================================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cart-sheet {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-card);
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    max-height: 88dvh;
    transform: translateY(100%);
    transition: transform 0.28s ease;
    overflow: hidden;
}

.cart-overlay.open .cart-sheet {
    transform: translateY(0);
}

.cart-sheet-header {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-sheet-header h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
}

.close-cart-btn {
    font-size: 28px;
    line-height: 1;
    color: var(--text-muted);
    padding: 0 4px;
}

.cart-sheet-content {
    padding: 12px 22px;
    overflow-y: auto;
    flex: 1;
}

.cart-sheet-footer {
    padding: 16px 22px calc(18px + var(--safe-area-bottom));
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 15px;
}

.total-price {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
}

.btn-primary-full {
    width: 100%;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 15px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.btn-primary-full:active {
    background-color: var(--primary-dark);
}

/* Modal de producto */
.product-modal-hero {
    position: relative;
    width: 100%;
    height: 190px;
    background: #141414;
    flex-shrink: 0;
}

.product-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pm-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
}

.pm-header-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.pm-header-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 14px;
}

.pm-section {
    margin-bottom: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.pm-section-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pm-section-title span {
    font-weight: 500;
    color: var(--text-muted);
    text-transform: none;
}

.pm-select-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pm-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.pm-field select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #d4d4d8;
    background-color: #fafafa;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
}

.pm-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pm-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: #f9f9fb;
    border-radius: 10px;
    border: 1px solid #ececef;
    font-size: 13px;
    cursor: pointer;
}

.pm-check-item input {
    accent-color: var(--primary);
    width: 16px;
    height: 16px;
}

.pm-check-label {
    flex: 1;
    font-weight: 600;
    color: var(--text-main);
}

.pm-check-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 12px;
}

.pm-salsas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.pm-salsa-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #ececef;
    border-radius: 10px;
    background: #f9f9fb;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pm-salsa-chip input {
    accent-color: var(--primary);
}

/* Modal de filtros */
.filter-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.filter-group-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 10px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #d4d4d8;
    background: #fafafa;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
}

.filter-chip.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

.filter-footer-actions {
    display: flex;
    gap: 10px;
}

.btn-secondary-outline {
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #d4d4d8;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    flex-shrink: 0;
}

/* Items del carrito y Checkout */
.cart-empty-msg {
    text-align: center;
    color: var(--text-muted);
    padding: 36px 10px;
    font-size: 14px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.item-meta {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 5px;
}

.item-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary);
}

.item-actions-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.item-qty-control {
    display: flex;
    align-items: center;
    background: #f0f0f2;
    border-radius: 20px;
    padding: 3px 6px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-qty-control span {
    font-size: 13px;
    font-weight: 700;
    width: 24px;
    text-align: center;
    color: var(--text-main);
}

.item-remove-btn {
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
}

.checkout-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 8px;
}

.ck-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ck-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-main);
}

.ck-radio-row {
    display: flex;
    gap: 8px;
}

.ck-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 6px;
    border: 1px solid #d4d4d8;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: #fafafa;
}

.ck-pill input {
    accent-color: var(--primary);
}

.ck-domicilio-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ck-input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d4d4d8;
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-main);
    background: #ffffff;
    outline: none;
}

.ck-input:focus {
    border-color: var(--primary);
}

.ck-input-error {
    border-color: #dc2626 !important;
    background: #fef2f2;
}

.ck-error {
    color: #dc2626;
    font-size: 12px;
    font-weight: 700;
}