/* ============================================================
   catalogo.css — Ara Boutique
   Estilos específicos de la página de catálogo
   ============================================================ */

/* ----- Scrollbar oculta en sidebar móvil ----- */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ----- Grid de productos: efecto masonry suave ----- */
.product-grid-item {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-grid-item.hidden-product {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
    display: none;
}

/* ----- Hover en card de producto ----- */
.product-card:hover .product-card__image {
    transform: scale(1.05);
}

.product-card__image {
    transition: transform 0.7s ease;
}

/* ----- Badge "Nuevo" ----- */
.badge-new {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ----- Link activo en sidebar ----- */
.sidebar-link-active {
    color: #7d562d;
    font-weight: 700;
}

.sidebar-link-active .sidebar-count {
    opacity: 0.5;
}

/* ----- Paginación de Laravel (override) ----- */
nav[aria-label="Pagination Navigation"] {
    display: flex;
    justify-content: center;
    margin-top: 6rem;
}

nav[aria-label="Pagination Navigation"] span,
nav[aria-label="Pagination Navigation"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #cec5bc;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #7d562d;
    transition: background-color 0.2s;
    margin: 0 0.2rem;
}

nav[aria-label="Pagination Navigation"] a:hover {
    background-color: #ffe9d6;
}

nav[aria-label="Pagination Navigation"] span[aria-current="page"] span {
    background-color: #7d562d;
    color: #ffffff;
    border-color: #7d562d;
}

/* ============================================================
   catalogo.css — Ara Boutique
   ============================================================ */

/* ----- Scrollbar oculta ----- */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* ----- Grid items ----- */
.product-grid-item {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.product-grid-item.hidden-product {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
    display: none;
}

/* ----- Card hover ----- */
.product-card__image {
    transition: transform 0.7s ease;
}

/* ----- Badge nuevo ----- */
.badge-new {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ----- Sidebar activo ----- */
.sidebar-link-active {
    color: #7d562d;
    font-weight: 700;
}

.sidebar-link-active .sidebar-count {
    opacity: 0.5;
}

/* ----- Paginación Laravel ----- */
nav[aria-label="Pagination Navigation"] {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 4rem;
}

nav[aria-label="Pagination Navigation"] span,
nav[aria-label="Pagination Navigation"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.6rem;
    border: 1px solid #cec5bc;
    border-radius: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7d562d;
    transition: background-color 0.2s;
}

nav[aria-label="Pagination Navigation"] a:hover {
    background-color: #ffe9d6;
}

nav[aria-label="Pagination Navigation"] span[aria-current="page"] span {
    background-color: #7d562d;
    color: #ffffff;
    border-color: #7d562d;
}

/* ----- Móvil: ajustes finos ----- */
@media (max-width: 640px) {

    /* Cards más compactas */
    .product-grid-item h4 {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .product-grid-item p {
        font-size: 0.75rem;
    }

    /* Precio más pequeño */
    .product-grid-item .text-primary {
        font-size: 0.85rem;
    }

    /* Paginación más pequeña */
    nav[aria-label="Pagination Navigation"] span,
    nav[aria-label="Pagination Navigation"] a {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.65rem;
        padding: 0 0.4rem;
    }
}

/* catalogo.css — Ara Boutique */
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none
}

.no-scrollbar::-webkit-scrollbar {
    display: none
}

.product-grid-item {
    transition: opacity .3s ease, transform .3s ease
}

.product-grid-item.hidden-product {
    opacity: 0;
    transform: scale(.97);
    pointer-events: none;
    display: none
}

.badge-new {
    background: rgba(255, 255, 255, .85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px)
}

.sidebar-link-active {
    color: #7d562d;
    font-weight: 700
}

/* Range slider dual */
.price-range-wrap {
    position: relative;
    height: 1.5rem;
    display: flex;
    align-items: center
}

.price-range-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #cec5bc;
    border-radius: 9999px
}

.price-range-fill {
    position: absolute;
    height: 4px;
    background: #7d562d;
    border-radius: 9999px
}

.price-range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none
}

.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7d562d;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(125, 86, 45, .3);
    cursor: pointer;
    pointer-events: all;
    transition: transform .15s
}

.price-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.2)
}

.price-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #7d562d;
    border: 2px solid #fff;
    cursor: pointer;
    pointer-events: all
}

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