@charset "UTF-8";
:root {
    --bg: rgba(36,38,40,1);
    --fg: hsl(0, 0%, 95%);
    --card: rgba(27,34,40,1);
    --card-fg: hsl(0, 0%, 95%);
    --nav-bg: rgba(49,53,58,1);
    --nav-fg: hsl(0, 0%, 90%);
    --primary: hsl(78, 70%, 45%);
    --primary-fg: hsl(220, 20%, 10%);
    --border: hsl(220, 15%, 25%);
    --muted: hsl(220, 15%, 25%);
    --muted-fg: hsl(220, 10%, 60%);
    --popover: hsl(220, 18%, 20%);
    --secondary: hsl(220, 15%, 22%);
    --radius: 0.5rem;
    --boxShadow: 0 5px 10px rgba(0,0,0,1);
    --CardRadius: 25px;
}


html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #12151d;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cpath d='M0 30 Q 75 15 150 30 T 300 30' stroke='rgba(255,255,255,0.05)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 90 Q 60 110 150 90 T 300 90' stroke='rgba(255,255,255,0.05)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 150 Q 90 120 180 155 T 300 150' stroke='rgba(255,255,255,0.05)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 215 Q 75 235 165 210 T 300 215' stroke='rgba(255,255,255,0.05)' stroke-width='1' fill='none'/%3E%3Cpath d='M0 275 Q 105 255 195 285 T 300 275' stroke='rgba(255,255,255,0.05)' stroke-width='1' fill='none'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--fg);
    line-height: 1.6;

}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* img { max-width: 100%; display: block; } */


.obsah {
    max-width: 1400px;
    margin: 0 auto; 
    display: flex;      /* Boxy se seřadí vedle sebe */
    flex-wrap: wrap;    /* Když se nevejdou, skočí na další řádek */
    gap: 20px;          /* Mezera mezi boxy, nemusíš řešit marginy u vnitřků */
    padding-bottom: 50px;
}
.container {
    max-width: 1400px;
    margin: 0 auto;
}


/*-- Horní menu --*/
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 57px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    display: block;
    width: 100%;

}
/* Horní menu vnitřní rozložení */
.header-inner {
    display: flex;
    justify-content: space-between;
    height: 56px;
    margin: 0 auto;
}
/* Logo */
.logo {
    display: inline;
    width: 92px;
    height: 80px;
    margin-left: 25px;
    background-image: url('../img/logo.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 1));
}



/* --- Tvůj stávající kód zůstává beze změny --- */

.desktop-nav { display: flex; align-items: center; gap: 4px; z-index: 120; list-style: none; }
.desktop-nav > li { position: relative; }
.desktop-nav > li > a { display: block; padding: 8px 14px; font-size: 15px; font-weight: bold; color: var(--nav-fg); transition: color 0.2s; }
.desktop-nav > li > a:hover { color: var(--primary); }
.desktop-nav  .dropdown li {border-bottom: 1px solid rgba(255, 255, 255, 0.1);width:100%;}

/* Základní dropdown (pro úzká menu) */
.desktop-nav .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--popover);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    list-style: none;
}

.desktop-nav > li:hover .dropdown { opacity: 1; visibility: visible; }
.desktop-nav .dropdown a { display: block; padding: 8px 16px; font-size: 13px; color: var(--nav-fg); text-align: center; transition: background 0.15s, color 0.15s; }
.desktop-nav .dropdown a:hover { background: var(--muted); color: var(--primary); }

/* --- NOVÉ ÚPRAVY PRO MEGA MENU (PRODUKTY) --- */

/* --- ÚPRAVY PRO MEGA MENU (PRODUKTY) --- */

/* Přepnutí na široké zobrazení */
.desktop-nav .dropdown.is-mega {
    display: flex;
    flex-direction: row;
    width: 900px;
    padding: 25px;
    align-items: flex-start;
    justify-content: space-around;
}

/* Nadpisy ve sloupcích (Vizitky, Deníky...) */
.desktop-nav .dropdown.is-mega > li > a {
    font-weight: bold !important;
    font-size: 15px !important;
    color: #fff !important;
    text-transform: uppercase;
    /* LINKA POD NADPISY */
    border-bottom: 2px solid var(--primary); /* Silnější linka v barvě webu */
    margin-bottom: 15px;
    padding: 0 0 10px 0 !important;
    display: block; 
}

/* Vnitřní seznamy (3. úroveň) */
.desktop-nav .dropdown.is-mega ul li {
    list-style: none;
    /* LINKA POD KAŽDOU POLOŽKOU SEZNAMU */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Velmi jemná linka */
}

/* Poslední položka v seznamu linku mít nemusí */
.desktop-nav .dropdown.is-mega ul li:last-child {
    border-bottom: none;
}

.desktop-nav .dropdown.is-mega ul li a {
    padding: 8px 0 !important;
    font-weight: normal !important;
    text-align: left; /* Zarovnání vlevo vypadá s linkami lépe */
    font-size: 13px;
    color: #ccc !important;
    background: transparent !important;
}

.desktop-nav .dropdown.is-mega ul li a:hover {
    color: #fff !important;
    padding-left: 5px !important; /* Malý efekt posunutí při hoveru */
    transition: all 0.2s;
}



 

/* Horní menu pravá strana */
.header-right {
    display: flex;
    margin-right: 25px;
    align-items: center;
    gap: 35px;
}



.login-wrapper {
    display: flex;
    align-items: center;
}

.login-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nav-fg);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

.login-link:hover {
    color: var(--primary);
}

.login-icon {
    width: 20px;
    height: 20px;
}

/* Na mobilu schováme text a necháme jen ikonu, pokud je málo místa */
@media (max-width: 600px) {
    .login-text {
        display: none;
    }
}
/* vyhledávací box */
.search-box {
    border: 0 solid #000000;
    width: 220px;
    height: 35px;
    align-items: center;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    box-sizing: border-box;
    gap: 10px;

}
/* vyhledávací box vstup */
.search-box input { background: #ffffff; display: flex; border-radius: 3px;


    border: none; outline: none;


    color: #333333; font-size: 13px; padding: 5px 10px; width: 80%; height: 100%; flex-grow: 1; }

.search-box input::placeholder { color: var(--muted-fg); }
/* vyhledávací tlačítko */
.search-btn { background: var(--primary); border: none; border-radius: 3px; padding: 9px 9px; cursor: pointer; display: flex; align-items: center; flex-shrink: 0; }
.search-btn svg { width: 16px; height: 16px; fill: var(--primary-fg); }
/* nákupní košík */
.cart-btn {
    background: none;
    border: none;
    color: var(--nav-fg);
    cursor: pointer;
    transition: color 0.2s;
}

.cart-btn:hover { color: var(--primary); }
.cart-btn svg { width: 25px; height: 25px; }


/* jazykové verze - KOMPLETNÍ NÁHRADA */

/*
Jak to teď bude fungovat:
Mobil: Klikneš na vlaječku. Odkazy jsou "vypnuté" (pointer-events: none), takže tě to nepřesměruje. Ale aktivuje se onclick na celém kontejneru a přidá třídu .opened.

Rozbalení: Jakmile tam ta třída je, CSS zapne odkazy (pointer-events: auto).

Výběr: Teď klikneš na jinou vlajku a už tě to normálně přesměruje.
*/

/* ZÁKLAD (Platí pro všechna zařízení) */
.lang-selector { position: relative; display: inline-block; cursor: pointer; width: 45px; height: 40px; z-index: 9999; }
.lang-dropdown { position: absolute; top: 0; left: -10px; display: flex; flex-direction: column; background: var(--nav-bg); border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; width: 45px; overflow: hidden; max-height: 40px; transition: max-height 0.3s ease; }
.lang-dropdown a { display: block; padding: 8px; text-align: center; line-height: 0; pointer-events: none; } /* V základu vypnuté */
.lang-dropdown a.active { order: -1; }
.lang-dropdown a:hover { background-color: black; }
.lang-dropdown img { width: 24px; height: auto; border-radius: 2px; }

/* PC VERZE (Obrazovky nad 1023px) */
@media (min-width: 1023px) {
    .lang-selector:hover .lang-dropdown { max-height: 200px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); overflow: visible; }
    .lang-selector:hover .lang-dropdown a { pointer-events: auto; } /* Na PC se "odemknou" hned při najetí */
}

/* MOBILNÍ VERZE (Obrazovky pod 1023px) */
@media (max-width: 1023px) {
    /* Rozbalení jen pomocí třídy .opened (kterou tam dává tvůj onclick) */
    .lang-selector.opened .lang-dropdown { max-height: 200px; box-shadow: 0 4px 12px rgba(0,0,0,0.5); overflow: visible; }
    .lang-selector.opened .lang-dropdown a { pointer-events: auto; } /* Na mobilu se odemknou až po kliknutí */
}


/* Mobile menu */
.mobile-toggle { display: none; background: none; border: none; color: var(--nav-fg); cursor: pointer; z-index: 1001; /* Aby bylo nad menu */ }
.mobile-toggle svg { width: 28px; height: 28px; stroke: var(--nav-fg); /* Zajistí viditelnost čar */ }
.mobile-nav { display: block; /* Musí být block pro animaci */ position: fixed; top: 0; right: -100%; /* Schované vpravo mimo obrazovku */ width: 80%; max-width: 300px; height: 100vh; background: var(--nav-bg); z-index: 1000; transition: right 0.3s ease-in-out; overflow-y: auto; padding-top: 60px; /* Prostor pro křížek/tlačítko */ box-shadow: -5px 0 15px rgba(0,0,0,0.3); border-left: 1px solid var(--border); }
/* Třída .open, kterou tvůj JS přidává */
.mobile-nav.open { right: 0; /* Vysune menu na scénu */ }
.mobile-nav a { display: block; padding: 14px 20px; font-size: 16px; font-weight: 500; color: var(--nav-fg); border-bottom: 1px solid var(--border); text-decoration: none; }
/* Podmenu (Dropdowns a sub-items) */
.mobile-nav .dropdown, .mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav .dropdown a { padding-left: 35px; /* Odsazení podmenu */ font-size: 14px; background: rgba(255,255,255,0.03); color: var(--muted-fg); }
/* Mega menu úprava pro mobil */
.mobile-nav .is-mega > li > a { background: var(--primary); color: #000; font-weight: bold; text-transform: uppercase; font-size: 12px; }
.mobile-nav a:hover { color: var(--primary); background: rgba(var(--primary-rgb), 0.1); }

/* --- ÚPRAVA MEDIA QUERY --- */

@media (max-width: 1023px) {
    .desktop-nav, .search-box{ display: none !important; }
    .header-right { display: flex; gap: 15px; margin-right: 15px; align-items: center; }
    .mobile-toggle { display: block; }
/* Zamezení skrolování pozadí, když je menu otevřené (volitelné) */
    body.menu-open { overflow: hidden; }
}
/* ========== HERO ========== */

.hero {
    position: relative;
    clear: both;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: var(--boxShadow);

}
.hero img {
    width: 100%;
    display: block;
    /* Vytvoří plynulý přechod na všech stranách */
    mask-image: radial-gradient(
            ellipse at center,
            black 100%,
            transparent 100%
    );
    /* Podpora pro starší prohlížeče (Chrome/Safari) */
    -webkit-mask-image: radial-gradient(
            ellipse at center,
            black 100%,
            transparent 100%
    );
}
.hero-content {
    position: absolute;
    bottom: 60px;
    left: 10%;
    line-height: normal;
}

.hero-text-box {
    max-width: 450px;
    height: 160px;
    background: rgba(22, 28, 38, 0.6);
    border-radius: 25px;
    padding: 20px;
    color: white;
    line-height: 1.6;
}

.hero-text-box p {
    font-size: 24px;
    line-height: 1.6;
    margin: 0;
}

/* ========== PRODUCTS ========== */
.products-section {
    padding: 60px 0;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 20px;
}

@media (max-width: 1023px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    background-color: var(--card);
    border-radius: 25px;
    height: 550px;
    overflow: hidden;
    box-shadow: var(--boxShadow);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

.product-card:hover {
    border-color: rgba(143, 189, 50, 1);
    transform: translateY(-4px);
}


.product-card h3 {
    position: absolute;
    top: 17px;
    z-index: 2;
    font-size: 25px;
    font-weight: 700;
    color: white;
    text-shadow:
            -1px -1px 0 #000,
            1px -1px 0 #000,
            -1px  1px 0 #000,
            1px  1px 0 #000;
    pointer-events: none;
}

.product-card .card-img {
    position: relative;
    width: 100%;
    border-radius: 25px;
    aspect-ratio: 6/5.8;
    overflow: hidden;
    box-shadow: var(--boxShadow);
    margin-bottom: 20px;
}

.product-card .card-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    pointer-events: none;
}

.product-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.product-card p {
    text-align: center;
    font-size: 20px;
    height: 200px;
    color: white;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 10px;
    line-height: 1.6;
}

.card-text {
    display: block;
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 20px;
}

/* ========== CTA BUTTON ========== */
.btn-cta {
    display: inline-block;
    background: var(--primary);
    color: var(--primary-fg);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    padding: 1px 30px;
    margin-bottom: 20px;
    border-radius: 25px;
    border: 2px solid var(--primary);
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.btn-cta:hover {
    background: transparent;
    color: var(--primary);
}

/* ========== NEW PRODUCTS ========== */

.new-product-box {
    position: relative;
    background-color: var(--card);
    border-radius: 25px;
    margin: 0 auto;
    max-width: 1355px;
    height: 450px;
    overflow: hidden;
    box-shadow: var(--boxShadow);
    display: flex;
    flex-direction: column;
}

.new-products-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    gap: 200px;
    background-color: var(--card);
    box-shadow: var(--boxShadow);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.new-products-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.new-products-btn::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.new-products-btn:hover {
    color: white;
}

.new-products-btn:hover::before {
    border-color: white;
}

.new-products-btn.active {
    color: var(--primary);
}

.new-products-btn.active::before {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.new-products-content{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-left: 50px;
    margin-right: 50px;
    gap: 40px;
    padding: 40px;
    margin-top: 40px;
    height: calc(100% - 50px);
    box-sizing: border-box;
    overflow-x: auto;
}

.new-product-item {
    flex: 0 0 350px;
    height: 100%;
    background-color: var(--card);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: var(--boxShadow);
}

/* Horní lišta */
.new-product-item-top {
    height: 40px;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-fg);
    font-family: 'Montserrat', sans-serif;
}

/* Text boxu */
.new-product-item-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
}

/* Text pod lištou */
.product-name {
    margin-bottom: 10px;
    font-size: 15px;
    color: white;
}

/* Tenká čára */
.product-separator {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 10px;
}

/* Obrázek*/
.new-product-img {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.new-product-img img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}
/* ========== WHY JOIN ========== */

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 200px;
}

/*@media (max-width: 767px) { .benefits-grid { grid-template-columns: 1fr; } }*/

/* Kontejner pro grid */
.benefits-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 180px 170px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
    /*column-gap: -50px;*/
    justify-items: center;
}

/* Vertikální čára */
.benefits-line {
    position: absolute;
    left: 50%;
    top: -170px;
    bottom: 0;
    width: 2px;
    background: #ffffff;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

.benefits-wrapper {
    padding: 60px 0;
}

.benefit-marker {
    position: absolute;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.benefit-marker img {
    width: 90px;
    height: 90px;
    opacity: 1;
}

/* Karty */
.benefit-card {
    position: relative;
    background: var(--card);
    box-shadow: var(--boxShadow, 0 10px 30px rgba(0,0,0,0.2));
    border-radius: 25px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: visible;
    z-index: 1;
}

.benefit-card::before {
    content: "";
    position: absolute;
    width: 30px;
    height: 40px;
    background: var(--card);
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.benefit-card.left {
    grid-column: 1;
    width: 100%;
}

.benefit-card.right {
    grid-column: 2;
    width: 100%;
}

.benefit-card.left::before {
    right: -30px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);

}
.benefit-card.right::before {
    left: -30px;
    clip-path: polygon(100% 0, 0% 50%, 100% 100%);
}

.benefit-card:hover .benefit-marker img {
    opacity: 1;
}

/* Pozicování markeru pro levou kartu */
.benefit-card.left .benefit-marker {
    right: -130px; /* Polovina gapu (120/2) + přesah */
    top: 50%;
    transform: translateY(-50%);
}

/* Pozicování markeru pro pravou kartu */
.benefit-card.right .benefit-marker {
    left: -130px;
    top: 50%;
    transform: translateY(-50%);
}

/* Tvůj stávající posun sudých karet dolů */
.benefit-card:nth-child(even) {
    transform: translateY(-200px);
}


/* Na mobilu šipky schováme, aby nezavazely */
@media (max-width: 767px) {
    .benefit-card::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .benefit-card:nth-child(even) { transform: none; }
}

.benefit-text { flex: 1; }

.benefit-text h3 {
    font-family: 'Montserrat', sans-serif;
    position: relative;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.benefit-text p {
    font-size: 16px;
    color: white;
    line-height: 1.6;
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Responzivita pro mobily */
@media (max-width: 800px) {
    .benefits-grid {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .benefits-line {
        display: none;
    }

    .section-title {
        margin-bottom: 0px;
    }

    .benefit-card {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;

        /* Resetujeme pozicování */
        position: static !important;
        transform: none !important;
        margin: 0 0 30px 0 !important; /* Mezera mezi kartami pod sebou */
        left: 0 !important;
        right: 0 !important;
    }

    /* Schováme šipky na mobilu, aby to nebylo přeplácané */
    .benefit-card::before, .benefit-card::after {
        display: none;
    }

    .benefit-marker{
        display: none;
    }
}


/* ================= FOOTER =================*/

footer { background-color: #1e293b; /* Tmavě modrá/šedá */ color: #f8fafc; padding: 60px 20px 20px 20px; font-family: 'Inter', sans-serif; display: flex; flex-wrap: wrap; /* Aby se to na mobilu poskládalo pod sebe */ justify-content: space-between; /* Roztáhne sloupce k okrajům */ gap: 40px; /* Mezery mezi sloupci */ max-width: 1400px; margin: 0 auto; /* Zarovnání celého patičky na střed */ }
/* Nadpisy v patičce */
footer h3 { color: #ffffff; font-size: 18px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
/* Sekce kontakt */
footer .kontakt address { font-style: normal; line-height: 1.6; color: #cbd5e1; }
footer .footer-phone { margin-top: 15px; }
footer .footer-phone a { color: #3b82f6; /* Výrazná modrá pro telefon */ text-decoration: none; font-weight: bold; font-size: 1.1rem; }
/* Loga partnerů */
/* Sekce partneři - kontejner */
footer .partneri { flex: 2;           /* Necháme ji širší než kontakt */ min-width: 300px; }
/* Úprava samotných obrázků */
footer .partneri a img { height: 25px;      /* Zmenšeno z původních 40px na 25px */ width: auto;       /* Zachová poměr stran */ display: block; filter: grayscale(100%) brightness(150%); opacity: 0.6; transition: all 0.3s ease; float:left; margin-left:20px; }
footer .partneri a img:hover { filter: grayscale(0%) brightness(100%); opacity: 1; transform: scale(1.05); /* Jemné zvětšení při najetí */ }
/* Sociální sítě */
footer .soc a img { width: 32px; height: 32px; margin-right: 10px; transition: transform 0.2s; float:left; }
footer .soc a img:hover { transform: scale(1.1); }
/* Spodní řádek s copyrightem */
footer .cop { width: 100%; /* Natáhne se přes celou šířku */ border-top: 1px solid #334155; margin-top: 20px; padding-top: 20px; text-align: center; color: #94a3b8; font-size: 14px; }
/* Responzivita - pro mobily */
@media (max-width: 768px) {
    footer {
        flex-direction: column; /* Sloupce půjdou pod sebe */
        text-align: center;
    }
    
    footer .partneri {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ================= FOOTER =================*/
 

/* ================= box ============================= */

 
 
.obsah .box  { float:left; margin-top:20px; display: flex; flex-direction: column; align-items: center; position: relative; background: var(--card); border-radius: var(--CardRadius); overflow: hidden; box-shadow: var(--boxShadow); font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; color: white; }
.obsah .box.large { width:47%;}
.obsah .box.large:nth-of-type(2n) {   margin-left: 2%; }

.obsah { display: flex; flex-wrap: wrap; justify-content: space-between; }

.obsah .box.small { width: 32%; margin-bottom: 20px; }
/* obrázek v kartě */
.obsah .box img { position: relative; width: 100%;  aspect-ratio: 16/9;   object-fit: cover; object-position: center;  border-radius: var(--CardRadius); overflow: hidden; box-shadow: var(--boxShadow); margin-bottom: 15px; }
.obsah .box p { text-align: center; height: 10px; color: white; margin-left: 10px; margin-right: 10px; line-height: 1.6; }
.obsah .box .btn-cta { margin-top:40px;}



.box.prodej h3, .date-row , header,.btn-buy{  text-align: center;  }
.box.prodej header { width:100%; background-color:var(--primary);}
.box.prodej header .dots{ float:left; margin-left:5%;}
.box.prodej header .check-top{ float:right; margin-right:5%;}
.box.prodej .img-wrap {  display: flex;  margin-top:20px; margin-bottom:20px;  }
.box.prodej .img-wrap img { width: 80%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0 !important;   }
.box.prodej .btn-buy{width:100%; background-color:var(--primary);}
.box.prodej .check-box { width:20px;height:20px; }
.box.prodej .img-wrap .prev { left: 5px; }
.box.prodej .img-wrap .next { right: 5px; }
.box.prodej .img-wrap { position: relative; /* Nutné pro pozicování šipek */ display: flex; align-items: center; justify-content: center; }
.box.prodej .img-wrap button { position: absolute; background: var(--primary); color: white; border: none; padding: 10px 5px; cursor: pointer; z-index: 10; border-radius: 3px; }
.box.prodej .img-wrap button:hover {color: black; }

 @media (max-width: 768px) {

  .obsah .box.large { width:80%; margin:0 auto;}
  .obsah .box.small { width:80%;  margin:0 auto;}
  .obsah .box.large:nth-of-type(2n) {  margin:0 auto; }
  .obsah .box.small:nth-child(3n) { margin:0 auto; }

 }



 /*=========================filtr=========================*/
 /* FILTRAČNÍ DRAWER */
.filter-drawer { position: fixed; top: 0; left: -400px; width: 380px; height: 100%; background: var(--card); color: var(--card-fg); z-index: 200; box-shadow: 10px 0 30px rgba(0,0,0,0.5); transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); display: flex; flex-direction: column; }
.filter-drawer.open { left: 0; }
/* Zvýraznění textu rodiče, pokud je uvnitř něco vybráno */
.filter-drawer .tree-node.has-checked-child .node-text { font-weight: bold; color: #007bff; /* Modrá nebo barva tvého webu */ }
/* Volitelně: změna ikony nebo barvy šipky */
.filter-drawer .tree-node.has-checked-child .toggle-arrow { color: #007bff; }

.filter-drawer  .drawer-header { padding: 20px; background: var(--nav-bg); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }

/* STROM A CHECKBOXY */
.filter-drawer .tree-menu { overflow-y: auto; padding: 15px; flex-grow: 1; }
.filter-drawer .tree-item { margin: 4px 0; }
.filter-drawer .tree-node { display: flex; align-items: center; padding: 6px; cursor: pointer; border-radius: var(--radius); transition: 0.2s; }
.filter-drawer .tree-node:hover { background: var(--secondary); }
.filter-drawer .tree-node.parent-node { font-weight: bold; color: var(--primary); }
.filter-drawer .tree-node input[type="checkbox"] { margin: 0 12px; width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.filter-drawer .tree-children { display: none; margin-left: 20px; border-left: 1px solid var(--border); }
.filter-drawer .tree-item.open > .tree-children { display: block; }
.filter-drawer .tree-item.open > .tree-node > .toggle-arrow { transform: rotate(90deg); }

/* PATIČKA S TLAČÍTKEM */
.filter-drawer .filter-footer { padding: 20px; background: var(--nav-bg); border-top: 1px solid var(--border); }
.filter-drawer .btn-submit { width: 100%; background: var(--primary); color: var(--primary-fg); border: none; padding: 14px; border-radius: var(--radius); font-weight: bold; cursor: pointer; font-size: 16px; }
.filter-drawer .btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 1023px) { .filtr_text {display:none;} }
/* ================================================ */

/* Spodní řádek */
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--muted-fg);
}

/* moje pridavky na kontrolu
/* KONTEJNER PRO CELÉ MENU */
.user-dropdown {
    position: relative;
    display: inline-block;
}

/* TLAČÍTKO S JMÉNEM A IKONOU */
.user-menu-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
}

.user-name { font-weight: 600; font-size: 14px; }
@media (max-width: 1023px){
    .user-name{ display:none; }
}

/* NEVIDITELNÝ MOST - HLAVNÍ OPRAVA */
/* Vytvoří plochu mezi tlačítkem a menu, aby menu nezmizelo při přejíždění */
.user-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 20px; /* Šířka mezery, kterou myš překoná */
    display: none;
}

.user-dropdown:hover::after {
    display: block;
}

/* VYSKAKOVACÍ OBSAH (MENU) */
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px); /* Mezera 10px pod tlačítkem */
    background: var(--card);
    min-width: 200px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    border-radius: 15px;
    border: 1px solid var(--border);
    z-index: 9999;
    overflow: hidden;
    /* Animace objevení */
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ZOBRAZENÍ PŘI NAJETÍ NA OBAL */
.user-dropdown:hover .dropdown-content {
    display: block;
}

/* JEDNOTLIVÉ ODKAZY V MENU */
.dropdown-content a {
    color: var(--muted-fg);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background: rgba(var(--primary-rgb, 0, 255, 0), 0.1);
    color: var(--primary);
    padding-left: 20px; /* Jemný posun vlevo při najetí */
}

/* ČÁRA MEZI ODKAZY */
.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
    opacity: 0.5;
}

/* SPECIFICKÝ STYL PRO ODHLÁŠENÍ */
.dropdown-content a.logout {
    color: #ff5555;
}

.dropdown-content a.logout:hover {
    background: rgba(255, 85, 85, 0.1);
    color: #ff7777;
}

/* ŠIPKA (CHEVRON) */
.chevron {
    opacity: 0.4;
    transition: transform 0.3s;
}

.user-dropdown:hover .chevron {
    transform: rotate(180deg);
    color: var(--primary);
}


.vop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Tmavé pozadí přes celý web */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999; /* Musí být nejvýš */
    backdrop-filter: blur(5px); /* Rozmaže web v pozadí */
}

.vop-modal {
    background: var(--card); /* Tvoje barva pozadí */
    padding: 40px;
    border-radius: 20px;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.vop-icon { font-size: 50px; margin-bottom: 20px; }
.vop-modal h2 { margin-bottom: 15px; color: var(--fg); }
.vop-modal p { color: var(--muted-fg); margin-bottom: 30px; line-height: 1.6; }

.vop-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Styl pro odkazy v textu (VOP, GDPR) */
.vop-modal p a,
.obchodnipodminky a {
    color: var(--primary); /* Tvoje hlavní barva (zelená/modrá) */
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid rgba(var(--primary-rgb), 0.3); /* Jemné podtržení */
    transition: all 0.2s ease;
    padding: 0 2px;
}

/* Efekt při najetí myší */
.vop-modal p a:hover,
.obchodnipodminky a:hover {
    background: rgba(var(--primary-rgb), 0.1); /* Světlý podmaz */
    border-bottom-color: var(--primary); /* Zvýraznění čáry */
    color: var(--primary-hover); /* Pokud máš definovanou tmavší variantu */
}

/* Přidání malé ikonky "externí odkaz" za text (volitelné) */
.vop-modal p a::after {
    content: " ↗"; /* Symbol šipky ven */
    font-size: 0.8em;
    opacity: 0.7;
}

.btn-accept {
    background: var(--primary); /* Tvoje hlavní barva (zelená/modrá) */
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.btn-reject {
    background: transparent;
    color: #ff5555;
    border: 1px solid #ff5555;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
}


/* Karta */
.obsah .produkt-detail { display: flex; width: 100%; flex-direction: column; /*align-items: center;*/ border-radius: var(--CardRadius); background-color: var(--card); overflow: hidden; color: white; box-shadow: var(--boxShadow); margin-top: 20px; }
.produkt-detail header { width: 100%; height: 30px; background-color: var(--primary); justify-content: center; align-items: center; display: flex; }
.produkt-detail main{ display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; gap: 30px; padding: 20px; }
.produkt-detail main > img { flex: 1.5; height: auto; aspect-ratio: auto !important; object-fit: contain; border-radius: 0 !important; width: 100%; padding-top: 5%; padding-left: 2%; }
.produkt-detail .produkt-info { flex: 1.5; display: flex; flex-wrap: wrap; margin-top: 40px; }
.produkt-detail .produkt-info .produkt-text { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px; }
.produkt-detail .produkt-text > h4 { padding: 2px; }
.produkt-detail .produkt-text > p { padding: 5px; }
.produkt-detail .produkt-info .tlacitka { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.produkt-detail .produkt-thumb { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width:100%; padding: 40px; }
.produkt-detail .produkt-thumb img { float:left; width: 80px; height: 50px; aspect-ratio: auto !important; border-radius: 0 !important; }
.produkt-detail .btn-group { display: flex; flex-direction: row; flex-wrap: wrap; gap: 20px; justify-content: center; width:100%; }
.produkt-detail .btn-group button { width: auto; height: 40px; padding: 10px 20px; font-size: 16px; cursor: pointer; border-radius: 10px; }
.produkt-detail .btn-group button:hover { transform: scale(1.05); }
.produkt-detail .btn-koupit { border: 2px solid var(--primary); background-color: transparent; color: var(--primary); cursor: pointer; width: 100%; height: 40px; }
.produkt-detail .btn-nahlasit { border: 2px solid #a60800; background-color: transparent; color: #a60800; }
.produkt-detail .btn-neziskano { border: 2px solid #a60800; background-color: #a60800; color: black; }
.produkt-detail .btn-naplanovat { border: 2px solid var(--primary); background-color: var(--primary); color: black; }
.produkt-detail.info-lokace > h4 { padding: 40px 0px 30px 70px; }
.produkt-detail.info-lokace > p { padding: 0px 0px 40px 70px; }
.produkt-detail.prodej-mista > p { padding: 10px 20px 0px 70px; }
.produkt-detail.prodej-mista hr { margin: 0px 20px 20px 20px; border: 1px solid var(--primary); }


@media (max-width: 1023px) {
     
    .produkt-detail main { flex-direction: column; gap: 20px; padding: 15px; }
    .produkt-detail main > img { flex: none; width: 100%; max-width: 400px;  padding: 0; margin: 0 auto; }
    .produkt-detail .produkt-info { flex: none; width: 100%; margin-top: 0; }
    .produkt-detail .produkt-info .produkt-text { padding: 10px 0; }
    .produkt-detail .btn-group { flex-direction: column; gap: 12px; }
    .produkt-detail .btn-group button { width: 100%;  height: 45px;   }
    .produkt-detail .produkt-thumb { padding: 20px 10px; }
    .produkt-detail.info-lokace > h4, .produkt-detail.info-lokace > p, .produkt-detail.prodej-mista > p { padding-left: 20px; padding-right: 20px; }
    .produkt-detail.info-lokace > h4 { padding-top: 20px; padding-bottom: 10px; }
}



#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
    min-width: 250px;
}

.toast.error { border-left: 5px solid #ff4b2b; }
.toast.success { border-left: 5px solid #4bb543; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.fade-out {
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in;
}