
        html { scroll-behavior: smooth; }
        :root { --lila: #9b5de5; --lila-oscuro: #4a2a75; --fondo: #faf8ff; --superficie: #ffffff; --texto-principal: #262626; --texto-secundario: #8e8e8e; --rosa-premium: #e91e63; --borde: #e1d5f2; }
        body { font-family: 'Jost', Arial, sans-serif; background-color: var(--fondo); margin: 0; padding: 0; color: var(--texto-principal); -webkit-font-smoothing: antialiased; padding-bottom: 70px; }

        .top-header { position: sticky; top: 0; z-index: 900; background: rgba(250, 248, 255, 0.9); backdrop-filter: blur(15px); display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid rgba(155, 93, 229, 0.1); }
        .btn-menu { background: transparent; border: none; font-size: 24px; color: var(--lila-oscuro); cursor: pointer; padding: 0; transition: 0.2s;}
        .btn-menu:active { transform: scale(0.9); }
        .logo-header { font-size: 26px; font-weight: 700; margin: 0; color: var(--lila-oscuro); font-family: 'Playfair Display', serif; font-style: italic; cursor: pointer; user-select: none;}

        .filtros-emocion { display: flex; gap: 12px; overflow-x: auto; padding: 15px 20px 20px 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; background: var(--fondo); }
        .filtros-emocion::-webkit-scrollbar { display: none; }
        .btn-emocion { background: var(--superficie); border: 1px solid var(--borde); padding: 10px 20px; border-radius: 30px; font-size: 14px; font-weight: 500; color: var(--lila-oscuro); cursor: pointer; transition: 0.3s; white-space: nowrap; display: flex; align-items: center; gap: 8px; box-shadow: 0 4px 10px rgba(155, 93, 229, 0.05); }
        .btn-emocion:active { transform: scale(0.95); background: var(--lila); color: white; border-color: var(--lila);}

        .banner-homenajes { background: linear-gradient(135deg, #3a2e4d, #1a1025); color: white; margin: 0 20px 20px 20px; border-radius: 16px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); transition: 0.3s;}
        .banner-homenajes:active { transform: scale(0.97); }
        .banner-homenajes-txt h3 { margin: 0 0 5px 0; font-size: 17px; font-family: 'Playfair Display', serif; font-style: italic; font-weight: 600; letter-spacing: 0.5px;}
        .banner-homenajes-txt p { margin: 0; font-size: 12px; opacity: 0.8; line-height: 1.4; }
        .banner-homenajes-icon { font-size: 28px; background: rgba(255,255,255,0.1); width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center;}

        #vista-principal { display: block; }
        .buscador-container { padding: 15px 20px 0 20px; }
        #buscador { width: 100%; padding: 14px 20px; border: 1px solid var(--borde); border-radius: 20px; font-size: 15px; background: var(--superficie); outline: none; transition: 0.3s; color: var(--texto-principal); box-sizing: border-box; }
        .contenedor-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; padding: 20px; max-width: 1200px; margin: 0 auto; }
        
        .mimi-card { position: relative; border-radius: 24px; overflow: hidden; background: #eee; box-shadow: 0 15px 35px rgba(74, 42, 117, 0.1); transition: transform 0.3s; }
        .mimi-card img { width: 100%; height: 500px; object-fit: cover; display: block; transition: transform 0.5s; background-color: #e9e3f3; content-visibility: auto;}
        .mimi-card:not(.agotado):active img { transform: scale(1.03); }
        .mimi-card.agotado img { filter: grayscale(100%); opacity: 0.5; }
        .agotado-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.75); color: white; padding: 12px 25px; font-weight: 700; border-radius: 8px; font-size: 16px; letter-spacing: 3px; z-index: 5; }
        
        .mimi-card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(20, 10, 30, 0.9) 0%, rgba(20, 10, 30, 0.4) 60%, transparent 100%); padding: 40px 20px 20px 20px; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
        .mimi-card-info { pointer-events: auto; }
        .mimi-card-title { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 600; margin: 0 0 5px 0; color: #ffffff; line-height: 1.2; }
        .mimi-card-price { font-size: 18px; font-weight: 600; color: #ffd8e4; margin: 0; }
        .mimi-btn-add { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.4); color: white; padding: 10px 18px; border-radius: 20px; font-weight: 600; cursor: pointer; transition: 0.2s; pointer-events: auto; }
        .mimi-btn-add:active { background: white; color: var(--lila-oscuro); transform: scale(0.95);}
        .glass-btn { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.5); border-radius: 50%; width: 45px; height: 45px; font-size: 22px; display: flex; justify-content: center; align-items: center; color: white; cursor: pointer; transition: 0.2s; z-index: 10; }
        .glass-btn.liked { color: var(--rosa-premium); background: rgba(255, 255, 255, 0.9);}

        .skeleton-card { background: #e9e3f3; border-radius: 24px; overflow: hidden; height: 500px; position: relative; box-shadow: 0 15px 35px rgba(74, 42, 117, 0.05); }
        .skeleton-img { width: 100%; height: 100%; background: #e0d6f0; }
        .skeleton-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 40px 20px 20px 20px; background: linear-gradient(to top, rgba(250, 248, 255, 1) 0%, rgba(250, 248, 255, 0) 100%); display: flex; justify-content: space-between; align-items: flex-end; }
        .skeleton-text { width: 60%; height: 24px; background: #d1c4e9; border-radius: 8px; margin-bottom: 8px; }
        .skeleton-price { width: 30%; height: 20px; background: #d1c4e9; border-radius: 8px; }
        .skeleton-btn { width: 80px; height: 35px; background: #d1c4e9; border-radius: 20px; }
        
        .shimmer { animation: shimmer 1.5s infinite linear; background: linear-gradient(to right, #e0d6f0 4%, #f0ebf8 25%, #e0d6f0 36%); background-size: 1000px 100%; }
        .shimmer-dark { animation: shimmer 1.5s infinite linear; background: linear-gradient(to right, #d1c4e9 4%, #e9e3f3 25%, #d1c4e9 36%); background-size: 1000px 100%; }
        @keyframes shimmer { 0% { background-position: -1000px 0; } 100% { background-position: 1000px 0; } }

        @media (max-width: 600px) { .contenedor-productos { display: flex; flex-direction: column; gap: 20px; padding: 10px 15px; } .mimi-card img, .skeleton-card { height: 450px; } }

        .extras-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; margin-top: 10px; scrollbar-width: none; }
        .extras-scroll::-webkit-scrollbar { display: none; }
        .extra-card { border: 1px solid var(--borde); border-radius: 16px; padding: 12px; min-width: 90px; text-align: center; cursor: pointer; transition: 0.3s; position: relative; background: var(--superficie); }
        .extra-card.active { border-color: var(--lila) !important; background: #faf5ff !important; box-shadow: 0 4px 15px rgba(155, 93, 229, 0.15) !important; }
        .extra-icon { font-size: 30px; margin-bottom: 8px; display: block; }
        .extra-title { font-size: 13px; font-weight: 600; display: block; line-height: 1.2;}
        .extra-price { font-size: 12px; font-weight: 600; color: var(--lila-oscuro); }
        .extra-check { position: absolute; top: 8px; right: 8px; accent-color: var(--lila-oscuro); width: 16px; height: 16px; cursor: pointer; }
        
        .doble-input { display: flex; gap: 15px; } .doble-input > div { flex: 1; }

        .vista-catalogo { display: none; animation: fadeIn 0.3s ease forwards; background: var(--fondo); min-height: 100vh;}
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .header-catalogo { position: sticky; top: 0; background: rgba(250, 248, 255, 0.9); backdrop-filter: blur(15px); padding: 15px 20px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--borde); z-index: 800; }
        .btn-volver { background: transparent; color: var(--lila-oscuro); border: none; font-size: 24px; padding: 0; cursor: pointer; }
        .titulo-vista { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; margin: 0; color: var(--lila-oscuro); font-style: italic;}

        #toast-notificacion { visibility: hidden; min-width: 200px; background-color: var(--lila-oscuro); color: #fff; text-align: center; border-radius: 30px; padding: 14px 20px; position: fixed; z-index: 4000; left: 50%; top: 20px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(74, 42, 117, 0.4); opacity: 0; transform: translateY(-20px) translateX(-50%); transition: 0.3s; }
        #toast-notificacion.mostrar { visibility: visible; opacity: 1; transform: translateY(0) translateX(-50%); }
        .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30,15,45,0.6); z-index: 1500; display: none; opacity: 0; transition: 0.3s; }
        .overlay.active { display: block; opacity: 1; }
        .side-menu { position: fixed; top: 0; left: -300px; width: 280px; height: 100%; background: var(--superficie); z-index: 2000; transition: left 0.3s; display: flex; flex-direction: column; }
        .side-menu.open { left: 0; }
        .side-menu-header { padding: 40px 20px 30px 20px; background: #f8f4ff; text-align: center; }
        .side-menu-links button { background: transparent; border: none; text-align: left; padding: 18px 25px; font-size: 16px; font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #f5f5f5;}
        
        .bottom-sheet { position: fixed; bottom: -100%; left: 50%; transform: translateX(-50%); width: 100%; max-width: 600px; background: var(--superficie); border-radius: 30px 30px 0 0; padding: 25px 25px 40px 25px; box-sizing: border-box; z-index: 2000; box-shadow: 0 -10px 40px rgba(0,0,0,0.15); transition: bottom 0.4s; max-height: 85vh; overflow-y: auto; display: flex; flex-direction: column;}
        .bottom-sheet.open { bottom: 0; }
        .drag-handle { width: 50px; height: 5px; background: #e1d5f2; border-radius: 5px; margin: 0 auto 25px auto; cursor: pointer; }
        .bottom-sheet h2 { margin-top: 0; font-size: 22px; margin-bottom: 20px; text-align: center; font-family: 'Playfair Display', serif; color: var(--lila-oscuro); font-style: italic;}
        
        /* BOTON CERRAR NUEVO */
        .btn-cerrar-sheet { position: absolute; top: 20px; right: 20px; background: #f4f0ff; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; font-weight: bold; cursor: pointer; color: var(--lila-oscuro); display: flex; align-items: center; justify-content: center; transition: 0.2s; }
        .btn-cerrar-sheet:active { transform: scale(0.9); background: var(--lila-oscuro); color: white; }

        .checkout-section { padding: 15px 0; border-bottom: 1px dashed var(--borde); }
        .checkout-label { display: block; font-size: 13px; font-weight: 600; margin: 15px 0 5px 0; color: var(--texto-secundario); text-transform: uppercase;}
        .checkout-select, .checkout-input { width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--borde); font-size: 15px; outline: none; background: #fafafa; box-sizing: border-box;}
        .checkout-input:focus { border-color: var(--lila); background: white;}
        .totales-desglose { margin-top: 25px; text-align: right; font-size: 15px; color: var(--texto-secundario); padding-bottom: 15px; }
        .total-final-txt { font-weight: 700; font-size: 24px; color: var(--lila-oscuro); }
        
        .caja-fija-bottom { position: sticky; bottom: 0; background: var(--superficie); padding-top: 10px; border-top: 1px solid var(--borde); margin-top: auto; }
        .btn-accion-modal { padding:16px; border:none; border-radius: 15px; font-weight:600; font-size:15px; text-transform: uppercase; width:100%; cursor: pointer; background: var(--lila-oscuro); color: white; transition: 0.2s; }
        .btn-accion-modal:active { transform: scale(0.98); }
        
        .item-carrito { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
        .btn-eliminar { background: #fff0f5; color: var(--rosa-premium); border: none; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;}

        .bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-top: 1px solid var(--borde); display: flex; justify-content: space-around; align-items: center; padding: 12px 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 2500; transition: transform 0.3s ease; }
        .nav-item { background: transparent; border: none; display: flex; flex-direction: column; align-items: center; cursor: pointer; width: 20%; padding: 0;}
        .nav-icon { font-size: 24px; filter: grayscale(100%); opacity: 0.6; transition: 0.2s;}
        .nav-item.active .nav-icon { filter: grayscale(0%); opacity: 1; transform: translateY(-3px);}
        
        .cart-badge { position: absolute; top: -6px; right: -8px; background: var(--lila-oscuro); color: white; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 2px solid white; transition: 0.3s; }
        
        /* Animación Rebote Carrito */
        .bounce { animation: bounce 0.4s ease; }
        @keyframes bounce { 0% { transform: scale(1); } 50% { transform: scale(1.5); background: var(--rosa-premium); } 100% { transform: scale(1); } }

    

        /* ==========================================================
           🎨 CATÁLOGO REDISEÑADO (cards modernas + chips de categoría)
           ========================================================== */
        .mimi-card { position: relative; border-radius: 16px; overflow: hidden; background: #ffffff; box-shadow: 0 6px 18px rgba(74, 42, 117, 0.08); transition: transform 0.25s ease, box-shadow 0.25s ease; display: flex; flex-direction: column; }
        .mimi-card .mimi-card-media { position: relative; overflow: hidden; background: #e9e3f3; }
        .mimi-card .mimi-card-media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; transition: transform 0.5s ease; background-color: #e9e3f3; }
        .mimi-card.agotado .mimi-card-media img { filter: grayscale(100%); opacity: 0.55; }
        .mimi-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
        .mimi-card-cat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--lila); margin: 0; }
        .mimi-card .mimi-card-title { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 600; margin: 0; color: var(--lila-oscuro); line-height: 1.2; }
        .mimi-card-desc { font-size: 13px; color: var(--texto-secundario); margin: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .mimi-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
        .mimi-card .mimi-card-price { font-size: 18px; font-weight: 700; color: var(--lila-oscuro); margin: 0; }
        .mimi-btn-add { background: var(--lila); border: none; color: white; padding: 10px 16px; border-radius: 30px; font-weight: 600; cursor: pointer; transition: 0.2s; }
        .mimi-btn-add:active { transform: scale(0.95); background: var(--lila-oscuro); }
        .mimi-agotado { color: var(--rosa-premium); font-size: 14px; font-weight: 700; letter-spacing: 1px; }
        .etiqueta-event { position: absolute; top: 12px; left: 12px; background: linear-gradient(135deg, #FFEE58, #FBC02D); color: #1a1025; padding: 6px 12px; border-radius: 8px; font-weight: 800; font-size: 10px; text-transform: uppercase; z-index: 10; box-shadow: 0 4px 15px rgba(0,0,0,0.3); letter-spacing: 1px; }
        .glass-btn { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.6); border-radius: 50%; width: 40px; height: 40px; font-size: 20px; display: flex; justify-content: center; align-items: center; color: var(--lila-oscuro); cursor: pointer; transition: 0.2s; z-index: 10; box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
        .glass-btn.liked { color: var(--rosa-premium); background: rgba(255, 255, 255, 0.95); }
        .btn-emocion.active { background: var(--lila); color: #ffffff; border-color: var(--lila); box-shadow: 0 6px 16px rgba(155, 93, 229, 0.25); }
        @media (hover: hover) {
            .mimi-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(74, 42, 117, 0.16); }
            .mimi-card:not(.agotado):hover .mimi-card-media img { transform: scale(1.04); }
        }
        .mimi-card:not(.agotado):active { transform: scale(0.99); }
        .mimi-card.evento { border: 1px solid #FDE68A; }
        .mimi-card.evento .mimi-card-cat { color: #B45309; }
