.pgajax-layout {
    display: flex;
    column-gap: 2em;
    row-gap: 0;
    flex-wrap: nowrap;
}

.pgajax-filters-wrapper {
    flex: 0 0 20%;
    box-sizing: border-box;
    padding: 0;
    background: #fff;
    color: var(--pga-text, #222);
}

.pgel-filter-widget {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    background: #fff;
}

.pgas-search-widget {
    width: 100%;
    max-width: 100%;
    position: relative;
}

.pgas-search-widget.pgas-simple .pgas-search-form {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    column-gap: 0;
}

.pgas-search-widget.pgas-simple .pgas-search-form .pgas-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
    border-radius: 8px 0 0 8px;
}

.pgas-search-widget.pgas-simple .pgas-icon-submit-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    min-width: 44px;
    align-self: stretch;
    background-color: #efb900;
    color: #000;
    border-radius: 0 8px 8px 0;
}

.pgas-search-widget.pgas-simple .pgas-icon-submit-page svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.pgas-search-widget.pgas-simple .pgas-submit-search.hidden-tag {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.pgas-search-widget.pgas-simple .pgas-hidden-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* SearchGato: móvil = solo icono blanco; off-canvas desde arriba */
.pgas-search-mobile-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #fff;
    line-height: 0;
}

.pgas-search-mobile-trigger svg {
    width: 28px;
    height: 28px;
    display: block;
}

.pgas-search-mobile-trigger:hover,
.pgas-search-mobile-trigger:focus,
.pgas-search-mobile-trigger:active {
    background: transparent;
    padding: 0;
    color: #fff;
}

.pgas-search-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.pgas-search-offcanvas.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.pgas-search-offcanvas-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.pgas-search-offcanvas-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pgas-search-offcanvas.is-open .pgas-search-offcanvas-panel {
    transform: translateY(0);
}

.pgas-search-offcanvas-top-bar {
    height: 12px;
    min-height: 12px;
    background: #4a4a4a;
    flex-shrink: 0;
}

.pgas-search-offcanvas-body {
    padding: 16px 16px 20px;
}

.pgas-search-offcanvas .pgas-search-form-mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.pgas-search-offcanvas-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.pgas-search-offcanvas .pgas-search-form-mobile .pgas-search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
}

.pgas-search-offcanvas-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    border-radius: 10px;
}

.pgas-search-offcanvas-close svg {
    width: 22px;
    height: 22px;
}

.pgas-search-offcanvas-close:hover,
.pgas-search-offcanvas-close:focus,
.pgas-search-offcanvas-close:active {
    background: #f0f0f0;
    padding: 0;
    color: #333;
}

.pgas-search-offcanvas-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: #efb900;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.pgas-search-offcanvas-submit svg {
    width: 20px;
    height: 20px;
}

@media (min-width: 769px) {
    .pgas-search-offcanvas {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .pgas-search-widget.pgas-simple {
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        min-height: 28px;
        height: 100%;
        line-height: 0;
    }

    .pgas-search-widget.pgas-simple .pgas-search-desktop {
        display: none !important;
    }

    .pgas-search-widget.pgas-simple .pgas-search-mobile-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #fff;
    }
}

.pgas-search-form {
    width: 100%;
    position: relative;
}

.pgas-search-field-wrap {
    width: 100%;
    display: flex;
    align-items: stretch;
    column-gap: 8px;
    position: relative;
    overflow: visible;
}

.pgas-search-widget.pgas-with-button.pgas-icon-left .pgas-search-field-wrap {
    flex-direction: row-reverse;
}

.pgas-search-widget.pgas-with-button.pgas-icon-right .pgas-search-field-wrap {
    flex-direction: row;
}

.pgas-search-widget.pgas-with-button.pgas-icon-inside .pgas-search-field-wrap {
    flex-direction: row;
    column-gap: 0;
}

.pgas-search-input {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    box-sizing: border-box;
    border: 1px solid #c7ccd4;
    border-radius: 4px;
    padding: 10px 12px;
    background: #fff;
    color: #222;
}

.pgas-search-submit {
    width: 48px;
    min-width: 48px;
    border: 1px solid #0069a2;
    border-radius: 4px;
    background: #0069a2;
    color: #fff;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.pgas-search-submit .pgas-search-btn-text {
    white-space: nowrap;
}

.pgas-search-submit:has(.pgas-search-btn-text) {
    width: auto;
    min-width: 48px;
}

.pgas-search-widget.pgas-with-button.pgas-icon-inside .pgas-search-submit.pgas-submit-inside {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.pgas-search-widget.pgas-with-button.pgas-icon-inside.pgas-icon-left .pgas-search-submit.pgas-submit-inside {
    left: 14px;
}

.pgas-search-widget.pgas-with-button.pgas-icon-inside.pgas-icon-right .pgas-search-submit.pgas-submit-inside {
    right: 14px;
}

.pgas-search-widget.pgas-with-button.pgas-icon-inside.pgas-icon-left .pgas-search-input {
    padding-left: 52px;
}

.pgas-search-widget.pgas-with-button.pgas-icon-inside.pgas-icon-right .pgas-search-input {
    padding-right: 52px;
}

.pgas-search-submit .pgas-search-icon {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pgas-search-submit .pgas-search-icon i {
    line-height: 1;
    flex-shrink: 0;
}

.pgas-search-submit .pgas-search-icon svg {
    width: 1em;
    height: 1em;
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
    fill: currentColor;
}

.pgas-search-widget.pgas-no-button.pgas-icon-inside .pgas-search-field-wrap {
    column-gap: 0;
}

.pgas-search-widget.pgas-no-button.pgas-icon-outside .pgas-search-field-wrap {
    align-items: center;
}

.pgas-inline-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    z-index: 2;
    color: #111;
}

.pgas-inline-icon .pgas-search-icon {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pgas-inline-icon .pgas-search-icon i {
    line-height: 1;
}

.pgas-inline-icon .pgas-search-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.pgas-search-widget.pgas-no-button.pgas-icon-inside.pgas-icon-left .pgas-inline-icon {
    left: 14px;
}

.pgas-search-widget.pgas-no-button.pgas-icon-inside.pgas-icon-right .pgas-inline-icon {
    right: 14px;
}

.pgas-search-widget.pgas-no-button.pgas-icon-inside.pgas-icon-left .pgas-search-input {
    padding-left: 52px;
}

.pgas-search-widget.pgas-no-button.pgas-icon-inside.pgas-icon-right .pgas-search-input {
    padding-right: 52px;
}

.pgas-static-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
    color: #111;
}

.pgas-static-icon .pgas-search-icon {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pgas-static-icon .pgas-search-icon i {
    line-height: 1;
}

.pgas-static-icon .pgas-search-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.pgas-hidden-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.pgas-search-preview-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
}

.pgas-search-preview-results.is-open {
    display: block;
}

.pgas-search-preview-results .pgas-preview-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pgas-search-preview-results .pgas-preview-item {
    border-bottom: 1px solid #eee;
}

.pgas-search-preview-results .pgas-preview-item:last-child {
    border-bottom: none;
}

.pgas-search-preview-results .pgas-preview-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    text-decoration: none;
    color: #222;
}

.pgas-search-preview-results .pgas-preview-link:hover {
    background: #f7f7f7;
}

.pgas-search-preview-results .pgas-preview-image {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex: 0 0 auto;
}

.pgas-search-preview-results .pgas-preview-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pgas-search-preview-results .pgas-preview-title {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pgas-search-preview-results .pgas-preview-code {
    font-size: 12px;
    color: #666;
}

.pgas-search-preview-results .pgas-preview-empty {
    padding: 12px;
    color: #555;
}

.pgas-search-preview-results .pgas-preview-see-more {
    padding: 10px 12px;
    border-top: 1px solid #eee;
    text-align: center;
}

.pgas-search-preview-results .pgas-preview-see-more-link {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
}

.pgajax-sidebar {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    background: #fff;
}

.pgajax-search-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #666;
    border-radius: 4px;
    box-sizing: border-box;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
    padding: 0;
    border-radius: 4px;
}

.filter-header span {
    color: #333333;
    font-family: Poppins, sans-serif;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 25px;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    background-color: transparent !important;
    color: #333333;
    border: none;
    border-radius: 3px;
    padding: 2px 6px;
    font-size: 1em;
    cursor: pointer;
    line-height: 1;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.filter-toggle:hover,
.filter-toggle:focus,
.filter-toggle:active {
    background: none !important;
    background-color: transparent !important;
    color: #333333 !important;
    border: none !important;
    border-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
}

.filter-toggle .filter-icon {
    display: none;
    width: 18px;
    height: 18px;
}

.filter-toggle .filter-icon-plus {
    display: block;
}

.filter-header.open .filter-toggle .filter-icon-plus {
    display: none;
}

.filter-header.open .filter-toggle .filter-icon-minus {
    display: block;
}

.filter-content {
    padding: 10px 0;
}

.categoria-padre {
    margin-bottom: 10px;
}

.toggle-subcats {
    display: inline-block;
    padding: 2px 6px;
    margin-left: 5px;
    font-size: 1em;
    line-height: 1;
    cursor: pointer;
    background-color: #0069a2;
    color: #fff;
    border-radius: 3px;
    user-select: none;
    text-align: center;
    transition: background-color 0.2s;
}

.toggle-subcats:hover {
    background-color: #00537f;
}

.subcategorias {
    margin-top: 5px;
    margin-left: 1em;
}

.subcat-label,
.brand-label,
.customtax-label,
.filter-content label {
    display: block;
    margin-top: 5px;
    margin-bottom: 10px;
}

.pgajax-sidebar input[type="checkbox"]:checked {
    accent-color: #0069A2;
}

.pgajax-grid-wrapper {
    flex: 0 0 80%;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    background: var(--pga-grid-bg, #fff);
    color: var(--pga-text, #222);
}

.pgajax-grid-inner {
    position: relative;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(var(--productos-grid-cols, 3), 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.productos-grid > * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 0%;
}

.productos-grid .ast-grid-common-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.pgajax-toolbar {
    flex-wrap: wrap;
    gap: 0.5em;
}

.pgajax-count {
    font-size: 1.1em;
    min-width: 120px;
    flex: 1 1 auto;
}

.pgajax-order-wrapper {
    flex: 1 1 220px;
    min-width: 120px;
    max-width: 100%;
}

.pgajax-order-select {
    width: 100%;
    min-width: 0;
    padding: 6px 10px;
    font-size: 1em;
}

.pgajax-pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination-button {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--pga-paginacion-text, #0069A2);
    text-decoration: none;
    color: var(--pga-paginacion-text, #0069A2);
    background: var(--pga-paginacion-bg, #fff);
    border-radius: 3px;
    margin: 0 2px;
    cursor: pointer;
}

.pagination-button.current {
    background-color: var(--pga-paginacion-text, #0069A2);
    color: #fff;
    border-color: var(--pga-paginacion-text, #0069A2);
}

.pgajax-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    z-index: 99;
    pointer-events: none;
}

.pga-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #f5c2c7;
    background: #fff5f6;
    color: #842029;
    border-radius: 4px;
}

.price_slider_wrapper {
    margin: 14px 4px 10px;
}

.price_slider_amount {
    margin-top: 12px;
}

.price_label {
    font-size: 0.95em;
    color: var(--pga-text, #384862);
}

.price_label .from,
.price_label .to {
    font-weight: 600;
}

.price_label .reset_price {
    margin-left: 10px;
    font-size: 0.9em;
    color: #333333;
    text-decoration: none;
}

.price_label .reset_price:hover {
    text-decoration: underline;
}

.price_slider_wrapper .pgajax-price-slider {
    margin: 0;
}

.pgajax-price-slider {
    position: relative;
    height: 28px;
    margin: 14px 4px 10px;
}

.pgajax-price-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 75%;
    transform: translateY(-50%);
    height: 6px;
    background: #C1C1C1 !important;
    border-radius: 999px;
}

.pgajax-price-track-active {
    position: absolute;
    top: 0;
    height: 100%;
    background: #C1C1C1 !important;
    border-radius: 999px;
}

.pgajax-price-input {
    -webkit-appearance: none !important;
    appearance: none !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 28px;
    margin: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    pointer-events: none;
}

.pgajax-price-input::-webkit-slider-runnable-track {
    height: 6px;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.pgajax-price-input::-moz-range-track {
    height: 6px;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.pgajax-price-input::-moz-range-progress {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.pgajax-price-input::-ms-track {
    height: 6px;
    color: transparent;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.pgajax-price-input::-ms-fill-lower,
.pgajax-price-input::-ms-fill-upper {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.pgajax-price-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    border: 1px solid #999999 !important;
    background-color: #fff !important;
    pointer-events: auto;
    cursor: pointer;
    margin-top: -8px;
}

.pgajax-price-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    border: 1px solid #999999 !important;
    background-color: #fff !important;
    pointer-events: auto;
    cursor: pointer;
}

.pgajax-price-values {
    text-align: center;
    font-size: 1.9em;
    line-height: 1.2;
    color: #384862;
    letter-spacing: 0.02em;
}

.pgajax-price-sep {
    margin: 0 8px;
}

.pgel-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.pgel-clear-btn {
    border: 1px solid #c7ccd4;
    background: #fff;
    color: #384862;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.95em;
}

.pgel-clear-btn:hover {
    background: #f3f5f8;
}

.grid-igualar-altura .elementor-widget-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-masonry {
    display: block !important;
    column-count: var(--masonry-cols, 4);
    column-gap: 1.2em;
}

@media (max-width: 900px) {
    .grid-masonry {
        column-count: var(--masonry-cols-tablet, 3);
    }
}

@media (max-width: 600px) {
    .grid-masonry {
        column-count: var(--masonry-cols-mobile, 1);
    }
}

.grid-masonry > * {
    break-inside: avoid;
    margin-bottom: 1.2em;
}

@media (max-width: 768px) {
    .pgajax-layout {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        column-gap: 1em;
    }

    .pgajax-filters-wrapper {
        flex: 0 0 25%;
        max-width: 25%;
        margin-bottom: 0;
    }

    .pgajax-grid-wrapper {
        flex: 0 0 73%;
        max-width: 75%;
    }
}

@media (max-width: 600px) {
    .pgajax-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pgajax-count,
    .pgajax-order-wrapper {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pgajax-layout {
        flex-direction: column;
    }

    .pgajax-filters-wrapper,
    .pgajax-grid-wrapper {
        flex: 0 0 97%;
        max-width: 97%;
    }

    .filter-content {
        display: none;
    }

    .filter-header.open + .filter-content {
        display: block;
    }
}

.pgel-filter-colors,
.pgel-filter-tallas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pgel-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pgel-filter-nikeli .pgel-color-item,
.pgel-color-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pgel-filter-nikeli .pgel-color-swatch,
.pgel-color-swatch {
    position: relative;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pgel-color-swatch::after {
    content: '\2713';
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    pointer-events: none;
}

.pgel-color-swatch-light::after {
    color: #000;
}

.pgel-color-item:hover .pgel-color-swatch::after,
.pgel-color-item:has(.pgel-attr-checkbox:checked) .pgel-color-swatch::after,
.pgel-talla-item:hover .pgel-talla-swatch::after,
.pgel-talla-item:has(.pgel-attr-checkbox:checked) .pgel-talla-swatch::after {
    display: flex;
}

.pgel-filter-nikeli .pgel-color-swatch-bordered,
.pgel-color-swatch-bordered {
    border: 1px solid rgba(0,0,0,0.15);
    box-sizing: border-box;
}

.pgel-filter-nikeli .pgel-talla-item,
.pgel-talla-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.pgel-order-widget {
    display: inline-block;
}

.pgel-order-inner {
    display: flex;
    align-items: center;
}

.pgel-ordering {
    position: relative;
    display: inline-block;
}

.pgel-current-orderby,
.pgel-current-orderby:link,
.pgel-current-orderby:visited {
    color: #333333 !important;
}

.pgel-current-orderby {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    font-size: 14px;
    text-decoration: none;
    font-weight: 400;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.pgel-current-orderby:hover,
.pgel-current-orderby:focus,
.pgel-current-orderby:active {
    color: #333333 !important;
    background: #fff;
}

.pgel-order-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #333333;
}

.pgel-order-icon {
    display: none;
}

.pgel-order-icon svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    color: #333333;
    fill: currentColor;
    flex-shrink: 0;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .pgel-order-widget .pgel-current-orderby {
        height: 33.6px;
        min-height: 33.6px;
        box-sizing: border-box;
    }
    .pgel-order-widget .pgel-current-order-label,
    .pgel-order-widget .pgel-order-chevron {
        display: none !important;
    }
    .pgel-order-widget .pgel-order-icon {
        display: inline-flex !important;
        align-items: center;
        margin-left: 4px;
    }
    .pgel-order-widget .pgel-order-icon svg {
        display: block;
    }
    .pgel-order-widget .pgel-sub-ordering {
        left: auto;
        right: 0;
        min-width: 200px;
    }
}

.pgel-sub-ordering {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    margin-top: 0;
    padding: 4px 0 4px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    z-index: 100;
}

.pgel-ordering:hover .pgel-sub-ordering,
.pgel-ordering.pgel-order-open .pgel-sub-ordering {
    display: block;
}

.pgel-orderby,
.pgel-orderby:link,
.pgel-orderby:visited {
    color: #999 !important;
}

.pgel-orderby {
    display: block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

.pgel-orderby:hover,
.pgel-orderby:focus,
.pgel-orderby:active,
.pgel-orderby.pgel-active {
    color: #000 !important;
}

.pgel-orderby.pgel-active {
    font-weight: 400;
}

/* Layout Grid widget */
.pgel-grid-layout-widget {
    display: inline-block;
}

.pgel-grid-layout-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pgel-grid-layout-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: none !important;
    background-color: transparent !important;
    color: #cccccc;
    cursor: pointer;
}

.pgel-grid-layout-btn:focus,
.pgel-grid-layout-btn:active {
    outline: none;
    background: none !important;
    background-color: transparent !important;
}

.pgel-grid-layout-btn svg {
    display: block;
}

.pgel-grid-layout-btn .pgel-layout-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 6px 12px;
    background: #333;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
    pointer-events: none;
}

.pgel-grid-layout-btn .pgel-layout-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #333;
}

.pgel-grid-layout-btn:hover .pgel-layout-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-12px);
}

.pgel-grid-layout-btn:hover,
.pgel-grid-layout-btn.pgel-active {
    color: #000;
    background: none !important;
    background-color: transparent !important;
}

/* Override Loop Grid columns when Layout widget is active - solo tablet/escritorio; en móvil manda el Loop Grid */
@media (min-width: 768px) {
    .pgel-layout-3-2 .elementor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pgel-layout-4-3 .elementor-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .pgel-layout-5-3 .elementor-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 767px) and (min-width: 426px) {
    .pgajax-grid-wrapper .productos-grid {
        --productos-grid-cols: 3;
    }

    .pgel-layout-3-2 .elementor-grid,
    .pgel-layout-4-3 .elementor-grid,
    .pgel-layout-5-3 .elementor-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .pgel-layout-3-2 .imagen-loop-tienda,
    .pgel-layout-3-2 .imagen-loop-tienda.elementor-widget-image,
    .pgel-layout-3-2 .imagen-loop-tienda img,
    .pgel-layout-4-3 .imagen-loop-tienda,
    .pgel-layout-4-3 .imagen-loop-tienda.elementor-widget-image,
    .pgel-layout-4-3 .imagen-loop-tienda img,
    .pgel-layout-5-3 .imagen-loop-tienda,
    .pgel-layout-5-3 .imagen-loop-tienda.elementor-widget-image,
    .pgel-layout-5-3 .imagen-loop-tienda img {
        max-height: calc(15em + 50px) !important;
        object-fit: contain !important;
    }

    .pgel-layout-3-2 .imagen-loop-tienda img,
    .pgel-layout-4-3 .imagen-loop-tienda img,
    .pgel-layout-5-3 .imagen-loop-tienda img {
        height: auto !important;
        width: 100% !important;
    }

    .pgel-layout-3-2 .imagen-loop-tienda,
    .pgel-layout-4-3 .imagen-loop-tienda,
    .pgel-layout-5-3 .imagen-loop-tienda {
        overflow: hidden;
        display: block;
    }

    .pgel-layout-3-2.pgel-filters-are-hidden .imagen-loop-tienda,
    .pgel-layout-3-2.pgel-filters-are-hidden .imagen-loop-tienda.elementor-widget-image,
    .pgel-layout-3-2.pgel-filters-are-hidden .imagen-loop-tienda img,
    .pgel-layout-4-3.pgel-filters-are-hidden .imagen-loop-tienda,
    .pgel-layout-4-3.pgel-filters-are-hidden .imagen-loop-tienda.elementor-widget-image,
    .pgel-layout-4-3.pgel-filters-are-hidden .imagen-loop-tienda img,
    .pgel-layout-5-3.pgel-filters-are-hidden .imagen-loop-tienda,
    .pgel-layout-5-3.pgel-filters-are-hidden .imagen-loop-tienda.elementor-widget-image,
    .pgel-layout-5-3.pgel-filters-are-hidden .imagen-loop-tienda img {
        max-height: calc(18em + 50px) !important;
    }

    .pgajax-grid-wrapper .nikeli-loop-image__img,
    .pgajax-grid-wrapper .nikeli-loop-image__link img {
        max-height: calc(15em + 50px) !important;
        object-fit: contain !important;
        height: 100% !important;
        width: 100% !important;
        display: block;
    }

    .pgajax-grid-wrapper .nikeli-loop-image {
        height: calc(15em + 50px) !important;
    }

    .pgajax-grid-wrapper.pgel-filters-are-hidden .nikeli-loop-image__img,
    .pgajax-grid-wrapper.pgel-filters-are-hidden .nikeli-loop-image__link img {
        max-height: calc(18em + 50px) !important;
    }

    .pgajax-grid-wrapper.pgel-filters-are-hidden .nikeli-loop-image {
        height: calc(18em + 50px) !important;
    }

    img.nikeli-loop-image__img {
        min-height: -webkit-fill-available;
    }
}

@media (max-width: 424px) {
    img.nikeli-loop-image__img {
        min-height: -webkit-fill-available;
    }
}

/* Image height by column layout: 3 cols = 15em, 4 cols = 11em, 5 cols = 9em */
.pgel-layout-3-2 .imagen-loop-tienda,
.pgel-layout-3-2 .imagen-loop-tienda.elementor-widget-image,
.pgel-layout-3-2 .imagen-loop-tienda img {
    max-height: 15em !important;
    object-fit: cover;
}

.pgel-layout-3-2 .imagen-loop-tienda img {
    height: auto !important;
    width: 100% !important;
}

.pgel-layout-3-2 .imagen-loop-tienda {
    overflow: hidden;
    display: block;
}

.pgel-layout-4-3 .imagen-loop-tienda,
.pgel-layout-4-3 .imagen-loop-tienda.elementor-widget-image,
.pgel-layout-4-3 .imagen-loop-tienda img {
    max-height: 11em !important;
    object-fit: cover;
}

.pgel-layout-4-3 .imagen-loop-tienda img {
    height: auto !important;
    width: 100% !important;
}

.pgel-layout-4-3 .imagen-loop-tienda {
    overflow: hidden;
    display: block;
}

.pgel-layout-5-3 .imagen-loop-tienda,
.pgel-layout-5-3 .imagen-loop-tienda.elementor-widget-image,
.pgel-layout-5-3 .imagen-loop-tienda img {
    max-height: 9em !important;
    object-fit: cover;
}

.pgel-layout-5-3 .imagen-loop-tienda img {
    height: auto !important;
    width: 100% !important;
}

.pgel-layout-5-3 .imagen-loop-tienda {
    overflow: hidden;
    display: block;
}

/* When filters hidden (toggle active): +3em to image height - class added to grid container */
.pgel-layout-3-2.pgel-filters-are-hidden .imagen-loop-tienda,
.pgel-layout-3-2.pgel-filters-are-hidden .imagen-loop-tienda.elementor-widget-image,
.pgel-layout-3-2.pgel-filters-are-hidden .imagen-loop-tienda img {
    max-height: 18em !important;
}

.pgel-layout-4-3.pgel-filters-are-hidden .imagen-loop-tienda,
.pgel-layout-4-3.pgel-filters-are-hidden .imagen-loop-tienda.elementor-widget-image,
.pgel-layout-4-3.pgel-filters-are-hidden .imagen-loop-tienda img {
    max-height: 14em !important;
}

.pgel-layout-5-3.pgel-filters-are-hidden .imagen-loop-tienda,
.pgel-layout-5-3.pgel-filters-are-hidden .imagen-loop-tienda.elementor-widget-image,
.pgel-layout-5-3.pgel-filters-are-hidden .imagen-loop-tienda img {
    max-height: 12em !important;
}

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

@keyframes pgel-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.pgel-layout-loading {
    position: relative;
    opacity: 0.7;
    pointer-events: none;
}

.pgel-layout-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.7);
    animation: pgel-pulse 1s ease-in-out infinite;
}

.pgel-layout-loading::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 50%;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border: 3px solid #ddd;
    border-top-color: #e6a800;
    border-radius: 50%;
    animation: pgel-spin 0.8s linear infinite;
    z-index: 1;
}

/* Toggle Filtros widget */
.pgel-toggle-filters-widget {
    display: inline-block;
}

.pgel-toggle-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333333;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.pgel-toggle-filters-btn:hover {
    border-color: #999;
    background: #f9f9f9;
}

.pgel-toggle-filters-btn:focus,
.pgel-toggle-filters-btn:active {
    outline: none;
}

.pgel-toggle-filters-btn .pgel-toggle-icon {
    display: none;
}

.pgel-toggle-filters-btn .pgel-icon-minus {
    display: inline-flex;
}

.pgel-toggle-filters-btn[aria-pressed="true"] .pgel-icon-minus {
    display: none;
}

.pgel-toggle-filters-btn[aria-pressed="true"] .pgel-icon-plus {
    display: inline-flex;
}

.pgel-toggle-filters-btn .pgel-toggle-icon svg,
.pgel-toggle-filters-btn svg {
    flex-shrink: 0;
    color: #333333;
}

.pgel-filters-hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .pgajax-filters-wrapper {
        display: none !important;
    }
    .pgajax-filters-wrapper.pgel-filters-open,
    .pgel-filters-open .pgajax-filters-wrapper {
        display: block !important;
    }
}

@media (max-width: 766px) and (min-width: 564px) {
    .elementor-element.elementor-element-57f0c84.e-con-full.contenedor-imagen.e-flex.e-con.e-child {
        min-height: 200px;
    }

    .nikeli-loop-image {
        height: 200px !important;
    }
}
