﻿:root {
    --primary: #cb0c9f;
    --primary-gradient: linear-gradient(310deg, #7928ca 0%, #cb0c9f 100%);
    --slate: #344767;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2.5rem;
    --nav-height: 80px;
    --glass-bg: rgba(255, 255, 255, 0.7);
}

body {
    background-color: #f8f9fa;
    background-image:
        radial-gradient(at 0% 0%, rgba(203, 12, 159, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(121, 40, 202, 0.05) 0px, transparent 50%);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card-premium {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(203, 12, 159, 0.2);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    width: 95%;
    max-width: 1200px;
    max-height: 95vh;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
}

.toast.active {
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Image Carousel */
.carousel-image {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    display: block;
    opacity: 1;
}

/* Inputs */
input,
select,
textarea {
    max-width: initial !important;
    /* Override template */
}

/* Filter Sidebar */
.filter-sidebar {
    background: white;
    /* More solid for visibility */
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100);
    padding: 1.75rem;
    position: sticky;
    top: calc(var(--nav-height) + 1.5rem);
    height: fit-content;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.filter-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-50);
}

.filter-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.filter-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--slate);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Price Slider Styles */
.range-slider-container {
    padding: 1rem 0.5rem 0;
}

.slider-track {
    width: 100%;
    height: 6px;
    background: var(--gray-100);
    border-radius: 10px;
    position: relative;
}

.slider-range {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    position: absolute;
    left: 0;
    right: 0;
}

.slider-handle {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(203, 12, 159, 0.2);
    transition: scale 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.slider-handle:hover {
    scale: 1.1;
    box-shadow: 0 6px 15px rgba(203, 12, 159, 0.3);
}

.slider-handle.active {
    scale: 1.2;
    background: var(--primary);
}

.slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
}

.price-box {
    flex: 1;
    background: var(--gray-50);
    padding: 0.75rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--gray-100);
}

.price-box label {
    display: block;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.price-box span {
    font-size: 13px;
    font-weight: 800;
    color: var(--slate);
}

/* Custom Checkbox Support */
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    color: var(--primary);
}

.checkbox-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--gray-200);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-item input[type="checkbox"]:checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-item input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-item label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate);
    cursor: pointer;
}

/* Search Container */
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(203, 12, 159, 0.1);
}

.search-input:focus+.search-icon {
    color: var(--primary);
}

/* Price Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Filter Buttons */
.clear-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: transparent;
    color: var(--gray-400);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.clear-filters-btn:hover {
    background: white;
    color: var(--primary);
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(203, 12, 159, 0.1);
}

/* Results Header */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.75rem;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.results-count {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
}

.results-count strong {
    color: var(--primary);
    font-weight: 900;
}

/* Sort Select */
.sort-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    padding: 0.625rem 2.5rem 0.625rem 1.25rem;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--slate);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cb0c9f' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.75rem;
    transition: all 0.2s ease;
}

.sort-select:hover {
    background-color: white;
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(203, 12, 159, 0.08);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Mobile Filter Enhancements */
.mobile-filter-btn {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 10px 25px rgba(203, 12, 159, 0.4);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-filter-btn:active {
    scale: 0.95;
    box-shadow: 0 5px 15px rgba(203, 12, 159, 0.3);
}

.filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1023px) {
    .filter-sidebar {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        max-height: 85vh;
        z-index: 1001;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
        top: auto;
        /* Override sticky */
    }

    .filter-sidebar.active {
        transform: translateY(0);
    }
}
/* Header Mobile Fixes */
@media (max-width: 1023px) {
    .nav-gap-responsive {
        gap: 0.75rem !important;
    }
    
    .mobile-hidden {
        display: none !important;
    }
    
    .nav-container-responsive {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}
