/* SupMenu — menu-cart.css
 * Version: 2026.06.25-1
 */
/* Carrito de pedidos — menú público */
.product-card--cart,
.super-featured-card.product-card--cart,
.featured-product-card.product-card--cart {
    position: relative;
}

.cart-add-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color, #c9a227);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, background 0.15s ease;
}

.cart-add-btn:hover {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.cart-add-btn:active {
    transform: scale(0.96);
}

.floating-btn.cart-order-btn {
    background: #25d366;
    color: #fff;
    position: relative;
}

.floating-btn.cart-order-btn.has-items {
    animation: cart-pulse 2s ease-in-out infinite;
}

.floating-btn.salon-waiter-btn {
    background: var(--primary-color, #c9a227);
    color: #fff;
}

.floating-btn.salon-bill-btn {
    background: #5c6bc0;
    color: #fff;
}

@keyframes cart-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 2px 16px rgba(37, 211, 102, 0.75); }
}

.cart-order-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.order-cart-overlay,
.cart-variant-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.order-cart-panel,
.cart-variant-sheet {
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    padding: 16px 18px 24px;
    overflow-y: auto;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
}

.order-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.order-cart-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.order-cart-close {
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
}

.order-cart-empty {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 8px 0 24px;
}

.order-cart-list {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.order-cart-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.order-cart-line-info {
    flex: 1;
    min-width: 0;
}

.order-cart-line-name {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.order-cart-line-variant {
    display: block;
    font-size: 0.82rem;
    color: #777;
}

.order-cart-line-price {
    display: block;
    font-size: 0.88rem;
    margin-top: 2px;
}

.order-cart-line-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.order-cart-line-actions button {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f8f8;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.order-cart-remove {
    color: #c62828;
    border-color: #ffcdd2 !important;
    background: #ffebee !important;
}

.order-cart-total {
    text-align: right;
    font-size: 1rem;
    margin-bottom: 12px;
    padding-top: 4px;
}

.order-cart-field {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #444;
}

.order-cart-field input,
.order-cart-field textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.order-cart-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.order-cart-clear {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.order-cart-send-wa {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border: none;
    border-radius: 10px;
    background: #25d366;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
}

.order-cart-send-wa:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.order-cart-send-disabled {
    text-align: center;
    font-size: 0.85rem;
    color: #555;
}

.cart-variant-title {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.cart-variant-sub {
    margin: 0 0 12px;
    color: #666;
    font-size: 0.9rem;
}

.cart-variant-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.cart-variant-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    cursor: pointer;
    font-size: 0.95rem;
}

.cart-variant-option:hover {
    border-color: var(--primary-color, #c9a227);
    background: #fff;
}

.cart-variant-cancel {
    width: 100%;
    padding: 10px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Tipo de pedido (delivery) */
.order-cart-order-type {
    margin: 0 0 12px;
    padding: 0;
    border: none;
}

.order-cart-order-type legend {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    padding: 0;
}

.order-cart-order-type-options {
    display: flex;
    gap: 8px;
}

.order-cart-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
    font-size: 0.88rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
}

.order-cart-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.order-cart-type-option.is-selected {
    border-color: var(--primary-color, #c9a227);
    background: #fff;
    font-weight: 600;
}

.order-cart-field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.35;
}

/* Perfil delivery: thumbs más grandes y botón agregar abajo */
body[data-product-profile="delivery"] .product-card--cart .product-image,
body[data-product-profile="delivery"] .featured-product-card.product-card--cart .product-image,
body[data-product-profile="delivery"] .super-featured-card.product-card--cart .product-image,
body[data-product-profile="delivery"] .super-featured-card-especial.product-card--cart .product-image {
    width: 100px !important;
    height: 100px !important;
    min-width: 100px;
    min-height: 100px;
}

body[data-product-profile="delivery"] .product-card--cart,
body[data-product-profile="delivery"] .featured-product-card.product-card--cart,
body[data-product-profile="delivery"] .super-featured-card.product-card--cart,
body[data-product-profile="delivery"] .super-featured-card-especial.product-card--cart {
    padding-right: 4px;
}

.cart-add-btn--pos-bottom {
    top: auto;
    bottom: 10px;
    right: 10px;
}

@media (min-width: 600px) {
    .order-cart-overlay,
    .cart-variant-overlay {
        align-items: center;
    }

    .order-cart-panel,
    .cart-variant-sheet {
        border-radius: 16px;
        margin-bottom: 0;
    }
}
