/* Product Page Styles */
body.dark-theme {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background: #000000;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Main Content */
.main-content {
    padding: 60px 0;
    flex: 1;
    background: #000000;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.5px;
    flex: 1;
}

/* Mobile Filter Toggle Button */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00FFFF 0%, #00CCCC 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.mobile-filter-toggle:hover {
    background: linear-gradient(135deg, #00CCCC 0%, #00FFFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

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

/* Content Layout */
.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 50px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

/* Filters Sidebar */
.filters-sidebar {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1), 0 0 0 1px rgba(0, 255, 255, 0.15);
    border: 1px solid rgba(0, 255, 255, 0.25);
    height: 100%;
    align-self: stretch;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Ensures text is vertically aligned */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.4);
    /* Thicker, more visible cyan line */
}

.filter-header h3 {
    font-size: 1.5rem;
    /* Larger font size like in screenshot */
    font-weight: 800;
    /* Extra bold */
    margin: 0;
    color: #FFFFFF;
    text-transform: capitalize;
    /* "Filters" is usually title case */
    font-family: 'Space Grotesk', sans-serif;
    /* Ensuring correct font */
}

.clear-all {
    color: #00FFFF;
    /* Cyan color */
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    /* Slightly larger */
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 0;
    /* Remove default button padding to align text */
}

.clear-all:hover {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    background: transparent;
    /* No background needed */
}


/* Separate filter groups for Brand and Category */
.filter-group_brand,
.filter-group_category {
    margin-bottom: 20px;
    /* Ensure container fits content height exactly ("be auto higth be base on Category") */
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.filter-group_brand:last-child,
.filter-group_category:last-child {
    margin-bottom: 0;
}

.filter-group_brand h4,
.filter-group_category h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 12px 0;
    flex-shrink: 0;
    /* Prevent title from shrinking */
}


/* Separate filter options for Brand and Category */
.filter-options_brand,
.filter-options_category {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Fit content height but respect max-height */
    height: auto;
    min-height: 0;
    max-height: 700px;
    overflow-y: hidden;
    /* Default: Disable scrolling ("make desable scollor") */
    overflow-x: hidden;
    padding-right: 8px;
    box-sizing: border-box;
    /* Ensure padding doesn't affect width/height */
}

/* Additional padding specifically for category options */
.filter-options_category {
    padding: 12px;
}

/* Custom scrollbar for filter options */
.filter-options_brand::-webkit-scrollbar,
.filter-options_category::-webkit-scrollbar {
    width: 0px;
    /* Hidden by default per user request ("LIKE HIN NOT SCOLLING BAR") */
    background: transparent;
}

/* Show scrollbar and ENABLE scrolling ONLY if this class is added (via JS when items >= 15) */
.filter-options_brand.show-scrollbar,
.filter-options_category.show-scrollbar {
    overflow-y: auto;
    /* Enable scrolling only when needed */
}

.filter-options_brand.show-scrollbar::-webkit-scrollbar,
.filter-options_category.show-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.filter-options_brand::-webkit-scrollbar-track,
.filter-options_category::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 3px;
}

.filter-options_brand::-webkit-scrollbar-thumb,
.filter-options_category::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.4);
    border-radius: 3px;
}

.filter-options_brand::-webkit-scrollbar-thumb:hover,
.filter-options_category::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.6);
}

/* Filter Dropdowns */
.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 15px;
    background: rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    backdrop-filter: blur(10px);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300FFFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.filter-select:focus {
    border-color: #00FFFF;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15), 0 4px 12px rgba(0, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.6);
}

.filter-select option {
    background: #1a1a1a;
    color: #FFFFFF;
    padding: 10px;
}

/* Checkbox and Radio Styles */
.checkbox-option,
.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #E0E0E0;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    margin: -8px;
}


/* Ensure identical hover for both Brand and Category ("be same on Brand") */
.checkbox-option:hover {
    color: #00FFFF;
    background: rgba(0, 255, 255, 0.05);
}

.radio-option:hover {
    color: #00FFFF;
    background: rgba(0, 255, 255, 0.05);
}

.checkbox-option input,
.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark,
.radio-mark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    margin-right: 14px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkmark {
    border-radius: 5px;
}

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

.checkbox-option input:checked~.checkmark {
    background: #00FFFF;
    border-color: #00FFFF;
}

.checkbox-option input:checked~.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #111111;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.radio-option input:checked~.radio-mark {
    background: #00FFFF;
    border-color: #00FFFF;
}

.radio-option input:checked~.radio-mark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111111;
}

/* Main Area */
.main-area {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 16px;
    padding: 40px;
    padding-bottom: 120px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1), 0 0 0 1px rgba(0, 255, 255, 0.15);
    border: 1px solid rgba(0, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    min-height: 100%;
}

/* Search Section */
.search-section {
    margin-bottom: 50px;
    width: 100%;
    box-sizing: border-box;
}

.search-bar {
    position: relative;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
}

.search-bar input {
    width: 100%;
    padding: 16px 50px 16px 24px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.4);
    color: #FFFFFF;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    backdrop-filter: blur(10px);
}

.search-bar input::placeholder {
    color: #666666;
}

.search-bar input:focus {
    border-color: #00FFFF;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15), 0 4px 12px rgba(0, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00FFFF;
    font-size: 18px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* Limit to 9 products (3 rows x 3 columns) */
.product-card:nth-child(n+10) {
    display: none;
}

/* Product Cards */
.product-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    min-width: 0;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00FFFF, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover {
    border-color: #00FFFF;
    box-shadow: 0 12px 40px rgba(0, 255, 255, 0.25), 0 0 0 1px rgba(0, 255, 255, 0.3);
    transform: translateY(-6px);
    background: linear-gradient(135deg, #1f1f1f 0%, #141414 100%);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 200px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.product-card:hover .product-image {
    border-color: rgba(0, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.7);
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

/* Default product icon when no image */
.default-product-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #00FFFF;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.default-product-icon i {
    font-size: 64px;
    margin-bottom: 10px;
}

.default-product-icon span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.product-card:hover .default-product-icon {
    opacity: 0.9;
    transform: scale(1.05);
}

.product-info {
    margin-bottom: 15px;
}

.brand {
    font-size: 12px;
    color: #00FFFF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-variant {
    font-size: 0.8rem;
    color: #CCCCCC;
    margin: 0 0 10px 0;
    line-height: 1.2;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #00FFFF;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* View List Button */
.view-list-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00FFFF 0%, #00CCCC 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    position: relative;
}

.view-list-btn:hover {
    background: linear-gradient(135deg, #00CCCC 0%, #00FFFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

.view-list-btn i {
    font-size: 16px;
}

.list-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #000000;
    color: #00FFFF;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    margin-left: -5px;
}

/* Add to List Buttons */
.add-to-list-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00FFFF 0%, #00CCCC 100%);
    color: #000000;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

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

.add-to-list-btn:hover::before {
    left: 100%;
}

.add-to-list-btn:hover {
    background: linear-gradient(135deg, #00CCCC 0%, #00FFFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

.add-to-list-btn.full-btn {
    padding: 14px 24px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 50px;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 12px;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    max-width: calc(100% - 40px);
    margin-left: auto;
    margin-right: auto;
}

.page-btn {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(0, 255, 255, 0.4);
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00FFFF;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.page-btn:hover:not(:disabled) {
    border-color: #00FFFF;
    color: #FFFFFF;
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-number {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(0, 255, 255, 0.4);
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00FFFF;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.page-number:hover {
    border-color: #00FFFF;
    color: #FFFFFF;
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

.page-number.active {
    background: linear-gradient(135deg, #00FFFF 0%, #00CCCC 100%);
    border-color: #00FFFF;
    color: #000000;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

.ellipsis {
    color: #00FFFF;
    font-size: 15px;
    padding: 0 8px;
}


/* Responsive Design */
@media (max-width: 1400px) {
    .container {
        max-width: 1400px;
        padding: 0 30px;
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 20px;
    }

    .content-layout {
        grid-template-columns: 240px 1fr;
        gap: 35px;
    }

    .filters-sidebar {
        padding: 25px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .page-header {
        margin-bottom: 25px;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .page-title {
        font-size: 2.2rem;
        flex: 1;
        min-width: 0;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: 25px;
        display: flex;
        flex-direction: column;
    }

    .filters-sidebar {
        position: static;
        order: 1;
        padding: 25px;
        margin-bottom: 0;
        display: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .filters-sidebar.show {
        display: block;
    }

    /* Hide desktop filters, show mobile dropdowns */
    .desktop-filters {
        display: none !important;
    }

    .mobile-filter-select {
        display: block !important;
        margin-top: 10px;
    }

    .main-area {
        order: 2;
        padding: 25px;
        width: 100%;
        overflow-x: hidden;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .search-section {
        width: 100%;
        margin-bottom: 30px;
    }

    .search-bar {
        max-width: 100%;
        width: 100%;
    }

    .search-bar input {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .main-content {
        padding: 40px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .page-header {
        margin-bottom: 30px;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-filter-toggle {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .page-title {
        font-size: 1.8rem;
        line-height: 1.2;
        word-wrap: break-word;
        width: 100%;
    }

    .content-layout {
        gap: 20px;
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .filters-sidebar {
        padding: 20px;
        border-radius: 12px;
        order: 1;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 0;
    }

    .filters-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .filters-header h3 {
        font-size: 1.1rem;
    }

    .clear-all {
        font-size: 12px;
        padding: 4px 10px;
    }

    .filter-group {
        margin-bottom: 25px;
    }

    .filter-group h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .filter-options {
        gap: 10px;
    }

    .checkbox-option,
    .radio-option {
        font-size: 14px;
        padding: 6px;
    }

    .checkmark,
    .radio-mark {
        width: 18px;
        height: 18px;
        margin-right: 12px;
    }

    .main-area {
        padding: 20px;
        border-radius: 12px;
        order: 2;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .search-section {
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-bar {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .search-bar input {
        padding: 12px 45px 12px 20px;
        font-size: 14px;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .search-icon {
        right: 15px;
        font-size: 16px;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .product-card {
        padding: 20px;
        border-radius: 12px;
    }

    .product-image {
        height: 220px;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .product-info {
        margin-bottom: 15px;
    }

    .brand {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .product-name {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .price {
        font-size: 1.1rem;
    }

    .add-to-list-btn {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 30px;
    }

    .page-number,
    .page-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
        border-radius: 8px;
    }

    .ellipsis {
        font-size: 14px;
        padding: 0 6px;
    }
}

@media (max-width: 360px) {

    /* Extra small phones */
    .container {
        padding: 0 12px;
    }

    .main-content {
        padding: 30px 0;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .filters-sidebar {
        padding: 15px;
    }

    .filters-header h3 {
        font-size: 1rem;
    }

    .filter-group h4 {
        font-size: 0.95rem;
    }

    .checkbox-option,
    .radio-option {
        font-size: 13px;
    }

    .main-area {
        padding: 15px;
    }

    .search-bar input {
        padding: 10px 40px 10px 18px;
        font-size: 13px;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .product-card {
        padding: 15px;
    }

    .product-image {
        height: 200px;
    }

    .product-name {
        font-size: 0.95rem;
    }

    .price {
        font-size: 1rem;
    }

    .add-to-list-btn {
        padding: 10px;
        font-size: 13px;
    }

    .page-number,
    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 1024px) and (orientation: landscape) {
    .filters-sidebar {
        position: static;
        max-height: none;
    }

    .main-content {
        padding: 40px 0;
    }
}

/* Ensure images are responsive */
.product-image img {
    max-width: 100%;
    height: auto;
    width: 100%;
    object-fit: contain;
}

/* Prevent horizontal scroll */
body {
    padding-top: 100px;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Ensure containers don't overflow */
* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Size Selection Modal */
.size-selection-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

.size-selection-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
    animation: slideUp 0.3s ease;
}

.size-selection-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.size-selection-modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.close-size-modal {
    background: transparent;
    border: none;
    color: #00FFFF;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-size-modal:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #FFFFFF;
    transform: rotate(90deg);
}

.size-selection-modal-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
}

.selected-product-info {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
}

.selected-product-info .product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 8px 0;
}

.selected-product-info .product-brand {
    font-size: 0.9rem;
    color: #00FFFF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.size-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.size-option {
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.size-option:hover {
    border-color: #00FFFF;
    background: rgba(0, 255, 255, 0.1);
    transform: translateX(5px);
}

.size-option.selected {
    border-color: #00FFFF;
    background: rgba(0, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.size-option-info {
    flex: 1;
}

.size-option-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.size-option-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00FFFF;
}

.size-option-check {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.size-option.selected .size-option-check {
    background: #00FFFF;
    border-color: #00FFFF;
}

.size-option.selected .size-option-check::after {
    content: '✓';
    color: #000000;
    font-size: 14px;
    font-weight: 700;
}

.size-selection-confirm-btn {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    background: linear-gradient(135deg, #00FFFF 0%, #00CCCC 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.size-selection-confirm-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00CCCC 0%, #00FFFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

.size-selection-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive for size selection modal */
@media (max-width: 768px) {
    .size-selection-modal {
        padding: 10px;
    }

    .size-selection-modal-content {
        max-height: 95vh;
    }

    .size-selection-modal-header {
        padding: 20px;
    }

    .size-selection-modal-header h2 {
        font-size: 1.5rem;
    }

    .size-selection-modal-body {
        padding: 20px;
    }

    .selected-product-info {
        padding: 15px;
    }

    .size-option {
        padding: 15px;
    }
}

/* List Modal */
.list-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.list-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.list-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

.list-modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
}

.close-list-modal {
    background: transparent;
    border: none;
    color: #00FFFF;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-list-modal:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #FFFFFF;
    transform: rotate(90deg);
}

.list-modal-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
    max-height: calc(90vh - 200px);
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.list-item:hover {
    border-color: rgba(0, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
}

.list-item-info {
    flex: 1;
}

.list-item-brand {
    font-size: 12px;
    color: #00FFFF;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.list-item-name {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.list-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #00FFFF;
}

.remove-list-item {
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid rgba(255, 0, 0, 0.4);
    color: #FF4444;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-list-item:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #FF4444;
    transform: scale(1.1);
}

.empty-list {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.empty-list i {
    font-size: 64px;
    margin-bottom: 20px;
    color: rgba(0, 255, 255, 0.3);
}

.empty-list p {
    font-size: 18px;
    margin: 0;
}

.list-total {
    padding: 20px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    text-align: right;
    font-size: 20px;
    font-weight: 700;
    color: #00FFFF;
}

.list-modal-footer {
    display: flex;
    gap: 15px;
    padding: 25px 30px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.clear-list-btn,
.download-list-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
}

.clear-list-btn {
    background: rgba(255, 0, 0, 0.2);
    color: #FF4444;
    border: 2px solid rgba(255, 0, 0, 0.4);
}

.clear-list-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #FF4444;
    transform: translateY(-2px);
}

.download-list-btn {
    background: linear-gradient(135deg, #00FFFF 0%, #00CCCC 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.download-list-btn:hover {
    background: linear-gradient(135deg, #00CCCC 0%, #00FFFF 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

/* List Notification */
.list-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #00FFFF 0%, #00CCCC 100%);
    color: #000000;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
    max-width: 350px;
}

.list-notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Touch-friendly targets for mobile */
@media (max-width: 768px) {

    .checkbox-option,
    .radio-option {
        min-height: 44px;
        padding: 10px;
    }

    .page-btn,
    .page-number {
        min-width: 44px;
        min-height: 44px;
    }

    .add-to-list-btn {
        min-height: 44px;
    }

    .clear-all {
        min-height: 32px;
        padding: 8px 12px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .view-list-btn {
        flex: 1;
        justify-content: center;
    }

    .list-modal {
        padding: 10px;
    }

    .list-modal-content {
        max-height: 95vh;
    }

    .list-modal-header {
        padding: 20px;
    }

    .list-modal-header h2 {
        font-size: 1.5rem;
    }

    .list-modal-body {
        padding: 20px;
        max-height: calc(95vh - 200px);
    }

    .list-modal-footer {
        padding: 20px;
        flex-direction: column;
    }

    .clear-list-btn,
    .download-list-btn {
        width: 100%;
    }

    .list-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}

/* Footer Styles */
.product-footer {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 40px 0;
    margin-top: 60px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-content {
    text-align: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.footer-notice {
    color: #CCCCCC;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    text-align: center;
    max-width: 900px;
}

.footer-notice i {
    color: #00FFFF;
    font-size: 16px;
    flex-shrink: 0;
}

.footer-copyright {
    color: #888888;
    font-size: 13px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    text-align: center;
    width: 100%;
    max-width: 900px;
}

/* Footer Responsive */
@media (max-width: 768px) {
    .product-footer {
        padding: 30px 0;
        margin-top: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-content {
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-notice {
        font-size: 13px;
        text-align: center;
        flex-direction: column;
        gap: 8px;
        margin: 0 auto 20px auto;
        max-width: 100%;
    }

    .footer-notice i {
        font-size: 14px;
    }

    .footer-copyright {
        font-size: 12px;
        padding-top: 15px;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .product-footer {
        padding: 25px 0;
        margin-top: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-content {
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-notice {
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
        margin: 0 auto 20px auto;
        max-width: 100%;
    }

    .footer-copyright {
        font-size: 11px;
        padding-top: 12px;
        text-align: center;
        margin: 0 auto;
        width: 100%;
    }

}

/* Mobile Filters UI */
.mobile-filters-container {
    display: none;
    /* Hidden on desktop */
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 1px solid rgba(0, 255, 255, 0.25);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.mobile-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.mobile-filters-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #FFFFFF;
}

.clear-all-mobile {
    background: none;
    border: none;
    color: #00FFFF;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: 'Space Grotesk', sans-serif;
    transition: color 0.3s ease;
}

.clear-all-mobile:hover {
    color: #FFFFFF;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

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

.mobile-filter-group:last-child {
    margin-bottom: 0;
}

.mobile-filter-group label {
    display: block;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1rem;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '\f078';
    /* FontAwesome chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00FFFF;
    pointer-events: none;
    font-size: 12px;
}

.mobile-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-select:focus {
    outline: none;
    border-color: #00FFFF;
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.6);
}

.mobile-select option {
    background: #1a1a1a;
    color: #FFFFFF;
    padding: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        /* Single column layout */
    }

    .filters-sidebar {
        display: none !important;
        /* Hide sidebar */
    }

    .mobile-filters-container {
        display: none;
        /* Hidden by default, toggled via JS */
        margin-top: 20px;
    }

    .mobile-filters-container.active {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .mobile-filter-toggle {
        display: flex !important;
        /* Show toggle button */
    }

    .mobile-filter-toggle.active {
        background: rgba(255, 255, 255, 0.1);
        color: #FFFFFF;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: none;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .page-title {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}