/*
 * Applies a 15px border radius to the entire product image block on category pages.
 */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: block; /* Ensures the link behaves like a container */
    border-radius: 15px;
    overflow: hidden; /* This is crucial to clip the images inside */
}

/* STYLES FOR FACETWP */
.elementor-element.elementor-widget-facetwp-facet {
    margin-bottom: 10px !important;
}

.facet-wrap h3 {
    margin-bottom: 15px !important;
    font-size: var(--ast-global-color-h5-font-size, 1rem) !important;
    font-weight: var(--ast-global-color-h5-font-weight, 500) !important;
    line-height: var(--ast-global-color-h5-line-height, 1.2) !important;
    color: #333333 !important;
}

.facetwp-facet {
    margin-bottom: 5px !important;
}

/* Target all slider connects (active range) */
.facetwp-type-slider .noUi-connect {
    background: #008080 !important;
}

/* Target all slider handles */
.facetwp-type-slider .noUi-handle {
    border-color: #008080 !important;
}

/* Target all slider handles on hover/focus */
.facetwp-type-slider .noUi-handle:hover,
.facetwp-type-slider .noUi-handle:focus {
    background: #006666 !important;
    border-color: #006666 !important;
}

/* Change the reset button text and styling for all sliders */
.facetwp-slider-reset {
    background: white !important;
    color: #333333 !important;
    border: 2px solid #008080 !important;
    padding: 2px 12px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

/* Hover effect for all reset buttons */
.facetwp-slider-reset:hover {
    background: #008080 !important;
    color: white !important;
}

/* Change placeholder color to main color */
.fs-search input::placeholder {
    color: #008080 !important;
}

/* Make search input background white */
.fs-search input {
    background: white !important;
    border: 1px solid #ccc !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
}

/* Style the checkbox container */
.facetwp-checkbox {
    position: relative !important;
    padding: 8px 12px !important;
    margin-bottom: 6px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
}

/* Hover effect */
.facetwp-checkbox:hover {
    border-color: #008080 !important;
    background: #f8fdfd !important;
}

/* Create modern checkbox */
.facetwp-checkbox::before {
    content: "" !important;
    width: 18px !important;
    height: 18px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    margin-right: 10px !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

/* Selected checkbox */
.facetwp-checkbox.checked::before {
    background: #008080 !important;
    border-color: #008080 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") !important;
    background-size: 14px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Selected state background */
.facetwp-checkbox.checked {
    border-color: #008080 !important;
    background: #f0f9f9 !important;
}

/* Style the counter with a badge look - inactive state */
.facetwp-counter {
    background: #f0f0f0 !important;
    color: #666666 !important;
    padding: 5px 8px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: bold !important;
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    transition: all 0.2s ease !important;
}

/* Active/selected counter */
.facetwp-checkbox.checked .facetwp-counter,
.fs-option.selected .facetwp-counter {
    background: #008080 !important;
    color: white !important;
}

/* Hover state counter */
.facetwp-checkbox:hover .facetwp-counter,
.fs-option:hover .facetwp-counter {
    background: #008080 !important;
    color: white !important;
}

/* Style the dropdown wrapper exactly like checkboxes */
.fs-wrap {
    position: relative !important;
    padding: 8px 12px !important;
    margin-bottom: 6px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
}

/* Hover effect */
.fs-wrap:hover {
    border-color: #008080 !important;
    background: #f8fdfd !important;
}

/* Keep the label wrapper positioned correctly for dropdown */
.fs-label-wrap {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important; /* This is important for dropdown positioning */
}

/* Reset the label */
.fs-label {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Style the arrow */
.fs-arrow {
    border-top: 6px solid #008080 !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-bottom: none !important;
    transition: transform 0.2s ease !important;
}

/* Fix dropdown positioning */
.fs-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
}
/* Style the dropdown wrapper exactly like checkboxes */
.fs-wrap {
    position: relative !important;
    padding: 10px 12px !important;
    margin-bottom: 6px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important; /* Fill available width */
}

/* Hover effect */
.fs-wrap:hover {
    border-color: #008080 !important;
    background: #f8fdfd !important;
}

/* Keep the label wrapper positioned correctly for dropdown */
.fs-label-wrap {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    position: relative !important;
}

/* Reset the label */
.fs-label {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

/* Style the arrow */
.fs-arrow {
    border-top: 6px solid #008080 !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-bottom: none !important;
    transition: transform 0.2s ease !important;
}

/* Fix dropdown positioning */
.fs-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999 !important;
    width: 100% !important; /* Fill available width */
}

/* Add hover effect to dropdown options */
.fs-option:hover {
    background: #f0f9f9 !important;
    border-color: #008080 !important;
}

/* Container for the sort dropdown to match .fs-wrap */
.facetwp-facet-sort_by {
    position: relative !important;
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
}

/* Style the select to match .fs-wrap */
.facetwp-facet-sort_by select {
    width: 100% !important;
    padding: 8px 36px 8px 12px !important;
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    color: #333333 !important;
    font-size: inherit !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: border-color 0.2s, background 0.2s !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    outline: none !important;
    margin: 0 !important;
}

/* Custom arrow to match .fs-arrow */
.facetwp-facet-sort_by::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #008080;
    pointer-events: none;
}

/* Hover/focus effect for select */
.facetwp-facet-sort_by select:hover,
.facetwp-facet-sort_by select:focus {
    border-color: #008080 !important;
    background: #f8fdfd !important;
}

/* Style the options in the dropdown (browser support varies) */
.facetwp-facet-sort_by select option {
    background: white !important;
    color: #333333 !important;
}

.facetwp-selections ul {
    margin: 20px 0;
}

.facetwp-selections li {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 8px 16px;
    list-style-type: none;
    border: 1.5px solid #e0e0e0; /* subtle gray border by default */
    border-radius: 18px;
    background: #f8fdfd;
    font-size: 14px;
    font-weight: 500;
    color: #444444;
    vertical-align: middle;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.facetwp-selections li:hover {
    border-color: #008080;
    background: #e6f7f7;
    color: #008080;
}

.facetwp-selections .facetwp-selection-label {
    display: none;
}

.facetwp-selections .facetwp-selection-value {
    color: #444444;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.facetwp-selections .facetwp-selection-label + .facetwp-selection-value {
    margin-left: 0;
}

.facetwp-selections .facetwp-selection-value:last-child {
    margin-right: 0;
}

/* STYLES FOR FACETWP END*/

.woocommerce .ast-shop-toolbar-container {
	margin-bottom: 20px; 
	padding-bottom: 0px;
}
.ast-shop-toolbar-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.ast-shop-toolbar-aside-wrap {
    margin-bottom: 15px !important;
    padding-bottom: 0px !important;
}