/* Filter Container - Ensure it's aligned in a 4-column layout on desktop */
.blind-group-filter {
    display: flex;
    margin-bottom: 20px;
    gap: 20px; /* Spacing between filters */
    width: 100%; /* Ensure container takes full width */
}

/* Individual Filter Dropdowns - Ensure each dropdown takes exactly 23% of the width for a 4-column layout */
.filter-dropdown-container {
    flex: 1 1 23%; /* Each dropdown will take approximately 23% of the width */
    min-width: 50px; /* Minimum width for each dropdown to avoid it getting too small */
    box-sizing: border-box; /* Ensure padding and borders are included in the element's total width and height */
}

/* Responsive Layout for smaller screens */
@media (max-width: 768px) {
    .blind-group-filter {
        flex-direction: column; /* Stack filters vertically on smaller screens */
        gap: 15px;
    }
}

/* Grid Container with Scrollbar */
.blind-group-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: start;
    max-height: 400px; /* Adjust this height based on the size of 6 blinds */
    overflow-y: auto; /* Adds vertical scrollbar when content overflows */
    padding-right: 5px; /* Adds padding for scrollbar visibility */
}

/* Optional: Custom scrollbar styling */
.blind-group-grid::-webkit-scrollbar {
    width: 8px;
}

.blind-group-grid::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 10px;
}

.blind-group-grid::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

.blind-group-grid::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

/* Blind Item Styling */
.blind-item {
    width: 150px;
    padding: 10px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: border 0.3s ease;
}

.blind-item img {
    max-width: 100%;
    height: auto;
}

.blind-label {
    margin-top: 10px;
    font-weight: bold;
    font-size: 14px;
}

/* Magnifier Icon */
.blind-magnifier {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    background-color: white;
    padding: 5px;
}

.blind-magnifier:hover {
    color: #ffffff;
    background-color: #333;
}

/* Selected Blind */
.blind-selected {
    border: 3px solid #0073aa; /* Change border color and size for the selected blind */
}

.taxonomy-icons {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.taxonomy-icon {
    width: 35px;
    height: 35px;
    margin: 0 2px;
    cursor: pointer;
}

/* Modal Styling */
.blind-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: scroll;
}

.blind-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 60%;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.blind-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-blind-image {
    width: 100%;
    max-width: 500px; /* Adjust this value as needed */
    max-height: 500px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-blind-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.modal-blind-details {
    width: 100%;
    padding: 0 20px;
}

.modal-blind-details h2 {
    margin-bottom: 15px;
    text-align: center;
}

.modal-blind-details p {
    margin: 2px 0;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .blind-modal-content {
        width: 60%;
        max-width: 600px;
    }
}

@media (max-width: 767px) {
    .blind-modal-content {
        width: 90%;
        margin: 5% auto;
    }
}

.modal-blind-details h2 {
    margin-bottom: 15px;
}

.modal-blind-details p {
    margin: 2px 0;
}

.modal-blind-details p span{
    text-transform: uppercase;
}

/* Close Button */
.blind-modal .close {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 24px;
    color: #aaa;
}

.blind-modal .close:hover {
    color: #000;
}

.blind-search-container {
    margin-bottom: 20px;
}

.toggle-search-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
}

.toggle-search-btn .dashicons {
    margin-right: 5px;
}

.blind-group-search {
    margin-top: 10px;
}

#blind-search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.characteristics-scroll {
    max-height: 70px !important; /* Adjust this value as needed */
    overflow-y: auto;
    padding-right: 10px;
}

.characteristics-scroll::-webkit-scrollbar {
    width: 5px;
}

.characteristics-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.characteristics-scroll::-webkit-scrollbar-thumb {
    background: #888;
}

.characteristics-scroll::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.characteristics-scroll label {
    display: block;
    margin-bottom: 5px;
}

/* Blind Group Grid */
.blind-group-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 20px;
    max-height: 400px; /* Adjust this height based on your needs */
    overflow-y: auto;
    padding-right: 5px;
}

/* Blind Item */
.blind-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Taxonomy Icons Container */
.taxonomy-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    max-width: 100%;
}

/* Individual Taxonomy Icon */
.taxonomy-icon {
    width: 25px; /* Smaller size */
    height: 25x; /* Smaller size */
    margin: 2px;
    cursor: pointer;
}

/* Responsive layout for mobile */
@media (max-width: 768px) {
    .blind-group-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on mobile */
    }
}

/* Ensure no more than 4 icons per row */
@media (min-width: 769px) {
    .taxonomy-icons {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
    }
}