.page-tienda .catalog-container {
    zoom: 0.9;
}


@media (min-width: 1800px) {
    .page-tienda .catalog-container {
        zoom: 1.25;
    }
}


@media (max-width: 900px) {
    .page-tienda .catalog-container {
        zoom: 1;
    }
}

.catalog-container {
    display: block;
    padding: 2rem 2%;
    position: relative;
    min-height: 100vh;
}

/* Brillos púrpura de fondo distribuidos */
.catalog-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        /* Brillo superior izquierdo */
        radial-gradient(ellipse 600px 400px at 5% 10%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        /* Brillo central derecho */
        radial-gradient(ellipse 500px 500px at 95% 30%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        /* Brillo inferior izquierdo */
        radial-gradient(ellipse 700px 400px at 10% 70%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
        /* Brillo central superior */
        radial-gradient(ellipse 400px 300px at 50% 5%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        /* Brillo inferior derecho */
        radial-gradient(ellipse 600px 500px at 90% 85%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        /* Brillo central */
        radial-gradient(ellipse 500px 400px at 40% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        /* Brillo adicional aleatorio */
        radial-gradient(ellipse 350px 250px at 75% 60%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 400px 300px at 25% 40%, rgba(168, 85, 247, 0.04) 0%, transparent 50%);
}

/* Segunda capa de brillos para más profundidad */
.catalog-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(ellipse 800px 600px at 15% 25%, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 600px 700px at 80% 55%, rgba(99, 102, 241, 0.035) 0%, transparent 55%),
        radial-gradient(ellipse 500px 400px at 60% 80%, rgba(168, 85, 247, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse 450px 350px at 30% 90%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
}


.filters-sidebar {
    position: fixed;
    top: 100px;
    left: 0;
    transform: translateX(-100%);
    width: 320px;
    max-width: 85vw;
    max-height: calc(100vh - 120px);
    background: linear-gradient(180deg, rgba(15, 15, 25, 0.98) 0%, rgba(10, 10, 18, 0.99) 100%);
    padding: 1.5rem;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-left: none;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    backdrop-filter: blur(20px);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(168, 85, 247, 0.1);
}


.catalog-container.sidebar-open .filters-sidebar {
    transform: translateX(0);
}


.filters-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.catalog-container.sidebar-open .filters-backdrop {
    opacity: 1;
    visibility: visible;
}

.filters-sidebar:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.filters-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-header h3 {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}


.close-filters-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.close-filters-btn:hover {
    background: var(--bg-body);
    color: var(--primary);
    transform: rotate(90deg) scale(1.1);
}


.cascading-filter-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-step {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: all 0.3s ease;
}

.filter-step.hidden {
    display: none;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    padding: 0.75rem 0.875rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.custom-select option {
    background: #0a0a0f;
    color: #fff;
    padding: 8px;
}

.custom-select:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.custom-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}


.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.85rem 1rem;
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.filter-checkbox:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.08);
    transform: translateY(-1px);
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.3);
}

.checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0) rotate(-10deg);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-checkbox input[type="checkbox"]:checked+.checkbox-custom {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6),
        0 0 40px rgba(139, 92, 246, 0.3);
    animation: checkboxPulse 2s ease-in-out infinite;
}

@keyframes checkboxPulse {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(168, 85, 247, 0.5),
            0 0 30px rgba(139, 92, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.7),
            0 0 50px rgba(139, 92, 246, 0.4);
    }
}

.filter-checkbox input[type="checkbox"]:checked+.checkbox-custom::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}


.filter-checkbox:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(168, 85, 247, 0.2) 100%);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.2),
        inset 0 0 15px rgba(168, 85, 247, 0.05);
}

.filter-checkbox:has(input[type="checkbox"]:checked) .checkbox-label {
    color: #c084fc;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(192, 132, 252, 0.3);
}

.checkbox-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
}


.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.price-range input {
    width: 100%;
    cursor: pointer;
}

.btn-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: center;
}

.btn-text:hover {
    color: var(--primary);
}


.catalog-toolbar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}


.search-bar.expanded {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar.expanded i {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-bar.expanded input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.search-bar.expanded input:focus {
    border-color: var(--primary);

    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2),
        0 0 30px rgba(99, 102, 241, 0.3),
        inset 0 0 15px rgba(99, 102, 241, 0.05);
    outline: none;
    transform: translateY(-2px);
}

#sort-select {
    padding: 0.875rem 2.5rem 0.875rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(15, 15, 25, 0.95);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    min-width: 200px;
    transition: all 0.25s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

#sort-select:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.1);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

#sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2),
        0 0 20px rgba(99, 102, 241, 0.4);
}

#sort-select option {
    background: #0f0f19;
    color: #fff;
    padding: 12px;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}


.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);

    animation: blurIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    position: relative;
}


.product-card:nth-child(1) {
    animation-delay: 0.05s;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.15s;
}

.product-card:nth-child(4) {
    animation-delay: 0.2s;
}

.product-card:nth-child(5) {
    animation-delay: 0.25s;
}

.product-card:nth-child(6) {
    animation-delay: 0.3s;
}

.product-card:nth-child(7) {
    animation-delay: 0.35s;
}

.product-card:nth-child(8) {
    animation-delay: 0.4s;
}

.product-card:nth-child(9) {
    animation-delay: 0.45s;
}

.product-card:nth-child(10) {
    animation-delay: 0.5s;
}

.product-card:nth-child(11) {
    animation-delay: 0.55s;
}

.product-card:nth-child(12) {
    animation-delay: 0.6s;
}

.product-card:nth-child(13) {
    animation-delay: 0.65s;
}

.product-card:nth-child(14) {
    animation-delay: 0.7s;
}

.product-card:nth-child(15) {
    animation-delay: 0.75s;
}

.product-card:nth-child(16) {
    animation-delay: 0.8s;
}

.product-card:nth-child(17) {
    animation-delay: 0.85s;
}

.product-card:nth-child(18) {
    animation-delay: 0.9s;
}

.product-card:nth-child(19) {
    animation-delay: 0.95s;
}

.product-card:nth-child(20) {
    animation-delay: 1s;
}

.product-card:hover {

    transform: translateY(-12px) scale(1.03) perspective(1000px) rotateY(2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(99, 102, 241, 0.3),
        inset 0 0 20px rgba(99, 102, 241, 0.05);
    border-color: var(--primary);
    z-index: 2;
}


.product-image img.primary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.product-image img.secondary-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1;
}

.product-card:hover .product-image img.primary-image {
    opacity: 0;
}

.product-card:hover .product-image img.secondary-image {
    opacity: 1;
}

.product-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: var(--bg-body);
}

.product-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badge-new,
.badge-sale {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--bg-card);
    color: var(--text-main);
    border: 2px solid var(--border);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;

    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5),
        0 0 20px rgba(99, 102, 241, 0.3);
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6),
        0 0 20px rgba(239, 68, 68, 0.4);
}

.btn-quick-view {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.product-card:hover .btn-quick-view {
    opacity: 1;
}

.product-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    background: var(--bg-card);
    color: var(--text-main);
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    display: none;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    color: var(--text-main);
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-price .price {
    color: #a855f7;
    font-weight: 800;
    font-size: 1.15rem;
    animation: priceGlow 2.5s ease-in-out infinite;
}

@keyframes priceGlow {

    0%,
    100% {
        text-shadow: 0 0 5px rgba(168, 85, 247, 0.2);
    }

    50% {
        text-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
    }
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85rem;
    opacity: 0.7;
}



@media (max-width: 1600px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}


@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}


@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .catalog-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none;


    }

    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    #sort-select {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.btn-show-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.btn-show-filters:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}




@media (max-width: 768px) {
    .btn-show-filters {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-card {
        font-size: 0.85rem;
    }

    .product-card .product-info {
        padding: 0.875rem;
    }

    .product-card .product-category {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .product-card .product-title {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
        min-height: 2.2em;
    }

    .product-card .product-price {
        font-size: 1rem;
    }

    .product-card .price-old {
        font-size: 0.8rem;
    }


    .product-card .btn-add-cart {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 44px;

        touch-action: manipulation;
    }

    .product-card .badge-sale {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .filters-sidebar {
        font-size: 0.9rem;
    }

    .filter-section h3 {
        font-size: 1rem;
    }


    .catalog-toolbar {
        padding: 0 0.5rem;
        gap: 0.75rem;
    }

    .search-bar.expanded input {
        padding: 0.75rem 1rem 0.75rem 2.75rem;
        font-size: 16px;

    }

    #sort-select {
        min-width: 140px;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }


    .pagination-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 0.5rem;
    }
}


@media (max-width: 400px) {
    .product-grid {
        gap: 0.75rem;
    }

    .product-card .product-info {
        padding: 0.75rem;
    }

    .product-card .product-title {
        font-size: 0.8rem;
    }

    .product-card .product-price {
        font-size: 0.95rem;
    }

    .catalog-toolbar {
        flex-wrap: wrap;
    }

    .search-bar.expanded {
        width: 100%;
        order: 2;
    }

    #sort-select {
        flex: 1;
        min-width: 100px;
    }

    .btn-show-filters {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

[data-theme="dark"] .product-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(18, 18, 26, 1) 100%);
}

[data-theme="dark"] .product-card .product-info {
    background: transparent;
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .filters-sidebar {
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(16, 16, 24, 1) 100%);
    box-shadow:
        4px 0 30px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(99, 102, 241, 0.03);
}

[data-theme="dark"] .search-bar.expanded input {
    background: #111116;
}

[data-theme="dark"] .search-bar.expanded input:focus {
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.15),
        0 0 30px rgba(99, 102, 241, 0.08),
        inset 0 0 15px rgba(99, 102, 241, 0.02);
}

[data-theme="dark"] .btn-show-filters:hover,
[data-theme="dark"] #sort-select:hover,
[data-theme="dark"] .custom-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #818cf8;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.5), inset 0 0 10px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}




[data-theme="light"] .filters-sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.99) 100%);
    border-color: rgba(99, 102, 241, 0.2);
    box-shadow: 4px 0 40px rgba(0, 0, 0, 0.1),
        0 0 60px rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .filters-sidebar:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .filters-header h3 {
    color: #1e293b;
}

[data-theme="light"] .close-filters-btn {
    color: #64748b;
}

[data-theme="light"] .close-filters-btn:hover {
    background: #f1f5f9;
    color: #6366f1;
}

[data-theme="light"] .filter-label {
    color: #475569;
}


[data-theme="light"] .custom-select {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .custom-select option {
    background: #ffffff;
    color: #1e293b;
}

[data-theme="light"] .custom-select:hover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.05);
}

[data-theme="light"] .custom-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] .select-arrow {
    color: #64748b;
}


[data-theme="light"] #sort-select {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

[data-theme="light"] #sort-select:hover {
    border-color: #6366f1;
    background-color: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

[data-theme="light"] #sort-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15),
        0 0 20px rgba(99, 102, 241, 0.1);
}

[data-theme="light"] #sort-select option {
    background: #ffffff;
    color: #1e293b;
}


[data-theme="light"] .filter-checkbox {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .filter-checkbox:hover {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.05);
}

[data-theme="light"] .checkbox-custom {
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .checkbox-label {
    color: #334155;
}

[data-theme="light"] .filter-checkbox:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1),
        inset 0 0 15px rgba(99, 102, 241, 0.03);
}

[data-theme="light"] .filter-checkbox:has(input[type="checkbox"]:checked) .checkbox-label {
    color: #6366f1;
}

[data-theme="light"] .filter-checkbox input[type="checkbox"]:checked+.checkbox-custom {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
}


[data-theme="light"] .btn-show-filters {
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .btn-show-filters:hover {
    border-color: #6366f1;
    background: #6366f1;
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}


[data-theme="light"] .btn-text {
    color: #64748b;
}

[data-theme="light"] .btn-text:hover {
    color: #6366f1;
}




@media (hover: none) {
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .product-card:hover .product-image img {
        transform: none;
    }

    .product-image img {
        transition: none;
    }


    .product-price .price {
        animation: none;
        text-shadow: 0 0 5px rgba(168, 85, 247, 0.2);
    }


    .product-card {
        animation: none;
    }

    .badge-sale {
        animation: none;
    }
}


.carousel-track.dragging>*,
.carousel-track.dragging .product-card,
.carousel-track.dragging .product-card * {
    transition: none !important;
    animation: none !important;
}




.btn-quick-add {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.product-card:hover .btn-quick-add {
    opacity: 1;
}

.btn-quick-add:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-quick-add.active {
    opacity: 1;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}


.quick-add-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(15, 15, 25, 0.98) 0%, rgba(10, 10, 18, 0.99) 100%);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 20;
    backdrop-filter: blur(20px);
}

.quick-add-panel.active {
    max-height: 300px;
    min-height: 120px;
    padding: 0.5rem;
    opacity: 1;
}

.quick-add-panel .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-add-panel .panel-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-add-panel .panel-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.15rem;
    font-size: 0.75rem;
    transition: color 0.2s;
    flex-shrink: 0;
}

.quick-add-panel .panel-close:hover {
    color: #ef4444;
}


.quick-add-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.quick-add-form .form-row {
    display: flex;
    gap: 0.35rem;
}

.quick-add-form .form-group {
    flex: 1;
    margin: 0 !important;
    margin-bottom: 0 !important;
}

.quick-add-form label,
.quick-add-form .form-group label {
    display: block !important;
    font-size: 0.55rem !important;
    font-weight: 600 !important;
    color: var(--text-muted) !important;
    margin-bottom: 0.15rem !important;
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.quick-add-form select,
.quick-add-form input,
.quick-add-form .form-group select,
.quick-add-form .form-group input {
    width: 100% !important;
    padding: 0.35rem 0.4rem !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 4px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    color: #fff !important;
    font-size: 0.65rem !important;
    transition: all 0.2s;
    height: auto !important;
    min-height: 0 !important;
}

.quick-add-form select:focus,
.quick-add-form input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2);
}

.quick-add-form select option {
    background: #0a0a0f;
    color: #fff;
}


.quick-add-form .optional-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.55rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.15rem 0;
    transition: color 0.2s;
}

.quick-add-form .optional-toggle:hover {
    color: #a855f7;
}

.quick-add-form .optional-toggle i {
    font-size: 0.45rem;
    transition: transform 0.2s;
}

.quick-add-form .optional-toggle.expanded i {
    transform: rotate(180deg);
}

.quick-add-form .optional-fields {
    display: none;
    gap: 0.25rem;
    margin-top: 0.1rem;
}

.quick-add-form .optional-fields.show {
    display: flex;
    flex-direction: column;
}


.quick-add-form .btn-add-quick {
    width: 100% !important;
    padding: 0.4rem !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    font-size: 0.65rem !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.25rem !important;
    height: auto !important;
    min-height: 0 !important;
}

.quick-add-form .btn-add-quick:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.quick-add-form .btn-add-quick:active {
    transform: translateY(0);
}

.quick-add-form .btn-add-quick:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


.quick-add-form .price-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.2rem;
}

.quick-add-form .price-preview .price-label {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.quick-add-form .price-preview .price-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: #a855f7;
}


[data-theme="light"] .quick-add-panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.99) 100%);
    border-top-color: rgba(99, 102, 241, 0.2);
}

[data-theme="light"] .quick-add-panel .panel-header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .quick-add-panel .panel-title {
    color: #1e293b;
}

[data-theme="light"] .quick-add-form select,
[data-theme="light"] .quick-add-form input {
    background: rgba(255, 255, 255, 0.9);
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .quick-add-form select option {
    background: #ffffff;
    color: #1e293b;
}

[data-theme="light"] .quick-add-form .optional-toggle {
    color: #64748b;
}

[data-theme="light"] .quick-add-form .price-preview {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .quick-add-form .price-preview .price-label {
    color: #64748b;
}


@media (max-width: 768px) {
    .btn-quick-add {
        opacity: 1;

        width: 2.25rem;
        height: 2.25rem;
    }

    .quick-add-panel.active {
        padding: 0.875rem;
    }

    .quick-add-form select,
    .quick-add-form input {
        padding: 0.6rem;
        font-size: 16px;

    }

    .quick-add-form .btn-add-quick {
        padding: 0.75rem;
        min-height: 44px;

    }
}


@media (hover: none) {
    .quick-add-panel {
        transition: opacity 0.2s, max-height 0.2s;
    }
}


/* ========================================
   HERO CATÁLOGO - Estilo tarjeta premium
   ======================================== */

.page-catalogo .hero-small {
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.95) 0%, rgba(20, 20, 30, 0.98) 100%) !important;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 1.5rem 2rem;
    padding: 2.5rem 2rem !important;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(139, 92, 246, 0.08),
        inset 0 0 60px rgba(139, 92, 246, 0.03);
}

/* Brillo superior sutil */
.page-catalogo .hero-small::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent);
}

/* Brillo púrpura de fondo */
.page-catalogo .hero-small::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.page-catalogo .hero-small h1 {
    position: relative;
    z-index: 1;
}

.page-catalogo .hero-small p {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .page-catalogo .hero-small {
        margin: 1rem;
        padding: 2rem 1.5rem !important;
        border-radius: var(--radius-md);
    }
}