/* Shop Page - Premium Dark Theme - TEST VERSION
   Luxury filter sidebar with refined UX */

.shop-content {
    padding-top: var(--space-lg);
    background: var(--primary-black);
    min-height: calc(100vh - 64px);
    overflow-x: hidden;
    width: 100%;
}

.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 8px;
}

/* Products Section - Main content area */
.products-section {
    width: 100%;
    min-width: 0; /* Prevent grid blowout */
}

/* ========================================
   FILTERS SIDEBAR - LUXURY EDITION
   ======================================== */

.filters-sidebar {
    height: fit-content;
    position: sticky;
    top: 80px;
    width: 100%;
    max-width: 280px;
    background: linear-gradient(
        168deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.015) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    backdrop-filter: blur(24px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Filters Header */
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.filters-header h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.clear-filters {
    background: none;
    border: none;
    color: rgba(212, 175, 125, 0.75);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 0;
    position: relative;
}

.clear-filters::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 125, 0.8), rgba(212, 175, 125, 0.4));
    transition: width 0.3s ease;
}

.clear-filters:hover {
    color: rgba(212, 175, 125, 1);
}

.clear-filters:hover::after {
    width: 100%;
}

/* Active Filter Chips */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2), rgba(99, 91, 255, 0.15));
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-chip:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.35), rgba(99, 91, 255, 0.25));
    border-color: rgba(147, 51, 234, 0.5);
    transform: translateY(-1px);
}

.filter-chip .remove {
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.filter-chip:hover .remove {
    opacity: 1;
    transform: scale(1.1);
}

/* Filter Groups */
.filter-group {
    margin-bottom: 8px;
    position: relative;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.filter-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    user-select: none;
    transition: all 0.25s ease;
    border-bottom: 1px solid transparent;
}

.filter-title:hover {
    color: rgba(255, 255, 255, 0.8);
}

.filter-title::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 1.5px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -4px;
}

.filter-group.expanded .filter-title::after {
    transform: rotate(-135deg);
    margin-top: 4px;
    border-color: rgba(147, 51, 234, 0.8);
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: rgba(147, 51, 234, 0.25);
    border-radius: 9px;
    font-size: 10px;
    font-weight: 600;
    color: rgba(147, 51, 234, 1);
    margin-left: 8px;
}

/* Filter Content */
.filter-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition:
        max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.25s ease,
        padding 0.25s ease;
    padding: 0;
}

.filter-group.expanded .filter-content {
    max-height: 400px;
    padding: 12px 0 20px 0;
    opacity: 1;
}

.filter-group.expanded {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 0 16px;
    margin-left: -16px;
    margin-right: -16px;
}

/* Brand Search */
.brand-search {
    margin-bottom: 12px;
}

.brand-search input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 400;
    transition: all 0.25s ease;
}

.brand-search input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.brand-search input:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    margin: 0 -12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background: rgba(255, 255, 255, 0.04);
}

/* Custom Checkbox/Radio */
.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
}

.filter-option input[type="radio"] {
    border-radius: 50%;
}

.filter-option input[type="checkbox"]:hover,
.filter-option input[type="radio"]:hover {
    border-color: rgba(147, 51, 234, 0.5);
    background: rgba(147, 51, 234, 0.1);
}

.filter-option input:checked {
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

/* Checkmark SVG */
.filter-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    animation: checkmark 0.15s ease-out;
}

@keyframes checkmark {
    0% { transform: rotate(45deg) scale(0); opacity: 0; }
    50% { transform: rotate(45deg) scale(1.2); }
    100% { transform: rotate(45deg) scale(1); opacity: 1; }
}

/* Radio dot */
.filter-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    animation: radioDot 0.15s ease-out;
}

@keyframes radioDot {
    0% { transform: translate(-50%, -50%) scale(0); }
    50% { transform: translate(-50%, -50%) scale(1.3); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.filter-option span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.filter-option:hover span {
    color: rgba(255, 255, 255, 0.95);
}

.filter-option input:checked + span {
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
}

/* Size Grid Layout */
.filter-options.size-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.size-option {
    justify-content: center;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin: 0;
}

.size-option input {
    display: none;
}

.size-option span {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.size-option:hover {
    background: rgba(147, 51, 234, 0.1);
    border-color: rgba(147, 51, 234, 0.3);
}

.size-option:has(input:checked) {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.25), rgba(99, 91, 255, 0.2));
    border-color: rgba(147, 51, 234, 0.5);
}

.size-option:has(input:checked) span {
    color: white;
}

/* Scrollable Options */
.filter-options.scrollable {
    max-height: 280px;
    overflow-y: scroll;
    padding-right: 8px;
    margin-right: -8px;
}

.filter-options.scrollable::-webkit-scrollbar {
    width: 6px;
}

.filter-options.scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

.filter-options.scrollable::-webkit-scrollbar-thumb {
    background: rgba(147, 51, 234, 0.3);
    border-radius: 2px;
    transition: background 0.2s ease;
}

.filter-options.scrollable::-webkit-scrollbar-thumb:hover {
    background: rgba(147, 51, 234, 0.5);
}

/* Price Range */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.price-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.price-label {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

.price-separator {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* Dual Range Slider */
.price-slider-container {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.slider-range {
    position: absolute;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--purple-dark));
    border-radius: 2px;
    pointer-events: none;
}

.price-slider {
    position: absolute;
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.4);
    transition: all 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.5);
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Apply Button */
.btn-apply-filters {
    width: 100%;
    margin-top: 24px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-apply-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(147, 51, 234, 0.35),
        0 4px 12px rgba(99, 91, 255, 0.2);
}

.btn-apply-filters:hover::before {
    left: 100%;
}

.btn-apply-filters:active {
    transform: translateY(0);
}

.apply-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

/* ========================================
   RESULTS BAR
   ======================================== */

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.results-info {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.sort-dropdown select {
    padding: 10px 36px 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.sort-dropdown select:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.06);
}

.sort-dropdown select:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.sort-dropdown select option {
    background: #0a0a0f;
    color: rgba(255, 255, 255, 0.9);
    padding: 12px;
}

/* ========================================
   PRODUCTS GRID
   ======================================== */

/* Grid and card styles moved to product-card.css */

.product-link {
    text-decoration: none;
    display: block;
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 16px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 0;
}

.product-brand {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(212, 175, 125, 0.7);
    display: block;
    margin-bottom: 6px;
}

.product-name {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 8px 0;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.product-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    display: block;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.price {
    font-size: 17px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

/* Add to Cart */
.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-card:hover .add-to-cart-btn {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark)) !important;
    border-color: transparent !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h3 {
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.no-results p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
}

.no-results a {
    color: rgba(147, 51, 234, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.no-results a:hover {
    color: rgba(147, 51, 234, 1);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .shop-layout {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }

    /* Grid responsive handled by product-card.css */
}

@media (max-width: 768px) {
    .filters-sidebar {
        display: none;
    }

    .shop-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 4px;
    }

    .mobile-filter-bar {
        display: flex !important;
    }

    .mobile-filter-panel,
    .mobile-sort-panel {
        display: block !important;
    }

    .overlay {
        display: block;
    }

    /* Grid styles handled by product-card.css */
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    margin-bottom: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.page-link:hover {
    background: rgba(147, 51, 234, 0.15);
    border-color: rgba(147, 51, 234, 0.4);
    color: rgba(255, 255, 255, 0.95);
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
}

.page-dots {
    color: rgba(255, 255, 255, 0.4);
    padding: 0 8px;
}

/* ========================================
   MOBILE FILTER BAR
   ======================================== */

.mobile-filter-bar {
    display: none;
    position: sticky;
    top: 60px;
    z-index: 100;
    background: var(--primary-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    gap: 12px;
}

.mobile-filter-btn,
.mobile-sort-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mobile-filter-btn:active,
.mobile-sort-btn:active {
    background: rgba(147, 51, 234, 0.2);
}

/* ========================================
   MOBILE PANELS
   ======================================== */

.mobile-filter-panel,
.mobile-sort-panel {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.98), rgba(10, 10, 15, 1));
    border-top: 2px solid rgba(147, 51, 234, 0.5);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-filter-panel.active,
.mobile-sort-panel.active {
    transform: translateY(0);
}

.panel-header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 15, 0.98);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h3 {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.close-panel {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close-panel:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile Filter Styles */
.mobile-filters {
    padding: 24px;
}

.mobile-filters .filter-group {
    margin-bottom: 24px;
}

.mobile-filters .filter-title {
    padding: 0 0 12px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-filters .filter-title::after {
    display: none;
}

.filter-options.mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-pill input {
    display: none;
}

.filter-pill.active,
.filter-pill:has(input:checked) {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.25), rgba(99, 91, 255, 0.2));
    border-color: rgba(147, 51, 234, 0.5);
    color: white;
}

.price-inputs.mobile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-inputs.mobile input {
    flex: 1;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.price-inputs.mobile span {
    color: rgba(255, 255, 255, 0.4);
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-clear {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-clear:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
}

.btn-apply {
    flex: 2;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-purple), var(--purple-dark));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3);
}

/* Mobile Sort Options */
.sort-options {
    padding: 24px;
}

.sort-option {
    display: flex;
    align-items: center;
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease;
}

.sort-option input {
    display: none;
}

.sort-option.active,
.sort-option:has(input:checked) {
    color: rgba(212, 175, 125, 1);
}

.sort-option.active::before,
.sort-option:has(input:checked)::before {
    content: '✓';
    margin-right: 12px;
    color: rgba(147, 51, 234, 1);
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(4px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Search Header */
.search-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-title {
    font-size: 28px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 12px 0;
}

.search-query {
    color: rgba(212, 175, 125, 0.9);
    font-style: italic;
}

.search-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}
