/* ==========================================================================
   CONTENEDOR GENERAL (ESTILO PREMIUM SPA - IMAGEN 11.JPG)
   ========================================================================== */
.osfp-main-container {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a1a;
    background-color: transparent; 
    padding: 30px 0;
}

/* ==========================================================================
   BARRA DE FILTROS ÚNICA HORIZONTAL (CALCA DE 11.JPG)
   ========================================================================== */
.osfp-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2dbd2;
    padding-bottom: 12px;
    margin-bottom: 35px;
    width: 100%;
    position: relative; /* Clave para posicionar el submenú horizontal debajo */
}

/* LADO IZQUIERDO: CATEGORÍAS EN HORIZONTAL */
.osfp-left-filters .osfp-filter-group {
    display: flex;
    flex-direction: row !important; /* Fuerza la disposición horizontal absoluta */
    gap: 1px;
    flex-wrap: wrap;
}

.osfp-left-filters .osfp-btn-filter {
    background: transparent;
    border: none;
    color: #7a7266;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.osfp-left-filters .osfp-btn-filter:hover {
    color: #111;
}

/* Filtro Activo: Píldora negra idéntica a la imagen */
.osfp-left-filters .osfp-btn-filter.active {
    background-color: #1c1c1c !important;
    color: #ffffff !important;
}

/* LADO DERECHO: SELECTORES DESPLEGABLES */
.osfp-right-dropdowns {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.osfp-custom-dropdown {
    position: static; /* Permite que el submenú se extienda a lo largo de la barra */
    cursor: pointer;
}

.osfp-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 0;
}

.osfp-dropdown-trigger svg {
    transition: transform 0.25s ease;
    color: #8c8276;
}

.osfp-custom-dropdown.is-open .osfp-dropdown-trigger svg {
    transform: rotate(180deg);
}

/* SUBMENÚ DESPLEGABLE COMPLETAMENTE HORIZONTAL */
.osfp-dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%;
    right: 0;
    background: #faf8f5; /* Color sutil integrado con el fondo */
    width: auto;
    z-index: 999;
    padding: 12px 0;
    margin-top: 1px;
    
    /* Configuración en línea */
    flex-direction: row !important; 
    gap: 10px;
    justify-content: flex-end;
}

/* Se muestra en flex horizontal solo al abrirse */
.osfp-custom-dropdown.is-open .osfp-dropdown-menu {
    display: flex !important;
}

.osfp-dropdown-item {
    padding: 6px 14px;
    font-size: 11px;
    letter-spacing: 1px;
    color: #7a7266;
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 30px;
}

.osfp-dropdown-item:hover {
    color: #111;
    background: #eae3db;
}

.osfp-dropdown-item.active {
    background: #1c1c1c;
    color: #ffffff;
    font-weight: 500;
}

/* ==========================================================================
   GRID DINÁMICO DE PRODUCTOS
   ========================================================================== */
.osfp-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--osfp-cols, 4), 1fr);
    gap: 28px;
    transition: opacity 0.3s ease;
}

.osfp-products-grid.osfp-loading {
    opacity: 0.3;
    pointer-events: none;
}

/* Tarjeta de Producto */
.osfp-product-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.osfp-product-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 14px;
    border-radius: 4px;
}

.osfp-product-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.osfp-product-card:hover .osfp-product-image-wrapper img {
    transform: scale(1.03);
}

.osfp-img-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #111111;
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    z-index: 2;
}

.osfp-product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.osfp-product-title {
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.osfp-product-title a {
    text-decoration: none;
    color: #1a1a1a;
}

.osfp-product-title a:hover {
    color: #8c8275;
}

.osfp-product-excerpt {
    font-size: 12px;
    color: #6e665e;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.osfp-product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #333333;
    font-weight: 500;
    margin-bottom: 14px;
}

.osfp-meta-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7c7267;
}

.osfp-meta-price {
    font-weight: 600;
}

.osfp-product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eae5df;
    padding-top: 12px;
    margin-top: auto;
}

.osfp-link-details, .osfp-link-reserve {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-decoration: none;
    color: #222222;
}

.osfp-link-reserve {
    display: flex;
    align-items: center;
    gap: 5px;
}

.osfp-link-details:hover, .osfp-link-reserve:hover {
    color: #8c8275;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .osfp-products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
    .osfp-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .osfp-right-dropdowns {
        width: 100%;
        justify-content: flex-start;
    }
    .osfp-dropdown-menu {
        position: relative;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .osfp-products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
    .osfp-products-grid { grid-template-columns: 1fr; }
}