/**
 * Estilos para la página de productos
 * Vista de lista/grid con panel de filtros lateral
 */

/* ============================================
   VARIABLES
============================================ */
:root {
    --productos-primary: #1ea894;
    --productos-primary-hover: #185458;
    --productos-secondary: #1b6983;
    --productos-danger: #ef4444;
    --productos-dark: #140428;
    --productos-border: #e2e8f0;
    --productos-bg: #edefef;
    --productos-radius: 14px;
    --productos-shadow: 0 1px 3px rgba(0,0,0,0.08);
    --productos-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --productos-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --productos-transition: all 0.25s ease;
}

/* ============================================
   FONDO GLOBAL PARA PÁGINA DE PRODUCTOS
============================================ */
body:has(.productos-page-wrapper),
body:has(.productos-page-wrapper) .site,
body:has(.productos-page-wrapper) #page,
body:has(.productos-page-wrapper) .site-content,
body:has(.productos-page-wrapper) #content {
    background: var(--color-background) !important;
}

body:has(.productos-page-wrapper) .site-content,
body:has(.productos-page-wrapper) #primary,
body:has(.productos-page-wrapper) .inside-article,
body:has(.productos-page-wrapper) article,
body:has(.productos-page-wrapper) .entry-content {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:has(.productos-page-wrapper) .generate-columns-container {
    max-width: none !important;
}

body:has(.productos-page-wrapper) #primary {
    width: 100% !important;
}

body:has(.productos-page-wrapper) #secondary,
body:has(.productos-page-wrapper) .sidebar {
    display: none !important;
}

body:has(.productos-page-wrapper) .site-main {
    width: 100% !important;
    max-width: none !important;
}

body:has(.productos-page-wrapper) .grid-container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

/* ============================================
   WRAPPER PRINCIPAL
============================================ */
.productos-page-wrapper {
    background: var(--color-background);
    min-height: 100vh;
    width: 100%;
}

/* ============================================
   HERO SECTION
============================================ */
.productos-hero {
    position: relative;
    min-height: 48vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 54, 83, 1) 0%, #1b6983 50%, #185458 100%);
    overflow: hidden;
}

.productos-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 168, 148, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.productos-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(27, 105, 131, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.productos-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.productos-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0;
    text-align: center;
}

.productos-hero-label {
    display: inline-block;
    background: rgba(30, 168, 148, 0.15);
    color: #1ea894;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    border: 1px solid rgba(30, 168, 148, 0.3);
}

.productos-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.productos-hero-highlight {
    display: inline-block;
    background: linear-gradient(90deg, #1ea894, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 6px;
}

.productos-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 860px;
    margin: 0 auto 36px;
}

.productos-hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.productos-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.productos-hero-badge svg {
    color: #1ea894;
    flex-shrink: 0;
}

.productos-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   LAYOUT PRINCIPAL
============================================ */
.productos-section {
    padding: 40px 0 80px 0;
    background: #f1f5f9;
}

.productos-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    align-items: start;
}

/* ============================================
   SIDEBAR - PANEL DE FILTROS
============================================ */
.productos-sidebar {
    background: #fff;
    border-radius: var(--productos-radius);
    padding: 0;
    box-shadow: var(--productos-shadow-md);
    border: 1px solid rgba(0,0,0,0.06);
    position: sticky;
    top: 20px;
    align-self: start;
}

.productos-widget {
    padding: 24px;
    border-bottom: 1px solid var(--productos-border);
}

.productos-widget:last-child {
    border-bottom: none;
}

.productos-widget .widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--productos-dark);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.productos-widget .widget-title svg {
    opacity: 0.5;
}

/* Widget: Vista */
.productos-widget-view-mode .productos-view-mode {
    display: flex;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.view-mode-btn {
    background: transparent;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--productos-transition);
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.view-mode-btn:hover {
    background: #fff;
    color: var(--productos-primary);
}

.view-mode-btn.active {
    background: var(--productos-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(30, 168, 148, 0.3);
}

/* Widget: Buscador */
.productos-widget-search .search-input-wrapper {
    position: relative;
}

.productos-widget-search .search-field {
    width: 100%;
    padding: 12px 90px 12px 16px;
    border: 2px solid var(--productos-border);
    border-radius: 10px;
    font-size: 14px;
    transition: var(--productos-transition);
    background: #fff;
    box-sizing: border-box;
}

.productos-widget-search .search-field:focus {
    outline: none;
    border-color: var(--productos-primary);
    box-shadow: 0 0 0 3px rgba(30, 168, 148, 0.1);
}

.productos-widget-search .search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--productos-primary);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--productos-transition);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.productos-widget-search .search-submit:hover {
    background: #22c6ab;
    transform: translateY(-50%) scale(1.02);
}

/* Widget: Categorías */
.widget-categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget-categories-list li {
    margin-bottom: 4px;
}

.category-filter {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 10px;
    transition: var(--productos-transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}

.category-filter .cat-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    transition: var(--productos-transition);
    flex-shrink: 0;
}

.category-filter .cat-name { flex: 1; }

.category-filter .cat-count {
    background: #f1f5f9;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    transition: var(--productos-transition);
}

.category-filter:hover {
    background: #f8fafc;
    color: var(--productos-primary);
}

.category-filter:hover .cat-bullet {
    background: var(--productos-primary);
    transform: scale(1.3);
}

.category-filter.active {
    background: var(--productos-primary);
    color: #fff;
    font-weight: 700;
}

.category-filter.active .cat-name {
    color: #fff;
}

.category-filter.active .cat-bullet {
    background: #fff;
}

.category-filter.active .cat-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Widget: Resultados */
.widget-results-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(30, 168, 148, 0.06);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--productos-primary);
}

.widget-results-info svg { flex-shrink: 0; }

#productos-count {
    color: var(--productos-primary);
    font-weight: 700;
}

/* ============================================
   CONTROLES SUPERIORES
============================================ */
.productos-controls {
    margin-bottom: 16px;
    min-height: 0;
}

.clear-filters-btn {
    background: #fff;
    border: 2px solid var(--productos-danger);
    color: var(--productos-danger);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--productos-transition);
}

.clear-filters-btn:hover {
    background: var(--productos-danger);
    color: #fff;
}

/* ============================================
   LISTA DE PRODUCTOS - VISTA LISTA
============================================ */
.productos-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.productos-list.view-list .producto-item {
    background: #ffffff;
    border-radius: var(--productos-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: var(--productos-transition);
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: 1fr auto;
    min-height: 260px;
}

.productos-list.view-list .producto-item:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 168, 148, 0.5);
    box-shadow: 0 0 0 2px rgba(30, 168, 148, 0.2), 0 12px 36px rgba(30, 168, 148, 0.1), 0 20px 40px rgba(0,0,0,0.08);
}

/* Imagen */
.producto-image {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.productos-list.view-list .producto-image {
    width: 320px;
    grid-row: 1 / -1;
}

.productos-list.view-list .producto-image::after {
    display: none;
}

.producto-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.producto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.producto-item:hover .producto-image img {
    transform: scale(1.06);
}

.producto-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    background: #f1f5f9;
    text-decoration: none;
}

.producto-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(30, 168, 148, 0.92);
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.producto-descuento-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(231, 76, 60, 0.92);
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Contenido */
.producto-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    justify-content: center;
}

.producto-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.producto-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.producto-title a {
    color: #0f172a;
    text-decoration: none;
    transition: var(--productos-transition);
}

.producto-title a:hover {
    color: var(--productos-primary);
}

.producto-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-tag {
    background: var(--productos-primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.producto-excerpt {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer del producto (swatches + precio) */
.producto-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(30, 168, 148, 0.15);
    margin-top: auto;
}

/* Color swatches */
.producto-color-swatches {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
    cursor: default;
    transition: var(--productos-transition);
}

.color-swatch:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0 2px rgba(30, 168, 148, 0.4);
}

.color-swatch-more {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    padding: 0 4px;
}

/* Precio */
.producto-price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.producto-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.producto-price .precio-original-tachado {
    font-size: 13px;
    color: #475569;
    text-decoration: line-through;
    font-weight: 500;
}

.producto-price .precio-con-descuento {
    font-size: 22px;
    color: #ff6b35;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(255, 107, 53, 0.4);
}

.producto-price .precio-simple {
    font-size: 22px;
    color: #1ea894;
    font-weight: 800;
    text-shadow: 0 0 12px rgba(30, 168, 148, 0.4);
}

.producto-stock {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}

.producto-stock.in-stock {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.producto-stock.out-stock {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Acciones */
.producto-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(30, 168, 148, 0.04);
    border-top: 1px solid rgba(30, 168, 148, 0.12);
    justify-content: stretch;
    min-width: auto;
}

.btn-view-product,
.btn-contact-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--productos-transition);
    cursor: pointer;
    text-align: center;
    border: none;
    flex: 1;
}

.btn-view-product {
    background: var(--productos-primary);
    color: #fff;
}

.btn-view-product:hover {
    background: #17957f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 168, 148, 0.35);
}

.btn-contact-whatsapp {
    background: #25d366;
    color: #fff;
}

.btn-contact-whatsapp:hover {
    background: #20ba5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* ============================================
   VISTA GRID
============================================ */
.productos-list.view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.productos-list.view-grid .producto-item {
    background: #ffffff;
    border-radius: var(--productos-radius);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: var(--productos-transition);
    display: flex;
    flex-direction: column;
}

.productos-list.view-grid .producto-item:hover {
    transform: translateY(-5px);
    border-color: rgba(30, 168, 148, 0.5);
    box-shadow: 0 0 0 2px rgba(30, 168, 148, 0.2), 0 12px 36px rgba(30, 168, 148, 0.1), 0 20px 40px rgba(0,0,0,0.08);
}

.productos-list.view-grid .producto-image {
    width: 100%;
    height: 260px;
    position: relative;
}

.productos-list.view-grid .producto-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, #ffffff, transparent);
    pointer-events: none;
    z-index: 1;
}

.productos-list.view-grid .producto-actions {
    border-left: none;
    border-top: 1px solid rgba(30, 168, 148, 0.12);
    flex-direction: row;
    min-width: auto;
    background: rgba(30, 168, 148, 0.04);
}

/* ============================================
   NO ENCONTRADO
============================================ */
.no-productos-found {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
    padding: 80px 40px;
    background: #ffffff;
    border-radius: var(--productos-radius);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.no-productos-found svg {
    color: #cbd5e1;
    margin-bottom: 20px;
}

.no-productos-found h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.no-productos-found p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}

/* ============================================
   LOAD MORE
============================================ */
.productos-loading-more {
    margin-top: 40px;
    text-align: center;
}

.load-more-button {
    background: linear-gradient(135deg, #1ea894, #1b6983);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--productos-transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(30, 168, 148, 0.3);
}

.load-more-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 168, 148, 0.4);
}

.load-more-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    animation: rotate 2s linear infinite;
    width: 24px;
    height: 24px;
}

.spinner .path {
    stroke: #fff;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1200px) {
    .productos-layout {
        grid-template-columns: 260px 1fr;
        gap: 24px;
    }

    .productos-list.view-list .producto-item {
        grid-template-columns: 260px 1fr;
    }

    .productos-list.view-list .producto-image {
        width: 260px;
    }
}

@media (max-width: 1024px) {
    .productos-hero-title {
        font-size: 38px;
    }

    .productos-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .productos-sidebar {
        position: static;
        max-height: none;
        order: -1;
    }

    .productos-list.view-list .producto-item {
        grid-template-columns: 1fr;
        grid-template-rows: 240px 1fr auto;
    }

    .productos-list.view-list .producto-image {
        width: 100%;
        height: 240px;
        grid-row: 1;
    }

    .productos-list.view-list .producto-image::after {
        background: linear-gradient(to bottom, transparent 55%, #ffffff 100%);
    }
}

@media (max-width: 768px) {
    .productos-hero {
        min-height: auto;
    }

    .productos-hero-content {
        padding: 60px 0;
    }

    .productos-hero-title {
        font-size: 32px;
    }

    .productos-hero-subtitle {
        font-size: 16px;
    }

    .productos-container {
        padding: 0 20px;
    }

    .productos-section {
        padding: 24px 0 50px 0;
    }

    .productos-list.view-grid {
        grid-template-columns: 1fr;
    }

    .producto-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .productos-hero-title {
        font-size: 26px;
    }

    .productos-hero-content {
        padding: 50px 0;
    }

    .productos-widget {
        padding: 20px;
    }

    .producto-content {
        padding: 18px;
    }

    .producto-actions {
        padding: 14px 16px;
    }
}

/* ============================================
   HERO COMPACTO
============================================ */
.productos-hero.productos-hero-compact {
    min-height: auto;
}

.productos-hero.productos-hero-compact .productos-hero-content {
    padding: 36px 0;
}

.productos-hero.productos-hero-compact .productos-hero-title {
    font-size: 32px;
    margin: 0 0 8px;
}

.productos-hero.productos-hero-compact .productos-hero-subtitle {
    font-size: 14px;
    margin: 0;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .productos-hero.productos-hero-compact .productos-hero-content {
        padding: 24px 0;
    }
    .productos-hero.productos-hero-compact .productos-hero-title {
        font-size: 24px;
    }
}

/* ============================================
   WIDGET: FILTRO DE STOCK (Badges)
============================================ */
.productos-stock-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stock-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid var(--productos-border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: var(--productos-transition);
    text-align: left;
}

.stock-badge svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: var(--productos-transition);
}

.stock-badge:hover {
    border-color: var(--productos-primary);
    background: rgba(30, 168, 148, 0.03);
    color: #334155;
}

.stock-badge:hover svg {
    opacity: 0.8;
    color: var(--productos-primary);
}

/* Dot indicador de estado */
.stock-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.stock-badge-dot--green {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.stock-badge-dot--red {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Badge activo - "Todos" */
.stock-badge.active {
    border-color: var(--productos-primary);
    background: var(--productos-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(30, 168, 148, 0.3);
}

.stock-badge.active svg {
    opacity: 1;
    color: #fff;
}

/* Variante "en stock" activa */
.stock-badge.stock-badge--available.active {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

.stock-badge.stock-badge--available.active .stock-badge-dot--green {
    background: #fff;
    box-shadow: none;
}

/* Variante "agotado" activa */
.stock-badge.stock-badge--unavailable.active {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.stock-badge.stock-badge--unavailable.active .stock-badge-dot--red {
    background: #fff;
    box-shadow: none;
}

/* ============================================
   WIDGET: ORDENAR POR
============================================ */
.productos-orderby-select {
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--productos-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: var(--productos-transition);
    appearance: auto;
}

.productos-orderby-select:focus {
    outline: none;
    border-color: var(--productos-primary);
    box-shadow: 0 0 0 3px rgba(30, 168, 148, 0.12);
}
