@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    /* Gamer/Tech Dark Theme Variables */
    --bg-base: #0a0a0c;
    --bg-surface: #131317;
    --bg-glass: rgba(19, 19, 23, 0.75);

    --text-main: #f0f0f5;
    --text-muted: #8b8b99;

    --accent-neon: #00f0ff;
    --accent-hover: #0088ff;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-neon: rgba(0, 240, 255, 0.5);

    --shadow-neon: 0 0 15px rgba(0, 240, 255, 0.3);
    --backdrop-blur: blur(12px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
}

/* RTL Support via Margin-Inline */
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar - Glassmorphism */
.navbar {
    position: sticky;
    top: 0;
    background: var(--bg-glass);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 1px;
}

.brand-logo img {
    max-height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.neon-btn):not(.dropdown-content a) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-links a:not(.neon-btn):hover {
    color: var(--accent-neon);
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-surface);
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    z-index: 1000;
    top: 100%;
    left: 0;
    padding: 10px 0;
    backdrop-filter: blur(10px);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--accent-neon);
    padding-left: 25px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Neon Button */
.neon-btn {
    border: 1px solid var(--accent-neon);
    color: var(--accent-neon);
    padding: 8px 16px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
}

.neon-btn:hover {
    background: var(--accent-neon);
    color: var(--bg-base);
    box-shadow: var(--shadow-neon);
}

.cart-btn {
    font-weight: 600;
}

.lang-switcher a {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-inline-start: 10px;
}

.lang-switcher a.active {
    color: var(--text-main);
    font-weight: bold;
}

main {
    min-height: 80vh;
    padding-top: 40px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.1) 0%, var(--bg-base) 60%);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 50px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--accent-neon));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Categories Grid */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 2rem;
    border-inline-start: 4px solid var(--accent-neon);
    padding-inline-start: 15px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-neon);
    box-shadow: var(--shadow-neon);
}

.category-card img {
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-neon);
}

.product-img {
    height: 200px;
    background: #1a1a20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 0.8rem;
    color: var(--accent-neon);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
    height: 3.2em;
    /* Ensure 2 lines max */
    overflow: hidden;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.product-price span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-action {
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.product-action:hover {
    background: var(--accent-neon);
    color: var(--bg-base);
    border-color: var(--accent-neon);
}

footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    margin-top: 50px;
}

/* --- Stitch UI Gen Classes --- */
.glass {
    background: rgba(255, 102, 0, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 102, 0, 0.1);
}

.nav-glass {
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 102, 0, 0.2);
}

.orange-glow:hover {
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
    border-color: #ff6600;
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
}