﻿/* ==========================================================
   PALMAS WEB
   SITE.CSS
   PREMIUM 2026
   MOBILE FIRST
========================================================== */


/* ==========================================================
   RESET / BASE
========================================================== */

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: #f5f6f8;
    color: #202124;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}


/* ==========================================================
   VARIABLES
========================================================== */

:root {
    --palmas-primary: #e53935;
    --palmas-primary-dark: #c62828;
    --palmas-dark: #171717;
    --palmas-text: #252525;
    --palmas-muted: #777777;
    --palmas-bg: #f5f6f8;
    --palmas-card: #ffffff;
    --palmas-border: #ececec;
    --palmas-success: #18884a;
    --palmas-success-bg: #f1fcf5;
    --palmas-danger: #d64039;
    --palmas-danger-bg: #fff7f6;
    --palmas-warning: #d39000;
    --palmas-radius: 18px;
    --palmas-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
    --palmas-shadow-lg: 0 20px 55px rgba(0, 0, 0, 0.16);
}


/* ==========================================================
   SELECCIÓN
========================================================== */

::selection {
    background: rgba(229, 57, 53, 0.18);
}


/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d2d2d2;
    border-radius: 20px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #bbbbbb;
    }


/* ==========================================================
   CONTENEDOR PRINCIPAL
========================================================== */

.main-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 72px;
    padding: 10px 10px calc(32px + env(safe-area-inset-bottom));
}


/* ==========================================================
   NAVBAR
========================================================== */

.navbar-pro {
    width: 100%;
    min-height: 66px;
    padding: 9px max(12px, env(safe-area-inset-right)) 9px max(12px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    transition: box-shadow 0.22s ease, background-color 0.22s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
}


/* ==========================================================
   LOGO / MARCA
========================================================== */

.logo-navbar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.brand-container {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-top {
    max-width: 190px;
    overflow: hidden;
    color: #747474;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.brand-bottom {
    max-width: 190px;
    overflow: hidden;
    color: #181818;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* ==========================================================
   BOTÓN CARRITO
========================================================== */

.btn-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 48px;
    min-height: 44px;
    padding: 8px 11px;
    border: none;
    border-radius: 50px;
    outline: none;
    background: linear-gradient( 135deg, #ed4945, var(--palmas-primary) );
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(229, 57, 53, 0.24);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

    .btn-cart:active {
        transform: scale(0.95);
    }

    .btn-cart i {
        font-size: 20px;
        line-height: 1;
    }

.badge-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border-radius: 50px;
    background: #ffffff;
    color: var(--palmas-primary);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}


/* ==========================================================
   ESTADO GENERAL DE HORARIO
========================================================== */

.estado-servicio {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 62px;
    padding: 11px 12px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--palmas-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.035);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.estado-servicio-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 13px;
    background: #f0f1f3;
    color: #616975;
    font-size: 18px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.estado-servicio-contenido {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

    .estado-servicio-contenido strong {
        overflow: hidden;
        color: #252525;
        font-size: 13px;
        font-weight: 750;
        line-height: 1.25;
        text-overflow: ellipsis;
    }

    .estado-servicio-contenido span {
        margin-top: 3px;
        color: #707070;
        font-size: 11px;
        line-height: 1.35;
    }


/* ==========================================================
   HORARIO - VERIFICANDO
========================================================== */

.estado-servicio.horario-verificando {
    background: #f8f9fa;
    border-color: #e7e9ec;
}

    .estado-servicio.horario-verificando
    .estado-servicio-icono {
        background: #eceff2;
        color: #626a76;
    }


/* ==========================================================
   HORARIO - DISPONIBLE
========================================================== */

.estado-servicio.horario-disponible {
    background: var(--palmas-success-bg);
    border-color: #d4f1df;
}

    .estado-servicio.horario-disponible
    .estado-servicio-icono {
        background: #dcf6e6;
        color: var(--palmas-success);
    }


/* ==========================================================
   HORARIO - CERRADO
========================================================== */

.estado-servicio.horario-cerrado {
    background: var(--palmas-danger-bg);
    border-color: #f2dcd9;
}

    .estado-servicio.horario-cerrado
    .estado-servicio-icono {
        background: #fce6e3;
        color: var(--palmas-danger);
    }


/* ==========================================================
   BANNERS
========================================================== */

.carousel {
    width: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #ececec;
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.07);
}

.carousel-inner {
    border-radius: 18px;
}

.carousel-item {
    overflow: hidden;
    border-radius: 18px;
}

    .carousel-item img {
        display: block;
        width: 100%;
        height: 175px !important;
        object-fit: cover;
        border-radius: 18px;
    }


/* ==========================================================
   CATEGORÍAS
========================================================== */

.scroll-categorias {
    display: flex;
    gap: 11px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 7px 2px 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .scroll-categorias::-webkit-scrollbar {
        display: none;
    }

.categoria-item {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 3px;
    text-align: center;
    opacity: 0.58;
    cursor: pointer;
    scroll-snap-align: start;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

    .categoria-item:active {
        transform: scale(0.96);
    }

    .categoria-item img {
        display: block;
        width: 62px;
        height: 62px;
        margin-bottom: 5px;
        padding: 2px;
        border: 2px solid transparent;
        border-radius: 50%;
        background: #ffffff;
        object-fit: cover;
        filter: grayscale(80%);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
        transition: filter 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .categoria-item div {
        max-width: 78px;
        overflow: hidden;
        color: #555555;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        text-overflow: ellipsis;
    }

.categoria-activa {
    opacity: 1 !important;
}

    .categoria-activa img {
        border-color: var(--palmas-primary);
        filter: grayscale(0%);
        box-shadow: 0 4px 16px rgba(229, 57, 53, 0.18);
    }

    .categoria-activa div {
        color: #242424;
        font-weight: 750;
    }


/* ==========================================================
   TÍTULO CATEGORÍA
========================================================== */

#tituloCategoria {
    margin: 2px 0 12px;
    color: #202020;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.2px;
}


/* ==========================================================
   PRODUCTOS
========================================================== */

.producto-item {
    animation: productoEntrada 0.24s ease both;
}

.card-producto {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #ededed;
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.045);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .card-producto > img {
        display: block;
        width: 100%;
        height: 145px;
        background: #f1f1f1;
        object-fit: cover;
    }

    .card-producto .p-2 {
        display: flex;
        flex: 1;
        flex-direction: column;
        padding: 10px !important;
    }

    .card-producto h6 {
        display: -webkit-box;
        min-height: 34px;
        margin: 0 0 4px;
        overflow: hidden;
        color: #222222;
        font-size: 13px;
        font-weight: 750;
        line-height: 17px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .card-producto small {
        display: -webkit-box;
        min-height: 30px;
        max-height: 30px;
        margin-bottom: 4px;
        overflow: hidden;
        color: #7a7a7a;
        font-size: 10.5px;
        line-height: 15px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

.precio {
    margin-top: auto;
    padding-top: 4px;
    color: var(--palmas-primary);
    font-size: 16px;
    font-weight: 850;
}

.card-producto .btn {
    min-height: 37px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 750;
}


/* ==========================================================
   BOTONES BOOTSTRAP
========================================================== */

.btn-primary {
    border-color: var(--palmas-primary) !important;
    background: linear-gradient( 135deg, #ed4945, var(--palmas-primary) ) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

    .btn-primary:hover,
    .btn-primary:focus {
        border-color: var(--palmas-primary-dark) !important;
        background: var(--palmas-primary-dark) !important;
        color: #ffffff !important;
    }

    .btn-primary:active {
        transform: scale(0.98);
    }

    .btn-primary:disabled {
        border-color: #c8c8c8 !important;
        background: #c8c8c8 !important;
        color: #ffffff !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }


/* ==========================================================
   PANEL DEL CARRITO
========================================================== */

.panel-carrito {
    position: fixed;
    top: 0;
    right: -105vw;
    display: flex;
    flex-direction: column;
    width: min(390px, 94vw);
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #ffffff;
    box-shadow: -12px 0 45px rgba(0, 0, 0, 0.18);
    z-index: 2500;
    transition: right 0.28s cubic-bezier( 0.25, 0.8, 0.25, 1 );
    padding-bottom: env(safe-area-inset-bottom);
}

    .panel-carrito.active {
        right: 0;
    }


/* ==========================================================
   HEADER CARRITO
========================================================== */

.carrito-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 14px 15px;
    border-bottom: 1px solid #eeeeee;
    background: #ffffff;
}

    .carrito-header h6 {
        margin: 0;
        color: #222222;
        font-size: 17px;
        font-weight: 800;
    }

    .carrito-header small {
        display: block;
        margin-top: 2px;
        font-size: 10.5px;
    }

    .carrito-header .btn-close {
        width: 36px;
        height: 36px;
        margin: 0;
        border-radius: 50%;
        background-color: #f3f3f3;
        opacity: 0.65;
    }


/* ==========================================================
   BODY CARRITO
========================================================== */

.carrito-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 14px;
    overscroll-behavior: contain;
}


/* ==========================================================
   ITEM CARRITO
========================================================== */

.carrito-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 78px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .carrito-item:last-child {
        border-bottom: 0;
    }


/* ==========================================================
   IMAGEN PRODUCTO CARRITO
========================================================== */

.carrito-item-imagen-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    min-width: 58px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    border-radius: 13px;
    background: #f6f6f6;
}

.carrito-item-imagen {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ==========================================================
   INFORMACIÓN CARRITO
========================================================== */

.carrito-item-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.carrito-item-nombre {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: #292929;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 16px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.carrito-item-cantidad {
    margin-top: 4px;
    color: #777777;
    font-size: 10.5px;
    font-weight: 500;
}


/* ==========================================================
   ACCIONES CARRITO
========================================================== */

.carrito-item-acciones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 7px;
    min-width: 62px;
}

.carrito-item-subtotal {
    color: #242424;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}


/* ==========================================================
   BOTÓN ELIMINAR
========================================================== */

.btn-eliminar-carrito {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 1px solid #f0dddd;
    border-radius: 9px;
    background: #fff5f4;
    color: #d8443d;
    cursor: pointer;
    outline: none;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

    .btn-eliminar-carrito i {
        font-size: 14px;
        line-height: 1;
    }

    .btn-eliminar-carrito:active {
        transform: scale(0.92);
        background: #fde6e4;
    }

    .btn-eliminar-carrito:hover {
        border-color: #ecc7c3;
        background: #fce9e7;
    }


/* ==========================================================
   FOOTER CARRITO
========================================================== */

.carrito-footer {
    flex-shrink: 0;
    padding: 12px 14px max( 14px, env(safe-area-inset-bottom) );
    border-top: 1px solid #eeeeee;
    background: #ffffff;
    box-shadow: 0 -5px 22px rgba(0, 0, 0, 0.035);
}


/* ==========================================================
   ESTADO HORARIO EN CARRITO
========================================================== */

.horario-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    padding: 10px 11px;
    margin-bottom: 12px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: #f7f7f7;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.horario-dot {
    width: 9px;
    height: 9px;
    min-width: 9px;
    margin-top: 4px;
    border-radius: 50%;
    background: #acb1b8;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.horario-texto {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

    .horario-texto strong {
        color: #292929;
        font-size: 11.5px;
        font-weight: 750;
        line-height: 1.3;
    }

    .horario-texto span {
        margin-top: 2px;
        color: #707070;
        font-size: 10.5px;
        line-height: 1.35;
    }


/* ==========================================================
   CARRITO - VERIFICANDO
========================================================== */

.horario-box.horario-verificando {
    border-color: #e8eaed;
    background: #f8f9fa;
}

    .horario-box.horario-verificando
    .horario-dot {
        background: #a7adb5;
        box-shadow: 0 0 0 4px rgba(120, 125, 132, 0.10);
    }


/* ==========================================================
   CARRITO - DISPONIBLE
========================================================== */

.horario-box.horario-disponible {
    border-color: #d4f1df;
    background: var(--palmas-success-bg);
}

    .horario-box.horario-disponible
    .horario-dot {
        background: #1d9b52;
        box-shadow: 0 0 0 4px rgba(29, 155, 82, 0.12);
    }


/* ==========================================================
   CARRITO - CERRADO
========================================================== */

.horario-box.horario-cerrado {
    border-color: #f2ddda;
    background: var(--palmas-danger-bg);
}

    .horario-box.horario-cerrado
    .horario-dot {
        background: #de433b;
        box-shadow: 0 0 0 4px rgba(222, 67, 59, 0.12);
    }


/* ==========================================================
   TOTAL DEL CARRITO
========================================================== */

.carrito-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    padding: 2px 1px 9px;
}


    /* TEXTO "TOTAL" */

    .carrito-total > span {
        color: #686868;
        font-size: 13px;
        font-weight: 650;
    }


    /*
   IMPORTANTE:

   El signo $ y el valor 0.00 tienen
   EXACTAMENTE EL MISMO TAMAÑO.
*/

    .carrito-total > strong {
        display: inline-flex;
        align-items: baseline;
        color: #181818;
        font-size: 21px;
        font-weight: 850;
        line-height: 1;
    }


        .carrito-total > strong > #totalCarrito {
            color: inherit;
            font-size: inherit;
            font-weight: inherit;
            line-height: inherit;
        }


/* ==========================================================
   BOTÓN FINALIZAR
========================================================== */

.btn-finalizar {
    width: 100%;
    min-height: 49px;
    border-radius: 14px !important;
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

    .btn-finalizar:not(:disabled):active {
        transform: scale(0.98);
    }

    .btn-finalizar:disabled {
        cursor: not-allowed;
    }


/* ==========================================================
   CARRITO VACÍO
========================================================== */

.carrito-vacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 20px;
    text-align: center;
}

    .carrito-vacio i {
        margin-bottom: 10px;
        color: #c2c2c2;
        font-size: 38px;
    }

    .carrito-vacio strong {
        color: #363636;
        font-size: 14px;
        font-weight: 750;
    }

    .carrito-vacio span {
        max-width: 230px;
        margin-top: 5px;
        color: #888888;
        font-size: 11px;
        line-height: 1.4;
    }


/* ==========================================================
   OVERLAY PREMIUM
========================================================== */

.overlay-espera {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px max( 20px, env(safe-area-inset-right) ) max( 20px, env(safe-area-inset-bottom) ) max( 20px, env(safe-area-inset-left) );
    visibility: hidden;
    opacity: 0;
    background: rgba(17, 17, 17, 0.40);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 5000;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

    .overlay-espera.visible {
        visibility: visible;
        opacity: 1;
    }


/* ==========================================================
   TARJETA OVERLAY
========================================================== */

.overlay-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(330px, 92vw);
    padding: 29px 22px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    text-align: center;
    box-shadow: var(--palmas-shadow-lg);
    animation: overlayEntrada 0.22s ease;
}

    .overlay-card strong {
        margin-top: 17px;
        color: #222222;
        font-size: 15px;
        font-weight: 800;
    }

    .overlay-card span {
        max-width: 260px;
        margin-top: 6px;
        color: #777777;
        font-size: 11.5px;
        line-height: 1.45;
    }


/* ==========================================================
   SPINNER PREMIUM
========================================================== */

.premium-spinner {
    position: relative;
    width: 43px;
    height: 43px;
    border: 4px solid #f1dbda;
    border-top-color: var(--palmas-primary);
    border-radius: 50%;
    animation: giroPremium 0.72s linear infinite;
}

@keyframes giroPremium {

    to {
        transform: rotate(360deg);
    }
}


/* ==========================================================
   TOAST PREMIUM
========================================================== */

.toast-palmas {
    position: fixed;
    left: 50%;
    bottom: calc( 18px + env(safe-area-inset-bottom) );
    display: flex;
    align-items: center;
    gap: 9px;
    width: max-content;
    max-width: calc(100vw - 24px);
    min-height: 45px;
    padding: 10px 14px;
    visibility: hidden;
    opacity: 0;
    transform: translate(-50%, 16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(32, 32, 32, 0.96);
    color: #ffffff;
    font-size: 11.5px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.23);
    backdrop-filter: blur(8px);
    z-index: 6000;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

    .toast-palmas.visible {
        visibility: visible;
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .toast-palmas i {
        flex-shrink: 0;
        font-size: 17px;
    }

    .toast-palmas span {
        line-height: 1.35;
    }

.toast-success i {
    color: #79e7a6;
}

.toast-warning i {
    color: #ffd46c;
}

.toast-info i {
    color: #7ecbff;
}


/* ==========================================================
   ANIMACIONES
========================================================== */

.fade-in {
    animation: fadeIn 0.24s ease both;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes productoEntrada {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


@keyframes overlayEntrada {

    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ==========================================================
   TELÉFONOS MUY PEQUEÑOS
   320 - 359
========================================================== */

@media (max-width: 359px) {

    .main-container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .logo-navbar {
        width: 35px;
        height: 35px;
    }

    .brand-top {
        max-width: 145px;
        font-size: 9px;
    }

    .brand-bottom {
        max-width: 145px;
        font-size: 13px;
    }

    .btn-cart {
        min-width: 42px;
        min-height: 40px;
        padding: 6px 9px;
    }

        .btn-cart i {
            font-size: 18px;
        }

    .carousel-item img {
        height: 150px !important;
    }

    .categoria-item {
        min-width: 64px;
    }

        .categoria-item img {
            width: 56px;
            height: 56px;
        }

    .card-producto > img {
        height: 125px;
    }

    .card-producto .p-2 {
        padding: 8px !important;
    }

    .card-producto h6 {
        font-size: 12px;
    }

    .precio {
        font-size: 14px;
    }

    .card-producto .btn {
        padding-left: 4px;
        padding-right: 4px;
        font-size: 11px;
    }

    .carrito-item {
        gap: 8px;
    }

    .carrito-item-imagen-container {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .carrito-item-acciones {
        min-width: 55px;
    }

    .carrito-item-subtotal {
        font-size: 11.5px;
    }
}


/* ==========================================================
   MÓVIL ESTÁNDAR
========================================================== */

@media ( min-width: 360px ) and ( max-width: 480px ) {

    .main-container {
        margin-top: 71px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .logo-navbar {
        width: 38px;
        height: 38px;
    }

    .brand-top {
        font-size: 9.5px;
    }

    .brand-bottom {
        font-size: 14px;
    }

    .carousel-item img {
        height: 175px !important;
    }

    .estado-servicio {
        border-radius: 14px;
    }

    .card-producto > img {
        height: 145px;
    }

    .btn-cart {
        min-width: 44px;
        min-height: 42px;
        padding: 7px 10px;
    }
}


/* ==========================================================
   MÓVIL GRANDE
========================================================== */

@media ( min-width: 481px ) and ( max-width: 767px ) {

    .main-container {
        max-width: 560px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .carousel-item img {
        height: 210px !important;
    }

    .card-producto > img {
        height: 170px;
    }
}


/* ==========================================================
   TABLET
========================================================== */

@media ( min-width: 768px ) and ( max-width: 991px ) {

    .main-container {
        max-width: 850px;
        margin-top: 77px;
        padding: 16px 18px 40px;
    }

    .navbar-pro {
        min-height: 70px;
        padding-left: 22px;
        padding-right: 22px;
    }

    .logo-navbar {
        width: 46px;
        height: 46px;
    }

    .brand-top {
        max-width: 300px;
        font-size: 11px;
    }

    .brand-bottom {
        max-width: 300px;
        font-size: 16px;
    }

    .carousel-item img {
        height: 260px !important;
    }

    .categoria-item {
        min-width: 88px;
    }

        .categoria-item img {
            width: 76px;
            height: 76px;
        }

    .card-producto > img {
        height: 185px;
    }
}


/* ==========================================================
   ESCRITORIO
========================================================== */

@media ( min-width: 992px ) {

    .main-container {
        max-width: 1180px;
        margin-top: 80px;
        padding: 18px 22px 45px;
    }

    .navbar-pro {
        min-height: 72px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .logo-navbar {
        width: 48px;
        height: 48px;
    }

    .brand-top {
        max-width: 400px;
        font-size: 11px;
    }

    .brand-bottom {
        max-width: 400px;
        font-size: 17px;
    }

    .btn-cart:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 19px rgba(229, 57, 53, 0.28);
    }

    .carousel-item img {
        height: 290px !important;
    }

    .categoria-item {
        min-width: 95px;
    }

        .categoria-item img {
            width: 82px;
            height: 82px;
        }

    .card-producto:hover {
        transform: translateY(-4px);
        border-color: #e4e4e4;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.09);
    }

    .card-producto > img {
        height: 180px;
    }
}


/* ==========================================================
   ESCRITORIO GRANDE
========================================================== */

@media (min-width: 1400px) {

    .main-container {
        max-width: 1320px;
    }

    .carousel-item img {
        height: 320px !important;
    }

    .card-producto > img {
        height: 190px;
    }
}


/* ==========================================================
   ORIENTACIÓN HORIZONTAL EN MÓVIL
========================================================== */

@media ( max-height: 500px ) and ( orientation: landscape ) {

    .panel-carrito {
        width: min(440px, 75vw);
    }

    .carrito-header {
        min-height: 56px;
        padding: 9px 14px;
    }

    .carrito-footer {
        padding-top: 8px;
    }

    .overlay-card {
        padding: 18px 20px;
    }

    .premium-spinner {
        width: 36px;
        height: 36px;
    }
}


/* ==========================================================
   ACCESIBILIDAD / REDUCIR ANIMACIONES
========================================================== */

@media ( prefers-reduced-motion: reduce ) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
