/**
 * Sol24 Smart Search
 */

/* Header-Suchfeld GROSS machen (800px wie Overlay) */
.dgwt-wcas-search-wrapp {
    width: 800px !important;
    max-width: 90vw !important;
}

.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp {
    width: 100% !important;
}

.dgwt-wcas-search-wrapp input.dgwt-wcas-search-input {
    width: 100% !important;
    height: 50px !important;
    font-size: 18px !important;
    border-radius: 16px !important;
    padding: 0 24px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
}

/* Header sticky wenn Suche offen */
body.sol24-search-active header,
body.sol24-search-active .site-header,
body.sol24-search-active #masthead,
body.sol24-search-active .elementor-location-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 999980 !important;
}

body.sol24-search-active {
    padding-top: 0 !important;
}

/* FiboSearch komplett ausblenden - Desktop & Mobile */
.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-details-wrapp,
.dgwt-wcas-overlay,
.dgwt-wcas-search-results,
.dgwt-wcas-preloader,
.dgwt-wcas-search-submit,
.dgwt-wcas-ico-magnifier,
.dgwt-wcas-ico-magnifier-handler,
.dgwt-wcas-close,
.dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit,
.dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp::after,
.dgwt-wcas-om-bar,
.dgwt-wcas-overlay-mobile,
.dgwt-wcas-enable-mobile-form,
.js-dgwt-wcas-enable-mobile-form,
div[class*="dgwt-wcas-search-results"],
div[class*="dgwt-wcas-details"],
div[class*="dgwt-wcas-suggestions"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

/* Body scroll lock für Mobile */
body.sol24-no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Backdrop */
.sol24-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999990;
    display: none;
}

.sol24-backdrop.active {
    display: block;
}

/* Suchfeld-Highlight - über Backdrop, unter Dropdown */
.sol24-search-highlight {
    position: fixed;
    z-index: 999995;
    background: #fff;
    display: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 4px 25px rgba(0,0,0,0.2);
}

.sol24-search-highlight.active {
    display: block;
}

.sol24-highlight-input {
    width: 100%;
    height: 100%;
    border: none !important;
    border-radius: 16px 16px 0 0 !important;
    padding: 0 24px;
    font-size: 18px;
    outline: none !important;
    box-sizing: border-box;
    font-family: inherit;
    background: #fff;
}

.sol24-highlight-input:focus {
    outline: none !important;
}

/* Body-Klasse wenn Suche aktiv */
body.sol24-search-active .dgwt-wcas-search-wrapp,
body.sol24-search-active .elementor-search-form,
body.sol24-search-active form[role="search"] {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Dropdown Container */
.sol24-search-dropdown {
    position: absolute;
    min-width: 600px;
    max-width: 900px;
    background: #fff;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.25);
    z-index: 999999;
    display: none;
    max-height: 70vh;
    overflow: hidden;
    border-top: 1px solid #e0e0e0;
    /* Flex layout für fixierte Recent Bar unten */
    flex-direction: column;
}

.sol24-search-dropdown.active {
    display: flex;
}

/* Layout */
.sol24-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    flex: 1;
    min-height: 0; /* wichtig für flex overflow */
    overflow: hidden;
}

/* Sidebar */
.sol24-sidebar {
    background: #f8f9fa;
    padding: 16px;
    border-right: 1px solid #eee;
    overflow-y: auto;
    border-radius: 16px 0 0 0;
}

.sol24-section {
    margin-bottom: 20px;
}

.sol24-section:last-child {
    margin-bottom: 0;
}

.sol24-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* History löschen Button */
.sol24-clear-history {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    line-height: 1;
}

.sol24-clear-history:hover {
    background: #e0e0e0;
    color: #666;
}

/* Such-History & Autocomplete */
.sol24-history,
.sol24-autocomplete {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sol24-history a,
.sol24-autocomplete a {
    display: block;
    padding: 6px 10px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.15s;
}

.sol24-history a:hover,
.sol24-autocomplete a:hover,
.sol24-history li.keyboard-focus a,
.sol24-autocomplete li.keyboard-focus a {
    background: #fff;
    color: #7AB51D;
}

.sol24-autocomplete li.keyboard-focus a {
    background: #f0f8e8;
    outline: 2px solid #7AB51D;
    outline-offset: -2px;
}

.sol24-autocomplete a strong {
    color: #7AB51D;
    font-weight: 700;
}

/* Autocomplete Type Icons */
.sol24-autocomplete a[data-type="product"] {
    color: #7AB51D;
}

.sol24-autocomplete a[data-type="category"] {
    color: #5a8fc7;
}

.sol24-autocomplete a[data-type="brand"] {
    color: #e67e22;
}

/* Beliebte Suchen */
.sol24-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sol24-tags a {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.15s;
}

.sol24-tags a:hover {
    border-color: #7AB51D;
    color: #7AB51D;
    background: #f0f8e8;
}

/* Kategorien */
.sol24-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sol24-cats a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    transition: background 0.15s;
}

.sol24-cats a:hover,
.sol24-cats a.active {
    background: #fff;
    color: #7AB51D;
}

.sol24-cat-count {
    color: #999;
    font-size: 11px;
}

/* Unterkategorien */
.sol24-subcats {
    list-style: none;
    margin: 8px 0 0 10px;
    padding: 0;
    border-left: 2px solid #7AB51D;
    padding-left: 10px;
}

.sol24-subcats li {
    margin-bottom: 2px;
}

.sol24-subcats a {
    display: block;
    padding: 6px 10px;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.15s;
}

.sol24-subcats a:hover,
.sol24-subcats a.active {
    background: #f0f8e8;
    color: #7AB51D;
}

.sol24-subcat-all {
    font-weight: 600;
    color: #7AB51D !important;
}

.sol24-subcat-count {
    color: #999;
    font-size: 10px;
    margin-left: 4px;
}

.sol24-subcat-hint {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 13px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Hauptbereich */
.sol24-main {
    padding: 16px;
    overflow-y: auto;
    min-height: 0; /* wichtig für flex overflow */
    border-radius: 0 16px 0 0;
}

.sol24-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.sol24-main-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.sol24-count {
    font-size: 12px;
    color: #888;
}

/* Produkte */
.sol24-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Produkt Karte */
.sol24-product {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    align-items: flex-start;
    position: relative;
}

/* Badge für "Zuletzt angesehen" */
.sol24-product__badge {
    position: absolute;
    top: -6px;
    left: 12px;
    background: linear-gradient(135deg, #7AB51D 0%, #5a9010 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(122, 181, 29, 0.3);
}

/* "Nicht sofort lieferbar" Badge im Lieferzeit-Bereich */
.sol24-delivery-item--wait {
    background: #f39c12;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 10px;
}

/* Produkt nicht sofort verfügbar - dezent ausgegraut */
.sol24-product--not-available {
    opacity: 0.85;
}

.sol24-product--not-available .sol24-product__img {
    filter: grayscale(20%);
}

.sol24-product:hover,
.sol24-product.keyboard-focus {
    border-color: #7AB51D;
    background: #fafffe;
}

.sol24-product.keyboard-focus {
    outline: 2px solid #7AB51D;
    outline-offset: -2px;
}

.sol24-product__img {
    width: 70px;
    height: 70px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sol24-product__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sol24-product__info {
    flex: 1;
    min-width: 0;
}

.sol24-product__name {
    font-size: 13px;
    font-weight: 500;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    color: #333;
}

.sol24-product__name mark {
    background: #fff3cd;
    color: inherit;
    padding: 0 2px;
    border-radius: 2px;
}

.sol24-product__price {
    font-size: 15px;
    font-weight: 600;
    color: #7AB51D;
    margin-bottom: 6px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 6px;
}

/* Standard WooCommerce Sale-Format (del/ins) */
.sol24-product__price del {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    text-decoration: line-through !important;
    order: -1; /* Links vom neuen Preis */
}

.sol24-product__price ins {
    text-decoration: none !important;
    color: #c00 !important;
}

/* Custom Theme Format: <small class="regular-price"> für alten Preis */
.sol24-product__price small.regular-price,
.sol24-product__price .regular-price,
.sol24-product__price small.main-small-price {
    font-size: 11px !important;
    color: #999 !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    order: -1 !important; /* Links vom aktuellen Preis */
}

/* Sale-Preis in rot wenn regular-price vorhanden */
.sol24-product__price:has(.regular-price) > .woocommerce-Price-amount:first-child,
.sol24-product__price:has(.main-small-price) > .woocommerce-Price-amount:first-child {
    color: #c00 !important;
}

/* Lieferinfo - eine Zeile mit Icons */
.sol24-product__delivery {
    font-size: 11px;
    line-height: 1.4;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 4px;
}

.sol24-delivery-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.sol24-delivery-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.sol24-delivery--ok {
    color: #7AB51D;
}

.sol24-delivery--ok svg {
    fill: #7AB51D;
}

.sol24-delivery--wait {
    color: #f7a600;
}

.sol24-delivery--wait svg {
    fill: #f7a600;
}

/* Inline Passend dazu Zeile */
.sol24-fbt-row {
    display: none;
    padding: 8px 12px;
    background: #f8faf5;
    border-top: 1px dashed #e0e0e0;
    margin-top: -1px;
    border-radius: 0 0 10px 10px;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sol24-fbt-row::-webkit-scrollbar {
    display: none;
}

.sol24-fbt-row.active {
    display: flex;
}

.sol24-fbt-row.loading {
    display: flex;
}

.sol24-fbt-loading {
    font-size: 11px;
    color: #888;
    font-style: italic;
}

.sol24-fbt-label {
    font-size: 11px;
    color: #666;
    white-space: nowrap;
    font-weight: 600;
}

.sol24-fbt-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s;
}

.sol24-fbt-item:hover {
    border-color: #7AB51D;
    background: #f0f8e8;
}

.sol24-fbt-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.sol24-fbt-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sol24-fbt-item-name {
    font-size: 11px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.sol24-fbt-item-price {
    font-size: 11px;
    font-weight: 600;
    color: #7AB51D;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* Sale-Preise kompakt halten */
.sol24-fbt-item-price del {
    font-size: 9px;
    color: #999;
    font-weight: 400;
    margin-right: 4px;
}

.sol24-fbt-item-price ins {
    text-decoration: none;
}

.sol24-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    flex-shrink: 0;
    align-self: center;
}

.sol24-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

.sol24-btn--cart,
.sol24-search-dropdown .sol24-btn--cart,
.sol24-product .sol24-btn--cart,
button.sol24-btn--cart {
    background: #7AB51D !important;
    background-color: #7AB51D !important;
    color: #fff !important;
    border: none !important;
}

.sol24-btn--cart:hover,
.sol24-search-dropdown .sol24-btn--cart:hover,
button.sol24-btn--cart:hover {
    background: #6a9f1a !important;
    background-color: #6a9f1a !important;
    transform: scale(1.05);
}

.sol24-btn--cart.loading {
    opacity: 0.6;
    pointer-events: none;
}

.sol24-btn--cart.added {
    background: #5a9010 !important; /* Dunkleres Grün als Bestätigung */
}

/* Recent Bar - Zuletzt angesehene Produkte unten (IMMER sichtbar) */
.sol24-recent-bar {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
    flex-shrink: 0; /* Nicht schrumpfen - immer sichtbar */
}

.sol24-recent-bar__title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 10px;
}

.sol24-recent-bar__items {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sol24-recent-bar__items::-webkit-scrollbar {
    display: none;
}

.sol24-recent-bar__item {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 8px;
    padding-top: 14px; /* Platz für Badge */
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s;
}

.sol24-recent-bar__item:hover {
    border-color: #7AB51D;
    background: #f8faf5;
}

.sol24-recent-bar__item img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 6px;
}

.sol24-recent-bar__name {
    font-size: 10px;
    color: #333;
    text-align: center;
    line-height: 1.2;
    max-height: 24px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sol24-recent-bar__price {
    font-size: 10px;
    font-weight: 600;
    color: #7AB51D;
    margin-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.2;
}

/* Sale-Preis in Recent Bar: Durchgestrichener KLEIN oben, neuer GROSS unten */
/* Standard WooCommerce del/ins */
.sol24-recent-bar__price del {
    font-size: 8px !important;
    color: #999 !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    order: -1 !important;
    width: 100%;
    text-align: center;
}

.sol24-recent-bar__price ins {
    text-decoration: none !important;
    color: #c00 !important;
    font-weight: 600 !important;
    font-size: 10px !important;
    width: 100%;
    text-align: center;
}

/* Custom Theme Format: <small class="regular-price"> für alten Preis */
.sol24-recent-bar__price small.regular-price,
.sol24-recent-bar__price .regular-price {
    font-size: 8px !important;
    color: #999 !important;
    font-weight: 400 !important;
    text-decoration: line-through !important;
    order: -1 !important;
    width: 100%;
    text-align: center;
    display: block !important;
}

/* Erster Price-amount ist der aktuelle Preis */
.sol24-recent-bar__price > .woocommerce-Price-amount:first-child {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #7AB51D !important;
}

/* Badge für "Angesehen" in Recent Bar */
.sol24-recent-bar__badge {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: #7AB51D;
    color: #fff;
    font-size: 8px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 8px;
    white-space: nowrap;
}

/* Unterkategorien-Grid im rechten Panel */
.sol24-subcat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.sol24-subcat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s;
    min-height: 70px;
}

.sol24-subcat-card:hover {
    border-color: #7AB51D;
    background: #f8faf5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sol24-subcat-card--all {
    background: linear-gradient(135deg, #7AB51D 0%, #5a9010 100%);
    border-color: #7AB51D;
    color: #fff;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.sol24-subcat-card--all:hover {
    background: linear-gradient(135deg, #6a9f1a 0%, #4a800d 100%);
}

.sol24-subcat-card--all .sol24-subcat-card__name {
    color: #fff;
    font-weight: 600;
}

.sol24-subcat-card--all .sol24-subcat-card__arrow {
    font-size: 18px;
    font-weight: bold;
}

.sol24-subcat-card__name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.sol24-subcat-card__count {
    font-size: 11px;
    color: #888;
}

/* Footer */
.sol24-footer {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    text-align: center;
    background: #f8f9fa;
    border-radius: 0 0 16px 16px;
}

.sol24-footer a {
    color: #7AB51D;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}

.sol24-footer a:hover {
    text-decoration: underline;
}

/* Loading */
.sol24-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.sol24-loading-logo {
    width: 50px;
    height: 50px;
    animation: sol24-spin 1s ease-in-out infinite;
}

@keyframes sol24-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.sol24-empty {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
}

/* FBT Popup */
.sol24-fbt {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 340px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    z-index: 1000001;
    display: none;
}

.sol24-fbt.active {
    display: block;
}

.sol24-fbt__header {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sol24-fbt__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.sol24-fbt__close {
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.sol24-fbt__body {
    padding: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.sol24-fbt__item {
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    align-items: center;
}

.sol24-fbt__item:hover {
    background: #f8f9fa;
}

.sol24-fbt__img {
    width: 45px;
    height: 45px;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}

.sol24-fbt__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sol24-fbt__info {
    flex: 1;
    min-width: 0;
}

.sol24-fbt__name {
    font-size: 12px;
    margin: 0 0 3px 0;
    color: #333;
}

.sol24-fbt__price {
    font-size: 13px;
    font-weight: 600;
    color: #7AB51D;
}

.sol24-fbt__add {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: #7AB51D;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

/* Mobile Search Wrap - Suchfeld im Dropdown */
.sol24-mobile-search-wrap {
    display: none;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: relative;
    flex-shrink: 0;
}

.sol24-mobile-search-wrap .sol24-highlight-input {
    width: 100%;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 22px;
    padding: 0 16px;
    font-size: 16px;
    background: #f8f9fa;
    outline: none;
    box-sizing: border-box;
}

.sol24-mobile-search-wrap .sol24-highlight-input:focus {
    border-color: #7AB51D;
    background: #f8f9fa;
}

/* Mobile - Header bleibt sichtbar und unverändert, Dropdown darunter */
@media (max-width: 768px) {
    /* FiboSearch Mobile komplett weg */
    .dgwt-wcas-open,
    body.dgwt-wcas-open .dgwt-wcas-om-bar,
    body.dgwt-wcas-open .dgwt-wcas-overlay-mobile {
        display: none !important;
        visibility: hidden !important;
    }

    /* Menu-Suchfeld verstecken wenn unser Dropdown offen ist */
    body.sol24-no-scroll .s24-menu-search,
    body.sol24-search-active .s24-menu-search {
        display: none !important;
    }

    /* Mobile Search Wrap anzeigen */
    .sol24-mobile-search-wrap {
        display: block !important;
    }

    /* Backdrop NUR unter dem Header - Header bleibt unverändert */
    .sol24-backdrop.active {
        background: rgba(0, 0, 0, 0.4);
        /* top wird per JS gesetzt */
    }

    /* Search Highlight auf Mobile ausblenden */
    .sol24-search-highlight {
        display: none !important;
    }

    /* Dropdown direkt unter Header */
    .sol24-search-dropdown {
        position: fixed !important;
        /* top wird per JS gesetzt */
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        min-width: unset !important;
        max-width: unset !important;
        max-height: none !important;
        border-radius: 0 !important;
        overflow: hidden;
        flex-direction: column;
        border-top: none !important;
        box-shadow: none !important;
    }

    .sol24-search-dropdown.active {
        display: flex !important;
    }

    .sol24-body {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
        overflow: hidden;
    }

    /* Sidebar horizontal als Tabs */
    .sol24-sidebar {
        flex-shrink: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        max-height: 90px;
        overflow-y: auto;
        padding: 10px 12px;
        background: #f8f9fa;
    }

    .sol24-section {
        margin-bottom: 8px;
    }

    /* Beliebte Suchen auf Mobile ausblenden */
    .sol24-section--tags {
        display: none !important;
    }

    .sol24-title {
        font-size: 10px;
        margin-bottom: 6px;
    }

    /* Hauptbereich */
    .sol24-main {
        flex: 1;
        min-height: 0;
        border-radius: 0;
        overflow-y: auto;
        padding: 10px 12px;
    }

    .sol24-main-header {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .sol24-product {
        padding: 10px;
    }

    .sol24-product__img {
        width: 60px;
        height: 60px;
    }

    .sol24-product__name {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }

    .sol24-product__price {
        font-size: 14px;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: baseline !important;
        gap: 6px !important;
    }

    /* Sale-Preise auf Mobile: Alter Preis LINKS vom neuen */
    .sol24-product__price del,
    .sol24-product__price small.regular-price,
    .sol24-product__price small.main-small-price,
    .sol24-product__price .regular-price {
        font-size: 10px !important;
        color: #999 !important;
        font-weight: 400 !important;
        text-decoration: line-through !important;
        order: -1 !important;
    }

    .sol24-product__price ins {
        text-decoration: none !important;
        color: #c00 !important;
    }

    /* Lieferung/Abholung in einer Zeile */
    .sol24-product__delivery {
        font-size: 10px;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .sol24-product__delivery span,
    .sol24-product__delivery .sol24-delivery-item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .sol24-btn {
        width: 40px;
        height: 40px;
        align-self: flex-start;
        margin-top: 5px;
    }

    .sol24-fbt-row {
        padding: 8px 10px;
    }

    /* Kategorien horizontal auf Mobile */
    .sol24-cats {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 5px;
    }

    .sol24-cats li {
        flex-shrink: 0;
    }

    .sol24-cats a {
        padding: 6px 12px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 12px;
    }

    .sol24-cat-count {
        display: none;
    }

    /* Footer kompakter */
    .sol24-footer {
        padding: 10px 12px;
        border-radius: 0 0 16px 16px;
    }

    /* History und Autocomplete auf Mobile horizontal */
    .sol24-history,
    .sol24-autocomplete {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
    }

    .sol24-history li,
    .sol24-autocomplete li {
        flex-shrink: 0;
    }

    .sol24-history a,
    .sol24-autocomplete a {
        padding: 6px 12px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 20px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Badge auf Mobile kleiner */
    .sol24-product__badge {
        font-size: 8px;
        padding: 2px 6px;
        top: -4px;
        left: 8px;
    }

    /* Tags auf Mobile horizontal scrollbar */
    .sol24-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .sol24-tags li {
        flex-shrink: 0;
    }

    /* Subcategories auf Mobile */
    .sol24-subcats {
        margin: 8px 0 0 0;
        border-left: none;
        padding-left: 0;
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
    }

    .sol24-subcats li {
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .sol24-subcats a {
        padding: 6px 12px;
        background: #fff;
        border: 1px solid #7AB51D;
        border-radius: 20px;
        white-space: nowrap;
    }

    /* Subcat-Grid auf Mobile */
    .sol24-subcat-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .sol24-subcat-card {
        padding: 12px;
        min-height: 50px;
    }

    .sol24-subcat-card__name {
        font-size: 13px;
    }

    /* Recent Bar auf Mobile - etwas kompakter aber lesbar */
    .sol24-recent-bar {
        padding: 8px 10px;
        border-radius: 0;
    }

    .sol24-recent-bar__title {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .sol24-recent-bar__item {
        width: 65px;
        padding: 5px;
    }

    .sol24-recent-bar__item img {
        width: 38px;
        height: 38px;
    }

    .sol24-recent-bar__name {
        font-size: 9px;
    }

    .sol24-recent-bar__price {
        font-size: 9px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        line-height: 1.1 !important;
    }

    /* Sale-Preise in Recent Bar auf Mobile: Alter Preis OBEN */
    .sol24-recent-bar__price del,
    .sol24-recent-bar__price small.regular-price,
    .sol24-recent-bar__price small.main-small-price,
    .sol24-recent-bar__price .regular-price {
        font-size: 7px !important;
        color: #999 !important;
        font-weight: 400 !important;
        text-decoration: line-through !important;
        order: -1 !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    .sol24-recent-bar__price ins {
        text-decoration: none !important;
        color: #c00 !important;
        font-weight: 600 !important;
    }

    /* Aktueller Preis in rot wenn Sale */
    .sol24-recent-bar__price:has(.regular-price) > .woocommerce-Price-amount:first-child,
    .sol24-recent-bar__price:has(.main-small-price) > .woocommerce-Price-amount:first-child {
        color: #c00 !important;
    }
}
