/* Estilos del carrito, modales y elementos relacionados extraídos de index.php */

.status-dot.closed { background-color: #dc3545; }
.dark-toggle-btn {
    background: none;
    border: none;
    color: #eebc1d;
    font-size: 1.7rem;
    margin-left: 10px;
    cursor: pointer;
    transition: color 0.2s;
}
.dark-toggle-btn:hover {
    color: #232946;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}
.cart-item-info {
    flex: 1;
}
.cart-item-name {
    font-weight: 600;
    color: #232946;
    margin-bottom: 4px;
}
.cart-item-details {
    font-size: 0.9em;
    color: #888;
    line-height: 1.4;
}
.cart-item-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 0.9em;
    padding: 4px 0;
    margin-top: 4px;
}
.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.cart-item-price {
    font-weight: 600;
    color: #eebc1d;
    font-size: 1.1em;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    margin-top: 8px;
}
.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #eee;
    color: #232946;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
}
.cart-item-qty span {
    margin: 0 10px;
    font-weight: 500;
    color: #232946;
}

.cart-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 1200;
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #232946;
    color: #eebc1d;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 24px rgba(35,41,70,0.18);
    justify-content: center;
    transition: background 0.2s;
}
.cart-fab .fa-shopping-cart {
    font-size: 2rem;
}
#cart-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #eebc1d;
    color: #232946;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.9rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.cart-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 95vw;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(35,41,70,0.18);
    z-index: 1300;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
}
.cart-panel-header {
    padding: 24px 24px 12px 24px;
    border-bottom: 2px solid #eebc1d;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-panel-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #232946;
    font-weight: 700;
}
.cart-panel-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #eebc1d;
    cursor: pointer;
}
.cart-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.cart-panel-footer {
    padding: 24px;
    border-top: 2px solid #eebc1d;
}
.cart-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #232946;
}
.cart-total {
    color: #eebc1d;
}
.cart-whatsapp-btn {
    width: 100%;
    background: #25d366;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 14px 0;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

/* Overlay del carrito */
#cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(35,41,70,0.45);
    z-index: 1299;
    display: none;
    transition: opacity 0.2s;
}

/* Modal de platillo */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(35,41,70,0.45);
    z-index: 1400;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show {
    display: flex;
}
/* Modal de Información y Platillo */
.modal-content {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(35,41,70,0.18);
    padding: 32px 24px;
    max-width: 65vw;
    width: 100%;
}
.modal-header {
    background: #1b1f36;
    border-radius: 18px 18px 0 0;
    padding: 24px 20px 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.modal-title {
    background: none !important;
    color: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-close {
    background: none;
    border: none;
    font-size: 1.7rem;
    color: #eebc1d;
    cursor: pointer;
    margin-left: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
}
.modal-body {
    padding: 0;
}
.info-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.info-content {
    flex: 1;
}
.service-badge {
    display: inline-block;
    background: #eebc1d;
    color: #232946;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.95em;
    margin-right: 8px;
    margin-bottom: 4px;
}
.service-badge.disabled {
    background: #eee;
    color: #aaa;
}
.whatsapp-link {
    color: #25d366;
    font-weight: 600;
    text-decoration: none;
}
.whatsapp-link:hover {
    text-decoration: underline;
}
.status-badge.open {
    background: #25d366;
    color: #fff;
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 0.95em;
    font-weight: 600;
}
.status-badge.closed {
    background: #dc3545;
    color: #fff;
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 0.95em;
    font-weight: 600;
} 

/* --- Estilos extraídos del JS para el modal de platillo y controles --- */
.dish-modal-img {
    width: 100%;
    max-width: 340px;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 24px rgba(60,60,120,0.22);
    object-fit: cover;
}
.dish-modal-desc {
    margin-bottom: 16px;
    font-size: 1.1em;
}
.dish-modal-sabor {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.dish-modal-sabor-icon {
    font-size: 1.3em;
}
.dish-modal-alergenos {
    margin-bottom: 12px;
}
.dish-modal-presentaciones {
    margin-bottom: 16px;
}
.dish-modal-presentaciones-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dish-modal-presentacion-label {
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dish-modal-precio {
    margin-bottom: 16px;
}
.dish-modal-adicionales {
    margin-bottom: 12px;
}
.dish-modal-adicional-label {
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 6px;
    font-weight: 500;
    cursor: pointer;
}
.dish-modal-footer-sticky {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 16px;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 2;
}
.dish-modal-qty-input {
    width: 60px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #eebc1d;
    padding: 4px 8px;
    font-size: 1.1em;
}
.dish-modal-add-btn {
    background: #eebc1d;
    color: #232946;
    font-weight: 700;
    padding: 10px 24px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.2s;
}
.dish-modal-add-btn:hover {
    background: #ffd700;
} 

/* --- Layout responsive para el modal de platillo --- */
.dish-modal-flex {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 18px;
}
.dish-modal-img-wrap {
    flex: 0 0 300px;
    max-width: 340px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.dish-modal-info {
    flex: 1 1 0%;
    min-width: 0;
}
@media (max-width: 700px) {
    .dish-modal-flex {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .dish-modal-img-wrap {
        max-width: 100%;
        margin-bottom: 0;
    }
} 