/* AppleGlc Product Filter Styles */

.alaf-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Search Box - Always visible */

.alaf-search-desktop-mobile {
    margin-bottom: 0;
    width: 100%;
    position: relative;
    /* No margin on desktop - will be in same row */
}

.alaf-search-desktop-mobile .alaf-search-desktop-only {
    display: none;
    /* Hide duplicate search */
}

.alaf-label-desktop {
    display: block;
}


/* Desktop: All filters in one row wrapper */

.alaf-filters-wrapper {
    display: block;
    margin-bottom: 60px;
}


/* Filter Section */

.alaf-filters {
    display: flex;
    width: 67%;
    /* Makes children participate in parent grid */
}

.alaf-filters>.alaf-filter-item {
    width: calc(50% - 15px);
    margin-left: 15px;
    position: relative;
}

.alaf-filter-item>label {
    position: absolute;
    z-index: 1;
    background: #fff;
    left: 10px;
    top: -12px;
    padding: 0 5px;
}

.alaf-filter-item label {
    display: block;
    font-size: 12px;
    color: #000;
    margin: 0;
}


/* Search Box */

.alaf-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #d8d8d8;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    min-height: 56px;
}

.alaf-search-category {
    flex: 0 0 210px;
    border-right: 1px solid #e8e8e8;
}

.alaf-search-category-select {
    width: 100%;
    height: 56px;
    border: 0;
    background: #fff;
    padding: 0 36px 0 18px;
    font-size: 15px;
    color: #232323;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
    background-position: calc(100% - 22px) 24px, calc(100% - 16px) 24px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.alaf-search-category-select option[data-is-others="1"] {
    font-weight: 900;
}

.alaf-search-category-select.alaf-selected-others {
    font-weight: 900;
}

.alaf-search-input-holder {
    position: relative;
    flex: 1;
}

input[type="text"].alaf-search-input {
    width: 100%;
    padding: 0 12px 0 40px;
    border: 0;
    height: 56px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    outline: none;
    transition: background 0.2s ease;
}

.alaf-search-icon img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.alaf-search-input:focus {
    background: #fff;
}

.alaf-search-input::placeholder {
    color: #9a9a9a;
    font-size: 15px;
    font-weight: 400;
}

.alaf-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    pointer-events: none;
}

.alaf-search-btn {
    border: 0;
    background: #ef1c24;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0 26px;
    height: 42px;
    margin: 0 8px 0 6px;
    cursor: pointer;
}

.alaf-search-btn:hover {
    background: #d8141b;
}

.alaf-search-loader {
    position: absolute;
    right: 148px;
    color: #4a90e2;
    z-index: 3;
}

.alaf-search-expand-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 18px 14px;
    z-index: 1200;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border: 1px solid #ececec;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
}

.alaf-search-expand-arrow {
    position: absolute;
    top: -8px;
    left: 47%;
    width: 16px;
    height: 16px;
    background: #f7f7f7;
    border-left: 1px solid #d6d6d6;
    border-top: 1px solid #d6d6d6;
    transform: rotate(45deg);
    display: none;
}

.alaf-search-expand-panel h4 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.1;
    color: #111;
}

.alaf-popular-terms-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.alaf-popular-term-pill {
    border: 1px solid #cfcfcf;
    background: #fff;
    color: #111;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    cursor: pointer;
}

.alaf-popular-term-pill:hover {
    border-color: #0c275a;
}

.alaf-search-min-message {
    margin: 0;
    font-size: 15px;
    color: #222;
    display: none;
}

.alaf-search-invalid .alaf-search-min-message {
    display: block;
}


/* Dropdown Filter */

.alaf-dropdown-wrapper {
    position: relative;
}

.alaf-dropdown-toggle {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: border-color 0.3s;
    position: relative;
}

.alaf-dropdown-toggle:hover {
    border-color: #2d3940;
}

.alaf-dropdown-toggle.active {
    border-color: #2d3940;
}

.alaf-dropdown-toggle i {
    position: absolute;
    right: 15px;
    font-size: 14px;
    /* No rotation for filter icon */
}

.alaf-dropdown-options .alaf-option-item {
    display: flex;
    width: 100%;
    align-items: center;
}


/* Fontello filter icon - blue color */

.alaf-dropdown-toggle .icon-filter {
    color: #5c5ee5;
}

.alaf-dropdown-toggle.active i {
    /* Filter icon doesn't rotate */
    transform: none;
}

.alaf-dropdown-text {
    color: #000;
}

.alaf-dropdown-menu {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: calc(100% + 8px);
    /* Add spacing below button */
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #4a90e2;
    border-radius: 8px;
    /* Rounded corners all around */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow: hidden;
    flex-direction: column;
}

.alaf-dropdown-menu.show {
    display: flex;
    /* Show when toggle is clicked */
}

.alaf-dropdown-search {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

input[type="text"].alaf-taxonomy-search {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    padding: 7px 12px;
}

.alaf-taxonomy-search:focus {
    border-color: #4a90e2;
}

.alaf-dropdown-options {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.alaf-option-item {
    display: flex;
    align-items: center;
    padding: 4px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.alaf-option-item:hover {
    background: #f5f5f5;
}

.alaf-option-item.alaf-select-all {
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.alaf-option-item input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4a90e2;
    flex-shrink: 0;
}

.alaf-option-item input[type="checkbox"]:checked {
    background-color: #4a90e2;
}

.alaf-option-item span {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.alaf-option-item.hidden {
    display: none;
}

.alaf-dropdown-actions {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #eee;
}

.alaf-btn-clear,
.alaf-btn-apply {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.alaf-btn-clear {
    background: #f5f5f5;
    color: #666;
}

.alaf-btn-clear:hover {
    background: #0c275a;
     color: white;
}

.alaf-btn-apply {
    background: #ff5722;
    color: white;
}

.alaf-btn-apply:hover {
    background: #ff0000;
}


/* Active Filters Tags */

.alaf-active-filters {
    margin-bottom: 20px;
}

.alaf-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alaf-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #e8f1fa;
    border: 1px solid #4a90e2;
    border-radius: 20px;
    font-size: 14px;
    color: #333;
}

.alaf-filter-tag i {
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.alaf-filter-tag i:hover {
    color: #d9534f;
}


/* Results Header */

.alaf-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.alaf-results-count {
    color: #000000;
    font-size: 18px;
}

.alaf-count-number {
    color: #ef2f92;
    font-size: 18px;
}

/* Letter Filter */

.alaf-letter-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Spacing between letters */
    flex-wrap: wrap;
}

.alaf-jump-label {
    font-size: 18px;
    color: #6e389e;
    margin-right: 0;
    display: block;
    width: 100%;
    line-height: 26px;
    font-weight: 400;
}

.alaf-letter-btn {
    border: none;
    background: 0 0;
    color: #2c2cff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transition: none;
}

.alaf-letter-btn:hover {
    /* No hover effect - intentionally empty */
    cursor: pointer;
}

.alaf-letter-btn.active {
    font-weight: 500;
    /* Bold when active */
    color: #f00;
}


/* Products Section */

.alaf-products-section {
    background: #fff;
    border-radius: 0;
    padding: 30px 0 0;
    border-top: 1px solid #ccc;
}

.alaf-products-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 15px;
    padding: 15px 20px;
    background: #f8eaf1;
    border-radius: 0;
    margin-bottom: 0;
}

.alaf-header-col {
    font-size: 20px;
    font-weight: 400;
    color: #ed2690;
    line-height: 24px;
}

.alaf-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #4a90e2;
}

.alaf-loading i {
    font-size: 24px;
    margin-right: 10px;
}


/* Products Table */

.alaf-products-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.alaf-product-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr;
    gap: 15px;
    padding: 20px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    transition: background 0.2s;
    align-items: center;
}

.alaf-product-row:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.alaf-product-row:last-child {
    border-bottom: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.alaf-product-row:hover {
    background: #f9fbfd;
}

.alaf-product-col {
    line-height: 24px;
    font-size: 18px;
    font-weight: 400;
}

.alaf-col-product {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.alaf-product-title {
    font-weight: 500;
    padding: 0;
    font-size: 24px;
    line-height: 34px;
    margin: 0 0 2px;
}

.alaf-product-title a {
    color: #1f1f1f;
    text-decoration: none;
    transition: color 0.3s;
}

.alaf-product-title a:hover {
    color: #f00;
    text-decoration: underline;
}

.alaf-cas-number {
    font-size: 18px;
    color: #0c275a;
    margin: 0;
    line-height: 24px;
    font-weight: 400;
}

.alaf-col-category,
.alaf-col-regulations {
    color: #000;
}


/* No Results */

.alaf-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
}


/* Pagination */

.alaf-pagination {
    margin-top: 30px;
    text-align: center;
}

.alaf-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 5px;
}

.alaf-pagination li {
    display: inline-block;
}

.alaf-pagination a,
.alaf-pagination span {
    display: block;
    padding: 8px 14px;
    background: white;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.alaf-pagination a:hover {
    background: #f00;
    color: white;
    border-color: #f00;
}

.alaf-pagination .current {
    background: #f00;
    color: white;
    border-color: #f00;
}


/* Mobile Filter Toggle Button (Hidden on desktop) */

.alaf-mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
}

.alaf-mobile-filter-toggle i {
    font-size: 18px;
}


/* Mobile Filter Header (Hidden on desktop) */

.alaf-mobile-filter-header {
    display: none;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.alaf-mobile-back-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #4a90e2;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 15px;
}

.alaf-mobile-filter-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}


/* Mobile Search Button (Hidden on desktop) */

.alaf-mobile-search-btn-wrapper {
    display: none;
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    position: sticky;
    bottom: 0;
}

.alaf-mobile-search-btn {
    width: 100%;
    padding: 15px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.alaf-mobile-search-btn:hover {
    background: #357abd;
}


/* Mobile Overlay */

.alaf-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.alaf-mobile-overlay.show {
    display: block;
}

/* Click outside to close dropdown */

.alaf-dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: none;
}

.alaf-dropdown-backdrop.show {
    display: block;
}

/* Check Price Button Styles */
.alaf-col-regulations a.alaf-price-button {
    padding: 0.3em 1em;
    border: 2px solid #ff0000;
    border-radius: 50px;
    color: #ff0000;
    font-size: 16px;
    font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
    font-weight: 500;
}

.alaf-col-regulations a.alaf-price-button:hover, .alaf-col-regulations a.alaf-price-button:focus {
    background: #ff0000;
    color: #fff;
}

.alaf-col-regulations a.alaf-price-button i {
    margin-left: 5px;
    transition: color 0.3s ease;
}

.alaf-col-regulations a.alaf-price-button:hover i,
.alaf-col-regulations a.alaf-price-button:focus i {
    color: #fff;
}

/* Screenshot-style product filter layout */

.alaf-hero {
    background: #2127f4;
    color: #fff;
    padding: 55px 20px;
    text-align: center;
}

.alaf-hero-title {
    margin: 0;
    color: #fff;
    font-size: 48px;
    line-height: 58px;
    font-weight: 700;
    padding: 0;
}

.alaf-hero-subtitle {
    margin: 15px 0 20px;
    color: rgba(255,255,255,.92);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    padding: 0;
}

.alaf-filters-wrapper {
    max-width: 1120px;
    margin: 0 auto;
}

.alaf-search-desktop-mobile {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.alaf-search-input-wrapper {
    min-height: 56px;
    border-radius: 40px;
    border: 2px solid #f2f2f2;
}

.alaf-filter-item.alaf-search-desktop-mobile.alaf-search-expanded{
    border-radius: 5px;
}

.alaf-filter-item.alaf-search-desktop-mobile.alaf-search-expanded .alaf-search-input-wrapper{
    border-radius: 0;
    border-color: #fff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.alaf-search-category {
    flex-basis: 240px;
}

.alaf-search-category-select {
    height: 56px;
    font-size: 16px;
    font-weight: 500;
    color: #212121;
    padding-left: 18px;
    padding-right: 36px;
}

input[type="text"].alaf-search-input {
    height: 56px;
    font-size: 16px;
    font-weight: 500;
    padding-left: 40px;
}

.alaf-search-input::placeholder {
    font-size: 16px;
    color: #898989;
}

.alaf-search-icon {
    left: 16px;
    color: #e62a32;
}

.alaf-search-btn {
    height: 40px;
    padding: 0 20px;
    margin-right: 10px;
    font-size: 14px;
    letter-spacing: 1px;
}

.alaf-search-loader {
    right: 126px;
}

.alaf-hero-trust {
    margin-top: 20px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 0;
    line-height: 24px;
}

.alaf-hero-trust i {
    margin-right: 8px;
    color: #dce1ff;
}

.alaf-trust-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    margin-right: 8px;
    vertical-align: middle;
}

.alaf-content-area {
    max-width: 1920px;
    width: 90%;
    margin: 0 auto;
    padding: 30px 0 60px;
}

.alaf-results-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ddd;
}

.alaf-jump-label {
    width: auto;
    margin: 0;
    color: #444;
    font-size: 16px;
    line-height: 1;
}

.alaf-products-section {
    border-top: 0;
    padding-top: 0;
    background: transparent;
}

.alaf-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.alaf-product-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .06);
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
}

.alaf-product-thumb {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 12px;
    margin-bottom: 10px;
    min-height: 138px;
}

.alaf-product-thumb img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
}

.alaf-product-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: #d4f3e0;
    color: #0d7744;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.alaf-product-pill i {
    font-size: 8px;
}

.alaf-active-ingredient {
    margin: 0 0 20px;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
}

a.alaf-price-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 999px;
    background: #f44336;
    color: #fff !important;
    border: 0;
    font-size: 16px;
    font-weight: 500;
    padding: 7px 30px;
    text-decoration: none;
    width: auto;
    margin: 0 auto;
}

a.alaf-price-button:hover {
    background: #ff0000;
}

.alaf-results .alaf-pagination ul.page-numbers {
  padding: 0;
}

/* Banner live search suggestions */
.banner-search-form .api-search-loader {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff0000;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.banner-search-form #search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #fff;
    border-top-color: #ddd;
    z-index: 9999;
    display: none;
    max-height: 180px;
    overflow-y: auto;
    border-radius: 0;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.banner-search-form .api-search-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.banner-search-form .api-search-results li {
    border-bottom: 1px solid #eee;
}

.banner-search-form .api-search-results li:last-child {
    border-bottom: none;
}

.banner-search-form .api-search-results a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 7px 10px;
}

.banner-search-form .api-search-results li:hover {
    background: #f5f5f5;
}

.banner-search-form .api-suggestion-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-search-form mark {
    background: rgba(255, 0, 0, 0.12);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

.banner-search-form .api-search-view-all a {
    justify-content: center;
    font-weight: 600;
}

.banner-search-form .api-search-no-results,
.banner-search-form .api-search-view-all {
    padding: 10px 12px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .alaf-hero-title {
        font-size: 42px;
        line-height: 52px;
    }
    .alaf-hero-subtitle {
        font-size: 18px;
    }
    .alaf-search-category-select,
    input[type="text"].alaf-search-input,
    .alaf-search-input::placeholder {
        font-size: 20px;
    }
    .alaf-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .alaf-product-title {
        font-size: 24px;
    }
}

@media (max-width: 1024px) {
    .alaf-products-header {
        display: none;
    }
    .alaf-product-row {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 0 15px;
    }
    .alaf-product-col:before {
        content: attr(data-label);
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
        color: #333;
    }
}

@media (max-width: 767px) {
    
    .alaf-hero {
        padding: 28px 14px 24px;
    }
    .alaf-hero-title {
        font-size: 30px;
        line-height: 40px;
    }
    .alaf-hero-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .alaf-search-input-wrapper {
        min-height: 48px;
        border-radius: 50px;
    }
    .alaf-search-category {
        display: none;
    }
    .alaf-search-category-select,
    input[type="text"].alaf-search-input {
        height: 48px;
        font-size: 13px;
    }
    .alaf-search-input::placeholder {
        font-size: 13px;
    }
    .alaf-search-btn {
        height: 36px;
        font-size: 11px;
        padding: 0 12px;
    }
    .alaf-hero-trust {
        font-size: 14px;
        gap: 12px;
    }
    .alaf-results-count {
        font-size: 16px;
    }
    .alaf-count-number {
        font-size: 20px;
    }
    .alaf-jump-label,
    .alaf-letter-btn {
        font-size: 14px;
    }
    .alaf-products-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 12px;
    }
    .alaf-product-title {
        font-size: 18px;
    }
    .alaf-active-ingredient {
        font-size: 13px;
    }
    a.alaf-price-button {
        font-size: 14px;
    }
    /* Hide desktop label, keep mobile clean */
    .alaf-label-desktop {
        display: none;
    }
    /* Mobile: Break the grid layout */
    .alaf-filters-wrapper {
        display: block;
        margin-bottom: 0;
    }
    /* Search box stays outside, not in hamburger */
    .alaf-search-desktop-mobile {
        display: block;
        margin-bottom: 15px;
        width: 100%;
    }
    .alaf-search-category {
        flex-basis: 140px;
    }
    .alaf-search-category-select {
        height: 48px;
        padding-left: 12px;
        font-size: 14px;
    }
    input[type="text"].alaf-search-input {
        height: 48px;
        font-size: 14px;
        padding-left: 40px;
    }
    .alaf-search-btn {
        height: 34px;
        padding: 0 12px;
        margin-right: 6px;
        font-size: 11px;
    }
    .alaf-search-loader {
        right: 82px;
    }
    .alaf-search-expand-panel h4 {
        font-size: 26px;
    }
    .alaf-search-desktop-only {
        display: none !important;
        /* Hide duplicate search in hamburger */
    }
    /* Show mobile filter toggle button */
    .alaf-mobile-filter-toggle {
        display: flex;
    }
    /* Hide desktop filters, convert to mobile drawer */
    .alaf-filters {
        display: flex;
        /* Override contents */
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        background: white;
        z-index: 9999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }
    .alaf-filters.show {
        transform: translateX(0);
        padding-top: 85px;
    }
    /* Show mobile header and search button */
    .alaf-mobile-filter-header {
        display: block;
    }
    .alaf-mobile-search-btn-wrapper {
        display: block;
    }
    /* Adjust filter items for mobile */
    .alaf-filters>.alaf-filter-item {
        padding: 15px 20px;
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
        margin: 0;
    }
    .alaf-filter-item>label {
        display: none;
        /* Hide only direct child "Location" labels on mobile */
    }
    /* Ensure dropdown option labels ARE visible */
    .alaf-option-item {
        display: flex !important;
    }
    .alaf-option-item span {
        display: inline !important;
    }
    .alaf-dropdown-wrapper {
        position: relative;
    }
    .alaf-dropdown-toggle {
        width: 100%;
        background: white;
        text-align: left;
    }
    /* Mobile dropdown - make it work properly */
    .alaf-dropdown-menu {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        border: 1px solid #ddd;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        border-radius: 8px;
        background: #f9f9f9;
        z-index: 1;
        max-height: 300px;
    }
    /* Ensure dropdown is visible when shown on mobile */
    .alaf-filters .alaf-dropdown-menu.show {
        display: flex !important;
    }
    /* Mobile dropdown toggle - ensure it's clickable */
    .alaf-filters .alaf-dropdown-toggle {
        position: relative;
        z-index: 2;
        pointer-events: auto;
    }
    .alaf-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .alaf-results-count {
        width: 100%;
    }
    .alaf-letter-filter {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        grid-row-gap: 0;
    }
    .alaf-letter-btn {
        font-size: 14px;
        flex-shrink: 0;
        padding: 5px;
    }
    /* Hide active filters tags on mobile or adjust */
    .alaf-active-filters {
        margin-top: 10px;
    }
    .alaf-filter-tags {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}