:root {
    --primary: #D5282A; /* Rojo principal de tu diseño */
    --bg-color: #f4f4f5;
    --surface: #ffffff;
    --secondary: blue;
    --text-main: #25262c;
    --text-muted: #6b7280;
}

* {
    font-family: "Inter", sans-serif !important;
    font-optical-sizing: auto;
    font-style: normal !important;
    color: var(--text-main);

    user-select: none;
    scrollbar-width: none;
}

/* tienda.html */
#productList{
    gap: 12px;
    display: flex;
    flex-direction: column;
}


/* =========================================
    BARRA FLOTANTE DE PAGO (Animación y Estilos)
   ========================================= */
#checkoutBar, #confirmOrderBar {
    z-index: 98; /* Queda justo por detrás de la botonera principal */
    bottom: 27px;
    background: var(--secondary);
    color: var(--text-main);
    box-sizing: border-box;
    justify-content: space-between;
    padding: 7px 20px 49px; /* Padding ajustado */
    
    /* Animación: Oculto abajo por defecto */
    transform: translateY(70%); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.05); 
}

/* Esta clase se agrega/quita con JavaScript */
#checkoutBar.show, #confirmOrderBar.show {
    transform: translateY(0);
}
.go-pay {
    padding: 8px 21px 8px 30px;
    cursor: pointer;
    white-space: nowrap;
    border-radius: var(--radius-btn, 23px);
    border: none;
    background: var(--primary);
    color: var(--secondary);
    font-size: 1.35em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 11px;
    overflow: hidden;
}


/* =========================================
    MODAL DE PRODUCTO (Bottom Sheet)
   ========================================= */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1000;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease;
}
.modal-backdrop.show {
    opacity: 1; visibility: visible;
}

.product-modal {
    position: fixed; bottom: 0; left: 50%; transform: translate(-50%, 100%);
    width: 100%; max-width: 480px; max-height: 93vh;
    z-index: 1001;
    border-radius: var(--radius-xl, 40px) var(--radius-xl, 40px) 0 0; overflow-y: auto; overflow-x: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1);
    display: flex; flex-direction: column;
}
.product-modal.show {
    transform: translate(-50%, 0);
}

/* Ajustes específicos para el interior del modal */
.product-modal .product-hero { margin: 0 0 -20px; border-radius: var(--radius-xl, 40px) var(--radius-xl, 40px) 0 0; height: 280px; background-color: var(--text-main); }
.product-modal .sticky-action { box-shadow: 0 -4px 20px rgba(0,0,0,0.08); }
.product-modal.show #prodDetailDesc { -webkit-line-clamp: none; }


/* =========================================
    CUSTOM RADIOS Y CHECKBOXES
   ========================================= */
        
/* 1. Reseteo y base (Aplica a ambos) */
.option-row input[type="radio"],
.option-row input[type="checkbox"], input[type="radio"], input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    margin: 0;
    outline: none;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background-color: transparent;
    flex-shrink: 0; /* Evita que se aplaste si el texto es muy largo */
}

/* 2. Formas (Radio = Círculo, Checkbox = Cuadrado redondeado) */
.option-row input[type="radio"], input[type="radio"] {
    border-radius: var(--radius-btn, 50%);
}
.option-row input[type="checkbox"], input[type="checkbox"] {
    border-radius: var(--radius-btn, 50%);
}

/* 3. Borde coloreado al seleccionar (Ambos) */
.option-row input[type="radio"]:checked, input[type="radio"]:checked,
.option-row input[type="checkbox"]:checked, input[type="checkbox"]:checked {
    border-color: var(--primary);
}

/* 4. Dibujo interno del Radio Button (El punto) */
.option-row input[type="radio"]:checked::after, input[type="radio"]:checked::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: var(--radius-btn, 50%);
    position: absolute;
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 5. Dibujo interno del Checkbox (El tilde y fondo lleno) */
.option-row input[type="checkbox"]:checked, input[type="checkbox"]:checked {
    background-color: var(--primary);
}
.option-row input[type="checkbox"]:checked::after, input[type="checkbox"]:checked::after {
    content: '';
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: absolute;
    margin-bottom: 2px;
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 6. Animación de "rebote" suave al hacer clic */
@keyframes popIn {
    0% { transform: scale(0) rotate(0deg); }
    100% { transform: scale(1) rotate(45deg); } /* Rotate aplica al tilde, no afecta al círculo */
}

/* Animación de "Respiración" para el estado del pedido */
@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.pulsing-text {
    animation: pulse-status 2.5s ease-in-out infinite;
}

/* =========================================
    MODO CUADRÍCULA (GRID LAYOUT)
   ========================================= */
#productList.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#productList.grid-layout .product-card { flex-direction: column; }
#productList.grid-layout .product-card img { width: 100%; aspect-ratio: 1; height: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
#productList.grid-layout .product-info { display: flex; flex-direction: column; justify-content: space-between; flex: 1; }