/* ==========================================================================
   ADHOC WooSuite - Shop Styles
   ========================================================================== */

/* Filtro de Precios - Deslizadores Modernos */
.adhoc-filter-price {
    padding: 15px 0;
}

.adhoc-price-display {
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    padding: 5px 15px;
    border-radius: 6px;
    border: 1px solid #efefef;
}

.adhoc-price-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.5px;
}

.adhoc-price-min,
.adhoc-price-max {
    min-width: 60px;
    text-align: center;
    color: #000;
}

.adhoc-price-separator {
    color: #bbb;
    font-weight: 300;
}

.adhoc-price-slider-container {
    position: relative;
    padding: 0 2px;
    height: 40px;
    display: flex;
    align-items: center;
}

/* Estilos para los range inputs - Diseño Zalando-like */
.adhoc-price-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: transparent;
    outline: none;
    position: relative;
    pointer-events: none;
    z-index: 3;
}

.adhoc-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #000;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.adhoc-price-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #f8f8f8;
}

.adhoc-price-slider::-webkit-slider-thumb:active {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.adhoc-price-slider::-moz-range-track {
    background: transparent;
    border: none;
}

.adhoc-price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #000;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.adhoc-price-slider::-moz-range-thumb:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #f8f8f8;
}

.adhoc-price-slider::-moz-range-thumb:active {
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Track (riel) del slider */
.adhoc-price-track {
    position: absolute;
    background: #000;
    height: 4px;
    border-radius: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Botón de aplicar filtro */
.adhoc-btn-filter-apply {
    width: 100%;
    padding: 12px 16px;
    margin-top: 12px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.adhoc-btn-filter-apply:hover {
    background-color: #222;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.adhoc-btn-filter-apply:active {
    background-color: #000;
    transform: translateY(1px);
}

/* Filtro de Categorías */
.adhoc-filter-section {
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid #efefef;
}

.adhoc-filter-section h3{
    font-size: 20px;
}

.adhoc-filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.adhoc-filter-title {
    font-size: 13px;
    font-weight: 700;
    color: #000;
    margin: 0 0 14px 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.adhoc-filter-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.adhoc-filter-checkbox:hover {
    color: #000;
}

.adhoc-filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #000;
    flex-shrink: 0;
}

.adhoc-filter-checkbox span {
    flex: 1;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.adhoc-filter-checkbox small {
    color: #999;
    font-size: 12px;
    margin-left: 6px;
    flex-shrink: 0;
}

/* Acciones de filtros */
.adhoc-filter-actions {
    margin-top: 20px;
}

.adhoc-btn-secondary {
    width: 100%;
    padding: 12px 16px;
    background-color: #f5f5f5;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.adhoc-btn-secondary:hover {
    background-color: #efefef;
    border-color: #999;
}

/* Layout Principal */
.adhoc-shop-wrapper {
    margin: 0;
    padding: 20px;
    background-color: #fff;
}

.adhoc-shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar */
.adhoc-shop-sidebar {
    background-color: #fff;
    padding: 0;
    border-radius: 0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.adhoc-shop-filters {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Main */
.adhoc-shop-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Toolbar */
.adhoc-shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #efefef;
}

.adhoc-shop-results-info {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.adhoc-shop-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.adhoc-shop-sort label {
    font-size: 13px;
    color: #000;
    font-weight: 600;
}

.adhoc-sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

/* Grid de Productos */
.adhoc-shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.adhoc-shop-products-grid li{
    list-style: none;
}

.adhoc-shop-product-card {
    background: #fff;
    border: none;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.adhoc-shop-product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.adhoc-shop-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #f5f5f5;
    overflow: hidden;
}

.adhoc-shop-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adhoc-shop-product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.adhoc-shop-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.adhoc-shop-badge-sale {
    background-color: #ff6b6b;
    color: white;
}

.adhoc-shop-badge-out-of-stock {
    background-color: #999;
    color: white;
}

/* Información del Producto */
.adhoc-shop-product-info {
    padding: 12px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.adhoc-shop-product-title {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    color: #222;
    line-height: 1.5;
    flex: 1;
}

.adhoc-shop-product-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.adhoc-shop-product-title a:hover {
    color: #000;
}

.adhoc-shop-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.adhoc-btn-product {
    display: none;
    padding: 10px 15px;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.adhoc-btn-product:hover {
    background-color: #222;
}

/* Sin Productos */
.adhoc-shop-no-products {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Paginación */
.adhoc-shop-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.adhoc-shop-pagination ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.adhoc-shop-pagination li {
    display: inline-block;
}

.adhoc-shop-pagination a,
.adhoc-shop-pagination span {
    display: inline-block;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #222;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.adhoc-shop-pagination a:hover {
    background-color: #000;
    color: white;
    border-color: #000;
}

.adhoc-shop-pagination .current {
    background-color: #000;
    color: white;
    border-color: #000;
    padding: 10px 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .adhoc-shop-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .adhoc-shop-sidebar {
        position: static;
    }

    .adhoc-shop-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

    .adhoc-shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .adhoc-shop-sort {
        width: 100%;
    }

    .adhoc-sort-select {
        flex: 1;
    }
}

/* Mensajes de Notificación */
.adhoc-shop-notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.adhoc-shop-notice-error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.adhoc-shop-notice-warning {
    background-color: #ffd;
    color: #664400;
    border: 1px solid #ffb;
}
