﻿/* ==========================================
   PÁGINA: MI ORDEN (ESTILOS PREMIUM)
   ========================================== */

.order-page {
    padding: 28px 0 56px;
    background-color: #fcf8f2; /* Fondo de página sutilmente cálido */
    min-height: 85vh;
}

/* --- Hero Banner --- */
.order-hero {
    background: linear-gradient(135deg, #2b1a12 0%, #4a2412 60%, #c2410c 100%);
    padding: 35px 25px;
    color: #fff;
    border-radius: 15px; /* Radio de 15px solicitado */
    box-shadow: 0 12px 35px rgba(43, 26, 18, 0.15);
}

.order-eyebrow {
    color: #ff843d;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 8px;
}

.order-hero h1 {
    font-weight: 700;
    margin-bottom: 5px;
}

.order-hero p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 1rem;
}

/* --- Tarjetas Principales (Contenedores) --- */
.order-card,
.order-summary {
    background-color: #ffffff;
    border: 1px solid rgba(120, 72, 28, 0.12);
    border-radius: 15px; /* Radio de 15px solicitado */
    padding: 25px;
    box-shadow: 0 8px 24px rgba(43, 26, 18, 0.04);
}

/* --- Encabezados dentro de tarjetas --- */
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #fff3df;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

    .order-card-header h2,
    .order-summary h2 {
        font-size: 1.35rem;
        color: #2b1a12;
        font-weight: 700;
        margin: 0;
    }

    .order-card-header span {
        background-color: #fff3df;
        color: #c2410c;
        padding: 4px 12px;
        border-radius: 15px; /* Unificado */
        font-size: 0.85rem;
        font-weight: 600;
    }

/* --- Lista e Ítems de la Orden --- */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-item {
    border: 1px solid #fff3df;
    border-radius: 15px; /* Estructura del item con 15px */
    padding: 15px;
    background-color: #fffdfa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .order-item:hover {
        box-shadow: 0 4px 15px rgba(43, 26, 18, 0.06);
    }

/* Contenedor interno para alinear imagen, información y precio */
.order-item-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Contenedor e Imagen */
.order-img-container {
    width: 80px;
    height: 80px;
    border-radius: 15px; /* Radio de 15px solicitado */
    overflow: hidden;
    background-color: #f7f7f7;
    flex-shrink: 0;
    border: 1px solid rgba(120, 72, 28, 0.08);
}

.order-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Información del producto */
.order-info {
    flex-grow: 1;
    min-width: 200px;
}

    .order-info h3 {
        font-size: 1.1rem;
        color: #2b1a12;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .order-info p {
        font-size: 0.85rem;
        color: #6b584c;
        margin-bottom: 10px;
    }

/* Controles de Cantidad (+ / -) */
.order-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #fff3df;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 15px; /* Unificado */
}

.qty-btn {
    background: none;
    border: none;
    color: #2b1a12;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

    .qty-btn:hover {
        color: #ff843d;
    }

.qty-number {
    font-weight: 700;
    color: #2b1a12;
    background-color: transparent !important;
    border: none !important;
    min-width: 15px;
    max-height: 30px;
    text-align: center;
    font-size: 0.95rem;
    resize: none;
}
    .qty-number:focus {
        border: none !important;
        outline: none !important;
        box-shadow: none !important; /* Quita posibles sombras de Bootstrap */
    }

/* Precios y Botón Borrar */
.order-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    justify-content: space-between;
    align-self: stretch;
}

    .order-price span {
        font-size: 1.15rem;
        font-weight: 700;
        color: #2b1a12;
    }

.remove-btn {
    background-color: rgba(220, 53, 69, 0.08);
    border: none;
    color: #dc3545;
    padding: 6px 10px;
    border-radius: 15px; /* Unificado */
    cursor: pointer;
    transition: all 0.2s ease;
}

    .remove-btn:hover {
        background-color: #dc3545;
        color: #fff;
    }

/* --- Caja de Texto para Notas Especiales (Añadido) --- */
.order-item-notes {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed rgba(120, 72, 28, 0.15);
}

    .order-item-notes label {
        font-size: 0.8rem;
        font-weight: 600;
        color: #8c7667;
        margin-bottom: 6px;
        display: flex;
        align-items: center;
        gap: 5px;
    }

.order-notes-input {
    border-radius: 15px !important; /* Forzado con 15px */
    border: 1px solid rgba(120, 72, 28, 0.18);
    background-color: #ffffff;
    font-size: 0.85rem;
    color: #2b1a12;
    padding: 10px 14px;
    resize: none; /* Evita que el usuario lo deforme */
    height: 48px; /* Altura compacta ideal */
    transition: all 0.2s ease-in-out;
}

    .order-notes-input:focus {
        border-color: #ff843d;
        box-shadow: 0 0 0 0.2rem rgba(255, 132, 61, 0.15);
        background-color: #fffdfa;
    }

/* --- Resumen Lateral de Compra --- */
.order-summary h2 {
    border-bottom: 2px solid #fff3df;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #6b584c;
}

    .summary-row strong {
        color: #2b1a12;
    }

.summary-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #fff3df;
    padding-top: 15px;
    margin-top: 15px;
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2b1a12;
}

    .summary-total strong {
        color: #c2410c;
        font-size: 1.35rem;
    }

/* --- Botones de Acción de Compra --- */
.btn-send-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25d366; /* Color WhatsApp oficial */
    color: white;
    text-decoration: none;
    padding: 14px;
    border-radius: 15px; /* Radio de 15px solicitado */
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    transition: all 0.2s ease;
}

    .btn-send-order:hover {
        background-color: #1ebd58;
        color: white;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    }

.btn-back-menu {
    display: block;
    text-align: center;
    background-color: #fff3df;
    color: #2b1a12;
    text-decoration: none;
    padding: 12px;
    border-radius: 15px; /* Radio de 15px solicitado */
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 1px solid rgba(120, 72, 28, 0.08);
}

    .btn-back-menu:hover {
        background-color: #2b1a12;
        color: #fff3df;
    }

/* --- Ajustes Responsivos Móviles --- */
@media (max-width: 576px) {
    .order-item-main {
        flex-direction: row;
        justify-content: space-between;
    }

    .order-info {
        width: 100%;
        order: 3; /* Empuja el texto abajo en móviles ultra-chicos si no cabe */
        margin-top: 10px;
    }

    .order-price {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
        border-top: 1px solid rgba(120, 72, 28, 0.05);
        padding-top: 10px;
    }
.order-checkout-fields {
    background: #fff8ef;
    border: 1px solid rgba(194, 65, 12, .10);
    border-radius: 18px;
    padding: 18px;
}

    .order-input {
        background: #fff8ef !important;
        border: 1px solid rgba(194, 65, 12, .15) !important;
        color: #2b1a12 !important;
        border-radius: 14px !important;
        padding: 12px 14px !important;
        box-shadow: none !important;
        transition: all .2s ease;
    }

        .order-input::placeholder {
            color: #9a8472;
        }

        .order-input:focus {
            background: #ffffff !important;
            border-color: #ea580c !important;
            box-shadow: 0 0 0 .25rem rgba(234, 88, 12, .15) !important;
            color: #2b1a12 !important;
        }

    .form-select.order-input {
        cursor: pointer;
    }

        .form-select.order-input option {
            background: #ffffff;
            color: #2b1a12;
        }
    .order-checkout-fields {
        background: #fff8ef;
        border: 1px solid rgba(194, 65, 12, .10);
        border-radius: 18px;
        padding: 18px;
    }
}
