﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, sans-serif;
}

h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
}

a {
    color: #0074d9;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ============================
   HLAVIČKA
   ============================ */
header {
    background: #ddd;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* Logo + telefon vlevo */
.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-info {
    margin-top: 5px;
    margin-bottom: 5px;
    padding-top: 5px;
    padding-bottom: 10px;
    box-sizing: border-box;
    border-bottom: 1px solid #ccc;
    font-size: 16px;
    font-weight: 400;
    color: #666;
}

    .header-info .ico-email {
        margin-left: 20px;
        padding-left: 20px;
        background: url('/img/email.svg') no-repeat left center;
        background-size: 16px 16px;        
    }

    .header-info .ico-phone {
        margin-left: 20px;
        padding-left: 20px;
        background: url('/img/phone.svg') no-repeat left center;
        background-size: 16px 16px;
    }

/* Ikony vpravo – NESMÍ se roztahovat */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto; /* pevná skupina ikon */
    margin-top: 5px;
}

/* ============================
   VYHLEDÁVÁNÍ – DESKTOP/TABLET
   ============================ */
.header-search {
    flex: 1;
    margin: 0 16px;
    position: relative;
    max-width: 500px;
}

    .header-search input {
        width: 100%;
        padding: 8px 40px 8px 12px;
        border: 1px solid #aaa;
        border-radius: 4px;
    }

    .header-search .search-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
    }

    .header-search img {
        margin-top: 4px;
        width: 20px;
        height: 20px;
    }

/* Ikony */
.search-toggle,
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
}

/* Mobilní lupa skrytá na desktopu */
.search-toggle {
    display: none;
}

/* Menu skryté na desktopu */
.toggle-btn {
    display: none;
}

/* ============================
   MOBILNÍ VYHLEDÁVÁNÍ POD HLAVIČKOU
   ============================ */
.header-search-mobile {
    display: none;
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 16px;
    background: #fff;
/*    border-bottom: 1px solid #ccc;*/
}

    .header-search-mobile .search-container {
        position: relative;
    }

    .header-search-mobile input {
        width: 100%;
        padding: 8px 40px 8px 12px;
        border: 1px solid #aaa;
        border-radius: 4px;
    }

    .header-search-mobile .search-btn {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
    }

    .header-search-mobile img {
        margin-top: 4px;
        width: 20px;
        height: 20px;
    }

    .header-search-mobile.open {
        display: block;
    }

/* ============================
   SIDEBAR
   ============================ */
.wrapper {
    display: flex;
    flex-direction: column; /* ← klíčové */
    min-height: calc(100vh - 60px);
    margin-top: 10px;
}

.layout-row {
    display: flex;
    flex-direction: row; /* sidebar + content vedle sebe */
    flex: 1; /* aby content zabral výšku */
}

.sidebar {
    width: 260px;
    background: #f4f4f4;
    border-right: 1px solid #ddd;
    padding: 16px;
}

.content {
    flex: 1;
    padding: 0 20px 20px;
}

.footer {
    display: flex;
    flex-wrap: wrap; /* ← umožní zalomení */
    gap: 20px; /* mezery mezi sloupci */
    padding: 20px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    margin-top: 10px;
}

.footer-col {
    flex: 1 1 200px; /* roste, zmenšuje se, min. šířka 200px */
    display: flex;
    flex-direction: column;
}

    .footer-col h4 {
        margin-bottom: 10px;
        font-size: 16px;
        font-weight: 600;
    }

/* ============================
   MOBIL / TABLET
   ============================ */
@media (max-width: 900px) {

    /* Telefon zmizí */
    /*.header-phone {
        display: none;
    }*/

    /* Desktopové vyhledávání zmizí */
    header .header-search {
        display: none;
    }

    /* Mobilní lupa se zobrazí */
    .search-toggle {
        display: block;
    }

    /* Tlačítko kategorií se zobrazí */
    .toggle-btn {
        display: block;
    }

    /* Wrapper se změní na sloupec */
    .wrapper {
        flex-direction: column;
    }

    .layout-row {
        flex-direction: column;
    }

    /* Sidebar přes celou šířku */
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
        display: none;
        max-width: 100%;
        margin: 0;
    }

        .sidebar.open {
            display: block;
        }
}

/* ============================
   PŘECHOD Z MOBILU NA DESKTOP
   ============================ */
@media (min-width: 901px) {
    .header-search-mobile {
        display: none !important;
    }
}






#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #333;
    color: white;
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .3s ease;
    font-size: 14px;
}

    .toast.show {
        opacity: 1;
        transform: translateY(0);
    }