:root {
    --primary-color: #0d47a1;
    --primary-light: #1976d2;
    --primary-dark: #002171;
    --accent-color: #00e5ff;
    --background-dark: #060913;
    --surface-dark: #0f1626;
    --surface-light: #1a233a;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --glass-bg: rgba(15, 22, 38, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
}

* { box-sizing: border-box; padding: 0; margin: 0; }

body {
    background-color: var(--background-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }

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

/* Navbar */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 12px;
}
.nav-logo-img {
    width: 42px; 
    height: 42px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(270deg, #ffffff, var(--primary-light), #ffffff, var(--primary-light));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineLogo 5s ease infinite;
    display: flex;
    align-items: center;
    line-height: 1;
}

@keyframes shineLogo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-links { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

.nav-link {
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 5px;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover { color: white; }
.nav-link:hover::after { width: 100%; }
.special-link { color: var(--accent-color); }

/* Search Bar */
.search-container { position: relative; display: flex; align-items: center; margin: 0 15px; flex-grow: 1; max-width: 300px; }
.search-bar {
    display: flex; align-items: center; width: 100%;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 6px 15px; transition: all 0.3s ease;
}
.search-bar:focus-within { border-color: var(--primary-light); background: rgba(255,255,255,0.1); }
#search-input {
    background: transparent; border: none; color: white; width: 100%; outline: none;
    font-family: inherit; font-size: 0.9rem;
}
#search-input::placeholder { color: var(--text-secondary); }
.search-btn {
    background: transparent; border: none; color: var(--text-secondary);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: color 0.3s ease; margin-right: 8px;
}
.search-btn:hover { color: var(--accent-color); }

.search-results-dropdown {
    position: absolute; top: 110%; left: 0; width: 100%;
    background: var(--surface-dark); border: 1px solid var(--glass-border);
    border-radius: 12px; max-height: 300px; overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; visibility: hidden;
    transition: all 0.3s ease; z-index: 1000;
}
.search-results-dropdown.active { opacity: 1; visibility: visible; }
.search-result-item { padding: 10px 15px; display: flex; flex-direction: column; cursor: pointer; border-bottom: 1px solid var(--glass-border); }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(255,255,255,0.05); }
.search-result-name { font-size: 0.9rem; font-weight: 600; color: white; margin-bottom: 3px;}
.search-result-price { font-size: 0.8rem; color: var(--accent-color); }
.search-no-results { padding: 15px; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

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

.icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.icon-btn:hover {
    color: white;
    background: rgba(255,255,255,0.05);
    border-color: var(--glass-border);
}

.cart-btn:hover {
    color: white;
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4);
}

.cart-badge {
    position: absolute;
    top: -2px; right: -2px;
    background-color: var(--danger);
    color: white;
    font-size: 0.7rem; font-weight: bold;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--background-dark);
}

.settings-pill {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 5px 12px; gap: 8px;
    color: var(--text-secondary);
}

.custom-dropdown {
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-selected {
    padding: 2px 5px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.dropdown-selected:hover {
    color: white;
}

.dropdown-options {
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--surface-dark);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    min-width: 80px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.custom-dropdown.active .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-option {
    padding: 8px 15px;
    color: var(--text-primary);
    text-align: center;
    transition: background 0.2s ease;
}

.dropdown-option:hover {
    background: var(--primary-light);
    color: white;
}

.separator { color: var(--glass-border); }

/* Profile Dropdown */
.profile-menu-container { position: relative; }
.profile-dropdown {
    position: absolute;
    top: 120%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 180px; padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease; z-index: 1000;
}
.profile-dropdown.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-item {
    display: block; padding: 10px 20px;
    color: var(--text-primary); text-align: right;
    transition: background 0.2s ease;
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); color: var(--accent-color); }
.dropdown-item.danger { color: var(--danger); }

/* Hero Section (Left Aligned like reference) */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex; align-items: center;
    overflow: hidden; padding: 60px 0;
    background: linear-gradient(to right, rgba(6, 9, 19, 0.1) 0%, rgba(6, 9, 19, 0.7) 50%, rgba(6, 9, 19, 1) 100%),
                url('assets/hero-bg.png') no-repeat center right;
    background-size: cover;
}
.hero-container {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
}
.hero-content { max-width: 600px; text-align: right; }
.hero-title {
    font-size: 4rem; font-weight: 900;
    margin-bottom: 20px; line-height: 1.1;
    text-transform: uppercase;
}
.highlight {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.1rem; color: var(--text-secondary);
    margin-bottom: 40px; max-width: 500px;
}
.hero-features {
    display: flex; gap: 20px; margin-bottom: 40px;
    flex-wrap: wrap;
}
.feature-item {
    display: flex; align-items: center; gap: 10px;
}
.feature-icon {
    width: 24px; height: 24px;
    color: var(--primary-light);
}
.feature-item div { display: flex; flex-direction: column; }
.feature-item strong { font-size: 0.9rem; }
.feature-item span { font-size: 0.8rem; color: var(--text-secondary); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: white; border: none;
    padding: 12px 24px; border-radius: 8px;
    cursor: pointer; font-weight: 700; font-size: 1.1rem;
    transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.4);
}



/* Sections */
.section { padding: 50px 0; }
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}
.section-title { font-size: 1.5rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;}
.view-all {
    font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
    background: rgba(255,255,255,0.05); padding: 5px 15px; border-radius: 20px;
}
.view-all:hover { background: var(--primary-light); color: white; }

/* Wide Category Cards */
.categories-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.category-card-wide {
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 25px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}
.category-card-wide:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: linear-gradient(180deg, var(--surface-light) 0%, var(--surface-dark) 100%);
}
.cat-icon-wrapper {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(13, 71, 161, 0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-light); margin-bottom: 15px;
    transition: all 0.3s ease;
}
.category-card-wide:hover .cat-icon-wrapper {
    background: var(--primary-light); color: white;
    transform: scale(1.1);
}
.category-card-wide h3 { font-size: 1.2rem; margin-bottom: 5px; }
.category-card-wide p { font-size: 0.85rem; color: var(--text-secondary); }

/* Modern Product Cards */
.products-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}
.product-card-modern {
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px; overflow: hidden;
    position: relative; transition: all 0.3s ease;
    cursor: pointer;
}
.product-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.product-bg {
    width: 100%; height: 140px;
    background: var(--surface-light);
}
.product-info { padding: 15px; position: relative; }
.product-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 5px; }
.product-price { font-size: 1.1rem; font-weight: 900; color: white; margin-bottom: 15px;}
.product-pill {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 12px;
    font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
}
.pill-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-color);
}

/* Stats Section */
.stats-section { padding: 60px 0; border-top: 1px solid var(--glass-border); margin-top: 40px;}
.stats-title { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; margin-bottom: 40px; letter-spacing: 1px; text-align: center;}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
}
.stat-card {
    background: var(--surface-dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 25px 20px;
    display: flex; align-items: center; gap: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    opacity: 0; transition: opacity 0.4s ease;
}
.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4), 0 0 15px rgba(13, 71, 161, 0.2);
    border-color: var(--primary-light);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon-glow {
    color: var(--accent-color);
    width: 60px; height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
    transition: all 0.4s ease;
    flex-shrink: 0;
}
.stat-card:hover .stat-icon-glow {
    background: var(--accent-color);
    color: var(--background-dark);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.stat-info { display: flex; flex-direction: column; position: relative; z-index: 1;}
.stat-info strong { font-size: 1.8rem; font-weight: 900; letter-spacing: 1px; color: white;}
.stat-info span { font-size: 0.95rem; color: var(--text-secondary); margin-top: 4px;}

.stars {
    display: flex; gap: 4px; font-size: 1rem; margin-top: 2px;
}

/* Footer */
.footer {
    background: var(--surface-dark);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 20px; margin-top: 50px;
}
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin: 15px 0; }
.copyright { color: rgba(255,255,255,0.3); font-size: 0.8rem; margin-top: 20px; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.link-column h4 { font-size: 1.1rem; margin-bottom: 20px; font-weight: 700;}
.link-column a { display: block; color: var(--text-secondary); margin-bottom: 10px; font-size: 0.9rem; }
.link-column a:hover { color: var(--accent-color); }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-container { flex-direction: column; }
    .hero-image-wrapper { display: none; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
}
