/* ==========================================================================
   LOOPLUXE PERÚ - CSS OFICIAL (ESTÁNDAR PREMIUM)
   ========================================================================== */

:root {
    --fondo: #faf9f6;
    --texto: #111827;
    --gris-claro: #f8fafc;
    --gris-medio: #64748b;
    --acento: #000000;
    --oferta: #dc2626;
    /* Un rojo más elegante y profundo */
    --borde: #e2e8f0;
    --focus: #2563eb;
    --nav-height: 75px;
    --bottom-nav-height: 65px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--fondo);
    color: var(--texto);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.2px;
}

* {
    box-sizing: border-box;
}

/* ==========================================================================
   SISTEMA DE NOTIFICACIONES (TOAST)
   ========================================================================== */
#toast-container {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid var(--acento);
    box-shadow: var(--shadow-md);
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    border-left-color: var(--oferta);
}

/* ==========================================================================
   NAVEGACIÓN SUPERIOR (NAVBAR PRINCIPAL)
   ========================================================================== */
.navbar-principal {
    position: sticky;
    top: 0;
    height: var(--nav-height);
    background: rgba(250, 249, 246, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 1000;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.5px;
    cursor: pointer;
    color: var(--acento);
    flex-shrink: 0;
}

.logo span {
    font-weight: 300;
    color: var(--gris-medio);
}

.btn-hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--acento);
}

/* Buscador Flotante */
.buscador-container {
    flex: 1;
    max-width: 450px;
    position: relative;
    display: flex;
}

.buscador-container input {
    width: 100%;
    padding: 14px 40px 14px 24px;
    border-radius: 30px;
    border: 1px solid var(--borde);
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.buscador-container input:focus {
    border-color: var(--acento);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.resultados-busqueda-flotante {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--borde);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    padding: 10px 0;
}

/* ==========================================================================
   MEGA MENÚ DESKTOP (EL TOQUE DE LUJO)
   ========================================================================== */
.menu-desktop {
    display: flex;
    gap: 30px;
    align-items: center;
    height: 100%;
    position: static;
}

.nav-item-drop {
    display: flex;
    align-items: center;
    height: 100%;
    cursor: pointer;
    position: static;
}

.nav-item-drop>a {
    text-decoration: none;
    color: var(--gris-medio);
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0;
    position: relative;
}

.nav-item-drop:hover>a,
.nav-item-drop>a.activo {
    color: var(--acento);
}

/* Subrayado sutil al hacer hover */
.nav-item-drop>a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--acento);
    transition: width 0.3s ease;
}

.nav-item-drop:hover>a::after,
.nav-item-drop>a.activo::after {
    width: 100%;
}

.mega-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: var(--shadow-md);
    border-radius: 0 0 20px 20px;
    border: 1px solid var(--borde);
    border-top: none;
    padding: 40px;
    display: flex;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
    pointer-events: none;
}

.nav-item-drop:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 1000;
    pointer-events: auto;
}

.mega-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mega-column h4 {
    margin: 0 0 10px 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--texto);
    border-bottom: 1px solid var(--borde);
    padding-bottom: 10px;
}

.mega-column a {
    color: var(--gris-medio);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
    display: flex;
    align-items: center;
}

.mega-column a:hover {
    color: var(--acento);
    transform: translateX(4px);
}

.img-column {
    flex: 1.2;
}

.mega-img-box {
    width: 100%;
    height: 100%;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Botón Rastrear y Carrito */
.btn-rastreo-nav {
    background: var(--acento);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 30px;
    font-weight: 700 !important;
}

.btn-rastreo-nav:hover {
    background: #333;
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.btn-carrito-nav {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acento);
    background: white;
    border: 1px solid var(--borde);
}

.btn-carrito-nav:hover {
    background: var(--gris-claro);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--acento);
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0 4px;
    border: 2px solid white;
}

/* ==========================================================================
   MENÚ LATERAL MÓVIL (OFF-CANVAS)
   ========================================================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(4px);
}

.menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.menu-lateral {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: white;
    z-index: 10000;
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 20px 0 50px rgba(0, 0, 0, 0.1);
}

.menu-lateral.open {
    left: 0;
}

.menu-lateral-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--borde);
}

.btn-cerrar-menu {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--acento);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-lateral-content {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Acordeón Móvil Premium */
.btn-acordeon-movil {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 18px 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--texto);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    border-radius: 12px;
    transition: 0.2s;
}

.btn-acordeon-movil:hover {
    background: var(--fondo);
}

.contenido-acordeon-movil {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: white;
    margin: 0 10px;
}

.contenido-acordeon-movil a {
    display: block;
    padding: 12px 15px;
    font-size: 14px;
    color: var(--gris-medio);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    margin-bottom: 2px;
}

.contenido-acordeon-movil a:hover {
    background: var(--fondo);
    color: var(--texto);
}

/* ==========================================================================
   VISTAS Y GRILLAS PRINCIPALES
   ========================================================================== */
.vista-app {
    display: none;
    padding: 40px 5%;
    max-width: 1440px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.vista-app.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Portada Premium */
.hero-banner-premium {
    background: linear-gradient(to right, #1a1a1a, #000000);
    color: white;
    text-align: left;
    padding: 100px 60px;
    border-radius: 24px;
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
    background-image: url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-banner-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-banner-premium>* {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

/* Grillas y Carruseles */
.carousel-section {
    margin-bottom: 60px;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    padding: 0 5px;
}

.carousel-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: var(--texto);
    letter-spacing: -0.5px;
}

.carousel-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 5px 30px 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-track .tarjeta-producto {
    min-width: 280px;
    max-width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.grid-loop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   TARJETAS DE PRODUCTO (LA VITRINA)
   ========================================================================== */
.tarjeta-producto {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    border: 1px solid var(--borde);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tarjeta-producto:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.tarjeta-img-box {
    width: 100%;
    aspect-ratio: 1 / 1.05;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tarjeta-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.tarjeta-producto:hover .tarjeta-img-box img {
    transform: scale(1.06);
}

.badge-descuento {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--oferta);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    letter-spacing: 0.5px;
}

.tarjeta-info {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tarjeta-marca {
    font-size: 11px;
    color: var(--gris-medio);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.tarjeta-info h3 {
    font-size: 15px;
    margin: 0 0 14px 0;
    font-weight: 600;
    color: var(--texto);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.precio-contenedor {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.precio-tachado {
    font-size: 13px;
    color: var(--gris-medio);
    text-decoration: line-through;
    font-weight: 500;
}

.precio-final {
    font-size: 20px;
    font-weight: 900;
    color: var(--acento);
}

/* ==========================================================================
   SISTEMA DE VARIANTES Y COLORES (SWATCHES)
   ========================================================================== */
.swatch-container {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.swatch-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: 0.2s;
    background-color: #ccc;
    position: relative;
}

.swatch-circle:hover {
    transform: scale(1.15);
}

.swatch-circle.active {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--acento);
    transform: scale(1.1);
}

/* ==========================================================================
   VISTA DE DETALLE DE PRODUCTO Y PREPARACIÓN DE ZOOM
   ========================================================================== */
.btn-volver {
    background: transparent;
    border: 1px solid var(--borde);
    color: var(--texto);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 30px;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    font-family: inherit;
}

.btn-volver:hover {
    background: var(--fondo);
    border-color: var(--acento);
}

.producto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

.producto-galeria {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: calc(var(--nav-height) + 30px);
}

.galeria-main-box {
    width: 100%;
    aspect-ratio: 1/1;
    background: white;
    border-radius: 24px;
    border: 1px solid var(--borde);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: crosshair;
}

.galeria-main-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

.galeria-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.galeria-thumbs img {
    width: 85px;
    height: 85px;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: 0.3s;
    background: white;
}

.galeria-thumbs img:hover,
.galeria-thumbs img.active {
    border-color: var(--acento);
    opacity: 1;
}

.producto-info h1 {
    font-size: 32px;
    margin: 0 0 15px 0;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.producto-marca {
    display: inline-block;
    background: white;
    color: var(--texto);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid var(--borde);
    box-shadow: var(--shadow-sm);
}

.producto-precio-caja {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--borde);
    margin: 25px 0;
    box-shadow: var(--shadow-sm);
}

.producto-precio-tachado {
    font-size: 16px;
    color: var(--gris-medio);
    text-decoration: line-through;
    margin-bottom: 8px;
    font-weight: 500;
}

.producto-precio-final {
    font-size: 36px;
    font-weight: 900;
    color: var(--acento);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.badge-ahorro {
    background: #fef2f2;
    color: var(--oferta);
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    font-weight: 800;
}

.opciones-selector {
    margin-bottom: 35px;
}

.opciones-selector h4 {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--gris-medio);
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 800;
}

.opciones-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-opcion {
    padding: 14px 24px;
    border: 1px solid var(--borde);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    font-size: 14px;
    transition: 0.2s;
    color: var(--texto);
}

.btn-opcion:hover {
    border-color: var(--acento);
    background: var(--fondo);
}

.btn-opcion.seleccionado {
    background: var(--acento);
    color: white;
    border-color: var(--acento);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-agregar {
    width: 100%;
    padding: 22px;
    background: var(--acento);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.btn-agregar:hover {
    background: #222;
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-agregar:active {
    transform: translateY(0);
}

/* ==========================================================================
   CARRITO DE COMPRAS
   ========================================================================== */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.cart-items-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: flex;
    gap: 25px;
    background: white;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid var(--borde);
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.cart-item-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--fondo);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.cart-item-price {
    font-weight: 900;
    color: var(--acento);
    font-size: 20px;
    display: block;
    margin-top: 10px;
}

.btn-remove {
    background: #fef2f2;
    color: var(--oferta);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.2s;
}

.btn-remove:hover {
    background: #fee2e2;
}

.cart-summary-box {
    background: white;
    padding: 35px;
    border-radius: 24px;
    border: 1px solid var(--borde);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: calc(var(--nav-height) + 30px);
}

.specs-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 16px;
}

.btn-comprar {
    width: 100%;
    padding: 22px;
    background: var(--acento);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 25px;
    transition: 0.3s;
    box-shadow: var(--shadow-md);
}

.btn-comprar:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* ==========================================================================
   NAVEGACIÓN INFERIOR MÓVIL (BOTTOM NAV - ESTILO iOS)
   ========================================================================== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: var(--bottom-nav-height);
    background: rgba(255, 255, 255, 0.90);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    /* Adaptación para iPhone Notch */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--gris-medio);
    cursor: pointer;
    gap: 5px;
    height: 100%;
    width: 20%;
    transition: 0.2s;
}

.nav-item.activo {
    color: var(--acento);
}

.nav-item.activo svg {
    stroke: var(--acento);
}

/* ==========================================================================
   MEDIA QUERIES (PIXEL PERFECT)
   ========================================================================== */

/* Laptops Pequeñas y Tablets Horizontales */
@media (max-width: 1200px) {
    .producto-layout {
        gap: 40px;
    }
}

/* TABLETS (iPad) */
@media (max-width: 1024px) {
    .menu-desktop {
        display: none !important;
    }

    .btn-hamburger {
        display: block;
    }

    .grid-loop {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }

    .carousel-track .tarjeta-producto {
        min-width: 240px;
        max-width: 240px;
    }

    .producto-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .producto-galeria {
        position: static;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-box {
        position: static;
    }
}

/* CELULARES GRANDES */
@media (max-width: 768px) {
    body {
        padding-bottom: calc(var(--bottom-nav-height) + 15px);
    }

    .navbar-principal {
        padding: 12px 20px;
        flex-wrap: wrap;
        height: auto;
        gap: 15px;
    }

    .btn-hamburger {
        display: none;
    }

    .bottom-nav {
        display: flex;
    }

    .logo {
        font-size: 22px;
    }

    .buscador-container {
        width: 100%;
        max-width: 100%;
        order: 3;
    }

    .buscador-container input {
        padding: 12px 40px 12px 20px;
        border-radius: 12px;
        font-size: 15px;
    }

    .vista-app {
        padding: 20px 15px;
    }

    .hero-banner-premium {
        padding: 50px 20px;
        border-radius: 20px;
        margin-bottom: 40px;
        text-align: center;
    }

    .hero-banner-premium h1 {
        font-size: 28px;
        letter-spacing: 0px;
    }

    .hero-banner-premium>* {
        margin: 0 auto;
    }

    .carousel-header h2 {
        font-size: 20px;
    }

    /* Obligamos a 2 columnas en móviles para mantener estética de eCommerce top */
    .grid-loop {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .carousel-track {
        gap: 15px;
        padding-bottom: 15px;
    }

    .carousel-track .tarjeta-producto {
        min-width: 170px;
        max-width: 170px;
    }

    .tarjeta-info {
        padding: 15px;
    }

    .tarjeta-info h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .precio-final {
        font-size: 16px;
    }

    .precio-tachado {
        font-size: 12px;
    }

    .badge-descuento {
        font-size: 10px;
        padding: 4px 8px;
    }

    .producto-info h1 {
        font-size: 24px;
    }

    .producto-precio-final {
        font-size: 28px;
    }

    .galeria-thumbs img {
        width: 65px;
        height: 65px;
    }

    .btn-agregar {
        padding: 18px;
        font-size: 16px;
    }

    .cart-item {
        padding: 15px;
        gap: 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cart-item-img {
        width: 100%;
        height: 250px;
    }

    .cart-item-title {
        font-size: 15px;
    }

    .cart-summary-box {
        padding: 25px;
    }

    /* En celulares se desactiva el cursor crosshair del zoom */
    .galeria-main-box {
        cursor: default;
    }
}

/* CELULARES PEQUEÑOS (iPhone SE) */
@media (max-width: 380px) {
    .grid-loop {
        gap: 10px;
    }

    .tarjeta-info h3 {
        font-size: 12px;
    }

    .carousel-track .tarjeta-producto {
        min-width: 150px;
        max-width: 150px;
    }

    .hero-banner-premium h1 {
        font-size: 24px;
    }
}