.product-image-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 80px;
    background-color: var(--input-bg, #f8f9fa);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
}

/* Sobre-escribe el .product-image-container de inventario.css (width/height 50px)
   para que el contenedor del catálogo conserve su altura automática sin recortar */
#index-catalog-grid .producto-card .product-image-container {
    height: auto;
    min-height: 80px;
    width: 100%;
    margin: 0 0 10px 0;
}

#index-catalog-grid .producto-card .product-image-container img {
    width: 100%;
    height: auto !important;
    display: block;
    object-fit: contain;
}

.camera-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

.contenedor-productos.una-columna {
    display: block !important;
    max-width: 600px;
    margin: 0 auto;
}

.contenedor-productos.una-columna .producto-card {
    padding: 0 !important;
    margin-bottom: 20px !important;
}

.contenedor-productos.una-columna .producto-card h3,
.contenedor-productos.una-columna .producto-card .precios,
.contenedor-productos.una-columna .producto-card .actions {
    padding: 0 20px !important;
}

.contenedor-productos.una-columna .producto-card h3 {
    margin-top: 20px !important;
}

.contenedor-productos.una-columna .producto-card .precios {
    margin-bottom: 20px !important;
}

.contenedor-productos.una-columna .product-image-container {
    height: auto !important;
}

.contenedor-productos.una-columna .producto-card img {
    height: 100% !important;
    width: 100% !important;
}

.contenedor-productos.una-columna .producto-card h3 {
    font-size: 1.4em !important;
}

.contenedor-productos.una-columna .precios p {
    font-size: 1.2em !important;
}

.btn-toggle-layout {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    margin-bottom: 20px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-toggle-layout:hover {
    background: #e9ecef;
}

.btn-toggle-layout i {
    font-size: 1.1em;
}

.producto-card.remante-agotado {
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.4) !important;
    border: 2px solid rgba(220, 53, 69, 0.5) !important;
    background-color: #fff8f8 !important;
}

.badge-agotamiento {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e65100;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.7em;
    z-index: 20;
}

.badge-agotado {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #6b7280;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.7em;
    z-index: 20;
    letter-spacing: 0.5px;
}

.badge-ventas-admin {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ef4444;
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.72em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.ventas-score-0 { background-color: #7c3aed; }
.ventas-score-1 { background-color: #6d28d9; }
.ventas-score-2 { background-color: #4f46e5; }
.ventas-score-3 { background-color: #2563eb; }
.ventas-score-4 { background-color: #0ea5e9; }
.ventas-score-5 { background-color: #10b981; }
.ventas-score-6 { background-color: #22c55e; }
.ventas-score-7 { background-color: #eab308; }
.ventas-score-8 { background-color: #f59e0b; }
.ventas-score-9 { background-color: #f97316; }
.ventas-score-10 { background-color: #ef4444; }

.ventas-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.overlay-quitar {
    position: absolute;
    top: 45px;
    right: 5px;
    background-color: #dc3545;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* ── Tarjeta Explorar al final del catálogo ── */
.explorar-catalog-card {
    text-align: center;
    border: 2px solid #a855f7;
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    padding: 15px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}
.explorar-catalog-icon {
    font-size: 2em;
    margin: 10px 0;
    color: #6a0dad;
}
.explorar-catalog-card h4 {
    margin: 5px 0 3px;
    color: #333;
    font-size: 0.95em;
}
.explorar-catalog-card p {
    margin: 0 0 10px;
    color: #666;
    font-size: 0.82em;
    line-height: 1.4;
}
.explorar-catalog-btn {
    display: inline-block;
    background: #6a0dad;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}
.explorar-catalog-btn:hover {
    background: #4c0780;
}

.modal-demo-welcome {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease-out;
}

.modal-demo-content {
    background: var(--card-bg, white);
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    animation: scaleUpModal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border: 2px solid #6a0dad;
}

.modal-demo-icon {
    font-size: 3em;
    color: #6a0dad;
    margin-bottom: 20px;
    animation: floatIcon 3s ease-in-out infinite;
}

.modal-demo-title {
    font-size: 1.5em;
    font-weight: 800;
    color: #333;
    margin-bottom: 15px;
}

.modal-demo-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.btn-demo-start {
    background: linear-gradient(90deg, #6a0dad, #9c27b0);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(106, 13, 173, 0.3);
}

.btn-demo-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 13, 173, 0.4);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUpModal {
    to { transform: scale(1); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Folder Collage Styles */
.folder-card {
    break-inside: avoid;
    page-break-inside: avoid;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center; 
    border: 1px solid var(--border-color); 
    background-color: var(--card-bg, #fcfcfc); 
    cursor: pointer; 
    transition: transform 0.2s, box-shadow 0.2s;
    padding-bottom: 15px;
}

.folder-image-container {
    width: 100%;
    height: 120px;
    background-color: var(--input-bg, #f0f2f5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Fallback icon if no images */
.folder-icon-fallback {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.6;
}

/* Drag and Drop Visual Feedback */
.producto-card.drag-over {
    border: 3px dashed var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.1);
    transform: scale(1.02);
    transition: all 0.2s ease;
    z-index: 10;
}

.producto-card.drag-over::after {
    content: "Suelta para actualizar imagen";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    pointer-events: none;
    white-space: nowrap;
}

.folder-collage {
    display: grid;
    width: 100%;
    height: 100%;
    gap: 2px;
    background-color: #ddd;
}

.folder-collage.single-image { grid-template-columns: 1fr; }
.folder-collage.two-images { grid-template-columns: 1fr 1fr; }
.folder-collage.three-images { 
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr;
}
.folder-collage.four-images { 
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.collage-item {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--card-bg, white);
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
}

.folder-title {
    margin: 10px 0; 
    font-size: 1.2em; 
    text-align: center; 
    width: 90%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.folder-title .fa-pen {
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.5em;
    margin-left: 6px;
    cursor: pointer;
    vertical-align: middle;
}
.folder-card:hover .folder-title .fa-pen {
    opacity: 0.5;
}
.folder-title .fa-pen:hover {
    opacity: 1 !important;
}

.folder-name-text {
    cursor: pointer;
}

.folder-title-input {
    font-size: 1em;
    text-align: center;
    border: 2px solid #2196f3;
    border-radius: 6px;
    padding: 4px 8px;
    width: 90%;
    outline: none;
    background: #f0f7ff;
    font-family: inherit;
}

.folder-actions {
    margin-top: 5px;
}

.folder-hidden-admin {
    background-color: #fff5f5 !important;
    border: 2px dashed #ff8282 !important;
    position: relative;
    box-shadow: inset 0 0 10px rgba(220, 53, 69, 0.05) !important;
}

.folder-hidden-admin::after {
    content: "Oculto para clientes";
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    font-size: 0.65em;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.folder-hidden-admin .folder-image-container {
    background-color: #ffebeb !important;
    opacity: 0.8;
}

.btn-danger-sm {
    background-color: #dc3545; 
    color: white; 
    padding: 5px 10px; 
    font-size: 0.8em;
    border-radius: 5px;
}

/* Selección Masiva */
.producto-card.seleccionada {
    border: 3px solid #007bff !important;
    background-color: #e7f3ff !important;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.3) !important;
    position: relative;
}

.producto-card.seleccionada::before {
    content: "\f14a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 35px; /* Ajuste para no tapar el círculo de disponibilidad del admin */
    right: 10px;
    background: #007bff;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    z-index: 30;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.modo-seleccion-activo .producto-card:not(.folder-card) {
    cursor: copy !important;
}

.modo-seleccion-activo .producto-card:not(.folder-card):hover {
    border-color: #007bff;
}

.btn-modo-seleccion-on {
    background-color: #007bff !important;
    color: white !important;
    border-color: #0056b3 !important;
    font-weight: bold;
}

/* Alphabet Nav Buttons */
.alphabet-btn {
    background: var(--glass-bg, #f8f9fa);
    color: var(--text-primary, #333);
    border: 1px solid var(--border-color, #ddd);
    padding: 6px 11px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
    min-width: 36px;
    height: 36px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.alphabet-btn:hover:not(:disabled) {
    background: var(--primary-color, #28a745);
    color: white;
    border-color: var(--primary-color, #28a745);
    transform: translateY(-2px);
}

.alphabet-btn.active {
    background: var(--primary-color, #28a745);
    color: white;
    border-color: var(--primary-color, #28a745);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

.alphabet-btn.disabled,
.alphabet-btn:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    pointer-events: none;
    background: transparent;
    border-color: var(--border-color, #ddd);
    color: var(--text-secondary, #999);
    transform: none;
    box-shadow: none;
}

/* Ocultar scrollbar visualmente pero mantener scroll funcional */
html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar {
    display: none;
    width: 0;
}

/* Highlight Animation */
.highlight-animation {
    animation: highlight-pulse 2s ease-out;
}

@keyframes highlight-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
        border-color: #f59e0b;
    }
    30% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(245, 158, 11, 0);
        border-color: #f59e0b;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}
/* Infinite Scroll Loaders */
#top-scroll-loader, #infinite-scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    width: 100%;
}

#top-scroll-loader .spinner-border, #infinite-scroll-loader i {
    color: var(--primary-color, #28a745) !important;
}
/* Modificadores Dropdown Unificado */
.dropdown-acciones {
    position: relative;
    display: inline-block;
}
.dropdown-acciones .btn-opciones {
    background-color: #6a0dad;
    color: white;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9em;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}
.dropdown-acciones .btn-opciones:hover {
    background-color: #580a8f;
}
.card-dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    top: auto;
    margin-bottom: 8px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background-color: #ffffff;
    min-width: 190px;
    box-shadow: 0px 8px 24px rgba(0,0,0,0.2);
    z-index: 100000;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    text-align: left;
}

.card-dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    font-weight: 500;
    transition: background 0.2s;
}
.card-dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #6a0dad;
}
.card-dropdown-content a.danger-action {
    color: #dc3545;
    border-top: 1px solid #f1f1f1;
}
.card-dropdown-content a.danger-action:hover {
    background-color: #fff5f5;
}
/* Triangulito (hacia arriba) */
.card-dropdown-content::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
    display: block;
    width: 0;
}


/* La card no debe recortar el dropdown */
.producto-card,
.folder-card {
    overflow: visible !important;
}
/* Sólo la imagen y el header sí recortan */
.producto-card .product-image-container,
.folder-card .folder-image-container {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

/* === Grid (Masonry: orden izquierda a derecha, altura variable) === */
#index-catalog-grid {
    margin: 0 auto;
    overflow: visible;
}

#index-catalog-grid > * {
    min-width: 0;
}

#index-catalog-grid .producto-card {
    width: 12.5%;
    padding: 0 4px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

@media (min-width: 769px) and (max-width: 1199px) {
    #index-catalog-grid .producto-card {
        width: 25%;
    }
}

@media (max-width: 768px) {
    #index-catalog-grid .producto-card {
        width: 50%;
    }
}

/* ── Layout: Masonry (Pinterest) ── */
#index-catalog-grid.layout-masonry {
    display: block;
    position: relative;
}
#index-catalog-grid.layout-masonry .producto-card {
    padding: 0 4px;
    box-sizing: border-box;
    margin-bottom: 8px;
}

/* ── Campos de Inventario en Tarjetas ── */
.inventory-fields {
    padding: 6px 12px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}
.inv-field {
    font-size: 0.75em;
    color: #495057;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
    line-height: 1.3;
}
.inv-field.extra-tabla {
    display: none;
}
.inv-field .prov-select {
    display: none;
}
.inv-field.prov-field {
    cursor: pointer;
}
#index-catalog-grid:not(.layout-tabla) .producto-card .inv-field.prov-field {
    min-width: 0;
    max-width: 100%;
    flex-basis: 100%;
    flex-wrap: wrap;
}
#index-catalog-grid:not(.layout-tabla) .producto-card .inv-field.prov-field .inv-value,
#index-catalog-grid:not(.layout-tabla) .producto-card .inv-field.prov-field .prov-texto {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.inv-field.prov-field select {
    font-size: 0.95em;
    padding: 1px 4px;
    border: 1px solid #6a0dad;
    border-radius: 3px;
    max-width: 140px;
    background: #fff;
}
.inv-field.prov-field select:disabled {
    opacity: 0.6;
}
.inv-field:hover {
    background: #e9ecef;
}
.inv-label {
    font-weight: 600;
    color: #6c757d;
}
.inv-value {
    color: #212529;
}
.inv-field.editing .inv-value {
    display: none;
}
.inv-field.editing input {
    width: 70px;
    padding: 1px 4px;
    font-size: 0.95em;
    border: 1px solid #6a0dad;
    border-radius: 3px;
    outline: none;
}

/* ── Layout Tabla ── */
#index-catalog-grid.layout-tabla {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}
#index-catalog-grid.layout-tabla .folder-card {
    display: none;
}
#index-catalog-grid.layout-tabla .producto-card {
    display: grid;
    grid-template-columns: 50px minmax(160px, 1fr) minmax(120px, auto) minmax(320px, 1.2fr);
    grid-template-areas: "img nombre precios inv";
    align-items: center;
    gap: 10px;
    width: 100% !important;
    padding: 8px 12px !important;
    margin-bottom: 2px !important;
    border-radius: 0 !important;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
    cursor: pointer;
}
#index-catalog-grid.layout-tabla .producto-card:hover {
    background: #f8f9fa;
}
#index-catalog-grid.layout-tabla .producto-card .product-image-container {
    grid-area: img;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
#index-catalog-grid.layout-tabla .producto-card .product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#index-catalog-grid.layout-tabla .producto-card h3 {
    grid-area: nombre;
    margin: 0;
    font-size: 0.85em;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#index-catalog-grid.layout-tabla .producto-card .precios {
    grid-area: precios;
    margin: 0;
    padding: 0;
    font-size: 0.75em;
}
#index-catalog-grid.layout-tabla .producto-card .precios p {
    margin: 0;
}
#index-catalog-grid.layout-tabla .producto-card .inventory-fields {
    grid-area: inv;
    display: flex;
    gap: 8px;
    border-top: none;
    background: transparent;
    padding: 0;
}
#index-catalog-grid.layout-tabla .producto-card .inv-field.extra-tabla {
    display: inline-block;
}
#index-catalog-grid.layout-tabla .producto-card .inv-field .prov-select {
    display: inline-block;
}
#index-catalog-grid.layout-tabla .producto-card .inv-field .prov-texto {
    display: none;
}
#index-catalog-grid.layout-tabla .producto-card:has(.inventory-fields) .precios {
    display: none;
}
#index-catalog-grid.layout-tabla .producto-card:has(.inventory-fields) {
    grid-template-columns: 50px minmax(160px, 1fr) minmax(420px, 1.2fr);
    grid-template-areas: "img nombre inv";
}
#index-catalog-grid.layout-tabla .producto-card .badge-agotado,
#index-catalog-grid.layout-tabla .producto-card .badge-agotamiento,
#index-catalog-grid.layout-tabla .producto-card .badge-ventas-admin,
#index-catalog-grid.layout-tabla .producto-card .badge-missing-data,
#index-catalog-grid.layout-tabla .producto-card .badge-oculto-admin,
#index-catalog-grid.layout-tabla .producto-card .admin-create-card,
#index-catalog-grid.layout-tabla .producto-card .dropdown-acciones,
#index-catalog-grid.layout-tabla .producto-card .status-circle,
#index-catalog-grid.layout-tabla .producto-card .overlay-quitar,
#index-catalog-grid.layout-tabla .producto-card .btn-toggle-visibilidad,
#index-catalog-grid.layout-tabla .producto-card .camera-btn,
#index-catalog-grid.layout-tabla .producto-card input[type="file"],
#index-catalog-grid.layout-tabla .producto-card .btn-import-product {
    display: none !important;
}
#index-catalog-grid.layout-tabla .producto-card .inv-field {
    font-size: 0.7em;
}

#index-catalog-grid.una-columna {
    display: block;
    max-width: 600px;
    margin: 0 auto;
}

#index-catalog-grid.una-columna .producto-card {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 20px !important;
}

/* ── Modo Selección Activo ── */
body.modo-seleccion .producto-card {
    border: 2px dashed #93c5fd !important;
    transition: all 0.2s ease;
}
body.modo-seleccion .producto-card:hover {
    border-color: #3b82f6 !important;
    background-color: #eff6ff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(59,130,246,0.25) !important;
}

/* ── Layout: Grid Cuadrícula ── */
#index-catalog-grid.layout-grid {
    display: grid;
    grid-template-columns: repeat(var(--product-columns, 6), 1fr);
    gap: 0;
}
#index-catalog-grid.layout-grid .producto-card {
    width: 100% !important;
    margin-bottom: 0 !important;
}
#index-catalog-grid.layout-grid .producto-card img {
    height: var(--product-image-height, 150px);
    object-fit: contain;
}
@media (max-width: 768px) {
    #index-catalog-grid.layout-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Layout: Lista ── */
#index-catalog-grid.layout-lista {
    display: flex;
    flex-direction: column;
    gap: var(--gap-cards, 10px);
    max-width: 800px;
    margin: 0 auto;
}
#index-catalog-grid.layout-lista .producto-card {
    width: 100% !important;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0 !important;
    overflow: hidden;
}
#index-catalog-grid.layout-lista .producto-card .product-image-container,
#index-catalog-grid.layout-lista .producto-card > img {
    width: 120px !important;
    min-width: 120px;
    height: 100px !important;
    object-fit: contain;
    margin-bottom: 0 !important;
}
#index-catalog-grid.layout-lista .producto-card h3,
#index-catalog-grid.layout-lista .producto-card .precios,
#index-catalog-grid.layout-lista .producto-card > div:not(.product-image-container):not(.status-circle):not(.overlay-agregar):not(.overlay-quitar) {
    text-align: left;
    padding: 8px 16px;
}
#index-catalog-grid.layout-lista .producto-card .precios {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ── Layout: Carrusel ── */
#index-catalog-grid.layout-carrusel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--gap-cards, 10px);
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}
#index-catalog-grid.layout-carrusel::-webkit-scrollbar {
    height: 6px;
}
#index-catalog-grid.layout-carrusel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
#index-catalog-grid.layout-carrusel .producto-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
    margin-bottom: 0 !important;
}
#index-catalog-grid.layout-carrusel .producto-card img {
    height: var(--product-image-height, 150px);
}

/* ── Layout: Grandes ── */
#index-catalog-grid.layout-grandes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--gap-cards, 20px);
}
#index-catalog-grid.layout-grandes .producto-card {
    width: 100% !important;
    max-width: 500px;
    margin-bottom: 0 !important;
}
#index-catalog-grid.layout-grandes .producto-card img {
    height: 220px;
    object-fit: contain;
}

/* ── Layout: Revista ── */
#index-catalog-grid.layout-revista {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-cards, 10px);
}
#index-catalog-grid.layout-revista .producto-card {
    width: 100% !important;
    margin-bottom: 0 !important;
}
#index-catalog-grid.layout-revista .producto-card:nth-child(5n+1),
#index-catalog-grid.layout-revista .producto-card:nth-child(5n+3) {
    grid-column: span 2;
}
#index-catalog-grid.layout-revista .producto-card:nth-child(5n+1) img,
#index-catalog-grid.layout-revista .producto-card:nth-child(5n+3) img {
    height: 200px;
}
#index-catalog-grid.layout-revista .producto-card img {
    height: var(--product-image-height, 150px);
    object-fit: contain;
}
@media (max-width: 768px) {
    #index-catalog-grid.layout-revista {
        grid-template-columns: repeat(2, 1fr);
    }
    #index-catalog-grid.layout-revista .producto-card:nth-child(5n+1),
    #index-catalog-grid.layout-revista .producto-card:nth-child(5n+3) {
        grid-column: span 2;
    }
}
@media (max-width: 480px) {
    #index-catalog-grid.layout-revista {
        grid-template-columns: 1fr;
    }
    #index-catalog-grid.layout-revista .producto-card:nth-child(5n+1),
    #index-catalog-grid.layout-revista .producto-card:nth-child(5n+3) {
        grid-column: span 1;
    }
}
