/* Fullscreen overlay covering the entire screen */
.wc-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* White background for the overlay */
    z-index: 9999; /* On top of other elements */
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Search bar at the top of the overlay */
.wc-search-bar {
    width: 100%;
    padding: 20px;
    background-color: #000; /* White background for the search bar */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    border-bottom: 1px solid #000; /* Border at the bottom of the search bar */
    z-index: 10000; /* Ensure the search bar stays on top */
}

/* Search input field inside the search bar */
#wc_search_input {
    width: 80%;
    padding: 15px;
    font-size: 20px;
    border-bottom: 1px solid #ad0000 !important;
    border-radius: 0px;
    margin: 0 auto;
    display: block;
    background-color: #f9f9f9;
    color: #333;
    border: 0px;
}

/* Close button inside the search bar */
.wc-search-close {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    font-size: 30px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* Preloader in the search input */
#wc_search_input.loading {
    background-image: url('/wp-content/uploads/2024/08/smort-loading.gif');
    background-position: right 10px center;
    background-repeat: no-repeat;
}

/* Two-column layout for search results */
.wc-search-column {
    box-sizing: border-box;
    padding: 0; /* Set padding to 0 */
}

.wc-categories-column {
    width: 25%;
    float: left;
    background-color: #ffffff;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #ffcdcd;
    border-radius: 15px;
    padding: 15px; /* Set padding to 0 */
}

.wc-categories-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc-categories-column li {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.wc-products-column {
    width: calc(75% - 15px);
    float: left;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0; /* Set padding to 0 */
    box-sizing: border-box;
    overflow-y: scroll;
    height: 90vh;
    padding-bottom: 100px !important;
	margin-left: 10px;
}

/* Each product card */
.wc-product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1 1 calc(20% - 20px);
    box-sizing: border-box;
    overflow: hidden;
    text-align: left;
    padding: 15px;
    color: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
    width: calc(20% - 10px);
    float: left;
    margin: 5px;
    min-height: 350px;
    max-height: 420px;
    max-width: calc(25% - 20px); /* Ensure the card doesn’t stretch beyond 1/4 */
}

/* Product image styling */
.wc-product-image img {
    max-width: 100%;
    height: 200px !important;
    object-fit: contain;
    margin-bottom: 10px;
}

/* Product title styling */
.wc-product-title h2 {
    font-size: 15px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
    flex-grow: 1;
    line-height: 1.5;
    font-family: 'CustomHeadingFont';
	min-height: 40px; 
}

/* Product price styling */
.wc-product-price {
    font-size: 16px !important;
    color: var(--accentColor);
    margin-top: auto;
    font-family: 'syne';
    font-weight: 600;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 10px;
}

/* Clear floats after the columns */
#wc_search_results:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .wc-product-card {
        width: calc(25% - 10px); /* 4 columns on smaller screens */
    }
}

@media (max-width: 992px) {
    .wc-product-card {
        width: calc(33.33% - 10px); /* 3 columns on tablet */
    }
}

@media (max-width: 768px) {
    .wc-product-card {
        width: calc(50% - 10px); /* 2 columns on small tablets and phones */
		flex: 1 1 calc(50% - 20px) !important;
        max-width: calc(50% - 20px) !important;
    }
	div#wc_search_results{
		padding: 0px !important;
	}
    .wc-categories-column {
        display: none; /* Hide categories filter on small devices */
    }

    .wc-products-column {
        width: 100%; /* Full width for products on small devices */
		gap: 5px !important;
    }
}

@media (max-width: 480px) {
    .wc-product-card {
        width: 100%; /* 1 column on very small screens */
    }
}

button#wc_search_trigger {
        width: 90%;
    margin-left: 10px;
    padding: 10px;
    border-radius: 0px;
    border: 0px;
    text-align: left;
    padding-left: 20px;
    border-bottom: 1px solid #000;
    margin-right: 20px !important;
}

div#wc_search_results {
    background-color: #fff;
    padding: 15px; /* Set padding to 0 */
	text-align: left;
}

div#wc_popular_searches {
    padding: 20px 15px;
    color: #000;
	text-align: left;
}

a.wc-popular-search {
    color: #000;
    border: 1px solid;
    padding: 5px 10px;
    border-radius: 0px;
}

/* Styling for the category checkboxes */
.wc-categories-column label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.wc-categories-column input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    appearance: none;
    border: 2px solid var(--accentColor);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.wc-categories-column input[type="checkbox"]:checked {
    background-color: transparent; /* Red color for checked checkboxes */
}

.wc-categories-column input[type="checkbox"]:checked:before {
    content: '✓';
    position: absolute;
    top: 1px;
    left: 3px;
    width: 10px;
    height: 10px;
    background-color: #fff6f6;
    border-radius: 2px;
    color: #ad0000;
}

.wc-product-sku {
    line-height: 1;
    color: #000 !important;
	font-size: 13px;
}
