:root {
    --bg-color: #050505;
    --sidebar-bg: #0a0e17;
    --card-bg: #11141c;
    --text-color: #ffffff;
    --text-muted: #8b92a5;
    --accent-blue: #0066ff;
    --border-color: #1a1f2e;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    padding: 30px 20px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    margin-bottom: 15px;
}

.logo-img {
    display: block;
    width: 140px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    display: block;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar li.active a,
.sidebar a:hover {
    color: var(--text-color);
    background-color: rgba(0, 102, 255, 0.15);
}

.content {
    flex: 1;
    min-width: 0;
    padding: 40px;
    overflow-y: auto;
}

header {
    margin-bottom: 30px;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
}

.product-card {
    overflow: hidden;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    cursor: default;
    user-select: none;
    animation: product-reveal 0.6s ease both;
    transition: box-shadow 0.3s ease, transform 0.15s ease;
}

.product-card:nth-child(2) { animation-delay: 0.08s; }
.product-card:nth-child(3) { animation-delay: 0.16s; }
.product-card:nth-child(4) { animation-delay: 0.24s; }
.product-card:nth-child(5) { animation-delay: 0.32s; }
.product-card:nth-child(6) { animation-delay: 0.40s; }
.product-card:nth-child(7) { animation-delay: 0.48s; }
.product-card:nth-child(8) { animation-delay: 0.56s; }

@keyframes product-reveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card {
        animation: none;
    }
}

.product-card:active {
    transform: scale(0.98);
}

@media (hover: hover) and (min-width: 769px) {
    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 20px rgba(0, 102, 255, 0.15);
    }
}

.product-image {
    display: flex;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blue-bg {
    background: linear-gradient(135deg, #003380, #000c24);
}

.dark-bg {
    background: linear-gradient(135deg, #222, #000);
}

.gray-bg {
    background: linear-gradient(135deg, #444, #1a1a1a);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 5px;
    font-size: 1.2rem;
}

.description {
    margin: 0 0 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.price {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .app-container {
        display: block;
    }

    .sidebar {
        width: 100%;
        padding: 15px 20px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .brand-logo {
        margin-bottom: 15px;
    }

    .sidebar ul {
        display: flex;
        justify-content: center;
    }

    .sidebar li {
        margin: 0;
    }

    .sidebar a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .content {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        padding: 25px 20px;
    }

    header h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 140px;
    }

    .product-info {
        padding: 15px;
    }

    .product-card:hover {
        transform: none;
        box-shadow: none;
    }
}