/* Color Page Styles - Dark Theme Matching Product Page */
* {
    box-sizing: border-box;
}

body.dark-theme {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    background: #000000;
    color: #FFFFFF;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Main Content */
.main-content {
    margin: 70px;
    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;
    /* Ensure sidebar stretches */
}

/* Main Area */
.main-area {
    min-width: 0;
    /* Prevention for flex items overflow */
    display: flex;
    flex-direction: column;
}

/* Section Header (All Products) */
.section-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
}

/* Filters Sidebar - Mirrored from Product Page */
.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;
    width: 280px;
    /* Adding width here since it was removed from layout grid in color.js or similar? 
       Actually product page uses grid layout .content-layout.
       Color page uses .color-page-container { display: flex }.
       So we need fixed width or flex basis. 
       Product css uses .content-layout { grid-template-columns: 280px 1fr; }
       Here we should probably enforce width or min-width.
    */
    margin-right: 50px;
    /* Spacing from main content */
    flex-shrink: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.4);
}

.filter-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    color: #FFFFFF;
    text-transform: capitalize;
    font-family: 'Space Grotesk', sans-serif;
}

.clear-all {
    color: #00FFFF;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 0;
}

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

/* Filter Groups */
.filter-group_brand,
.filter-group_category {
    margin-bottom: 20px;
    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;
}

/* Options Containers */
.filter-options_brand,
.filter-options_category {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: auto;
    min-height: 0;
    max-height: 700px;
    /* Cap height like product page */
    overflow-y: auto;
    /* Allow scrolling if needed */
    overflow-x: hidden;
    padding-right: 8px;
    box-sizing: border-box;
}

.filter-options_category {
    padding: 12px;
}

/* Scrollbar for options */
.filter-options_brand::-webkit-scrollbar,
.filter-options_category::-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);
}

/* Checkbox (Category) & Radio (Brand) Options */
.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;
}

.checkbox-option:hover,
.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;
}

/* Select Brand Message */
.select-brand-message {
    text-align: center;
    color: #A9A9A9;
    padding: 20px 0;
    font-style: italic;
}

/* Mobile Brand Dropdown */
.mobile-color-brand-select {
    display: none;
    width: calc(100% - 40px);
    margin: 0 20px;
    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;
}

.mobile-color-brand-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);
}

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

/* Right Content Area */
.color-content-area {
    flex: 1;
    padding: 40px 50px;
    background: #000000;
    overflow-y: auto;
}

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



/* Search Section */
.search-section {
    margin-bottom: 30px;
}

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

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

.search-bar input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    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);
}

/* Color Swatches Section */
.color-swatches-section {
    margin-top: 0;
}

.color-swatches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.color-swatch-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.color-swatch-item: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);
}

.color-swatch-color {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.color-swatch-info {
    padding: 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    cursor: pointer;
    flex: 1;
}

.add-color-to-list-btn-swatch {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00FFFF 0%, #00CCCC 100%);
    color: #000000;
    border: none;
    border-radius: 0 0 14px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    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;
    margin-top: auto;
}

.add-color-to-list-btn-swatch::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-color-to-list-btn-swatch:hover::before {
    left: 100%;
}

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

.add-color-to-list-btn-swatch i {
    font-size: 14px;
}

.color-swatch-name {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.color-swatch-code {
    font-size: 0.875rem;
    color: #00FFFF;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
    letter-spacing: 0.5px;
}

.color-swatch-item.selected {
    border-color: #00FFFF;
    box-shadow: 0 0 0 4px rgba(0, 255, 255, 0.15), 0 12px 40px rgba(0, 255, 255, 0.3);
    transform: translateY(-6px);
}

/* Color Detail Modal */
.color-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-detail-modal.active {
    display: flex;
    opacity: 1;
}

.color-detail-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 255, 255, 0.2);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.color-detail-modal.active .color-detail-modal-content {
    transform: scale(1);
}

.color-detail-header {
    position: relative;
    height: 200px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.color-detail-color-preview {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.color-detail-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: #FFFFFF;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.color-detail-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: rotate(90deg);
    color: #FFFFFF;
    border-color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.7), 0 0 0 3px rgba(255, 255, 255, 0.5);
}

.color-detail-body {
    padding: 32px;
}

.color-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.color-detail-item:last-child {
    border-bottom: none;
}

.color-detail-label {
    font-size: 14px;
    font-weight: 600;
    color: #A9A9A9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.color-detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    text-align: right;
}

.color-detail-value.price {
    color: #00FFFF;
    font-size: 20px;
    font-weight: 700;
    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;
}

/* 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 - Reuse styles from product.css */
.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;
    display: flex;
    align-items: center;
    gap: 15px;
}

.list-item-color-preview {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    flex-shrink: 0;
}

.list-item-details {
    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-code {
    font-size: 14px;
    color: #A9A9A9;
    font-family: 'Space Grotesk', monospace;
}

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

.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);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .color-page-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    .color-page-container {
        flex-direction: column;
    }

    .color-families-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid rgba(0, 255, 255, 0.2);
        padding: 20px;
    }

    .sidebar-header {
        padding: 0 0 20px;
        margin-bottom: 20px;
    }

    .color-families-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .color-family-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .color-content-area {
        padding: 30px;
    }

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

@media (max-width: 768px) {
    .color-page-main {
        padding-top: 70px;
    }

    .color-families-sidebar {
        padding: 15px;
    }

    .sidebar-header {
        padding: 0 0 15px;
        margin-bottom: 15px;
    }

    .sidebar-brand {
        font-size: 1.3rem;
    }

    .sidebar-title {
        font-size: 0.85rem;
    }

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

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

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

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

    .color-brand-filter-group {
        margin-top: 20px;
        padding-top: 20px;
    }

    .color-brand-filter-title {
        margin-left: 0;
        font-size: 0.85rem;
    }

    .color-content-area {
        padding: 20px;
    }

    .color-content-header {
        margin-bottom: 30px;
        flex-direction: column;
        align-items: stretch;
    }

    .color-header-actions {
        width: 100%;
        margin-top: 20px;
    }

    .view-list-btn {
        width: 100%;
        justify-content: center;
    }

    .color-exploration-title {
        font-size: 1.8rem;
    }

    .color-exploration-subtitle {
        font-size: 1rem;
    }

    .color-search-section {
        margin-bottom: 30px;
    }

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

    .color-swatches-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

    .color-swatch-color {
        height: 150px;
    }

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

@media (max-width: 480px) {
    .color-page-main {
        padding-top: 60px;
    }

    .color-page-container {
        padding: 0;
    }

    .color-families-sidebar {
        padding: 15px;
        border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    }

    .sidebar-header {
        padding: 0 0 12px;
        margin-bottom: 12px;
    }

    .sidebar-brand {
        font-size: 1.2rem;
    }

    .sidebar-title {
        font-size: 0.8rem;
    }

    .mobile-color-family-select {
        width: 100%;
        margin: 0;
        padding: 14px 16px;
        font-size: 14px;
    }

    .color-content-area {
        padding: 15px;
    }

    .color-content-header {
        margin-bottom: 25px;
    }

    .color-exploration-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .color-exploration-subtitle {
        font-size: 0.9rem;
    }

    .color-search-bar input {
        padding: 14px 18px 14px 45px;
        font-size: 14px;
    }

    .color-search-bar .search-icon {
        left: 15px;
        font-size: 16px;
    }

    .color-swatches-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .color-swatch-color {
        height: 120px;
    }

    .color-swatch-info {
        padding: 12px;
    }

    .add-color-to-list-btn-swatch {
        padding: 10px;
        font-size: 12px;
    }

    .color-swatch-name {
        font-size: 0.9rem;
    }

    .color-swatch-code {
        font-size: 0.8rem;
    }

    .color-detail-modal-content {
        max-width: 90%;
        margin: 20px;
    }

    .color-detail-body {
        padding: 20px;
    }

    .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;
    }
}

@media (max-width: 360px) {
    .color-families-sidebar {
        padding: 12px;
    }

    .sidebar-brand {
        font-size: 1.1rem;
    }

    .color-content-area {
        padding: 12px;
    }

    .color-exploration-title {
        font-size: 1.3rem;
    }

    .color-swatches-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .color-swatch-color {
        height: 100px;
    }
}

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

/* Prevent horizontal scroll */
body.dark-theme {
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

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

/* 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%;
    }
}

/* Filters Sidebar - Matching Product Page */
.filters-sidebar {
    width: 280px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-right: 1px solid rgba(0, 255, 255, 0.2);
    padding: 40px 30px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

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

.filters-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.5px;
}

.filter-group {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.filter-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #A9A9A9;
    margin: 0 0 18px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.filter-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;
}

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

.filter-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.filter-option span {
    margin-left: 34px;
}

.filter-option input[type="radio"]+span::before {
    content: '';
    position: absolute;
    left: 8px;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.filter-option input[type="radio"]:checked+span::before {
    background: #00FFFF;
    border-color: #00FFFF;
}

.filter-option input[type="radio"]:checked+span::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 13px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #111111;
}

/* Pagination Styles */
.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;
    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);
}

.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 {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    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: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.page-number:hover {
    border-color: #00FFFF;
    color: #00FFFF;
    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: #666666;
    font-size: 18px;
    font-weight: 700;
    padding: 0 8px;
}

/* Empty and Error States */
.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #666666;
}

.empty-state i,
.error-state i {
    font-size: 64px;
    margin-bottom: 20px;
    color: #00FFFF;
    opacity: 0.5;
}

.empty-state p,
.error-state p {
    font-size: 18px;
    color: #999999;
}

.error-state {
    color: #ff6b6b;
}

.error-state i {
    color: #ff6b6b;
}

/* 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) {
    .page-title {
        font-size: 2rem;
    }

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