/* =========================================
   LAYOUT (Hlavička, Menu, Patička)
   ========================================= */

/* --- HLAVIČKA --- */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    height: var(--header-height);
    position: sticky; top: 0; z-index: 1000;
    display: flex; align-items: center;
    transition: all 0.3s ease;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-decoration: none;
}

/* Navigace - Desktop */
.nav-links { display: flex; gap: 2.5rem; }
.nav-links a {
    text-transform: uppercase; font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
    color: var(--secondary); position: relative; padding: 5px 0;
    transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Ikony vpravo */
.nav-icons { display: flex; align-items: center; gap: 1.2rem; }
.nav-icons a { font-size: 1.3rem; color: var(--primary); transition: 0.2s; position: relative; display: flex; align-items: center; }
.nav-icons a:hover { color: var(--secondary); transform: scale(1.05); }

.cart-icon-wrap { position: relative; }
.cart-badge {
    position: absolute; top: -5px; right: -8px;
    background: var(--primary); color: white; font-size: 0.6rem;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold; border: 2px solid white;
}

/* Mobilní Toggle (Burger) - skrytý na desktopu */
.mobile-toggle {
    display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary);
}

/* --- PATIČKA --- */
footer {
    background-color: white;
    color: var(--secondary);
    padding-top: 6rem;
    padding-bottom: 3rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 4rem; margin-bottom: 5rem; }
.footer-col h4 { color: var(--primary); font-size: 0.75rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: 2px; text-transform: uppercase; }
.footer-logo { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--primary); display: block; margin-bottom: 1rem; }
.footer-desc { line-height: 1.6; color: #777; max-width: 300px; }

.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--secondary); transition: 0.2s; font-weight: 500; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }

.social-icons { display: flex; gap: 15px; margin-top: 1.5rem; }
.social-icons a { width: 40px; height: 40px; background: var(--bg-light); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--primary); transition: 0.3s; }
.social-icons a:hover { background: var(--primary); color: white; transform: translateY(-3px); }

.footer-bottom { border-top: 1px solid #f5f5f5; padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.8rem; color: #aaa; }

/* =========================================
   RESPONZIVITA (MOBILNÍ MENU & LAYOUT)
   ========================================= */
@media (max-width: 900px) {
    /* Úprava hlavičky */
    header {
        padding: 0 10px;
        height: 70px; /* Menší výška */
    }

    .nav-flex {
        justify-content: space-between;
    }

    /* Zobrazit Burger Menu */
    .mobile-toggle {
        display: block !important;
        order: -1; /* Vlevo */
        padding: 10px; /* Větší dotyková plocha */
        font-size: 1.8rem; /* Zvýšení velikosti */
        color: var(--primary);
    }

    .logo { font-size: 1.5rem; }

    /* Skrýt klasické menu a připravit styl pro rozbalené */
    .nav-links {
        display: none; /* JS to přepne na flex */
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        background: white;
        padding: 0;
        border-bottom: 1px solid #eee;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        gap: 0;
        z-index: 1000;
    }

    /* Odkazy v mobilním menu - VELKÉ TLAČÍTKA */
    .nav-links a {
        padding: 20px 25px; /* Velký padding pro prsty */
        border-bottom: 1px solid #f9f9f9;
        font-size: 1rem;
        width: 100%;
        display: block;
        text-align: left;
    }
    .nav-links a:hover { background: #f9f9f9; }

    /* Patička na mobilu */
    footer { padding-top: 4rem; }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .footer-desc { margin: 0 auto; } /* Vycentrování textu */
    .footer-links li { margin-bottom: 15px; font-size: 1rem; } /* Větší odkazy */

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-bottom: 80px; /* Místo, aby obsah nebyl zakrytý UI prohlížeče */
    }

    .social-icons { justify-content: center; }
}