:root {
    --bg-color: #f7f9fa;
    --text-color: #2c3e50;
    --text-muted: #607d8b;
    --primary: #5d4037;
    --primary-hover: #4e342e;
    --border-color: #e0e0e0;
    --success: #2e7d32;
    --danger: #c62828;
    --warning-bg: #fff8e1;
    --warning-border: #ffe082;
    --warning-text: #f57f17;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Sdílená hlavička a navigace
   ========================================================================== */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-logo {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-color);
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background-color: #eceff1;
}

.nav-btn.active {
    background-color: var(--primary);
    color: #fff;
}

.nav-btn-cart {
    background-color: #eceff1;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-btn-cart:hover {
    background-color: #e0e0e0;
}

/* ==========================================================================
   Sdílená patička
   ========================================================================== */
.site-footer {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    padding: 35px 0 25px 0;
    color: var(--text-muted);
    font-size: 13.5px;
    margin-top: auto;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.footer-btn {
    text-decoration: none;
    color: #455a64;
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    background: #f0f2f5;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    color: var(--primary);
    background: #e0e4e8;
}

.footer-btn.active {
    background: var(--primary);
    color: #fff;
}

.footer-note {
    max-width: 650px;
    line-height: 1.5;
    color: #78909c;
}

.footer-copy {
    font-size: 12.5px;
    color: #90a4ae;
}

/* ==========================================================================
   Responzivita hlavičky a kontejneru pro mobilní zobrazení
   ========================================================================== */
@media (max-width: 650px) {
    .container {
        padding: 0 12px;
    }
    .nav-wrapper {
        height: auto;
        min-height: 60px;
        padding: 10px 0;
        flex-direction: column;
        gap: 10px;
        justify-content: center;
    }
    .brand-logo {
        font-size: 20px;
    }
    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    .nav-btn {
        padding: 6px 12px;
        font-size: 13px;
        white-space: nowrap;
    }
}