/* Global Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --accent-color: #10b981;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --header-bg: #1e293b;
    --nav-bg: #334155;
    --footer-bg: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    display: grid;
    grid-template-columns: 1fr 300px;
    max-width: 1400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Header */
header {
    background-color: var(--header-bg);
    color: #fff;
    padding: 3rem 1rem;
    text-align: center;
    grid-column: 1 / span 2;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

/* Navigation */
nav {
    background-color: var(--nav-bg);
    color: #fff;
    padding: 0.75rem;
    grid-column: 1 / span 2;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: #fff;
}

/* Product List */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
    grid-column: 1;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.product-card img {
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.product-card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Sidebar */
.sidebar {
    background-color: var(--card-bg);
    padding: 2rem;
    grid-column: 2;
    border-left: 1px solid #e2e8f0;
}

.social-icons a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.social-icons a:hover {
    background-color: #f1f5f9;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: #94a3b8;
    padding: 4rem 2rem;
    grid-column: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: left;
}

.footer-item h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Buttons */
.button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}

.button:hover {
    background-color: #1d4ed8;
}

.button:active {
    transform: scale(0.98);
}

/* Responsive */
@media (max-width: 1024px) {
    body {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-column: 1;
        border-left: none;
        border-top: 1px solid #e2e8f0;
    }
}

@media (max-width: 640px) {
    .footer {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
}