/* WooCat Display · Frontend */

.woocat-wrapper { margin: 24px 0; }

.woocat-grid {
    display: grid;
    gap: 22px;
    margin-bottom: 24px;
}

.woocat-cols-1 { grid-template-columns: repeat(1, 1fr); }
.woocat-cols-2 { grid-template-columns: repeat(2, 1fr); }
.woocat-cols-3 { grid-template-columns: repeat(3, 1fr); }
.woocat-cols-4 { grid-template-columns: repeat(4, 1fr); }
.woocat-cols-5 { grid-template-columns: repeat(5, 1fr); }
.woocat-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 992px) {
    .woocat-cols-4, .woocat-cols-5, .woocat-cols-6 { grid-template-columns: repeat(3, 1fr); }
}

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

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

    /* A una columna la foto no debe comerse la pantalla:
       tope de alto manteniendo proporción (sin recortar) */
    .woocat-product-image img,
    .woocat-product-image img.woocat-img-full {
        max-height: 340px;
        object-fit: contain;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .woocat-product-image img,
    .woocat-product-image img.woocat-img-full {
        max-height: 300px;
        object-fit: contain;
    }
}

.woocat-product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.woocat-product:hover {
    transform: translateY(-4px);
    border-color: #ddd;
    box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.16);
}

@media (prefers-reduced-motion: reduce) {
    .woocat-product, .woocat-product-button, .woocat-sidebar-link { transition: none !important; }
    .woocat-product:hover { transform: none; }
    .woocat-loading::after { animation: none !important; }
}

.woocat-product-image {
    margin-bottom: 14px;
    text-align: center;
    overflow: hidden;
    border-radius: 8px;
}

.woocat-product-image[data-align="left"]   { text-align: left; }
.woocat-product-image[data-align="right"]  { text-align: right; }
.woocat-product-image[data-align="center"] { text-align: center; }

.woocat-product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    transition: transform 0.35s ease;
}

/* El zoom solo aplica cuando el efecto configurado es "zoom" */
.woocat-product:hover .woocat-product-image[data-hover="zoom"] img {
    transform: scale(1.04);
}

.woocat-product-image img.woocat-img-full { width: 100%; }

/* Hover con galería: capa superpuesta que hace el fundido */
.woocat-product-image[data-hover="second"],
.woocat-product-image[data-hover="cycle"] { position: relative; }

.woocat-img-hover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.woocat-img-hover.is-on { opacity: 1; }

.woocat-product-description {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.woocat-product-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
    line-height: 1.4;
}

/* Foto y título enlazan al producto: heredan el estilo configurado en la plantilla */
.woocat-product-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.woocat-product-title .woocat-product-link { display: inline; }

.woocat-product-title .woocat-product-link:hover {
    text-decoration: underline;
    color: inherit;
}

.woocat-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #2271b1;
    margin-bottom: 8px;
    margin-top: 12px;
}

.woocat-product-price del {
    opacity: 0.55;
    font-weight: 400;
    font-size: 0.85em;
    margin-right: 6px;
}

.woocat-product-price .woocommerce-Price-currencySymbol {
    font-size: 14px;
    font-weight: 500;
}

.woocat-product-info,
.woocat-product-description .woocat-product-info {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
}

.woocat-product-category {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.woocat-product-brand {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.woocat-product-tag {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.woocat-product-sku {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.2px;
}

.woocat-product-button {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-top: auto;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.25);
}

.woocat-product-button:hover {
    opacity: 0.92;
    color: inherit;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.3);
}

.woocat-product-button:active { transform: scale(0.97); }

.woocat-product-button[data-width="auto"] { align-self: center; }

.woocat-sidebar {
    margin-top: 24px;
    text-align: center;
}

.woocat-sidebar-link {
    display: inline-block;
    padding: 13px 34px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px -10px rgba(34, 113, 177, 0.6);
}

.woocat-sidebar-link:hover {
    background: #1a5a8f;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -10px rgba(34, 113, 177, 0.7);
}

.woocat-error {
    padding: 15px 18px;
    background: #fdf2f2;
    color: #9b2226;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    margin: 10px 0;
}

/* Estado vacío */
.woocat-empty {
    padding: 48px 24px;
    text-align: center;
    color: #6b7280;
    background: #f8f9fa;
    border: 1px dashed #d8dce1;
    border-radius: 12px;
}

.woocat-empty-icon {
    display: block;
    font-size: 34px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.woocat-empty p {
    margin: 0;
    font-size: 15px;
}

.woocat-img {
    display: block;
    width: 100%;
    height: auto;
}

.woocat-placeholder { opacity: 0.5; }

/* ═══ Barra de filtros (personalizable via variables --wcf-*) ═══ */
.woocat-filters {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--wcf-area-bg, #fff);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--wcf-area-radius, 12px);
    padding: 18px 20px;
    margin-bottom: 22px;
    box-shadow: 0 4px 16px -10px rgba(0, 0, 0, 0.12);
}

/* Fila 1: buscador a lo ancho + botón de vista a la derecha
   (sin botón de vista, el buscador ocupa el 100%) */
.woocat-filters-row1 {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    width: 100%;
}

.woocat-filters-row1 .woocat-filter-search { flex: 1; min-width: 0; }
.woocat-filters-row1 .woocat-filter-search input { width: 100%; min-width: 0; }
.woocat-filters-row1:empty { display: none; }

/* Fila 2: grupos con separadores verticales que se estiran para llenar el ancho */
.woocat-filters-row2 {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.woocat-filters-row2 > .woocat-filter {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 18px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.woocat-filters-row2 > .woocat-filter:first-child { border-left: none; padding-left: 0; }
.woocat-filters-row2 > .woocat-filter:last-child { padding-right: 0; }

.woocat-filters-row2 .woocat-filter-sort select { width: 100%; min-width: 0; }

/* Botones apilados al final de la fila 2 */
.woocat-filters-row2 > .woocat-filter-actions {
    flex: 0 0 auto;
    flex-direction: column;
    align-self: center;
    align-items: stretch;
    gap: 8px;
}

@media (max-width: 768px) {
    .woocat-filters-row2 { flex-direction: column; gap: 14px; }
    .woocat-filters-row2 > .woocat-filter {
        border-left: none;
        padding: 14px 0 0;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    .woocat-filters-row2 > .woocat-filter:first-child { border-top: none; padding-top: 0; }
    .woocat-filters-row2 > .woocat-filter-actions { flex-direction: row; align-self: stretch; }
    .woocat-filters-row2 .woocat-filter-apply { flex: 1; }
}

.woocat-filter { display: flex; flex-direction: column; gap: 8px; }

.woocat-filter-label {
    font-size: 12px;
    font-weight: var(--wcf-label-weight, 700);
    color: var(--wcf-label-color, #666);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.woocat-filters input[type="search"],
.woocat-filters select {
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    background: var(--wcf-input-bg, #fff);
    color: var(--wcf-input-text, #333);
    min-width: 160px;
}

.woocat-filters input:focus,
.woocat-filters select:focus {
    outline: none;
    border-color: var(--wcf-btn-bg, #2271b1);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wcf-btn-bg, #2271b1) 18%, transparent);
}

/* ── Chips (categorías / marcas / atributos) ── */
.woocat-pills-group { position: relative; max-width: 100%; }

.woocat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.woocat-pill {
    border: none;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    background: var(--wcf-pill-bg, #f3f4f6);
    color: var(--wcf-pill-text, #374151);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.woocat-pill:hover { transform: translateY(-1px); box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.35); }
.woocat-pill:active { transform: scale(0.96); }

.woocat-pill.is-active {
    background: var(--wcf-pill-active-bg, #2271b1);
    color: var(--wcf-pill-active-text, #fff);
    box-shadow: 0 4px 12px -6px color-mix(in srgb, var(--wcf-pill-active-bg, #2271b1) 70%, transparent);
}

.woocat-pill-more {
    background: var(--wcf-more-bg, #6b7280);
    color: var(--wcf-more-color, #fff);
}

/* Panel flotante "ver más": no desplaza la diagramación de la página */
.woocat-pills-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 240px;
    width: max-content;
    max-width: min(560px, 92vw);
    background: var(--wcf-area-bg, #fff);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    box-shadow: 0 18px 44px -16px rgba(0, 0, 0, 0.3);
    padding: 34px 16px 16px;
    opacity: 0;
    transform: translateY(-6px);
}

.woocat-pills-panel.is-open {
    opacity: 1;
    transform: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.woocat-pills-panel-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #555;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.woocat-pills-panel-close:hover { background: rgba(0, 0, 0, 0.12); }

/* ── Double range de precio ── */
.woocat-filter-price { min-width: 220px; }

.woocat-range-values {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wcf-input-text, #333);
}

.woocat-range-track {
    position: relative;
    height: 26px;
    margin-top: 2px;
}

.woocat-range-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 5px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
}

.woocat-range-fill {
    position: absolute;
    top: 50%;
    height: 5px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--wcf-btn-bg, #2271b1);
}

.woocat-range-track input[type="range"] {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.woocat-range-track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--wcf-btn-bg, #2271b1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: grab;
    transition: transform 0.15s ease;
}

.woocat-range-track input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

.woocat-range-track input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--wcf-btn-bg, #2271b1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    cursor: grab;
}

/* ── Botones ── */
.woocat-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    align-self: flex-end;
    flex-direction: row;
}

.woocat-filter-apply,
.woocat-filter-reset {
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.woocat-filter-apply { background: var(--wcf-btn-bg, #2271b1); color: var(--wcf-btn-text, #fff); }
.woocat-filter-reset { background: var(--wcf-btn2-bg, #f0f0f1); color: var(--wcf-btn2-text, #555); }
.woocat-filter-apply:hover, .woocat-filter-reset:hover { opacity: 0.88; transform: translateY(-1px); }
.woocat-filter-apply:active, .woocat-filter-reset:active { transform: scale(0.97); }

/* ── Toggle de vista grilla/lista ── */
.woocat-view-toggle {
    display: inline-flex;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 8px;
    overflow: hidden;
    margin-left: 6px;
}

.woocat-view-btn {
    border: none;
    background: var(--wcf-input-bg, #fff);
    color: #9ca3af;
    padding: 8px 11px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.woocat-view-btn:hover { color: var(--wcf-btn-bg, #2271b1); }
.woocat-view-btn.is-active { background: var(--wcf-btn-bg, #2271b1); color: var(--wcf-btn-text, #fff); }

/* ── Vista de lista ── */
.woocat-view-list .woocat-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.woocat-view-list .woocat-product {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 14px 18px;
}

.woocat-view-list .woocat-product-image {
    width: 150px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.woocat-view-list .woocat-product-description { flex: 1; min-width: 0; }
.woocat-view-list .woocat-product-price { margin-top: 4px; }
.woocat-view-list .woocat-product-button { align-self: flex-start; width: auto !important; margin-top: 10px; }

@media (max-width: 560px) {
    .woocat-view-list .woocat-product { gap: 12px; }
    .woocat-view-list .woocat-product-image { width: 92px; }
}

/* ── Posición: barra lateral izquierda ── */
.woocat-filters-pos-left {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.woocat-filters-pos-left .woocat-filters {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
    position: sticky;
    top: 20px;
    gap: 16px;
}

/* En barra lateral las filas se disuelven: todo apilado en columna */
.woocat-filters-pos-left .woocat-filters-row1,
.woocat-filters-pos-left .woocat-filters-row2 { display: contents; }

.woocat-filters-pos-left .woocat-filter { width: 100%; }
.woocat-filters-pos-left .woocat-filters input[type="search"],
.woocat-filters-pos-left .woocat-filters select { width: 100%; min-width: 0; }
.woocat-filters-pos-left .woocat-filter-actions { align-self: stretch; }
.woocat-filters-pos-left .woocat-filter-apply { flex: 1; }
.woocat-filters-pos-left .woocat-pills-panel { max-width: 100%; }

@media (max-width: 768px) {
    .woocat-filters-pos-left { display: block; }
    .woocat-filters-pos-left .woocat-filters { position: static; margin-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .woocat-pill, .woocat-pills-panel, .woocat-view-btn,
    .woocat-filter-apply, .woocat-filter-reset { transition: none !important; }
}

/* Estado de carga durante filtrado AJAX */
.woocat-grid-holder { position: relative; }
.woocat-grid-holder.woocat-loading-state { opacity: 0.45; pointer-events: none; transition: opacity 0.2s ease; }

.woocat-loading {
    text-align: center;
    padding: 24px;
    color: #666;
}

.woocat-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: woocat-spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes woocat-spin {
    to { transform: rotate(360deg); }
}

/* ═══ Paginación ═══ */
.woocat-pager {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 6px 0 20px;
}

.woocat-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e2e5e9;
    border-radius: 9px;
    background: #fff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.woocat-page-btn:hover:not(:disabled) {
    border-color: #2271b1;
    color: #2271b1;
    transform: translateY(-1px);
}

.woocat-page-btn.is-current {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.woocat-page-btn:disabled:not(.is-current) { opacity: 0.4; cursor: default; }

.woocat-page-dots { color: #9ca3af; padding: 0 2px; }

/* ═══ Comparador de productos ═══ */
.woocat-compare-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 9px 16px;
    border: none;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.woocat-compare-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.woocat-compare-btn:active { transform: scale(0.97); }

body.woocat-cmp-noscroll { overflow: hidden; }

.woocat-cmp-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.28s ease;
    padding: 20px;
}

.woocat-cmp-overlay.is-visible { display: flex; }
.woocat-cmp-overlay.is-open { opacity: 1; }

/* Crece desde la tarjeta clickeada (transform-origin lo fija JS);
   al cerrar se contrae de vuelta: inverso exacto de la apertura */
.woocat-cmp-modal {
    position: relative;
    width: min(1200px, 96vw);
    max-height: 92vh;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
    transform: scale(0.15);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0.35, 1.05), opacity 0.22s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.woocat-cmp-overlay.is-open .woocat-cmp-modal { transform: none; opacity: 1; }

.woocat-cmp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    background: #fff;
    color: #555;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, color 0.15s ease;
}

.woocat-cmp-close:hover { transform: rotate(90deg); color: #e11d48; }

.woocat-cmp-body {
    display: flex;
    gap: 0;
    min-height: 420px;
    max-height: 92vh;
    overflow: hidden;
}

/* Paneles de producto: scroll horizontal estético cuando no caben */
.woocat-cmp-items {
    display: flex;
    gap: 0;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    padding: 26px 8px 22px 22px;
}

.woocat-cmp-items::-webkit-scrollbar { height: 8px; }
.woocat-cmp-items::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }

.woocat-cmp-item {
    flex: 0 0 300px;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 18px;
    border-right: 1px solid #eceef1;
    animation: woocatCmpIn 0.35s ease both;
    overflow-y: auto;
    scrollbar-width: thin;
}

.woocat-cmp-item:last-child { border-right: none; }

@keyframes woocatCmpIn {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: none; }
}

.woocat-cmp-item.is-loading {
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 14px;
}

.woocat-cmp-gallery { position: relative; text-align: center; }

.woocat-cmp-gallery img {
    width: 100%;
    max-height: 210px;
    object-fit: contain;
    border-radius: 10px;
    background: #f4f5f7;
}

.woocat-cmp-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
}

.woocat-cmp-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.woocat-cmp-dots button:hover { transform: scale(1.3); }
.woocat-cmp-dots button.is-active { background: #374151; }

.woocat-cmp-title {
    margin: 2px 0 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
}

.woocat-cmp-sku {
    font-size: 12px;
    color: #9ca3af;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    margin-top: -4px;
}

.woocat-cmp-chip-tag {
    background: transparent;
    border: 1px solid #d7dbe0;
}

.woocat-cmp-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.55;
    max-height: 96px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.woocat-cmp-attrs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.woocat-cmp-attrs label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.woocat-cmp-attrs select {
    border: 1px solid #d7dbe0;
    border-radius: 7px;
    padding: 6px 8px;
    font-size: 13px;
    min-width: 120px;
    background: #fff;
}

.woocat-cmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.woocat-cmp-chip {
    border: none;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: #eceef1;
    color: #4b5563;
    transition: background 0.15s ease, color 0.15s ease;
}

.woocat-cmp-chip:hover { background: #dde1e6; }

.woocat-cmp-chip.is-active {
    background: #374151;
    color: #fff;
}

.woocat-cmp-chip.is-active::after {
    content: '×';
    margin-left: 6px;
    font-weight: 700;
}

.woocat-cmp-price {
    font-size: 22px;
    font-weight: 800;
    color: #2271b1;
    margin-top: auto;
}

.woocat-cmp-cart {
    border: 1.5px solid #111827;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.woocat-cmp-cart:hover:not(:disabled) { background: #111827; color: #fff; transform: translateY(-1px); }
.woocat-cmp-cart:active:not(:disabled) { transform: scale(0.97); }
.woocat-cmp-cart:disabled { opacity: 0.45; cursor: not-allowed; }

/* Columna derecha: selector / comparar más */
.woocat-cmp-side {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #eceef1;
    background: #fafbfc;
}

.woocat-cmp-more {
    margin: auto 20px;
    padding: 22px 16px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.woocat-cmp-more span {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 400;
}

.woocat-cmp-more:hover { border-color: #374151; color: #374151; background: #fff; }

.woocat-cmp-picker {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 22px 18px 16px;
    animation: woocatCmpIn 0.3s ease both;
}

.woocat-cmp-picker h4 {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111827;
}

.woocat-cmp-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    flex: 1;
}

.woocat-cmp-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    margin-bottom: 6px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #eef0f3;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.woocat-cmp-list li:hover {
    border-color: #94a3b8;
    box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.25);
    transform: translateX(-2px);
}

.woocat-cmp-list li img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    background: #f4f5f7;
    flex-shrink: 0;
}

.woocat-cmp-list li span { font-size: 13px; font-weight: 600; color: #374151; }

.woocat-cmp-list-loading,
.woocat-cmp-list-empty {
    text-align: center;
    color: #94a3b8;
    cursor: default !important;
    border: none !important;
    background: transparent !important;
}

/* Responsive: móvil = modal a pantalla completa, paneles más angostos */
@media (max-width: 820px) {
    .woocat-cmp-overlay { padding: 0; }
    .woocat-cmp-modal { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
    .woocat-cmp-body { flex-direction: column; max-height: 100vh; }
    .woocat-cmp-items { padding: 18px 12px; }
    .woocat-cmp-item { flex: 0 0 82vw; width: 82vw; }
    .woocat-cmp-side { flex: 1; border-left: none; border-top: 1px solid #eceef1; min-height: 0; }
    .woocat-cmp-more { margin: 14px 20px; padding: 12px; flex-direction: row; }
    .woocat-cmp-more span { width: 28px; height: 28px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .woocat-cmp-modal, .woocat-cmp-overlay, .woocat-cmp-item,
    .woocat-cmp-picker, .woocat-cmp-close { transition: none !important; animation: none !important; }
}
