/* =========================================
   ESTILOS ESPECÍFICOS: CATÁLOGO B2B ROBUSTO (FULL WIDTH)
   ========================================= */

body { 
    background-color: #f1f5f9; 
    margin: 0; 
    padding: 0; 
}

::-webkit-scrollbar { 
    width: 8px; 
    height: 8px; 
}

::-webkit-scrollbar-track { 
    background: #f1f5f9; 
}

::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
    border-radius: 4px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: #94a3b8; 
}

.toast-notification { 
    position: fixed; 
    bottom: -60px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: #0f172a; 
    color: white; 
    padding: 12px 24px; 
    border-radius: 50px; 
    font-size: 0.9rem; 
    font-weight: 700; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    z-index: 9999; 
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.toast-notification.show { 
    bottom: 40px; 
}

.toast-notification i { 
    color: #10b981; 
}

.catalog-page-header { 
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('../assets/img/catalogo/ventas.jpg');
    background-size: cover; 
    background-position: center; 
    padding: 120px 5% 60px; 
    text-align: center; 
    border-bottom: 5px solid var(--arcadian-gold); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.header-content h1 { 
    font-size: 2.8rem; 
    font-weight: 800; 
    margin-bottom: 10px; 
    color: #ffffff !important; 
}

.header-content p { 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin: 0 auto; 
    color: #e2e8f0 !important; 
}

.hero-search-wrapper { 
    width: 100%; 
    max-width: 1600px; 
    margin: 30px auto 0 auto; 
    text-align: left; 
}

.hero-search-box { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    background: #ffffff; 
    padding: 20px 25px; 
    border-radius: 50px; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.2); 
    transition: all 0.3s; 
    margin-bottom: 25px; 
    max-width: 850px; 
    margin-left: auto; 
    margin-right: auto;
}

.hero-search-box:focus-within { 
    box-shadow: 0 0 0 4px rgba(42, 110, 242, 0.3); 
    transform: translateY(-2px); 
}

.hero-search-box button { 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    padding: 0; 
}

.hero-search-box i { 
    color: var(--arcadian-blue); 
    font-size: 1.4rem; 
}

.hero-search-box input { 
    border: none; 
    background: transparent; 
    width: 100%; 
    outline: none; 
    font-family: inherit; 
    font-size: 1.1rem; 
    color: #0f172a; 
}

.hero-search-box input::placeholder { 
    color: #94a3b8; 
    font-style: italic; 
    transition: color 0.3s; 
}

.hero-search-suggestions p { 
    font-size: 0.85rem; 
    color: rgba(255,255,255,0.8); 
    margin-bottom: 15px; 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    text-align: center;
}

.category-cubes-container { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; 
    margin-top: 15px; 
}

.category-cube { 
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 16px; 
    padding: 20px; 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    /* MEJORA 2: Transición elástica y profunda */
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; 
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* MEJORA 2: Se levanta más hacia el usuario y genera sombra oscura */
.category-cube:hover { 
    background: rgba(255, 255, 255, 0.12); 
    transform: translateY(-12px) scale(1.02); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); 
    border-color: rgba(255,255,255,0.25);
    z-index: 10;
}

/* Animaciones Glows para los 12 bloques */
@keyframes glowCCTV { 0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.05); } 50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.25); } }
@keyframes glowStorage { 0%, 100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.05); } 50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.25); } }
@keyframes glowAccess { 0%, 100% { box-shadow: 0 0 10px rgba(168, 85, 247, 0.05); } 50% { box-shadow: 0 0 25px rgba(168, 85, 247, 0.25); } }
@keyframes glowIntrusion { 0%, 100% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.05); } 50% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.25); } }
@keyframes glowFire { 0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.05); } 50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.25); } }
@keyframes glowWireless { 0%, 100% { box-shadow: 0 0 10px rgba(14, 165, 233, 0.05); } 50% { box-shadow: 0 0 25px rgba(14, 165, 233, 0.25); } }
@keyframes glowNet { 0%, 100% { box-shadow: 0 0 10px rgba(56, 189, 248, 0.05); } 50% { box-shadow: 0 0 25px rgba(56, 189, 248, 0.25); } }
@keyframes glowEnergy { 0%, 100% { box-shadow: 0 0 10px rgba(250, 204, 21, 0.05); } 50% { box-shadow: 0 0 25px rgba(250, 204, 21, 0.25); } }
@keyframes glowRadio { 0%, 100% { box-shadow: 0 0 10px rgba(139, 92, 246, 0.05); } 50% { box-shadow: 0 0 25px rgba(139, 92, 246, 0.25); } }
@keyframes glowAV { 0%, 100% { box-shadow: 0 0 10px rgba(236, 72, 153, 0.05); } 50% { box-shadow: 0 0 25px rgba(236, 72, 153, 0.25); } }
@keyframes glowPC { 0%, 100% { box-shadow: 0 0 10px rgba(20, 184, 166, 0.05); } 50% { box-shadow: 0 0 25px rgba(20, 184, 166, 0.25); } }
@keyframes glowTools { 0%, 100% { box-shadow: 0 0 10px rgba(100, 116, 139, 0.05); } 50% { box-shadow: 0 0 25px rgba(100, 116, 139, 0.25); } }

/* Asignación a las clases */
.cube-cctv { border-top: 4px solid #10b981; animation: glowCCTV 3s ease-in-out infinite; }
.cube-storage { border-top: 4px solid #6366f1; animation: glowStorage 3s ease-in-out infinite; animation-delay: 0.2s;}
.cube-access { border-top: 4px solid #a855f7; animation: glowAccess 3s ease-in-out infinite; animation-delay: 0.4s;}
.cube-intrusion { border-top: 4px solid #f59e0b; animation: glowIntrusion 3s ease-in-out infinite; animation-delay: 0.6s;}
.cube-fire { border-top: 4px solid #ef4444; animation: glowFire 3s ease-in-out infinite; animation-delay: 0.8s;}
.cube-wireless { border-top: 4px solid #0ea5e9; animation: glowWireless 3s ease-in-out infinite; animation-delay: 1s;}
.cube-net { border-top: 4px solid #38bdf8; animation: glowNet 3s ease-in-out infinite; animation-delay: 1.2s;}
.cube-energy { border-top: 4px solid #facc15; animation: glowEnergy 3s ease-in-out infinite; animation-delay: 1.4s;}
.cube-radio { border-top: 4px solid #8b5cf6; animation: glowRadio 3s ease-in-out infinite; animation-delay: 1.6s;}
.cube-av { border-top: 4px solid #ec4899; animation: glowAV 3s ease-in-out infinite; animation-delay: 1.8s;}
.cube-pc { border-top: 4px solid #14b8a6; animation: glowPC 3s ease-in-out infinite; animation-delay: 2s;}
.cube-tools { border-top: 4px solid #64748b; animation: glowTools 3s ease-in-out infinite; animation-delay: 2.2s;}

.cube-header { 
    color: white; 
    font-weight: 800; 
    font-size: 1.05rem; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    justify-content: center; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

/* MEJORA 3: Transición lista para la animación flotante del icono */
.cube-header i { 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}

.cube-cctv .cube-header i { color: #a7f3d0; }
.cube-storage .cube-header i { color: #c7d2fe; }
.cube-access .cube-header i { color: #e9d5ff; }
.cube-intrusion .cube-header i { color: #fde68a; }
.cube-fire .cube-header i { color: #fecaca; }
.cube-wireless .cube-header i { color: #bae6fd; }
.cube-net .cube-header i { color: #e0f2fe; }
.cube-energy .cube-header i { color: #fef08a; }
.cube-radio .cube-header i { color: #ddd6fe; }
.cube-av .cube-header i { color: #fbcfe8; }
.cube-pc .cube-header i { color: #ccfbf1; }
.cube-tools .cube-header i { color: #cbd5e1; }

/* MEJORA 3: Animación del icono saltando y brillando */
@keyframes float-icon {
    0% { transform: scale(1.6) translateY(0); filter: drop-shadow(0 0 8px currentColor); }
    50% { transform: scale(1.6) translateY(-4px); filter: drop-shadow(0 0 15px currentColor); }
    100% { transform: scale(1.6) translateY(0); filter: drop-shadow(0 0 8px currentColor); }
}

.category-cube:hover .cube-header i {
    animation: float-icon 1.5s ease-in-out infinite;
    color: #ffffff !important;
}

.cube-tags { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
    align-content: start;
}

/* MEJORA 1: ETIQUETAS ADAPTATIVAS (El texto no se corta) */
.search-tag { 
    display: flex; 
    align-items: center; 
    justify-content: flex-start; 
    width: 100%;
    box-sizing: border-box;
    gap: 8px; 
    background: rgba(255,255,255,0.08); 
    color: white; 
    padding: 10px; /* Colchón para que respire el texto en dos líneas */
    border-radius: 8px; 
    font-size: 0.75rem; 
    font-weight: 600; 
    cursor: pointer; 
    border: 1px solid rgba(255,255,255,0.15); 
    transition: all 0.2s ease; 
    
    /* Configuración clave Adaptativa */
    white-space: normal; 
    word-wrap: break-word;
    text-align: left;
    line-height: 1.3;
    min-height: 45px; 
}

.search-tag i { 
    font-size: 0.95rem; 
    opacity: 0.9; 
    width: 18px; 
    text-align: center;
    flex-shrink: 0; /* Impide que el icono se aplaste si el texto es largo */
}

/* Hover de Etiquetas B2B Uniformes */
.tag-cctv:hover { background: #10b981; color: #0f172a; border-color: #10b981; transform: scale(1.05); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2); }
.tag-storage:hover { background: #6366f1; color: white; border-color: #6366f1; transform: scale(1.05); box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2); }
.tag-access:hover { background: #a855f7; color: white; border-color: #a855f7; transform: scale(1.05); box-shadow: 0 4px 10px rgba(168, 85, 247, 0.2); }
.tag-intrusion:hover { background: #f59e0b; color: #0f172a; border-color: #f59e0b; transform: scale(1.05); box-shadow: 0 4px 10px rgba(245, 158, 11, 0.2); }
.tag-fire:hover { background: #ef4444; color: white; border-color: #ef4444; transform: scale(1.05); box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2); }
.tag-wireless:hover { background: #0ea5e9; color: #0f172a; border-color: #0ea5e9; transform: scale(1.05); box-shadow: 0 4px 10px rgba(14, 165, 233, 0.2); }
.tag-net:hover { background: #38bdf8; color: #0f172a; border-color: #38bdf8; transform: scale(1.05); box-shadow: 0 4px 10px rgba(56, 189, 248, 0.2); }
.tag-energy:hover { background: #facc15; color: #0f172a; border-color: #facc15; transform: scale(1.05); box-shadow: 0 4px 10px rgba(250, 204, 21, 0.2); }
.tag-radio:hover { background: #8b5cf6; color: white; border-color: #8b5cf6; transform: scale(1.05); box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2); }
.tag-av:hover { background: #ec4899; color: white; border-color: #ec4899; transform: scale(1.05); box-shadow: 0 4px 10px rgba(236, 72, 153, 0.2); }
.tag-pc:hover { background: #14b8a6; color: #0f172a; border-color: #14b8a6; transform: scale(1.05); box-shadow: 0 4px 10px rgba(20, 184, 166, 0.2); }
.tag-tools:hover { background: #64748b; color: white; border-color: #64748b; transform: scale(1.05); box-shadow: 0 4px 10px rgba(100, 116, 139, 0.2); }

.massive-stock-notice { 
    text-align: center; 
    margin-top: 35px; 
    color: #e2e8f0; 
    font-size: 1.1rem; 
    font-weight: 600; 
    letter-spacing: 0.5px;
}

.massive-stock-notice strong { 
    color: var(--arcadian-gold); 
    font-weight: 800;
}

.massive-stock-notice i { 
    color: var(--arcadian-gold); 
    margin-right: 8px; 
    font-size: 1.2rem;
}

/* --- ESTRUCTURA GENERAL (FULL WIDTH) --- */
.catalog-layout { 
    display: block; 
    padding: 40px 3%; 
    max-width: 2400px; 
    margin: 0 auto; 
}

/* --- BARRA DE HERRAMIENTAS Y FILTROS --- */
.catalog-toolbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    background: white; 
    padding: 15px 25px; 
    border-radius: 16px; 
    border: 1px solid #e2e8f0; 
    margin-bottom: 20px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); 
    flex-wrap: wrap; 
    gap: 15px;
}

.results-text { 
    color: #64748b; 
    font-size: 0.95rem; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.results-text i { 
    font-size: 1.1rem; 
}

.tech-loading { 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--arcadian-blue); 
    font-weight: 700; 
    font-size: 0.95rem; 
}

.tech-loading i { 
    font-size: 1.2rem; 
}

.toolbar-controls { 
    display: flex; 
    align-items: center; 
    gap: 25px; 
    flex-wrap: wrap; 
}

.view-toggles { 
    display: flex; 
    gap: 5px; 
    background: #f1f5f9; 
    padding: 5px; 
    border-radius: 10px; 
    border: 1px solid #e2e8f0;
}

.view-btn { 
    background: transparent; 
    border: none; 
    color: #94a3b8; 
    width: 35px; 
    height: 35px; 
    border-radius: 6px; 
    cursor: pointer; 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.1rem; 
}

.view-btn:hover { 
    color: #475569; 
}

.view-btn.active { 
    background: white; 
    color: var(--arcadian-blue); 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.sort-box { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.95rem; 
    color: #475569; 
    font-weight: 600;
}

.sort-box select { 
    padding: 8px 15px; 
    border-radius: 8px; 
    border: 1px solid #cbd5e1; 
    font-family: inherit; 
    font-weight: 600; 
    outline: none; 
    background: #f8fafc; 
    cursor: pointer; 
    color: #0f172a; 
    transition: 0.2s;
}

.sort-box select:hover { 
    border-color: var(--arcadian-blue); 
}

/* FILTRO DE MARCAS DINÁMICO */
.brand-filter-row { 
    display: flex; 
    gap: 12px; 
    overflow-x: auto; 
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px; 
    scrollbar-width: thin;
}

.brand-filter-row::-webkit-scrollbar { 
    height: 6px; 
}

.brand-filter-row::-webkit-scrollbar-track { 
    background: transparent; 
}

.brand-filter-row::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
    border-radius: 10px; 
}

.btn-brand { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    min-width: 100px; 
    padding: 12px 15px; 
    border-radius: 16px; 
    background: white; 
    border: 2px solid #e2e8f0; 
    color: #475569; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    cursor: pointer; 
    font-family: inherit; 
    flex-shrink: 0; 
}

.btn-brand i { 
    font-size: 1.5rem; 
    margin-bottom: 8px; 
    transition: 0.3s;
}

.btn-brand span { 
    font-size: 0.75rem; 
    font-weight: 800; 
    white-space: nowrap; 
}

.btn-brand:hover { 
    border-color: var(--brand-color, var(--arcadian-blue)); 
    transform: translateY(-4px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

.btn-brand.active { 
    background: var(--brand-color, var(--arcadian-blue)); 
    border-color: var(--brand-color, var(--arcadian-blue)); 
    color: white !important; 
    transform: scale(1.05); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
}

.btn-brand.active i { 
    color: white !important; 
}

/* --- MAIN GRID DE PRODUCTOS --- */
.product-grid { 
    display: grid; 
    gap: 30px; 
}

.grid-view { 
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); 
}

.grid-view .prod-card { 
    flex-direction: column; 
}

.list-view { 
    grid-template-columns: 1fr; 
}

.list-view .prod-card { 
    flex-direction: row; 
    align-items: stretch; 
    gap: 20px; 
    padding: 20px; 
}

.list-view .prod-image-wrapper { 
    width: 180px; 
    height: 180px; 
    margin-bottom: 0; 
    flex-shrink: 0; 
}

.list-view .prod-details { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.list-view .prod-title { 
    font-size: 1.1rem; 
    -webkit-line-clamp: 3; 
}

.list-view .prod-actions { 
    flex-direction: column; 
    justify-content: center; 
    border-top: none; 
    padding-top: 0; 
    width: 160px; 
    flex-shrink: 0; 
    gap: 10px; 
}

.list-view .prod-actions .btn-add-cart { 
    width: 100%; 
    padding: 10px; 
    height: auto; 
}

/* Estilos de las Tarjetas Base y Animaciones 3D */
.prod-card { 
    background: white; 
    border-radius: 20px; 
    padding: 25px; 
    border: 1px solid #e2e8f0; 
    display: flex; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.02); 
}

.prod-card:not(.skeleton-card):hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 25px 50px rgba(42, 110, 242, 0.12); 
    border-color: #bfdbfe; 
}

/* Imagen Limpia */
.prod-image-wrapper { 
    height: 200px; 
    background: #ffffff; 
    border-radius: 12px; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    border: 1px solid #f1f5f9; 
    padding: 10px; 
    overflow: hidden; 
    transition: 0.4s;
}

.prod-image-wrapper img { 
    max-width: 90%; 
    max-height: 90%; 
    object-fit: contain; 
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.prod-card:not(.skeleton-card):hover .prod-image-wrapper img { 
    transform: scale(1.15); 
}

.prod-card:not(.skeleton-card):hover .prod-image-wrapper { 
    border-color: #e0f2fe; 
}

/* Icono Dinámico Semántico */
.cat-icon-floating { 
    position: absolute; 
    top: 10px; 
    right: 10px; 
    width: 32px; 
    height: 32px; 
    background: white; 
    border: 1px solid #e2e8f0; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.9rem; 
    color: #64748b; 
    z-index: 2; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    transition: 0.3s;
}

.prod-card:hover .cat-icon-floating { 
    background: var(--arcadian-blue); 
    color: white; 
    border-color: var(--arcadian-blue); 
    transform: rotate(10deg);
}

.clickable { 
    cursor: pointer; 
}

.clickable-text { 
    cursor: pointer; 
    transition: color 0.2s; 
}

.clickable-text:hover { 
    color: var(--arcadian-blue); 
}

.copy-sku-btn { 
    cursor: pointer; 
    transition: color 0.2s; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px;
}

.copy-sku-btn:hover { 
    color: var(--arcadian-blue); 
}

.copy-sku-btn i { 
    font-size: 0.9em; 
    opacity: 0.7;
}

.prod-details { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
}

.prod-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
    flex-wrap: wrap; 
    gap: 5px; 
}

.prod-brand-badge-inline { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    background: #ffffff; 
    padding: 4px 10px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 800; 
    letter-spacing: 0.5px; 
    border: 1px solid #cbd5e1; 
}

.sku-code { 
    font-family: monospace; 
    font-size: 0.85rem; 
    color: #94a3b8; 
    font-weight: 600; 
}

.prod-title { 
    font-size: 1.05rem; 
    color: #0f172a; 
    margin: 0 0 10px; 
    line-height: 1.4; 
    font-weight: 800; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.stock-status-inline { 
    margin-top: auto; 
    margin-bottom: 5px; 
}

.stock-badge { 
    padding: 4px 8px; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    font-weight: 800; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
}

.stock-high { 
    background: rgba(236, 253, 245, 0.95); 
    color: #059669; 
    border: 1px solid #a7f3d0; 
}

.stock-med { 
    background: rgba(255, 251, 235, 0.95); 
    color: #d97706; 
    border: 1px solid #fde68a; 
}

.stock-req { 
    background: rgba(241, 245, 249, 0.95); 
    color: #475569; 
    border: 1px solid #cbd5e1; 
}

/* Botones Card */
.prod-actions { 
    display: flex; 
    gap: 10px; 
    margin-top: 15px; 
    border-top: 1px solid #f1f5f9; 
    padding-top: 15px;
}

.btn-icon-compare { 
    background: #f1f5f9; 
    border: 1px solid #cbd5e1; 
    color: #475569; 
    width: 45px; 
    height: 45px; 
    border-radius: 10px; 
    cursor: pointer; 
    transition: 0.2s; 
    font-size: 1.1rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0;
}

.btn-icon-compare:hover { 
    background: #e2e8f0; 
    color: var(--arcadian-blue); 
    border-color: var(--arcadian-blue); 
}

.btn-icon-compare.active { 
    background: var(--arcadian-blue); 
    color: white; 
    border-color: var(--arcadian-blue); 
}

.qty-control { 
    display: flex; 
    border: 1px solid #cbd5e1; 
    border-radius: 10px; 
    overflow: hidden; 
    height: 45px; 
    background: #f8fafc; 
    flex-grow: 1; 
}

.qty-control button { 
    width: 35px; 
    background: transparent; 
    border: none; 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: #475569; 
    cursor: pointer; 
    transition: 0.2s; 
}

.qty-control button:hover { 
    background: #e2e8f0; 
    color: #0f172a; 
}

.qty-control input { 
    width: 100%; 
    text-align: center; 
    border: none; 
    border-left: 1px solid #cbd5e1; 
    border-right: 1px solid #cbd5e1; 
    background: white; 
    font-family: inherit; 
    font-weight: 700; 
    color: #0f172a; 
    padding: 0; 
}

.qty-control input::-webkit-outer-spin-button, 
.qty-control input::-webkit-inner-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

.btn-add-cart { 
    background: var(--arcadian-gold); 
    color: #000; 
    border: none; 
    border-radius: 10px; 
    font-weight: 800; 
    font-size: 1rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: all 0.3s; 
    width: 45px; 
    height: 45px;
}

.btn-add-cart:hover { 
    background: #f59e0b; 
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3); 
    transform: translateY(-2px); 
}

/* --- SKELETON LOADERS (CARGA FANTASMA) --- */
.skeleton-card { 
    border-color: #e2e8f0; 
    box-shadow: none; 
    pointer-events: none; 
}

.skeleton-img { 
    width: 100%; 
    height: 200px; 
    background: #e2e8f0; 
    border-radius: 12px; 
    margin-bottom: 15px; 
    animation: pulse-bg 1.5s infinite; 
}

.skeleton-text { 
    height: 16px; 
    background: #e2e8f0; 
    border-radius: 6px; 
    margin-bottom: 12px; 
    animation: pulse-bg 1.5s infinite; 
}

.skeleton-text.short { 
    width: 40%; 
}

.skeleton-text.long { 
    width: 85%; 
}

.skeleton-action { 
    height: 45px; 
    background: #e2e8f0; 
    border-radius: 10px; 
    margin-top: auto; 
    animation: pulse-bg 1.5s infinite; 
}

@keyframes pulse-bg {
    0% { background-color: #f1f5f9; }
    50% { background-color: #e2e8f0; }
    100% { background-color: #f1f5f9; }
}

/* --- BANNER DE INGENIERÍA --- */
.engineering-banner { 
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 100%); 
    padding: 40px 50px; 
    border-radius: 20px; 
    border: 2px solid var(--arcadian-gold); 
    color: white; 
    margin: 0; 
    box-shadow: 0 15px 30px rgba(0,0,0,0.15); 
    position: relative; 
    overflow: hidden; 
}

.engineering-banner::before { 
    content: ''; 
    position: absolute; 
    right: -50px; 
    top: -50px; 
    width: 200px; 
    height: 200px; 
    background: rgba(255,255,255,0.05); 
    border-radius: 50%; 
}

.eb-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 40px; 
    position: relative; 
    z-index: 2; 
}

.eb-text h3 { 
    font-size: 1.6rem; 
    margin: 0 0 10px 0; 
    font-weight: 800; 
    color: var(--arcadian-gold); 
}

.eb-text p { 
    font-size: 1.05rem; 
    line-height: 1.5; 
    margin: 0 0 15px 0; 
    color: #e2e8f0; 
}

.eb-location { 
    font-weight: 700; 
    font-size: 1.1rem; 
    color: white !important; 
    margin: 0 !important; 
    background: rgba(0,0,0,0.3); 
    display: inline-block; 
    padding: 8px 15px; 
    border-radius: 8px; 
    border: 1px solid rgba(255,255,255,0.1); 
}

.eb-location strong { 
    color: var(--arcadian-gold); 
}

.eb-content button { 
    background: var(--arcadian-gold); 
    color: #000; 
    border: none; 
    padding: 16px 30px; 
    border-radius: 12px; 
    font-weight: 800; 
    font-size: 1.1rem; 
    cursor: pointer; 
    transition: 0.3s; 
    white-space: nowrap; 
    flex-shrink: 0; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    justify-content: center;
}

.eb-content button:hover { 
    transform: scale(1.05) translateY(-3px); 
    box-shadow: 0 10px 20px rgba(212,175,55,0.3); 
}

/* --- PAGINACIÓN DINÁMICA --- */
.pagination-area { 
    grid-column: 1 / -1; 
    text-align: center; 
    padding: 40px 0; 
    border-top: 1px solid #e2e8f0; 
    margin-top: 40px; 
}

.pagination-area p { 
    color: #64748b; 
    font-weight: 700; 
    margin-bottom: 20px; 
    font-size: 1.05rem; 
}

.pagination-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.pagination-buttons button { 
    background: white; 
    border: 1px solid #cbd5e1; 
    color: #0f172a; 
    padding: 12px 30px; 
    border-radius: 50px; 
    font-weight: 700; 
    font-size: 0.95rem; 
    cursor: pointer; 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-family: inherit;
}

.pagination-buttons button:hover { 
    background: #eff6ff; 
    color: var(--arcadian-blue); 
    border-color: var(--arcadian-blue); 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(42, 110, 242, 0.1); 
}

/* =========================================
   MODALES DE PRODUCTO Y COMPARADOR
   ========================================= */
.modal-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh; 
    background: rgba(15, 23, 42, 0.8); 
    z-index: 3000; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(5px); 
    opacity: 0; 
    transition: opacity 0.3s ease; 
    padding: 20px; 
}

.modal-overlay.show { 
    opacity: 1; 
}

.modal-content { 
    background: white; 
    width: 100%; 
    max-width: 1100px; 
    border-radius: 20px; 
    position: relative; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.25); 
    max-height: 90vh; 
    overflow-y: auto; 
    transform: translateY(20px); 
    transition: transform 0.3s ease; 
}

.modal-overlay.show .modal-content { 
    transform: translateY(0); 
}

.modal-close { 
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: #f1f5f9; 
    color: #64748b; 
    border: none; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    font-size: 1.2rem; 
    cursor: pointer; 
    transition: 0.2s; 
    z-index: 100; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.modal-close:hover { 
    background: #ef4444; 
    color: white; 
    transform: rotate(90deg); 
}

.modal-grid { 
    display: grid; 
    grid-template-columns: 1fr 1.3fr; 
    gap: 0; 
}

.modal-gallery { 
    padding: 40px; 
    background: #ffffff; 
    border-right: 1px solid #e2e8f0; 
    display: flex; 
    flex-direction: column; 
}

.modal-main-img-wrapper { 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: white; 
    border-radius: 16px; 
    padding: 20px; 
    margin-bottom: 20px; 
    min-height: 300px; 
    border: 1px solid #f1f5f9;
}

.modal-main-img-wrapper img { 
    max-width: 100%; 
    max-height: 350px; 
    object-fit: contain; 
}

.modal-thumbnails { 
    display: flex; 
    gap: 10px; 
    overflow-x: auto; 
    padding-bottom: 5px; 
}

.modal-thumbnails img { 
    width: 70px; 
    height: 70px; 
    object-fit: cover; 
    border-radius: 8px; 
    border: 2px solid transparent; 
    cursor: pointer; 
    opacity: 0.6; 
    transition: 0.2s; 
    background: white; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
}

.modal-thumbnails img:hover { 
    opacity: 1; 
}

.modal-thumbnails img.active { 
    opacity: 1; 
    border-color: var(--arcadian-blue); 
}

.modal-info { 
    padding: 40px 40px 40px 30px; 
    display: flex; 
    flex-direction: column;
}

.modal-info-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 15px; 
    padding-right: 45px; 
} 

.prod-brand-badge-modal { 
    background: var(--arcadian-blue); 
    color: white; 
    padding: 4px 10px; 
    border-radius: 6px; 
    font-size: 0.75rem; 
    font-weight: 800; 
    letter-spacing: 0.5px; 
}

.modal-info h2 { 
    font-size: 1.5rem; 
    color: #0f172a; 
    margin: 0 0 15px; 
    font-weight: 800; 
    line-height: 1.3; 
}

.warehouse-stock-container { 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 15px 20px; 
    margin-bottom: 20px; 
}

.warehouse-stock-container h4 { 
    font-size: 0.95rem; 
    color: #0f172a; 
    margin: 0 0 12px; 
    font-weight: 800; 
}

.wh-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.85rem; 
}

.wh-table th { 
    text-align: left; 
    color: #64748b; 
    padding-bottom: 8px; 
    border-bottom: 1px solid #cbd5e1; 
    font-weight: 600;
}

.wh-table td { 
    padding: 8px 0; 
    border-bottom: 1px solid #e2e8f0; 
    color: #0f172a; 
    font-weight: 500;
}

.wh-qty { 
    background: #ecfdf5; 
    color: #059669; 
    padding: 3px 8px; 
    border-radius: 6px; 
    font-weight: 800; 
}

.modal-specs { 
    margin-bottom: 25px; 
    flex-grow: 1; 
}

.modal-specs h3 { 
    font-size: 1.1rem; 
    color: #0f172a; 
    margin-bottom: 15px; 
    font-weight: 800;
}

.modal-desc-content { 
    font-size: 0.95rem; 
    color: #475569; 
    line-height: 1.6; 
    background: #f8fafc; 
    padding: 20px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0; 
    max-height: 250px; 
    overflow-y: auto;
}

.modal-desc-content ul { 
    padding-left: 20px; 
    margin-bottom: 15px; 
}

.modal-desc-content li { 
    margin-bottom: 8px; 
}

.modal-desc-content table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-bottom: 15px; 
    background: white; 
    border-radius: 8px; 
    overflow: hidden;
}

.modal-desc-content td, 
.modal-desc-content th { 
    border: 1px solid #e2e8f0; 
    padding: 10px; 
    font-size: 0.85rem; 
}

.modal-desc-content th { 
    background: #f1f5f9; 
    color: #0f172a;
}

.modal-resources { 
    margin-bottom: 30px; 
}

.btn-request-sheet { 
    background: #eff6ff; 
    color: var(--arcadian-blue); 
    padding: 12px 20px; 
    border-radius: 10px; 
    font-size: 0.95rem; 
    font-weight: 800; 
    border: 1px solid #bfdbfe; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 10px; 
    transition: all 0.2s; 
}

.btn-request-sheet:hover { 
    background: var(--arcadian-blue); 
    color: white; 
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(42, 110, 242, 0.2); 
}

.cross-sell-wrapper { 
    margin-bottom: 25px; 
}

.cross-sell-wrapper h4 { 
    font-size: 1rem; 
    color: #0f172a; 
    margin: 0 0 15px; 
    font-weight: 800; 
}

.cs-grid { 
    display: flex; 
    gap: 15px; 
    overflow-x: auto; 
    padding: 10px 5px; 
    margin: -10px -5px;
} 

.cs-card { 
    min-width: 120px; 
    max-width: 120px; 
    background: white; 
    border: 1px solid #e2e8f0; 
    border-radius: 10px; 
    padding: 10px; 
    cursor: pointer; 
    transition: 0.2s; 
    text-align: center; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.cs-card:hover { 
    border-color: var(--arcadian-blue); 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.08); 
}

.cs-card img { 
    width: 100%; 
    height: 60px; 
    object-fit: contain; 
    margin-bottom: 8px; 
}

.cs-card span { 
    font-size: 0.75rem; 
    color: #475569; 
    font-weight: 600; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    line-height: 1.2;
}

.modal-action-bar { 
    display: flex; 
    gap: 15px; 
    background: white; 
    padding: 20px 20px 0 0; 
    border-top: 1px solid #e2e8f0; 
    margin-top: auto;
}

/* =========================================
   MODAL DE COMPARADOR TÉCNICO
   ========================================= */
.compare-modal-size { 
    max-width: 1200px; 
}

.compare-table-wrapper { 
    overflow-x: auto; 
    padding-bottom: 20px; 
}

.compare-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #e2e8f0; 
    min-width: 800px;
}

.compare-table th, 
.compare-table td { 
    border: 1px solid #e2e8f0; 
    padding: 15px; 
    text-align: left; 
    vertical-align: top;
}

.compare-table th { 
    background: #f8fafc; 
    color: #0f172a; 
    font-weight: 800; 
    font-size: 0.95rem; 
    width: 15%;
}

.ct-header-cell { 
    text-align: center !important; 
    width: 28%;
}

.ct-header-cell img { 
    width: 120px; 
    height: 120px; 
    object-fit: contain; 
    margin: 0 auto 15px; 
    display: block;
}

.ct-brand { 
    font-size: 0.7rem; 
    font-weight: 800; 
    color: white; 
    background: var(--arcadian-blue); 
    padding: 4px 8px; 
    border-radius: 4px; 
    display: inline-block; 
    margin-bottom: 8px;
}

.ct-header-cell h4 { 
    font-size: 0.9rem; 
    color: #0f172a; 
    margin: 0; 
    line-height: 1.3;
}

.ct-specs { 
    font-size: 0.85rem; 
    color: #475569; 
    line-height: 1.5; 
}

.ct-specs ul { 
    padding-left: 15px; 
    margin: 0;
}

.ct-specs li { 
    margin-bottom: 5px; 
}

/* =========================================
   BOTONES FLOTANTES Y CARRO
   ========================================= */

/* --- BOTÓN FLOTANTE COMPARADOR --- */
.floating-compare-btn { 
    position: fixed; 
    bottom: 130px; 
    right: 40px; 
    background: #0f172a; 
    color: white; 
    border: none; 
    padding: 15px 25px; 
    border-radius: 50px; 
    font-size: 1rem; 
    font-weight: 800; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    cursor: pointer; 
    z-index: 999; 
    display: none; 
    align-items: center; 
    gap: 10px; 
    transition: 0.3s; 
    opacity: 0; 
    transform: translateY(20px);
}

.floating-compare-btn.show { 
    display: flex; 
    opacity: 1; 
    transform: translateY(0);
}

.floating-compare-btn:hover { 
    background: var(--arcadian-blue); 
    transform: translateY(-3px); 
}

/* --- BOTÓN FLOTANTE CARRITO --- */
.floating-cart-btn { 
    position: fixed; 
    bottom: 40px; 
    right: 40px; 
    width: 70px; 
    height: 70px; 
    background: var(--arcadian-blue); 
    color: white; 
    border: none; 
    border-radius: 50%; 
    font-size: 1.8rem; 
    box-shadow: 0 15px 30px rgba(42, 110, 242, 0.4); 
    cursor: pointer; 
    z-index: 1000; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.floating-cart-btn:hover { 
    transform: scale(1.1); 
}

.cart-badge { 
    position: absolute; 
    top: -5px; 
    right: -5px; 
    background: #ef4444; 
    color: white; 
    width: 28px; 
    height: 28px; 
    border-radius: 50%; 
    font-size: 0.9rem; 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 3px solid #f1f5f9; 
}

/* =========================================
   NUEVO CARRITO B2B: ESTILO DASHBOARD PRO
   ========================================= */
.cart-drawer { 
    position: fixed; 
    top: 0; 
    right: -480px; 
    width: 450px; 
    height: 100vh; 
    background: #f8fafc; 
    box-shadow: -20px 0 50px rgba(15,23,42,0.15); 
    z-index: 2000; 
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex; 
    flex-direction: column; 
}

.cart-drawer.open { right: 0; }

.cart-header { 
    padding: 25px; 
    background: #0f172a; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
    z-index: 10; 
    flex-shrink: 0;
}

.cart-title { display: flex; align-items: center; gap: 12px; }
.cart-title i { color: var(--arcadian-gold); font-size: 1.5rem; }
.cart-title h3 { margin: 0; font-size: 1.3rem; font-weight: 800; color: white; }

.btn-close-cart { 
    background: rgba(255,255,255,0.1); 
    border: none; 
    color: white; 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    cursor: pointer; 
    transition: 0.3s; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.btn-close-cart:hover { background: #ef4444; transform: rotate(90deg); }

.cart-body { 
    flex-grow: 1; 
    overflow-y: auto; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}
.cart-body::-webkit-scrollbar { width: 6px; }
.cart-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.cart-project-header { 
    background: white; 
    padding: 20px; 
    border-radius: 16px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
    border: 1px solid #e2e8f0; 
}

.project-input-pro { 
    width: 100%; 
    border: none; 
    border-bottom: 2px solid #f1f5f9; 
    padding: 10px 5px; 
    font-size: 1.1rem; 
    font-weight: 800; 
    color: #0f172a; 
    outline: none; 
    background: transparent; 
    transition: 0.3s; 
    margin-bottom: 15px; 
    box-sizing: border-box;
}
.project-input-pro:focus { border-bottom-color: var(--arcadian-blue); }
.project-input-pro::placeholder { font-weight: 600; color: #cbd5e1; }

.project-actions-pro { display: flex; gap: 10px; }

.tool-btn-pro { 
    flex-grow: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #f8fafc; 
    border: 1px solid #e2e8f0; 
    border-radius: 10px; 
    padding: 10px; 
    cursor: pointer; 
    transition: 0.2s; 
    font-size: 1.2rem; 
}
.tool-btn-pro:hover { 
    background: white; 
    border-color: #cbd5e1; 
    transform: translateY(-2px); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
}

.tool-btn-pro.btn-masiva { 
    background: #fffbeb; 
    border-color: #fde047; 
    color: #d97706; 
    font-size: 0.85rem; 
    font-weight: 800; 
    gap: 8px; 
    flex-grow: 2;
    font-family: inherit;
}
.tool-btn-pro.btn-masiva:hover { background: #fef08a; }

.text-blue { color: var(--arcadian-blue); }
.text-green { color: #10b981; }
.text-gray { color: #64748b; }

.quick-add-pro { 
    display: flex; 
    align-items: center; 
    background: white; 
    border-radius: 12px; 
    padding: 8px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
}
.icon-barcode { padding: 0 10px; color: #94a3b8; font-size: 1.2rem; }
.quick-add-pro input { 
    flex-grow: 1; 
    border: none; 
    outline: none; 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: #0f172a; 
    font-family: inherit;
}
.quick-add-pro input::placeholder { color: #94a3b8; }
.quick-add-pro button { 
    background: var(--arcadian-blue); 
    color: white; 
    border: none; 
    width: 35px; 
    height: 35px; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.quick-add-pro button:hover { background: #1e3a8a; }

.cart-items-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid #e2e8f0; 
    padding-bottom: 10px; 
}
.cart-items-header h4 { margin: 0; color: #0f172a; font-weight: 800; }
.badge-count { 
    background: #e2e8f0; 
    color: #475569; 
    padding: 2px 10px; 
    border-radius: 20px; 
    font-size: 0.8rem; 
    font-weight: 800; 
}

.empty-state { 
    background: white; 
    border: 2px dashed #cbd5e1; 
    border-radius: 16px; 
    padding: 40px 20px; 
    text-align: center; 
    color: #94a3b8; 
}
.empty-state i { font-size: 3rem; margin-bottom: 15px; opacity: 0.5; }

.antimermas-alert { 
    background: #fffbeb; 
    border: 1px solid #fde047; 
    padding: 15px; 
    border-radius: 12px; 
    font-size: 0.85rem; 
    color: #92400e; 
    line-height: 1.5; 
    box-shadow: 0 4px 6px rgba(251, 191, 36, 0.1);
}
.antimermas-alert strong { color: #b45309; }
.btn-antimerma { 
    background: white; border: 1px solid #fcd34d; color: #b45309; padding: 6px 12px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; cursor: pointer; margin-top: 10px; transition: 0.2s; display: inline-block;
}
.btn-antimerma:hover { background: #fef08a; }

.cart-items-container { display: flex; flex-direction: column; gap: 15px; }

.cart-item-card { 
    background: white; 
    padding: 15px; 
    border-radius: 16px; 
    border: 1px solid #e2e8f0; 
    display: flex; 
    gap: 15px; 
    align-items: stretch; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.02); 
    transition: 0.3s; 
    flex-shrink: 0; 
}
.cart-item-card:hover { border-color: #cbd5e1; box-shadow: 0 10px 20px rgba(0,0,0,0.05); transform: translateY(-2px); }

.ci-img { 
    width: 75px; 
    height: 75px; 
    flex-shrink: 0; 
    background: #f8fafc; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid #f1f5f9; 
    padding: 5px; 
}
.ci-img img { width: 100%; height: 100%; object-fit: contain; }

.ci-info { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; justify-content: space-between;}
.ci-sku { font-family: monospace; font-size: 0.75rem; color: #64748b; margin-bottom: 4px;}
.ci-name { 
    font-size: 0.9rem; 
    color: #0f172a; 
    margin: 0 0 10px 0; 
    font-weight: 700; 
    line-height: 1.3; 
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ci-bottom { display: flex; justify-content: space-between; align-items: center; }

.c-qty-controls { 
    display: inline-flex; 
    align-items: center; 
    border: 1px solid #cbd5e1; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #f8fafc;
}
.c-qty-controls button { background: transparent; border: none; padding: 6px 12px; cursor: pointer; color: #475569; font-size: 0.8rem; font-weight: bold;}
.c-qty-controls button:hover { background: #e2e8f0; color: #0f172a;}
.c-qty-controls span { font-size: 0.85rem; font-weight: 800; width: 30px; text-align: center; color: #0f172a;}

.btn-del-item { background: #fee2e2; color: #ef4444; border: none; width: 35px; height: 35px; border-radius: 8px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.btn-del-item:hover { background: #ef4444; color: white; }

.saved-projects-list { display: flex; flex-direction: column; gap: 8px; max-height: 150px; overflow-y: auto; margin-top: 5px; }
.saved-project-item { display: flex; justify-content: space-between; align-items: center; background: white; border: 1px solid #e2e8f0; padding: 10px 12px; border-radius: 8px; transition: 0.2s;}
.saved-project-item:hover { border-color: var(--arcadian-blue); }
.sp-info { display: flex; flex-direction: column; cursor: pointer; flex-grow: 1; }
.sp-info strong { font-size: 0.85rem; color: #0f172a; }
.sp-info span { font-size: 0.7rem; color: #64748b; }
.sp-delete { background: none; border: none; color: #ef4444; cursor: pointer; padding: 5px; opacity: 0.5; transition: 0.2s; }
.sp-delete:hover { opacity: 1; transform: scale(1.1); }

.cart-footer-pro { 
    background: white; 
    padding: 25px; 
    border-top: 1px solid #e2e8f0; 
    box-shadow: 0 -10px 30px rgba(15,23,42,0.05); 
    z-index: 10;
}
.cart-summary-pro { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 15px; 
    background: #f8fafc; 
    padding: 15px 20px; 
    border-radius: 12px; 
    border: 1px solid #e2e8f0;
}
.cart-summary-pro span { color: #64748b; font-weight: 700; font-size: 0.95rem;}
.cart-summary-pro strong { color: #0f172a; font-size: 1.4rem; font-weight: 800; }

.btn-wa-pro { 
    width: 100%; 
    background: #25D366; 
    color: white; 
    border: none; 
    padding: 18px; 
    border-radius: 12px; 
    font-size: 1.1rem; 
    font-weight: 800; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    transition: 0.3s; 
    box-shadow: 0 4px 15px rgba(37,211,102,0.2);
}
.btn-wa-pro:hover { 
    background: #1fae51; 
    transform: translateY(-3px); 
    box-shadow: 0 8px 25px rgba(37,211,102,0.3);
}

.masiva-textarea { width: 100%; height: 200px; padding: 15px; border: 1px solid #cbd5e1; border-radius: 10px; font-family: monospace; font-size: 0.85rem; resize: none; outline: none; background: #f8fafc;}
.masiva-textarea:focus { border-color: var(--arcadian-blue); background: white;}

/* --- RESPONSIVIDAD MÓVIL --- */
@media (max-width: 1400px) {
    .category-cubes-container { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .category-cubes-container { grid-template-columns: repeat(2, 1fr); }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-gallery { border-right: none; border-bottom: 1px solid #e2e8f0; padding: 20px; }
    .modal-info { padding: 20px; }
    .modal-content { max-height: 85vh; }
    .eb-content { flex-direction: column; text-align: center; }
}

@media (max-width: 900px) {
    .cart-drawer { width: 100%; right: -100%; }
    .catalog-page-header { padding: 100px 5% 40px; }
    .list-view .prod-card { flex-direction: column; align-items: flex-start; }
    .list-view .prod-image-wrapper { width: 100%; height: 200px; }
    .list-view .prod-actions { width: 100%; flex-direction: row; }
}

@media (max-width: 768px) {
    .category-cubes-container { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .product-grid { grid-template-columns: 1fr; }
    .floating-cart-btn { bottom: 20px; right: 20px; width: 60px; height: 60px; font-size: 1.5rem; }
    .floating-compare-btn { bottom: 90px; right: 20px; padding: 10px 15px; font-size: 0.9rem;}
    .modal-action-bar { flex-direction: column; }
    .toolbar-controls { flex-direction: column; align-items: flex-start; width: 100%; }
    .sort-box { width: 100%; justify-content: space-between; }
    .brand-filter-row { padding-bottom: 15px; }
    .project-actions-pro { flex-wrap: wrap; }
    .tool-btn-pro { width: calc(50% - 5px); flex: auto;}
}