:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --bg-color: #f9f9f9;
    --table-header-bg: #34495e;
    --table-row-odd: #ecf0f1;
    --grid-gap: 1rem;
    --max-grid-width: 960px;
    position: center;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background: var(--bg-color);
    line-height: 1.6;
}
header, footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
}
.responsive-menu {
    position: relative;
}
.menu-toggle {
    background: var(--accent-color);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 0.5rem;
    display: none;
}
.menu-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
}
.menu-list a {
    color: white;
    text-decoration: none;
}
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .menu-list {
        display: none;
        flex-direction: column;
        background: var(--primary-color);
        position: absolute;
        width: 100%;
        top: 100%;
        left: 0;
    }
    .menu-list.active { display: flex; }
}

/* Categories Grid: fixed 3 columns on desktop, 2 on tablet, 1 on mobile */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    padding: var(--grid-gap);
    max-width: var(--max-grid-width);
    margin: 0 auto;
}
@media (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}
.category-card:hover {
    transform: translateY(-5px);
}
.category-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3 / 2;
    flex-shrink: 0;
}
.category-card span {
    padding: 0.75rem;
    background: var(--accent-color);
    color: white;
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}