/* Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --bg-primary: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-hover: #1e2a4a;
    
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-led {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-props {
    color: var(--text-primary);
}

.logo-market {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: visible;
    z-index: 10;
}

.led-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(79, 172, 254, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(20px) rotate(-1deg); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1rem;
}

.price-disclaimer {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    margin: 2rem auto 0;
    max-width: 600px;
    font-size: 0.875rem;
    color: #fbbf24;
    text-align: center;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
    z-index: 100;
}

.search-box input {
    width: 100%;
    padding: 1rem 7rem 1rem 1.5rem;
    font-size: 1.125rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-search-btn {
    position: absolute;
    right: 4rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: none;
    overflow: visible;
    display: none;
    z-index: 9999;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    min-height: 70px;
}

.suggestion-item:last-child {
    border-bottom: none;
    padding-bottom: 1rem;
}

.suggestion-item:hover {
    background: var(--bg-hover);
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.suggestion-image-placeholder {
    width: 40px;
    height: 40px;
    background: var(--bg-hover);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.5;
}

.suggestion-content {
    flex: 1;
}

.suggestion-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.suggestion-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.suggestion-price {
    font-weight: 600;
    color: var(--success);
}

/* Quick Filters */
/* Category Grid in Hero */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.category-card-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.category-card-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.category-card-btn:hover::before {
    opacity: 0.1;
}

.category-card-btn .category-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.category-card-btn .category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.category-card-btn h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.category-card-btn .category-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Browse All Button */
.browse-all-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem auto;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.browse-all-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.browse-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.browse-all-btn:hover::before {
    width: 300px;
    height: 300px;
}

.quick-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chip:hover {
    border-color: #667eea;
    color: var(--text-primary);
}

.filter-chip.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.chip-count {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Categories */
.categories {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: #667eea;
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.category-card.active {
    background: var(--primary-gradient);
    color: white;
}

.category-card.active p {
    color: rgba(255, 255, 255, 0.9);
}

/* Category Products Display */
.category-products {
    margin-top: 3rem;
    display: none;
}

.category-products.active {
    display: block;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.category-header h3 {
    font-size: 1.75rem;
}

.close-category {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.close-category:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.category-props-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.prop-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.prop-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #667eea;
}

.prop-preview-image {
    height: 180px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.prop-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prop-preview-image:not(:has(img))::before {
    content: '🔮';
    font-size: 3rem;
    opacity: 0.3;
}

.prop-preview-image:not(:has(img))::after {
    content: 'Image Coming Soon';
    position: absolute;
    bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.prop-preview-content {
    padding: 1.5rem;
}

.prop-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.prop-preview-title h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.prop-preview-title p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.prop-preview-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success);
}

.prop-preview-features {
    list-style: none;
    margin-bottom: 1rem;
}

.prop-preview-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

.prop-preview-features li::before {
    content: '• ';
    color: #667eea;
    font-weight: bold;
}

.prop-preview-actions {
    display: flex;
    gap: 0.75rem;
}

.learn-more-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    text-align: center;
    font-size: 0.875rem;
    transition: var(--transition);
}

.learn-more-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.quick-compare-btn {
    padding: 0.75rem 1rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.quick-compare-btn:hover {
    transform: scale(1.05);
}

.quick-compare-btn.added {
    background: var(--success);
}

/* Products Section */
.products {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.filters-products-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    height: fit-content;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    position: sticky;
    top: 5rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.clear-filters {
    background: none;
    border: none;
    color: #667eea;
    cursor: pointer;
    font-size: 0.875rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.filter-option label {
    cursor: pointer;
    font-size: 0.875rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.filter-checkbox label {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.875rem;
}

.filter-count {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Products Grid */
.products-header {
    margin-bottom: 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.products-header h3 {
    font-size: 2rem;
    margin: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.result-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.result-count span {
    color: var(--text-primary);
    font-weight: 500;
}

/* Search in products section */
.products-search {
    max-width: 400px;
}

.products-search input {
    font-size: 1rem;
    padding: 0.75rem 6rem 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.products-search input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.products-search .search-btn {
    padding: 0.5rem 0.75rem;
}

.products-search .clear-search-btn {
    width: 28px;
    height: 28px;
    right: 3.5rem;
}

.sort-select {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    height: 200px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
    overflow: hidden;
    position: relative;
}

.product-image:not(:has(img))::before {
    content: '🔮';
    font-size: 4rem;
    opacity: 0.3;
}

.product-image:not(:has(img))::after {
    content: 'Image Coming Soon';
    position: absolute;
    bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

/* Variant navigation arrows */
.product-image.has-variants {
    position: relative;
}

.variant-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
    opacity: 0;
    z-index: 10;
    /* Better touch targets */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    min-width: 44px;
    min-height: 44px;
}

/* Show on hover for desktop */
.product-image:hover .variant-nav {
    opacity: 1;
}

/* Always show on touch devices */
@media (hover: none) and (pointer: coarse) {
    .product-image.has-variants .variant-nav {
        opacity: 0.7;
    }
}

/* Mobile devices - ensure good touch targets */
@media (max-width: 768px) {
    .variant-nav {
        padding: 0.875rem;
        opacity: 0.8;
    }
    
    .product-image.has-variants .variant-nav {
        opacity: 0.8;
    }
}

.variant-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Active state for touch feedback */
.variant-nav:active {
    transform: translateY(-50%) scale(0.95);
    background: rgba(0, 0, 0, 0.9);
}

.variant-nav-prev {
    left: 0.5rem;
}

.variant-nav-next {
    right: 0.5rem;
}

.variant-nav svg {
    width: 20px;
    height: 20px;
}

.product-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    min-height: 4rem;
}

.product-name {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    min-height: 1.5em;
}

.product-manufacturer {
    color: var(--text-secondary);
    font-size: 0.875rem;
    min-height: 1.2em;
}


.product-notes {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin: 0.75rem 0;
    font-size: 0.8rem;
    color: #fbbf24;
    line-height: 1.4;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--success);
    text-align: right;
    min-width: 100px;
}

.check-price-btn {
    background: var(--success);
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    display: inline-block;
    transition: var(--transition);
    white-space: nowrap;
}

.check-price-btn:hover {
    background: #0ea674;
    transform: translateY(-1px);
}

.check-price-btn-small {
    background: var(--success);
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    display: inline-block;
    transition: var(--transition);
}

.check-price-btn-small:hover {
    background: #0ea674;
    transform: translateY(-1px);
}

.product-features {
    list-style: none;
    margin-bottom: 1rem;
    min-height: 4.5rem;
    flex-grow: 1;
}

.product-features li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    line-height: 1.4;
    /* Allow text to wrap instead of truncating */
    white-space: normal;
    word-wrap: break-word;
}

.product-features li:not(.brightness-line):not(.weight-line)::before {
    content: '✓ ';
    color: var(--success);
    font-weight: bold;
}

.product-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #fbbf24;
}

.review-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
}

.action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.favorite-btn.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-btn.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.view-details {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.view-site {
    color: var(--success);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.view-site:hover {
    text-decoration: underline;
}

.view-site::after {
    content: '↗';
    font-size: 0.75rem;
}

.add-to-compare {
    padding: 0.5rem 1rem;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-compare:hover {
    background: var(--primary-gradient);
    border-color: transparent;
}

.add-to-compare.added {
    background: var(--success);
    border-color: transparent;
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Comparison Section */
.compare-section {
    padding: 4rem 0;
}

.comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.comparison-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.comparison-card h3 {
    margin-bottom: 1rem;
}

.vs-products {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.vs {
    font-weight: bold;
    color: var(--text-muted);
}

.compare-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

/* Comparison Basket */
.comparison-basket {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 100;
    max-width: 350px;
    transition: var(--transition);
}

.basket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.basket-header h3 {
    font-size: 1rem;
    margin: 0;
}

.basket-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.basket-toggle svg {
    transition: var(--transition);
}

.comparison-basket.collapsed .basket-toggle svg {
    transform: rotate(180deg);
}

.basket-content {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.comparison-basket.collapsed .basket-content {
    max-height: 0;
}

.basket-items {
    padding: 1rem;
    max-height: 250px;
    overflow-y: auto;
}

.basket-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
}

.basket-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--bg-hover);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.basket-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.basket-item-image {
    width: 50px;
    height: 50px;
    background: var(--bg-hover);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.5;
}

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

.basket-item-name {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.basket-item-price {
    color: var(--success);
    font-size: 0.875rem;
}

.remove-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

.remove-item:hover {
    color: var(--error);
}

.basket-actions {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
}

.basket-actions button {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Comparison Modal */
.comparison-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.comparison-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.print-comparison {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.print-comparison:hover {
    background-color: var(--bg-hover);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.comparison-table-wrapper {
    overflow-x: auto;
    padding: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-card);
    z-index: 1;
}

.comparison-table .product-header-cell {
    text-align: center;
}

.comparison-table .product-header-cell img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.comparison-table .price-cell {
    color: var(--success);
    font-weight: 600;
}

.comparison-table .rating-cell {
    color: #fbbf24;
}

.view-site-small {
    color: var(--success);
    text-decoration: none;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    display: inline-block;
}

.view-site-small:hover {
    text-decoration: underline;
}

.check-price-link {
    color: var(--success);
    text-decoration: none;
    font-weight: 600;
}

.check-price-link:hover {
    text-decoration: underline;
}

/* Important specification rows in comparison */
.comparison-table tr.important-spec {
    background: rgba(102, 126, 234, 0.05);
}

.comparison-table tr.important-spec td:first-child {
    border-left: 3px solid #667eea;
    padding-left: calc(1rem - 3px);
}

/* Guides Section */
.guides {
    padding: 4rem 0;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.guide-image {
    height: 200px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.guide-content {
    padding: 2rem;
}

.guide-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.guide-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.guide-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

/* Latest Updates */
.latest-updates {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.update-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.update-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.update-badge.new {
    background: var(--success);
    color: white;
}

.update-badge.price {
    background: var(--warning);
    color: white;
}

.update-badge.increase {
    background: #ef4444;
    color: white;
}

.update-badge.review {
    background: #667eea;
    color: white;
}

.update-card h3 {
    margin-bottom: 0.5rem;
}

.update-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.update-card time {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Multi-Seller Display */
.seller-options {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    min-height: 80px;
}

.seller-table {
    width: 100%;
    font-size: 0.875rem;
}

.seller-table th {
    text-align: left;
    padding: 0.5rem 0.5rem 0.5rem 0;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.seller-table td {
    padding: 0.5rem 0.5rem 0.5rem 0;
}

.seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.seller-badge.official {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.seller-badge.marketplace {
    background: rgba(237, 137, 54, 0.1);
    color: #c05621;
}

.seller-price {
    font-weight: 600;
    color: var(--success);
}

.seller-notes {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.check-price-mini {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    background: var(--primary-gradient);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: transform 0.2s;
}

.check-price-mini:hover {
    transform: translateY(-1px);
}

/* Single seller fallback */
.single-seller {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    min-height: 50px;
}

.single-seller.multi-buttons {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.seller-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.check-price-btn.amazon {
    background: #ff9900;
}

.check-price-btn.amazon:hover {
    background: #e88b00;
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: white;
}

.footer-links h4 {
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .guides-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .filters-products-wrapper {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }
    
    .comparison-basket {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}
/* Exact Price Display */
.exact-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4ade80;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.product-card .exact-price {
    font-size: 1.25rem;
    white-space: nowrap;
}

.price-cell .exact-price {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.price-tbd {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-style: italic;
    white-space: nowrap;
}

.seller-price {
    font-weight: 600;
}

/* Responsive adjustments for seller buttons */
@media (max-width: 480px) {
    .single-seller.multi-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .seller-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .seller-buttons .check-price-btn {
        width: 100%;
        text-align: center;
    }
}

/* Product Variants */
.product-variants {
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--bg-hover);
    border-radius: 6px;
}

.variant-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.variant-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.variant-option {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    font-weight: 500;
}

.variant-option:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.variant-option.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(123, 97, 255, 0.2);
}

.variant-price {
    font-size: 0.75rem;
    color: var(--success);
    margin-left: 0.25rem;
}

/* Product Details Modal */
.product-details {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(90vh - 4rem);
}

#productDetailsContent {
    overflow-y: auto;
    max-height: calc(90vh - 4rem);
}

.product-details-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.product-details-header h2 {
    margin-bottom: 0.5rem;
}

.product-details-image {
    max-width: 400px;
    margin: 0 auto 2rem;
    text-align: center;
}

.product-details-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.product-variants-detail {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-hover);
    border-radius: 8px;
}

.product-variants-detail h3 {
    margin-bottom: 1rem;
}

.variants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.variant-card {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.variant-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.variant-card .variant-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--success);
    margin: 0.5rem 0;
}

.variant-specs {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

.variant-specs li {
    margin: 0.25rem 0;
}

.product-price-section {
    text-align: center;
    margin: 2rem 0;
}

.product-details-features {
    margin: 2rem 0;
}

.product-details-features h3 {
    margin-bottom: 1rem;
}

.product-details-features ul {
    list-style: none;
    padding: 0;
}

.product-details-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.product-details-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
}

.product-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.pros h3 {
    color: var(--success);
    margin-bottom: 1rem;
}

.cons h3 {
    color: var(--danger);
    margin-bottom: 1rem;
}

.pros ul, .cons ul {
    list-style: none;
    padding: 0;
}

.pros li, .cons li {
    padding: 0.5rem 0;
}

.pros li {
    color: var(--text-primary);
}

.cons li {
    color: var(--text-secondary);
}

.product-specs {
    margin: 2rem 0;
}

.product-specs h3 {
    margin-bottom: 1rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specs-table td {
    padding: 0.75rem;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    width: 40%;
}

.product-details-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Variant selector in details modal */
.variant-selector-detail {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.variant-selector-detail h3 {
    margin-bottom: 1rem;
}

.variant-selector-detail .variant-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.variants-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.variant-summary {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border-color);
}

.variant-summary.current {
    border-color: var(--primary);
    background: rgba(139, 156, 255, 0.1);
}

.variant-summary h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.variant-summary p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.variant-summary .check-price-link {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .product-pros-cons {
        grid-template-columns: 1fr;
    }
    
    .variants-grid {
        grid-template-columns: 1fr;
    }
}

/* Manufacturer filters - scrollable if many items */
.manufacturer-filters {
    max-height: 300px;
    overflow-y: auto;
}

.manufacturer-filters::-webkit-scrollbar {
    width: 6px;
}

.manufacturer-filters::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.manufacturer-filters::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.manufacturer-filters::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Brightness indicators */
.brightness-indicator {
    display: inline;
    font-weight: 600;
}

.brightness-icon {
    font-size: 1.2em;
    margin-right: 0.5rem;
    cursor: help;
    display: inline-block;
}

/* Color the brightness icons to match their level */
.brightness-line .brightness-icon {
    display: inline-block;
    font-size: 1.4em;
    line-height: 1;
    vertical-align: middle;
}

/* Match icon colors to their brightness level */
.brightness-icon.ultra-bright {
    color: #ff6b00;  /* Bright orange-red */
}

.brightness-icon.very-bright {
    color: #ffa500;  /* Orange */
}

.brightness-icon.bright {
    color: #ffeb3b;  /* Yellow */
}

.brightness-icon.moderate {
    color: #9ccc65;  /* Light green */
}

.brightness-icon.ambient {
    color: #9575cd;  /* Purple */
}

.brightness-indicator.ultra-bright {
    color: #ff6b00;  /* Bright orange-red */
}

.brightness-indicator.very-bright {
    color: #ffa500;  /* Orange */
}

.brightness-indicator.bright {
    color: #ffeb3b;  /* Yellow */
}

.brightness-indicator.moderate {
    color: #9ccc65;  /* Light green */
}

.brightness-indicator.ambient {
    color: #9575cd;  /* Purple */
}

/* Brightness Guide Sidebar */
.brightness-guide-sidebar {
    position: fixed;
    right: -300px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    transition: right 0.3s ease;
}

.brightness-guide-sidebar.active {
    right: 0;
}

.brightness-guide-toggle {
    position: absolute;
    left: -80px;
    top: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.1);
    width: 80px;
}

.brightness-guide-toggle:hover {
    background: var(--bg-secondary);
    left: -85px;
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.brightness-guide-sidebar.active .brightness-guide-toggle {
    background: var(--bg-secondary);
    border-color: #667eea;
    box-shadow: -4px 4px 16px rgba(102, 126, 234, 0.2);
}

.toggle-icon {
    font-size: 2rem;
    line-height: 1;
}

.toggle-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brightness-guide-content {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
}

.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.brightness-guide-content h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}
.guide-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.guide-close-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.brightness-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.brightness-item:hover {
    background: var(--bg-secondary);
}

.brightness-item .brightness-icon {
    font-size: 1.5rem;
    margin: 0;
}

/* Sidebar brightness dot colors */
.brightness-dot.ultra-bright {
    color: #ff6b00;  /* Bright orange-red */
}

.brightness-dot.very-bright {
    color: #ffa500;  /* Orange */
}

.brightness-dot.bright {
    color: #ffeb3b;  /* Yellow */
}

.brightness-dot.moderate {
    color: #9ccc65;  /* Light green */
}

.brightness-dot.ambient {
    color: #9575cd;  /* Purple */
}

.brightness-info strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.brightness-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

.brightness-item[data-level="ultra-bright"] strong {
    color: #ff6b00;  /* Bright orange-red */
}

.brightness-item[data-level="very-bright"] strong {
    color: #ffa500;  /* Orange */
}

.brightness-item[data-level="bright"] strong {
    color: #ffeb3b;  /* Yellow */
}

.brightness-item[data-level="moderate"] strong {
    color: #9ccc65;  /* Light green */
}

.brightness-item[data-level="ambient"] strong {
    color: #9575cd;  /* Purple */
}

/* Brightness tips in sidebar */
.brightness-tips-sidebar {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.brightness-tips-sidebar h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.brightness-tips-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brightness-tips-sidebar li {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.brightness-tips-sidebar li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
}

/* Mobile adjustments for brightness guide sidebar */
@media (max-width: 768px) {
    .brightness-guide-sidebar {
        right: -100%;
        top: auto;
        bottom: 0;
        transform: none;
        width: 100%;
    }
    
    .brightness-guide-sidebar.active {
        right: 0;
    }
    
    .brightness-guide-toggle {
        position: fixed;
        left: auto;
        right: 20px;
        bottom: 80px;
        top: auto;
        border-radius: 12px;
        border: 2px solid var(--border);
        width: auto;
        flex-direction: row;
        padding: 1rem 1.25rem;
    }
    
    .brightness-guide-toggle:hover {
        left: auto;
    }
    
    .brightness-guide-content {
        width: 100%;
        border-radius: 12px 12px 0 0;
        border: 2px solid var(--border);
        border-bottom: none;
        max-height: 60vh;
    }
}

/* Weight Guide Sidebar */
.weight-guide-sidebar {
    position: fixed;
    right: -300px;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 90px; /* Below brightness guide */
    z-index: 999;
    transition: right 0.3s ease;
}

.weight-guide-sidebar.active {
    right: 0;
}

.weight-guide-toggle {
    position: absolute;
    left: -80px;
    top: 0;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.1);
    width: 80px;
}

.weight-guide-toggle:hover {
    background: var(--bg-secondary);
    left: -85px;
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #9ccc65;
}

.weight-guide-sidebar.active .weight-guide-toggle {
    background: var(--bg-secondary);
    border-color: #9ccc65;
    box-shadow: -4px 4px 16px rgba(156, 204, 101, 0.2);
}

.weight-guide-toggle .toggle-icon {
    font-size: 2rem;
    line-height: 1;
}

.weight-guide-toggle .toggle-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weight-guide-content {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    height: fit-content;
    max-height: 80vh;
    overflow-y: auto;
}

.weight-guide-content .guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.weight-guide-content h3 {
    margin: 0;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.weight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.weight-item:hover {
    background: var(--bg-secondary);
}

.weight-item .weight-icon {
    font-size: 1.5rem;
    margin: 0;
}

.weight-info strong {
    display: block;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.weight-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Weight indicator colors */
.weight-line {
    font-weight: 500;
}

.weight-line .weight-icon {
    font-size: 1.2em;
    margin-right: 0.5rem;
    cursor: help;
    display: inline-block;
}

/* Weight category colors */
.weight-icon.feather-light,
.weight-indicator.feather-light,
.weight-item[data-level="feather-light"] strong {
    color: #e3f2fd; /* Very light blue */
}

.weight-icon.ultra-light,
.weight-indicator.ultra-light,
.weight-item[data-level="ultra-light"] strong {
    color: #81c784; /* Light green */
}

.weight-icon.light,
.weight-indicator.light,
.weight-item[data-level="light"] strong {
    color: #9ccc65; /* Green */
}

.weight-icon.medium,
.weight-indicator.medium,
.weight-item[data-level="medium"] strong {
    color: #ffeb3b; /* Yellow */
}

.weight-icon.moderate,
.weight-indicator.moderate,
.weight-item[data-level="moderate"] strong {
    color: #ffa726; /* Orange */
}

.weight-icon.heavy,
.weight-indicator.heavy,
.weight-item[data-level="heavy"] strong {
    color: #ff7043; /* Deep orange */
}

.weight-icon.very-heavy,
.weight-indicator.very-heavy,
.weight-item[data-level="very-heavy"] strong {
    color: #ef5350; /* Red */
}

/* Weight tips in sidebar */
.weight-tips-sidebar {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.weight-tips-sidebar h4 {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.weight-tips-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.weight-tips-sidebar li {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.weight-tips-sidebar li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #9ccc65;
}

/* Mobile adjustments for weight guide sidebar */
@media (max-width: 768px) {
    .weight-guide-sidebar {
        right: -100%;
        top: auto;
        bottom: 0;
        transform: none;
        width: 100%;
        margin-top: 0;
    }
    
    .weight-guide-sidebar.active {
        right: 0;
    }
    
    .weight-guide-toggle {
        position: fixed;
        left: auto;
        right: 20px;
        bottom: 160px; /* Above brightness guide button */
        top: auto;
        border-radius: 12px;
        border: 2px solid var(--border);
        width: auto;
        flex-direction: row;
        padding: 1rem 1.25rem;
    }
    
    .weight-guide-toggle:hover {
        left: auto;
    }
    
    .weight-guide-content {
        width: 100%;
        border-radius: 12px 12px 0 0;
        border: 2px solid var(--border);
        border-bottom: none;
        max-height: 60vh;
    }
}

/* Brightness comparison bar */
.brightness-comparison {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.brightness-bar {
    position: relative;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.brightness-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 15px;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    color: #000;
    font-weight: 600;
    font-size: 0.875rem;
}

.brightness-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Price Range Slider */
.price-range-container {
    padding: 0.5rem 0;
}

.price-range-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.price-label {
    color: var(--text-primary);
}

.price-range-slider {
    position: relative;
    height: 40px;
    margin: 0 0.5rem;
}

.price-range-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.price-range-highlight {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: var(--primary-gradient);
    border-radius: 3px;
    left: 0%;
    right: 0%;
}

.price-slider {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    border: 2px solid var(--bg-primary);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    border: 2px solid var(--bg-primary);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.2s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.6);
}

.price-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.6);
}

#priceRangeMin {
    z-index: 3;
}

#priceRangeMax {
    z-index: 2;
}

/* Out of range variant styling */
.variant-option.out-of-range {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
    position: relative;
}

.variant-option.out-of-range::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255, 255, 255, 0.05) 5px,
        rgba(255, 255, 255, 0.05) 10px
    );
    pointer-events: none;
    border-radius: inherit;
}

.variant-option.out-of-range:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 100, 100, 0.3);
}

/* Print Styles */
@media print {
    /* Hide EVERYTHING by default */
    * {
        visibility: hidden !important;
    }
    
    /* Reset body styles */
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        color: black !important;
    }
    
    /* Make comparison modal and its contents visible */
    .comparison-modal,
    .comparison-modal * {
        visibility: visible !important;
    }
    
    /* Hide all page sections */
    .navbar,
    .hero,
    .products,
    .latest-section,
    .newsletter,
    .footer,
    .filters-sidebar,
    .comparison-basket,
    .brightness-guide-sidebar,
    .weight-guide-sidebar,
    .modal-actions,
    .print-comparison,
    .modal-close,
    #products,
    #latest,
    section {
        display: none !important;
        visibility: hidden !important;
    }
    
    /* Position comparison modal properly for print */
    .comparison-modal {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
        overflow: visible !important;
        z-index: 9999 !important;
    }
    
    .modal-content {
        position: relative !important;
        box-shadow: none !important;
        background: white !important;
        max-width: 100% !important;
        max-height: none !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    
    .modal-header {
        border-bottom: 2px solid #000 !important;
        padding: 1rem 0 !important;
        background: white !important;
    }
    
    .modal-header h2 {
        color: #000 !important;
        font-size: 1.5rem !important;
        margin: 0 !important;
    }
    
    /* Hide print and close buttons in header */
    .modal-actions {
        display: none !important;
    }
    
    .comparison-table-wrapper {
        padding: 1rem 0 !important;
        overflow: visible !important;
        background: white !important;
    }
    
    .comparison-table {
        width: 100% !important;
        border-collapse: collapse !important;
        color: #000 !important;
        background: white !important;
    }
    
    .comparison-table th,
    .comparison-table td {
        border: 1px solid #000 !important;
        padding: 0.5rem !important;
        background: white !important;
        color: #000 !important;
        position: relative !important;
    }
    
    .comparison-table th {
        background: #f0f0f0 !important;
        font-weight: bold !important;
    }
    
    .comparison-table th:first-child {
        position: static !important;
    }
    
    .comparison-table .product-header-cell img {
        max-width: 100px !important;
        height: auto !important;
    }
    
    .comparison-table a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    .exact-price {
        font-weight: bold !important;
        font-size: 1.1rem !important;
        color: #000 !important;
    }
    
    .brightness-indicator,
    .weight-indicator {
        display: inline-block !important;
        margin-right: 0.25rem !important;
        color: #000 !important;
    }
    
    /* Ensure important specs are visible */
    .important-spec {
        background: #f9f9f9 !important;
    }
    
    .important-spec td {
        font-weight: bold !important;
    }
    
    /* Page break handling */
    .comparison-table {
        page-break-inside: avoid;
    }
    
    @page {
        margin: 0.5in;
        size: landscape;
    }
}


