/* Gamesat - Dark Gaming Theme CSS */

:root {
    /* Color Palette */
    --primary-color: #4ecdc4;
    --secondary-color: #45b7d1;
    --accent-color: #ff6b6b;
    --success-color: #96ceb4;
    --warning-color: #ffeaa7;
    --danger-color: #fd79a8;
    --info-color: #74b9ff;
    
    /* Dark Theme Colors */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --bg-quaternary: #30363d;
    
    /* Text Colors */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Border Colors */
    --border-primary: #30363d;
    --border-secondary: #21262d;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--danger-color));
    --gradient-dark: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.6);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loading-content {
    text-align: center;
}

.loading-logo {
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loading-text h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

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

/* Navigation */
.navbar {
    background: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
    padding: 0.5rem 0;
    transition: all var(--transition-normal);
}

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

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

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(78, 205, 196, 0.1);
}

.search-bar {
    width: 250px;
}

.search-bar .form-control {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.search-bar .form-control:focus {
    background: var(--bg-quaternary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(78, 205, 196, 0.25);
    color: var(--text-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

/* Main Content */
.main-content {
    margin-top: 76px;
    min-height: calc(100vh - 76px);
}

/* Flash Messages */
.flash-message {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 1050;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(78,205,196,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

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

.gaming-pc-svg {
    filter: drop-shadow(0 10px 20px rgba(78, 205, 196, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Stats Section */
.stats-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-item h3 {
    font-weight: 700;
    font-size: 2rem;
}

/* Sections */
.section-title {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Cards */
.product-card,
.deal-card,
.category-card,
.community-build-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
}

.product-card:hover,
.deal-card:hover,
.category-card:hover,
.community-build-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Product Cards */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--bg-tertiary);
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform var(--transition-normal);
    background: white;
    padding: 10px;
    border-radius: 8px;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.sale {
    background: var(--gradient-accent);
    color: white;
}

.product-badge.featured-badge {
    background: var(--gradient-primary);
    color: white;
}

.product-badge.discount-badge {
    background: var(--gradient-accent);
    color: white;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.product-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: center;
}

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

.product-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-brand {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-specs {
    margin-bottom: 0.5rem;
}

.spec-item {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.product-price {
    margin-top: auto;
    margin-bottom: 0.5rem;
}

.product-actions {
    margin-top: auto;
    padding: 0 1rem 1rem;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.price-sale {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

.price-current {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.price-iqd {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Dual Range Slider Styles */
.price-range-container {
    padding: 1rem 0;
}

.price-display {
    text-align: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

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

.range-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
}

.range-slider::-webkit-slider-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border: none;
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 3;
}

.range-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: transparent;
    border: none;
    outline: none;
}

.range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    pointer-events: all;
}

.slider-track {
    position: absolute;
    top: 17px;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    z-index: 1;
}

.slider-range {
    position: absolute;
    top: 17px;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    z-index: 2;
}

/* Clickable cursor for product cards */
.clickable {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable:hover {
    transform: translateY(-2px);
}

/* Filter Search Styles */
.filter-search-container {
    position: relative;
}

.filter-search-container input {
    padding-right: 2.5rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text-primary);
    border-radius: 8px;
}

.filter-search-container input:focus {
    background: rgba(255,255,255,0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.25);
}

.filter-search-container input::placeholder {
    color: var(--text-muted);
}

.filter-search-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-option.hidden {
    display: none;
}

.filter-options {
    max-height: 300px;
    overflow-y: auto;
}

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

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

.filter-options::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Liquid Glass Badge Styles */
.liquid-glass-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.liquid-glass-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.liquid-glass-badge:hover::before {
    left: 100%;
}

.category-badge {
    background: rgba(var(--primary-color-rgb), 0.15);
    color: var(--primary-color);
    border-color: rgba(var(--primary-color-rgb), 0.3);
    opacity: 0.75;
}

.brand-badge {
    background: rgba(var(--accent-color-rgb), 0.15);
    color: var(--primary-color);
    border-color: rgba(var(--accent-color-rgb), 0.3);
    opacity: 0.75;
}

/* Brand Logo Styles */
.brand-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}

/* Prebuilt PC Section Styles */
.prebuilt-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.prebuilt-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.prebuilt-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.prebuilt-image-container {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(45deg, #2c3e50, #34495e);
    position: relative;
}

.prebuilt-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.prebuilt-card:hover .prebuilt-image {
    transform: scale(1.05);
}

.prebuilt-content {
    background: rgba(0, 0, 0, 0.3);
}

.prebuilt-specs {
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.prebuilt-pricing {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Deal Cards */
.deal-card {
    text-align: center;
}

.deal-image {
    height: 150px;
    position: relative;
}

.discount-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--accent-color);
    color: white;
    padding: 5px 10px;
    border-radius: 0 0 15px 0;
    font-size: 0.7rem;
    font-weight: 700;
}

.deal-info {
    padding: 0.75rem;
}

.deal-title {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Category Cards */
.category-card {
    cursor: pointer;
    text-align: center;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-header {
    margin-bottom: 1rem;
}

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

.category-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

.category-products {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.mini-product {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
}

.mini-product-img {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.mini-product-info {
    flex-grow: 1;
    text-align: left;
}

.mini-product-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

.mini-product-price {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.browse-link {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Community Build Cards */
.build-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border-primary);
}

.user-info {
    display: flex;
    align-items: center;
}

.user-details {
    margin-left: 0.75rem;
}

.username {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.build-price {
    text-align: right;
}

.price-usd {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.price-iqd {
    font-size: 0.8rem;
}

.build-components {
    padding: 1rem;
}

.component-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: 6px;
}

.component-type {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.8rem;
}

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

.build-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.build-actions {
    display: flex;
    gap: 0.5rem;
}

/* Forms */
.form-control,
.form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    border-radius: 8px;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(78, 205, 196, 0.25);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-color);
    border: none;
    color: var(--bg-primary);
}

.btn-warning {
    background: var(--warning-color);
    border: none;
    color: var(--bg-primary);
}

.btn-danger {
    background: var(--danger-color);
    border: none;
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

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

.filter-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-label {
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

.filter-options {
    max-height: 200px;
    overflow-y: auto;
}

.filter-option {
    margin-bottom: 0.5rem;
}

.filter-option.active .filter-link {
    color: var(--primary-color);
    background: rgba(78, 205, 196, 0.1);
}

.filter-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.filter-link:hover {
    color: var(--primary-color);
    background: rgba(78, 205, 196, 0.05);
}

/* Results */
.results-header {
    margin-bottom: 2rem;
}

.results-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.results-count {
    font-size: 0.9rem;
}

.view-toggle {
    display: flex;
    gap: 0.25rem;
}

.view-toggle .btn {
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* tweak min width */
  gap: 1rem; /* reduce spacing */
}


.products-grid .product-card {
    min-height: 500px;
}

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

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
}

.products-grid.list-view .product-image {
    width: 200px;
    flex-shrink: 0;
}

/* No Results */
.no-results {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 3rem;
}

.no-results-icon {
    opacity: 0.5;
}

/* PC Builder Styles */
.builder-header {
    text-align: center;
}

.builder-title {
    font-weight: 700;
    font-size: 2.5rem;
}

.build-progress {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1rem;
}

.progress {
    background: var(--bg-tertiary);
}

.progress-bar {
    background: var(--gradient-primary);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.component-group-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.component-slot {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.component-slot:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

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

.component-info {
    display: flex;
    align-items: center;
}

.component-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.component-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.component-content {
    padding: 1rem;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-component {
    text-align: center;
    color: var(--text-muted);
}

.compatibility-status {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border-primary);
    font-size: 0.8rem;
}

.compatibility-status.compatible {
    background: rgba(150, 206, 180, 0.1);
    color: var(--success-color);
}

.compatibility-status.incompatible {
    background: rgba(253, 121, 168, 0.1);
    color: var(--danger-color);
}

/* Build Summary */
.build-summary-panel {
    top: 100px;
}

.build-summary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
}

.summary-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.price-breakdown {
    margin-bottom: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.price-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.build-tips {
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
}

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

.tips-list li {
    padding: 0.25rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.tips-list li::before {
    content: '💡';
    margin-right: 0.5rem;
}

/* Admin Styles */
.admin-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.admin-profile {
    text-align: center;
}

.admin-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.admin-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.admin-role {
    font-size: 0.9rem;
}

.admin-nav .nav-link {
    color: var(--text-secondary) !important;
    border-radius: 8px;
    margin-bottom: 0.25rem;
}

.admin-nav .nav-link.active,
.admin-nav .nav-link:hover {
    background: rgba(78, 205, 196, 0.1);
    color: var(--primary-color) !important;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

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

.admin-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
}

.admin-card .card-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.admin-card .card-body {
    padding: 1.5rem;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.stat-content h4 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

/* Table Styles */
.table-dark {
    --bs-table-bg: var(--bg-secondary);
    --bs-table-border-color: var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
}

.table-dark th {
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--border-primary);
    font-weight: 600;
    color: var(--text-primary);
}

.table-dark td {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-primary);
    margin-top: auto;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

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

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-item i {
    width: 20px;
    margin-right: 0.75rem;
}

.footer-divider {
    border-color: var(--border-primary);
    margin: 2rem 0 1rem;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    display: flex;
}

/* Lazy Loading */
img.lazy-load {
    opacity: 0;
    transition: opacity var(--transition-normal);
}

img.lazy-load.loaded {
    opacity: 1;
}

/* Toast Notifications */
.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

.toast-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

/* Modals */
.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-primary);
}

.modal-footer {
    border-top: 1px solid var(--border-primary);
}

/* Pagination */
.pagination .page-link {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Utilities */
.text-muted {
    color: var(--text-muted) !important;
}

.bg-dark-subtle {
    background: var(--bg-secondary) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-bar {
        width: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .build-summary-panel {
        position: static;
        margin-top: 2rem;
    }
    
    .filters-sidebar {
        margin-bottom: 2rem;
    }
    
    .footer .row {
        text-align: center;
    }
    
    .footer-bottom-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        width: 150px;
    }
    
    .navbar-brand .brand-text {
        display: none;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

.slide-in-left {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.slide-in-right {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 107, 107, 0.5); }
    100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.8); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Hot Deals Section */
.hot-deals-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b69 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
}

.hot-deals-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.hot-deals-bg-circle-1 {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hot-deals-bg-circle-2 {
    position: absolute;
    top: 60%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4ecdc4, #44bd32);
    border-radius: 50%;
    animation: float 4s ease-in-out infinite reverse;
}

.hot-deals-bg-circle-3 {
    position: absolute;
    bottom: 20%;
    left: 20%;
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #a29bfe, #6c5ce7);
    border-radius: 50%;
    animation: float 5s ease-in-out infinite;
}

.hot-deals-header-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.hot-deals-fire-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

.hot-deals-title {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hot-deals-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

.hot-deals-divider {
    height: 4px;
    width: 120px;
    background: linear-gradient(90deg, #ff6b6b, #ee5a24, #ff6b6b);
    margin: 0 auto;
    border-radius: 2px;
    animation: glow 2s ease-in-out infinite alternate;
}

.hot-deals-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(108, 117, 125, 0.25);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.hot-deals-card:hover {
    transform: translateY(-5px);
    border-color: #007bff;
}

.hot-deals-image-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.75rem; /* optional */
    background: rgba(255, 255, 255, 0.03); /* optional */
}

.hot-deals-image-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.hot-deals-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hot-deals-product-name {
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hot-deals-view-all-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.hot-deals-view-all-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Utility Classes */
.clickable {
    cursor: pointer;
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.backdrop-blur {
    backdrop-filter: blur(10px);
}

.square-image-container {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
}

.square-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-fire-bg {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.gradient-primary-bg {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .back-to-top,
    .filters-sidebar {
        display: none !important;
    }
    
    .main-content {
        margin-top: 0 !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .product-card,
    .admin-card {
        border: 1px solid #ccc !important;
        background: white !important;
    }
}
