/* ========================================= */
/* PÁGINA DE PRODUCTOS TIPO LEVI'S */
/* ========================================= */

/* Variables */
:root {
    --gema-color-primary: #a68a64;
    --gema-color-text: #2c3e50;
    --gema-color-light: #f8f9fa;
    --gema-color-border: #e9ecef;
    --gema-transition: all 0.3s ease;
}

/* Breadcrumb */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid var(--gema-color-border);
}

.breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--gema-color-primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Header de categoría */
.category-header {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--gema-color-border);
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gema-color-text);
    margin-bottom: 8px;
}

.category-description {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.results-count {
    text-align: right;
}

.count-text {
    color: #6c757d;
    font-size: 14px;
}

/* Sección de productos */
.products-section {
    background: #f8f9fa;
    min-height: 100vh;
    padding-top: 100px;
}

/* Sidebar de filtros */
.filters-sidebar {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

/* Ocultar sidebar en móvil - solo mostrar el contenedor unificado */
@media (max-width: 767.98px) {
    .filters-sidebar {
        display: none !important;
    }

    .col-lg-3.col-md-4 {
        display: none !important;
    }
}

.mobile-filter-toggle {
    margin-bottom: 20px;
}

.mobile-filter-toggle .filter-count {
    background: var(--gema-color-primary);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 8px;
}

/* Grupos de filtros */
.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--gema-color-text);
}

.filter-toggle {
    color: var(--gema-color-text);
    text-decoration: none;
    font-weight: 600;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-toggle:hover {
    color: var(--gema-color-primary);
}

.filter-toggle i {
    transition: var(--gema-transition);
}

.filter-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Opciones de filtros */
.filter-options {
    padding-left: 5px;
}

.form-check {
    margin-bottom: 10px;
}

.form-check-label {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 14px;
    color: #495057;
}

.option-count {
    color: #6c757d;
    font-size: 12px;
}

/* Filtro de precio */
.price-range-slider {
    padding: 10px 0;
}

.price-inputs .form-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
}

.price-inputs .input-group-text {
    background: #f8f9fa;
    border-color: #e9ecef;
    font-size: 14px;
}

.price-inputs .form-control {
    font-size: 14px;
}

.price-presets {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.checkout-btn {
    background: var(--gema-color-botton);
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

.btn-link {
    --bs-btn-color: var(--gema-color-botton) !important;
    --bs-btn-hover-color: var(--gema-color-botton) !important;
    --bs-btn-active-color: var(--gema-color-botton) !important;
}

.price-presets .btn {
    font-size: 11px;
    padding: 4px 8px;
}

/* Valoraciones */
.stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
}

.stars i {
    font-size: 12px;
}

/* Servicios */
.filter-options .form-check-label i {
    color: var(--gema-color-primary);
    width: 16px;
}

/* Botones de filtros */
.filter-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* Toolbar: sin caja/borde propios — solo el buscador (Destino/Fechas/
   Huéspedes), cada campo con su borde individual (.search-field-input). */
.toolbar {
    margin-bottom: 25px;
}

/* Filtros activos */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: var(--gema-color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    gap: 8px;
}

.btn-close-tag {
    background: none;
    border: none;
    color: white;
    font-size: 10px;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-tag:before {
    content: "×";
    font-size: 14px;
}

/* Controles de ordenamiento */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sort-controls label {
    font-size: 14px;
    color: #495057;
    margin: 0;
    white-space: nowrap;
}

.view-toggle {
    display: flex;
}

.view-toggle .btn {
    border-radius: 0;
    border-right: none;
}

.view-toggle .btn:first-child {
    border-radius: 4px 0 0 4px;
}

.view-toggle .btn:last-child {
    border-radius: 0 4px 4px 0;
    border-right: 1px solid #dee2e6;
}

.view-toggle .btn.active {
    background: var(--gema-color-primary);
    border-color: var(--gema-color-primary);
    color: white;
}

/* Grid de productos */
.products-grid {
    margin-top: 20px;
}

/* Tarjeta de producto */
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--gema-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Imagen del producto */
.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gema-transition);
}

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

/* Badges del producto */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-direction: column;
}

.product-badges .badge {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Acciones del producto */
.product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    flex-direction: column;
    opacity: 0;
    transition: var(--gema-transition);
}

.product-card:hover .product-actions,
.product-actions:hover {
    opacity: 1;
}

.product-actions .btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #495057;
    transition: var(--gema-transition);
}

.product-actions .btn:hover,
.product-actions .btn.active {
    background: var(--gema-color-primary);
    color: white;
}

/* Información del producto */
.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 500;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gema-color-text);
    margin-bottom: 10px;
    line-height: 1.3;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-rating .stars {
    color: #ffc107;
}

.badge-featured {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.product-meta {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 12px;
}

.product-meta i {
    color: var(--gema-color-botton, #a68a64);
    font-size: 12px;
    margin-right: 6px;
}

.product-meta .dot {
    margin: 0 4px;
    color: #c9c2b8;
}

.rating-count {
    font-size: 12px;
    color: #6c757d;
}

/* Características */
.product-features {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.feature {
    font-size: 11px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.feature i {
    color: var(--gema-color-primary);
    font-size: 10px;
}

/* Precios */
.product-pricing {
    margin-bottom: 15px;
    margin-top: auto;
}

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--gema-color-text);
}

.price-original {
    font-size: 14px;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 8px;
}

.price-note {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

/* Botón agregar al carrito */
.btn-add-cart {
    margin-top: auto;
    padding: 10px;
    font-weight: 600;
    border-radius: 6px;
    transition: var(--gema-transition);
}

.btn-add-cart:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Paginación */
.pagination-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--gema-color-border);
}

.pagination .page-link {
    color: var(--gema-color-primary);
    border-color: #dee2e6;
    padding: 10px 15px;
}

.pagination .page-item.active .page-link {
    background-color: var(--gema-color-primary);
    border-color: var(--gema-color-primary);
}

.pagination .page-link:hover {
    color: var(--gema-color-primary);
    background-color: #f8f9fa;
}

/* Offcanvas móvil */
.offcanvas {
    width: 320px !important;
    z-index: 99999 !important;
}

.offcanvas-backdrop {
    z-index: 99998 !important;
}

.offcanvas.show {
    z-index: 99999 !important;
}

.offcanvas-header {
    background: var(--gema-color-primary);
    color: white;
}

.offcanvas-header .btn-close {
    filter: invert(1);
}

/* Responsive */
@media (max-width: 768px) {
    .category-header {
        padding: 20px 0;
        text-align: center;
    }

    .category-title {
        font-size: 2rem;
    }

    .results-count {
        text-align: center;
        margin-top: 15px;
    }

    .toolbar {
        padding: 15px;
    }

    .active-filters {
        margin-bottom: 15px;
    }

    .sort-controls {
        justify-content: center;
    }

    .products-grid {
        margin-top: 15px;
    }

    .product-image {
        height: 180px;
    }

    .product-actions {
        opacity: 1;
        position: relative;
        top: auto;
        right: auto;
        flex-direction: row;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .category-title {
        font-size: 1.75rem;
    }

    .toolbar .row {
        text-align: center;
    }

    .toolbar .col-md-6 {
        margin-bottom: 15px;
    }

    .sort-controls {
        flex-direction: column;
        gap: 10px;
    }

    .view-toggle {
        justify-content: center;
    }

    .product-features {
        justify-content: center;
    }

    .pagination-section {
        margin-top: 30px;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination .page-item {
        margin: 2px;
    }
}

/* Estados de loading */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Efectos adicionales */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Vista lista mejorada - Diseño intuitivo y moderno */
.products-grid.list-view .row {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.products-grid.list-view .col-lg-4,
.products-grid.list-view .col-md-6,
.products-grid.list-view .col-sm-6 {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-bottom: 20px;
}

.products-grid.list-view .product-card {
    flex-direction: row;
    align-items: stretch;
    max-width: 100%;
    height: auto;
    min-height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.products-grid.list-view .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d1d8dd;
}

.products-grid.list-view .product-image {
    width: 280px;
    min-width: 280px;
    height: auto;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.products-grid.list-view .product-image img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.products-grid.list-view .product-card:hover .product-image img {
    transform: scale(1.05);
}

.products-grid.list-view .product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-direction: column;
    z-index: 2;
}

.products-grid.list-view .product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    flex-direction: column;
    opacity: 1;
    z-index: 2;
}

.products-grid.list-view .product-actions .btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.products-grid.list-view .product-actions .btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.products-grid.list-view .product-info {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.products-grid.list-view .product-category {
    font-size: 11px;
    color: #8b95a1;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.8px;
    display: inline-block;
}

.products-grid.list-view .product-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-grid.list-view .product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.products-grid.list-view .product-rating .stars {
    color: #ffc107;
    font-size: 14px;
}

.products-grid.list-view .product-features {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.products-grid.list-view .feature {
    font-size: 13px;
    color: #5a6c7d;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f4f6f8;
    padding: 6px 12px;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.products-grid.list-view .feature:hover {
    background: #e8ecf0;
}

.products-grid.list-view .feature i {
    color: var(--gema-color-primary, #007bff);
    font-size: 12px;
}

.products-grid.list-view .product-pricing {
    margin-bottom: 18px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
}

.products-grid.list-view .price-current {
    font-size: 28px;
    font-weight: 800;
    color: #1a2332;
    display: inline-block;
    line-height: 1;
}

.products-grid.list-view .price-original {
    font-size: 17px;
    color: #9ca8b4;
    text-decoration: line-through;
    margin-left: 12px;
    font-weight: 500;
}

.products-grid.list-view .price-note {
    font-size: 12px;
    color: #6c7883;
    margin-top: 5px;
    font-style: italic;
    font-weight: 400;
}

.products-grid.list-view .btn-add-cart {
    width: auto !important;
    min-width: 200px !important;
    max-width: 300px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    align-self: flex-start;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-grid.list-view .btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive para tablets */
@media (max-width: 992px) {
    .products-grid.list-view .product-image {
        width: 220px;
        min-width: 220px;
    }
    
    .products-grid.list-view .product-info {
        padding: 20px;
    }
    
    .products-grid.list-view .product-title {
        font-size: 18px;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .products-grid.list-view .product-card {
        flex-direction: column;
    }
    
    .products-grid.list-view .product-image {
        width: 100%;
        height: 240px;
        min-width: 100%;
    }
    
    .products-grid.list-view .product-actions {
        flex-direction: row;
        top: auto;
        bottom: 12px;
    }
    
    .products-grid.list-view .btn-add-cart {
        width: 100% !important;
        max-width: 100%;
        min-width: 100% !important;
    }
}

.swiper {
      width: 100%;
      height: 100%;
    }

    .swiper-slide {
      text-align: center;
      font-size: 18px;
      background: #444;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    /* Centrar flechas verticalmente */
.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
	top: 50%;
	transform: translateY(-50%);
}

/* Cambiar color del ícono */
.mySwiper .swiper-button-next::after,
.mySwiper .swiper-button-prev::after {
	color: #a68a64 !important;
	font-size: 26px; /* ajusta si las quieres más grandes */
	font-weight: bold;
}

/* Opcional: agregar un fondo suave redondeado */
.mySwiper .swiper-button-next,
.mySwiper .swiper-button-prev {
	background: rgba(255, 255, 255, 0.7);
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

/* Centrar icono dentro del círculo */
.mySwiper .swiper-button-next::after,
.mySwiper .swiper-button-prev::after {
	line-height: 36px;
}
.mySwiper .tour-card {
    width: 85% !important;
}


/* Ajuste solo para móvil */
@media (max-width: 992px) {
    .mySwiper .swiper-slide {
        display: flex;
        justify-content: center;
    }

    .mySwiper .tour-card {
        width: 90% !important; /* Reduce ancho para dar espacio a las flechas */
    }

    /* Asegura que las flechas queden alineadas verticalmente al centro */
    .mySwiper .swiper-button-next,
    .mySwiper .swiper-button-prev {
        top: 45%;
    }
}


/* SOLO MOBILE Y TABLET */
@media (max-width: 991px) {

    /* El slide se centra */
    .mySwiper .swiper-slide {
        display: flex;
        justify-content: center;
    }

    /* La card no ocupa todo el ancho */
    .mySwiper .tour-card {
        width: 88% !important;      /* Ajusta entre 85% - 90% según el diseño */
        margin: 0 auto;
    }

    /* Flechas centradas verticalmente */
    .mySwiper .swiper-button-next,
    .mySwiper .swiper-button-prev {
        top: 45%;
    }

    /* Opcional: separarlas más del card */
    .mySwiper .swiper-button-next {
        right: -4px;
    }
    .mySwiper .swiper-button-prev {
        left: -4px;
    }
}


@media (max-width: 768px) {
    .products-grid.list-view .product-card {
        flex-direction: column;
        align-items: stretch;
    }

    .products-grid.list-view .product-image {
        width: 100%;
        height: 200px;
    }

    .products-grid.list-view .product-actions {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        padding: 10px;
        background: rgba(255, 255, 255, 0.95);
        margin-top: -50px;
        margin-bottom: 0;
        z-index: 2;
    }

    .products-grid.list-view .product-info {
        min-height: auto;
        padding: 20px;
    }

    .products-grid.list-view .product-features {
        justify-content: center;
    }

    .products-grid.list-view .btn-add-cart {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .products-grid.list-view .product-image {
        height: 180px;
    }

    .products-grid.list-view .product-info {
        padding: 15px;
    }

    .products-grid.list-view .product-features {
        gap: 10px;
    }

    .products-grid.list-view .feature {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* ===== MOBILE TOOLBAR UNIFICADO ===== */
.mobile-toolbar-unified {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    overflow: visible;
    position: relative;
}

/* Título de la sección */
.mobile-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #a68a64;
}

/* Fila de controles */
.mobile-controls-row {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Botón de filtros móvil */
.btn-filters-mobile {
    background-color: #a68a64 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: fit-content;
}

.btn-filters-mobile:hover,
.btn-filters-mobile:focus {
    background-color: #8f7555 !important;
    color: #fff !important;
}

.btn-filters-mobile i {
    margin-right: 8px;
}

/* Badge del contador de filtros */
.btn-filters-mobile .filter-badge {
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 8px;
}

/* Ordenamiento móvil */
.mobile-sort-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.mobile-sort-container .sort-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.mobile-sort-container .sort-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mobile-sort-container .sort-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-sort-container .sort-btn:hover {
    border-color: #a68a64;
    color: #a68a64;
}

.mobile-sort-container .sort-btn.active {
    background: #a68a64;
    border-color: #a68a64;
    color: #fff;
}

.mobile-sort-container .sort-btn i {
    font-size: 11px;
}

/* Filtros activos móvil */
.mobile-active-filters {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
}

.mobile-active-filters:empty {
    display: none;
}

.mobile-active-filters .filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #a68a64;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 6px;
}

.mobile-active-filters .filter-chip .chip-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    padding: 0;
    cursor: pointer;
}

/* ===== ESTILOS DE FILTROS EN OFFCANVAS ===== */
.offcanvas-body.filters-content .filter-group {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.offcanvas-body.filters-content .filter-group:last-of-type {
    border-bottom: none;
}

.offcanvas-body.filters-content .form-check {
    padding: 5px 0;
    padding-left: 1.5em;
}

.offcanvas-body.filters-content .form-check-input[type="radio"] {
    border-color: #a68a64;
}

.offcanvas-body.filters-content .form-check-input[type="radio"]:checked {
    background-color: #a68a64;
    border-color: #a68a64;
}

/* Estilos para Range Slider de precio en móvil */
#filtersOffcanvas .price-range-container {
    padding: 10px 5px;
}

#filtersOffcanvas .price-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

#filtersOffcanvas .price-display span {
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 500;
}

#filtersOffcanvas .range-slider-wrapper {
    position: relative;
    height: 35px;
    margin: 0 8px;
}

#filtersOffcanvas .range-slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

#filtersOffcanvas .range-slider-progress {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: linear-gradient(90deg, #a68a64, #c9a96e);
    border-radius: 3px;
}

#filtersOffcanvas .range-slider-wrapper input[type="range"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: auto;
    z-index: 3;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

#filtersOffcanvas .range-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 3px solid #a68a64;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    -webkit-tap-highlight-color: transparent;
}

#filtersOffcanvas .range-slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #fff;
    border: 3px solid #a68a64;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Estilos adicionales para mejor experiencia táctil en móvil */
#filtersOffcanvas .range-slider-wrapper {
    position: relative;
    height: 40px;
    margin: 10px 8px;
    touch-action: none;
}

/* Scroll para categorías con muchos elementos */
.filter-options-scroll {
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.filter-options-scroll::-webkit-scrollbar {
    width: 5px;
}

.filter-options-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-options-scroll::-webkit-scrollbar-thumb {
    background: #a68a64;
    border-radius: 3px;
}

.filter-options-scroll::-webkit-scrollbar-thumb:hover {
    background: #8f7555;
}

/* ===== ESTILOS DE FILTROS DESKTOP ===== */
.filters-content .form-check-input[type="radio"] {
    border-color: #a68a64;
}

.filters-content .form-check-input[type="radio"]:checked {
    background-color: #a68a64;
    border-color: #a68a64;
}

.filters-content .form-check-input[type="radio"]:focus {
    border-color: #a68a64;
    box-shadow: 0 0 0 0.25rem rgba(166, 138, 100, 0.25);
}

/* Offcanvas filtros */
.offcanvas-filters .offcanvas-header {
    background-color: #a68a64;
    color: #fff;
}

.offcanvas-filters .offcanvas-title {
    font-weight: 600;
}

.offcanvas-filters .btn-close {
    filter: brightness(0) invert(1);
}

.offcanvas-filters .offcanvas-body {
    padding: 1rem;
}

.offcanvas-filters .filter-group {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.offcanvas-filters .filter-group:last-of-type {
    border-bottom: none;
}

.offcanvas-filters .filter-actions {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 1rem 0;
    border-top: 1px solid #eee;
    margin-top: 1rem;
}

/* Range Slider de precio */
.price-range-container {
    padding: 10px 5px;
}

.price-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.price-display span {
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.range-slider-wrapper {
    position: relative;
    height: 35px;
    margin: 0 8px;
}

.range-slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
}

.range-slider-progress {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: linear-gradient(90deg, #a68a64, #c9a96e);
    border-radius: 3px;
}

.range-slider-wrapper input[type="range"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.range-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid #a68a64;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.range-slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(166, 138, 100, 0.4);
}

.range-slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid #a68a64;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Botones de acción de filtros móvil */
.filter-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

#applyFiltersBtnMobile {
    background-color: #a68a64 !important;
    color: #fff !important;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    border: none;
}

#applyFiltersBtnMobile:hover {
    background-color: #8b7355 !important;
}

#clearFiltersMobile {
    padding: 10px;
    border-radius: 8px;
}