/* WooCommerce Horizontal Filter Styles */

.whf-container {
    font-family: Arial, sans-serif;
    margin-bottom: 30px;
    background: #fff;
    border-radius: 4px;
}

.whf-block {
    border: 1px solid #e1e1e1;
    margin-bottom: -1px; /* border collapse margin */
    padding: 15px;
    display: flex;
    align-items: center;
}

.whf-block-title {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    width: 150px;
    flex-shrink: 0;
}

/* Block: Active Filters */
.whf-active-filters .whf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.whf-tag {
    border: 1px solid #ccc;
    background: #fff;
    padding: 5px 10px;
    font-size: 13px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    color: #333;
}
.whf-tag .whf-remove-tag {
    margin-left: 8px;
    color: #999;
    cursor: pointer;
    font-weight: bold;
}
.whf-clear-all {
    color: #2b7afc;
    font-size: 13px;
    text-decoration: none;
    margin-left: 10px;
}
.whf-clear-all:hover {
    text-decoration: underline;
}

/* Block: Brands */
.whf-brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.whf-brand-item {
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 5px 15px;
    cursor: pointer;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: all 0.2s;
}
.whf-brand-item img {
    max-height: 24px;
    width: auto;
}
.whf-brand-item:hover {
    border-color: #0073aa;
}
.whf-brand-item.active {
    border-color: #2b7afc;
    box-shadow: 0 0 0 1px #2b7afc;
}

/* Block: Dropdowns */
.whf-dropdowns-filter {
    gap: 10px;
    flex-wrap: wrap;
}
.whf-dropdown {
    position: relative;
    display: inline-block;
}
.whf-dropdown-toggle {
    border: 1px solid #e1e1e1;
    background: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.whf-dropdown-toggle:hover {
    border-color: #999;
}
.whf-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #e1e1e1;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 99;
    margin-top: 5px;
    display: none;
    padding: 10px 0;
}
.whf-dropdown:hover .whf-dropdown-menu {
    display: block;
}
.whf-dropdown-item {
    padding: 8px 15px;
    font-size: 13px;
    cursor: pointer;
}
.whf-dropdown-item:hover, .whf-dropdown-item.active {
    background: #f5f5f5;
    color: #2b7afc;
}

/* Block: Needs Card */
.whf-needs-list {
    display: flex;
    gap: 15px;
}
.whf-need-card {
    width: 140px;
    height: 100px;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    color: #fff;
    transition: transform 0.2s;
}
.whf-need-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.whf-need-card.active {
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #2b7afc; /* outer blue ring */
}
.whf-need-card h4 {
    margin: 0;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}
.whf-need-card img {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 80px;
    height: auto;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .whf-block {
        flex-direction: column;
        align-items: flex-start;
    }
    .whf-block-title {
        margin-bottom: 15px;
        width: 100%;
    }
}
