/**
 * MI - Tienda Premium Woo - Estilos Frontend
 * Autor: Mejor Interfaz
 * URI: https://mejorinterfaz.com/
 */
:root {
    --pws-black: #000000;
    --pws-white: #ffffff;
    --pws-gray-50: #f9fafb;
    --pws-gray-100: #f3f4f6;
    --pws-gray-200: #e5e7eb;
    --pws-gray-300: #d1d5db;
    --pws-gray-400: #9ca3af;
    --pws-gray-500: #6b7280;
    --pws-gray-600: #4b5563;
    --pws-gray-700: #374151;
    --pws-gray-800: #1f2937;
    --pws-gray-900: #111827;
    --pws-red: #ef4444;
    --pws-pink: #ec4899;
    --pws-yellow: #fcd34d;
}

.pws-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.pws-filter-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--pws-black);
    color: var(--pws-white);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.pws-filter-toggle:hover {
    background: var(--pws-gray-900);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.pws-products-container {
    position: relative;
}

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

.pws-products-grid > * {
    min-width: 0;
    overflow: hidden;
}

.pws-product-card {
    position: relative;
    transition: transform 0.3s ease;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
}

.pws-product-card:hover {
    transform: translateY(-4px);
}

.pws-product-image-wrapper {
    position: relative;
    background: linear-gradient(135deg, var(--pws-gray-50) 0%, var(--pws-gray-100) 100%);
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 1rem;
    cursor: pointer;
}

.pws-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pws-rating-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pws-rating-badge svg {
    width: 14px;
    height: 14px;
    fill: var(--pws-yellow);
    flex-shrink: 0;
}

.pws-rating-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pws-gray-900);
}

.pws-product-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.pws-product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1);
}

.pws-product-image.active {
    opacity: 1;
    z-index: 1;
}

.pws-product-card:hover .pws-product-image.active {
    transform: scale(1.05);
}

.pws-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pws-product-card:hover .pws-image-nav {
    opacity: 1;
}

.pws-image-nav:hover {
    background: var(--pws-white);
    transform: translateY(-50%) scale(1.1);
}

.pws-image-prev { left: 1rem; }
.pws-image-next { right: 1rem; }

.pws-image-nav svg {
    width: 20px;
    height: 20px;
    color: var(--pws-gray-900);
}

.pws-image-controls {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pws-image-dots {
    display: flex;
    gap: 0.5rem;
}

.pws-image-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pws-image-dot.active {
    background: var(--pws-white);
    width: 32px;
    border-radius: 4px;
}

.pws-image-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.75);
}

.pws-view-product-inline {
    background: var(--pws-black);
    color: var(--pws-white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
}

.pws-product-card:hover .pws-view-product-inline {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.pws-view-product-inline:hover {
    background: var(--pws-gray-900);
    transform: scale(1.05);
}

.pws-product-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.pws-product-image-wrapper,
.pws-product-info,
.pws-variation-item,
.pws-image-nav,
.pws-image-dot,
.pws-view-product-inline {
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.pws-variation-item a,
.pws-product-title a {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.pws-product-images button,
.pws-product-images a,
.pws-variation-item a,
.pws-view-product-inline {
    pointer-events: auto !important;
}

.pws-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pws-btn-view {
    background: var(--pws-black);
    color: var(--pws-white);
}

.pws-btn-view:hover {
    background: var(--pws-gray-900);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .pws-btn-view {
        display: block;
        width: 100%;
    }
}

.pws-product-info {
    padding: 0.5rem 0;
    min-width: 0;
}

.pws-product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.pws-product-title-section {
    flex: 1;
    min-width: 0;
}

.pws-product-brand {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--pws-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pws-product-title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
}

.pws-product-title a {
    color: var(--pws-gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pws-product-title a:hover {
    color: var(--pws-gray-700);
}

.pws-product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.125rem;
    flex-shrink: 0;
}

.pws-price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pws-gray-900);
    white-space: nowrap;
}

.pws-price-original {
    font-size: 0.8rem;
    color: var(--pws-gray-400);
    text-decoration: line-through;
    white-space: nowrap;
}

.pws-product-variations {
    padding-top: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.pws-variations-grid {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: nowrap !important;
    min-width: min-content;
    overflow-x: auto;
    overflow-y: hidden;
}

.pws-variation-item {
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--pws-gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.pws-variation-item:hover {
    border-color: var(--pws-gray-900);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pws-variation-item.active {
    border-color: var(--pws-black);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.pws-variation-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.pws-variation-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pws-more-variations {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    border: 2px dashed var(--pws-gray-300);
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--pws-gray-500);
    font-weight: 600;
    cursor: default;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .pws-variations-grid[data-max-mobile="3"] .pws-variation-item:nth-child(n+4):not(.pws-more-variations),
    .pws-variations-grid[data-max-mobile="2"] .pws-variation-item:nth-child(n+3):not(.pws-more-variations),
    .pws-variations-grid[data-max-mobile="1"] .pws-variation-item:nth-child(n+2):not(.pws-more-variations) {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .pws-variations-grid[data-max-tablet="4"] .pws-variation-item:nth-child(n+5):not(.pws-more-variations),
    .pws-variations-grid[data-max-tablet="3"] .pws-variation-item:nth-child(n+4):not(.pws-more-variations),
    .pws-variations-grid[data-max-tablet="2"] .pws-variation-item:nth-child(n+3):not(.pws-more-variations) {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .pws-variations-grid[data-max-desktop="4"] .pws-variation-item:nth-child(n+5):not(.pws-more-variations),
    .pws-variations-grid[data-max-desktop="3"] .pws-variation-item:nth-child(n+4):not(.pws-more-variations),
    .pws-variations-grid[data-max-desktop="5"] .pws-variation-item:nth-child(n+6):not(.pws-more-variations) {
        display: none !important;
    }
}

.pws-filters-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: var(--pws-white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    z-index: 1000200 !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.pws-filters-sidebar.pws-filters-left {
    left: 0;
}

.pws-filters-sidebar.pws-filters-right {
    right: 0;
    transform: translateX(100%);
}

.pws-filters-sidebar.active {
    transform: translateX(0);
}

.pws-filters-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pws-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--pws-gray-200);
}

.pws-filters-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
    color: var(--pws-gray-900);
}

.pws-filters-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pws-filters-close:hover {
    background: var(--pws-gray-100);
}

.pws-filters-close svg {
    width: 24px;
    height: 24px;
    color: var(--pws-gray-600);
}

.pws-filters-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.pws-filter-section {
    margin-bottom: 1.5rem;
}

.pws-filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pws-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.pws-filter-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pws-gray-900);
    margin: 1.5rem 0 0.875rem 0;
}

.pws-filter-section:first-child .pws-filter-title {
    margin-top: 0;
}

.pws-filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--pws-gray-50);
    border: 2px solid var(--pws-gray-200);
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--pws-gray-900);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
}

.pws-filter-select:focus {
    outline: none;
    border-color: var(--pws-black);
    background-color: var(--pws-white);
}

.pws-filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pws-filter-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.pws-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    border: 1.5px solid var(--pws-gray-200) !important;
    background: var(--pws-white) !important;
    transition: all 0.18s ease !important;
    user-select: none !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    font-size: 15px !important;
    line-height: 1 !important;
}

.pws-checkbox-label:hover {
    border-color: var(--pws-gray-400);
    background: var(--pws-gray-50);
}

.pws-checkbox-label:has(.pws-filter-checkbox:checked) {
    border-color: var(--pws-black);
    background: var(--pws-black);
    color: var(--pws-white);
}

.pws-checkbox-label:has(.pws-filter-checkbox:checked) .pws-checkbox-text {
    color: var(--pws-white);
}

.pws-checkbox-label:has(.pws-filter-checkbox:checked) .pws-checkbox-count {
    color: rgba(255,255,255,0.65);
}

.pws-checkbox-label::before {
    content: '' !important;
    display: inline-flex !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    border-radius: 5px !important;
    border: 1.5px solid var(--pws-gray-300) !important;
    background: var(--pws-white) !important;
    flex-shrink: 0 !important;
    transition: all 0.18s ease !important;
    background-image: none !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.pws-checkbox-label:has(.pws-filter-checkbox:checked)::before {
    background: var(--pws-white);
    border-color: var(--pws-white);
    background-image: url("data:image/svg+xml,%3Csvg width='11' height='9' viewBox='0 0 11 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L4 7L10 1' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.pws-checkbox-text {
    flex: 1 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--pws-gray-700) !important;
    transition: color 0.18s ease !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.pws-checkbox-count {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--pws-gray-400);
    flex-shrink: 0;
    line-height: 0;
}

.pws-subcategories {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    margin-top: 0.375rem;
    margin-left: 1rem;
    padding-left: 0.875rem;
    border-left: 2px solid var(--pws-gray-200);
}

.pws-subcategory-label {
    font-size: 0.875rem;
}

.pws-subcategory-label .pws-checkbox-text {
    font-size: 0.875rem;
    color: var(--pws-gray-600);
}

.pws-category-parent {
    cursor: pointer;
}

.pws-category-toggle {
    position: static;
    width: 28px;
    height: 28px;
    background: var(--pws-gray-100);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--pws-gray-600);
    flex-shrink: 0;
    margin-left: auto;
}

.pws-category-toggle:hover {
    background: var(--pws-gray-200);
    color: var(--pws-gray-900);
}

.pws-category-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}

.pws-category-parent.expanded .pws-category-toggle svg {
    transform: rotate(180deg);
}

.pws-checkbox-label:has(.pws-filter-checkbox:checked) .pws-category-toggle {
    background: rgba(255,255,255,0.2);
    color: var(--pws-white);
}

.pws-filter-toggle-section {
    padding: 1rem 0;
    border-top: 1px solid var(--pws-gray-200);
    border-bottom: 1px solid var(--pws-gray-200);
}

.pws-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pws-toggle-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--pws-gray-900);
}

.pws-toggle {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
}

.pws-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pws-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pws-gray-200);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.pws-toggle-slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background: var(--pws-white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.pws-toggle input:checked + .pws-toggle-slider {
    background: var(--pws-black);
}

.pws-toggle input:checked + .pws-toggle-slider::before {
    transform: translateX(24px);
}

.pws-price-slider {
    padding: 1.5rem 0;
    position: relative;
}

.pws-price-slider-track {
    position: relative;
    height: 8px;
    background: var(--pws-gray-200);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.pws-price-slider-range {
    position: absolute;
    height: 100%;
    background: var(--pws-black);
    border-radius: 4px;
}

.pws-price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 8px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    top: 0;
}

.pws-price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--pws-black);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 3px solid var(--pws-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pws-price-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--pws-black);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: all;
    border: 3px solid var(--pws-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pws-price-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pws-price-value {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--pws-gray-50);
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pws-gray-700);
}

.pws-price-separator {
    color: var(--pws-gray-400);
    font-size: 0.875rem;
}

.pws-filters-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--pws-gray-200);
    display: flex;
    gap: 1rem;
}

.pws-btn-reset {
    background: var(--pws-white);
    color: var(--pws-gray-700);
    border: 1px solid var(--pws-gray-300);
    flex: 0 0 auto;
}

.pws-btn-reset:hover {
    background: var(--pws-gray-50);
    border-color: var(--pws-gray-400);
}

.pws-btn-primary {
    background: var(--pws-black);
    color: var(--pws-white);
    flex: 1;
}

.pws-btn-primary:hover {
    background: var(--pws-gray-900);
}

.pws-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000100 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pws-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.pws-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.pws-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--pws-gray-200);
    border-top-color: var(--pws-black);
    border-radius: 50%;
    animation: pws-spin 0.8s linear infinite;
}

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

.pws-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.pws-no-products p {
    font-size: 1.125rem;
    color: var(--pws-gray-500);
}

.pws-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.pws-page-link {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    border: none;
    background: transparent;
    color: var(--pws-gray-700);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pws-page-link:hover {
    background: var(--pws-gray-100);
    color: var(--pws-gray-900);
}

.pws-page-link.active {
    background: var(--pws-black);
    color: var(--pws-white);
}

.pws-page-prev,
.pws-page-next {
    border-radius: 24px;
    padding: 0 1.25rem;
    gap: 0.5rem;
}

.pws-page-dots {
    color: var(--pws-gray-400);
    font-weight: 500;
    padding: 0 0.5rem;
}

.pws-filter-search {
    margin-bottom: 1.5rem;
    position: relative;
}

.pws-filter-search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    background: var(--pws-gray-50);
    border: 2px solid var(--pws-gray-200);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--pws-gray-900);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.pws-filter-search-input:focus {
    outline: none;
    border-color: var(--pws-black);
    background: var(--pws-white);
}

.pws-filter-search-input::placeholder {
    color: var(--pws-gray-400);
}

.pws-filter-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--pws-gray-400);
    pointer-events: none;
}

@media (max-width: 640px) {
    .pws-filters-sidebar {
        max-width: 100%;
    }

    .pws-pagination {
        gap: 0.25rem;
    }

    .pws-page-link {
        min-width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    .pws-page-prev,
    .pws-page-next {
        padding: 0 0.75rem;
    }
}

.pws-stock-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 0.375rem;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--pws-gray-100);
    color: var(--pws-gray-700);
    white-space: nowrap;
    border: 1px solid var(--pws-gray-200);
    transition: opacity 0.2s ease;
}

.pws-stock-badge--hidden {
    display: none;
}

.pws-stock-badge--bajo {
    display: inline-flex;
}


.pws-filter-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--pws-gray-50);
    border: 2px solid var(--pws-gray-200);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.pws-filter-button:hover {
    background: var(--pws-gray-100);
    border-color: var(--pws-gray-300);
}

.pws-filter-button-input {
    display: none;
}

.pws-filter-button-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid var(--pws-gray-300);
    border-radius: 6px;
    background: var(--pws-white);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pws-filter-button-check svg {
    width: 16px;
    height: 16px;
    color: var(--pws-white);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.pws-filter-button-input:checked + .pws-filter-button-check {
    background: var(--pws-black);
    border-color: var(--pws-black);
}

.pws-filter-button-input:checked + .pws-filter-button-check svg {
    opacity: 1;
    transform: scale(1);
}

.pws-filter-button-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--pws-gray-900);
    flex: 1;
}

.pws-filter-button-input:checked ~ .pws-filter-button-text {
    font-weight: 600;
    color: var(--pws-black);
}
