/* ═══════════════════════════════════════════
   LuxQuest Smart Filter v1.3
   Dark theme product cards + Glassmorphism filter bar
   Accent: #dbf227
   ═══════════════════════════════════════════ */

.lsf-wrapper *, .lsf-wrapper *::before, .lsf-wrapper *::after {
    box-sizing: border-box;
}

/* ─── Filter Bar (Glassmorphism) ─── */
.lsf-filter-bar {
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    border: 1px solid rgba(219, 242, 39, 0.06);
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 28px;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lsf-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* ─── Filter Buttons ─── */
.lsf-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
    outline: none;
}

.lsf-filter-btn:hover {
    background: rgba(219, 242, 39, 0.10);
    border-color: rgba(219, 242, 39, 0.30);
    color: #dbf227;
}

.lsf-filter-group.is-open .lsf-filter-btn,
.lsf-filter-group.has-active .lsf-filter-btn {
    background: rgba(219, 242, 39, 0.12);
    border-color: #dbf227;
    color: #dbf227;
}

.lsf-arrow {
    transition: transform 0.25s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.lsf-filter-group.is-open .lsf-arrow {
    transform: rotate(180deg);
}

/* ─── Badge ─── */
.lsf-filter-badge {
    background: #dbf227;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

/* ─── Dropdowns ─── */
.lsf-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 230px;
    max-width: 340px;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 200;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.lsf-filter-group {
    position: relative;
}

.lsf-filter-group.is-open .lsf-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lsf-dropdown-inner {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(219, 242, 39, 0.25) transparent;
}

.lsf-dropdown-inner::-webkit-scrollbar { width: 4px; }
.lsf-dropdown-inner::-webkit-scrollbar-track { background: transparent; }
.lsf-dropdown-inner::-webkit-scrollbar-thumb {
    background: rgba(219, 242, 39, 0.25);
    border-radius: 2px;
}

/* ─── Options ─── */
.lsf-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
    margin: 0;
    font-weight: normal;
}

.lsf-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.lsf-option input[type="checkbox"],
.lsf-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.lsf-check {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
    background: transparent;
}

.lsf-radio { border-radius: 50%; }

.lsf-option input:checked + .lsf-check {
    background: #dbf227;
    border-color: #dbf227;
}

.lsf-option input:checked + .lsf-check::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lsf-option input:checked + .lsf-radio::after {
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border: none;
    background: #000;
    border-radius: 50%;
    transform: none;
}

.lsf-option-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    flex: 1;
    line-height: 1.3;
}

.lsf-option-count {
    color: rgba(255, 255, 255, 0.30);
    font-size: 11px;
    flex-shrink: 0;
}

.lsf-option.is-zero {
    opacity: 0.25;
    pointer-events: none;
}

/* ─── Price Filter ─── */
.lsf-price-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lsf-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lsf-price-min,
.lsf-price-max {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 9px 12px;
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    -moz-appearance: textfield;
}

.lsf-price-min::-webkit-inner-spin-button,
.lsf-price-max::-webkit-inner-spin-button { -webkit-appearance: none; }

.lsf-price-min:focus,
.lsf-price-max:focus { border-color: #dbf227; }

.lsf-price-sep {
    color: rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
}

.lsf-price-apply {
    background: #dbf227;
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
    font-family: inherit;
}

.lsf-price-apply:hover { opacity: 0.85; }

/* ─── Results Bar ─── */
.lsf-results-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    min-height: 28px;
}

.lsf-count {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    font-weight: 500;
}

.lsf-active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.lsf-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(219, 242, 39, 0.10);
    border: 1px solid rgba(219, 242, 39, 0.20);
    border-radius: 20px;
    padding: 4px 8px 4px 12px;
    font-size: 12px;
    color: #dbf227;
}

.lsf-tag-remove {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(219, 242, 39, 0.15);
    border: none;
    color: #dbf227;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.lsf-tag-remove:hover {
    background: rgba(219, 242, 39, 0.25);
    color: #dbf227;
}

.lsf-clear-all {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lsf-clear-all:hover {
    border-color: #dbf227;
    color: #dbf227;
}

/* ═══════════════════════════════════════════
   PRODUCT GRID – Dark Cards
   Matches the original site design
   ═══════════════════════════════════════════ */

.lsf-products-wrap ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
}

/* ─── Product Card ─── */
.lsf-products-wrap ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lsf-products-wrap ul.products li.product:hover {
    border-color: #dbf227;
    box-shadow: 0 0 20px rgba(219, 242, 39, 0.12);
}

/* ─── Product Image ─── */
.lsf-products-wrap ul.products li.product a:first-child,
.lsf-products-wrap ul.products li.product .woocommerce-LoopProduct-link {
    display: block;
    position: relative;
    text-decoration: none !important;
    color: inherit;
}

.lsf-products-wrap ul.products li.product a img,
.lsf-products-wrap ul.products li.product .woocommerce-LoopProduct-link img {
    width: 100% !important;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0;
}

/* ─── Product Title ─── */
.lsf-products-wrap ul.products li.product .woocommerce-loop-product__title,
.lsf-products-wrap ul.products li.product h2,
.lsf-products-wrap ul.products li.product h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-align: center !important;
    padding: 14px 12px 16px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    background: #1c1c1c;
    text-decoration: none !important;
}

/* ─── Product Price ─── */
.lsf-products-wrap ul.products li.product .price {
    display: block;
    text-align: center;
    padding: 0 12px 14px;
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px;
}

.lsf-products-wrap ul.products li.product .price .amount {
    color: #fff !important;
    font-weight: 600;
}

.lsf-products-wrap ul.products li.product .price del {
    color: rgba(255, 255, 255, 0.35) !important;
}

.lsf-products-wrap ul.products li.product .price ins {
    text-decoration: none;
    color: #dbf227 !important;
    font-weight: 700;
}

/* ─── Read More / Add to Cart Button ─── */
.lsf-products-wrap ul.products li.product .button,
.lsf-products-wrap ul.products li.product a.button,
.lsf-products-wrap ul.products li.product .add_to_cart_button {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(8px);
    background: #dbf227 !important;
    color: #000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    text-decoration: none !important;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease !important;
    z-index: 5;
    white-space: nowrap;
    letter-spacing: 0;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.lsf-products-wrap ul.products li.product:hover .button,
.lsf-products-wrap ul.products li.product:hover a.button,
.lsf-products-wrap ul.products li.product:hover .add_to_cart_button {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(0);
}

.lsf-products-wrap ul.products li.product .button:hover,
.lsf-products-wrap ul.products li.product a.button:hover {
    background: #e8ff4a !important;
}

/* Eye icon after button text */
.lsf-products-wrap ul.products li.product .button::after,
.lsf-products-wrap ul.products li.product a.button::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

/* Image overlay on hover */
.lsf-products-wrap ul.products li.product a:first-child::after,
.lsf-products-wrap ul.products li.product .woocommerce-LoopProduct-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.lsf-products-wrap ul.products li.product:hover a:first-child::after,
.lsf-products-wrap ul.products li.product:hover .woocommerce-LoopProduct-link::after {
    opacity: 1;
}

/* ─── Sale Badge ─── */
.lsf-products-wrap ul.products li.product .onsale {
    background: #dbf227 !important;
    color: #000 !important;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
}

/* ─── Star Rating ─── */
.lsf-products-wrap .star-rating span::before {
    color: #dbf227 !important;
}

/* ─── No Results ─── */
.lsf-no-results {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.30);
    font-size: 15px;
    grid-column: 1 / -1;
}

/* ─── Loading State ─── */
.lsf-products-wrap {
    position: relative;
    min-height: 80px;
    transition: opacity 0.2s ease;
}

.lsf-products-wrap.is-loading {
    opacity: 0.3;
    pointer-events: none;
}

.lsf-products-wrap.is-loading::after {
    content: '';
    position: absolute;
    top: 120px;
    left: 50%;
    width: 32px;
    height: 32px;
    margin-left: -16px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: #dbf227;
    border-radius: 50%;
    animation: lsf-spin 0.6s linear infinite;
    z-index: 10;
}

@keyframes lsf-spin {
    to { transform: rotate(360deg); }
}

/* ─── Load More ─── */
.lsf-pagination {
    text-align: center;
    margin-top: 40px;
}

.lsf-load-more {
    background: transparent;
    color: #dbf227;
    border: 2px solid #dbf227;
    border-radius: 12px;
    padding: 13px 40px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.lsf-load-more:hover {
    background: #dbf227;
    color: #000;
}

.lsf-load-more.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   Responsive Grid
   ═══════════════════════════════════════════ */

@media (max-width: 1280px) {
    .lsf-products-wrap ul.products {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .lsf-products-wrap ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .lsf-products-wrap ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .lsf-filter-bar {
        padding: 10px 12px;
        border-radius: 12px;
    }
    .lsf-filters-row { gap: 6px; }
    .lsf-filter-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    .lsf-dropdown {
        position: fixed;
        top: auto !important;
        bottom: 0;
        left: 0 !important;
        right: 0;
        max-width: none;
        min-width: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    .lsf-filter-group.is-open .lsf-dropdown {
        transform: translateY(0);
    }
    .lsf-dropdown-inner { max-height: 50vh; }

    /* Touch: always show button on mobile */
    .lsf-products-wrap ul.products li.product .button,
    .lsf-products-wrap ul.products li.product a.button {
        position: relative !important;
        top: auto;
        left: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        text-align: center;
        justify-content: center;
        border-radius: 0 0 12px 12px !important;
        padding: 10px 16px !important;
    }

    .lsf-products-wrap ul.products li.product a:first-child::after,
    .lsf-products-wrap ul.products li.product .woocommerce-LoopProduct-link::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .lsf-products-wrap ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    .lsf-products-wrap ul.products li.product .woocommerce-loop-product__title,
    .lsf-products-wrap ul.products li.product h2 {
        font-size: 12px !important;
        padding: 10px 8px 12px !important;
    }
}

/* ─── Mobile Overlay ─── */
.lsf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.lsf-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
