﻿:root {
    --max: 1200px;
}

* {
    box-sizing: border-box
}

body {
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    margin: 0;
    color: #111
}

header {
    border-bottom: 1px solid #eee
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
    gap: 16px
}

.card {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 12px;
    display: flex;
    flex-direction: column
}

    .card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 10px
    }

.price {
    font-weight: 700;
    margin-top: 4px
}

.badge {
    display: inline-block;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    margin-right: 6px
}

nav a {
    margin-right: 12px;
    color: #333;
    text-decoration: none
}

    nav a.active {
        font-weight: 700
    }

.search {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 12px 0
}

.footer {
    border-top: 1px solid #eee;
    margin-top: 24px;
    padding: 24px 0;
    color: #555;
    font-size: 14px
}

.btn {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #111;
    text-decoration: none;
    color: #111
}

    .btn:hover {
        background: #111;
        color: #fff
    }

/* Content/site.css — PRIDAJ NA KONIEC SÚBORU */
.catbar {
    position: relative;
    margin: 8px 0 16px;
    overflow: auto;
    padding-bottom: 6px
}

    .catbar::-webkit-scrollbar {
        display: none
    }

.catbar {
    scrollbar-width: none
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 8px 0 0;
    padding: 8px 12px;
    border: 1px solid #e6e6e6;
    border-radius: 999px;
    background: linear-gradient(#fff,#fafafa);
    text-decoration: none;
    color: #222;
    box-shadow: 0 1px 0 rgba(0,0,0,.03)
}

    .chip:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(0,0,0,.08)
    }

    .chip.active {
        border-color: #111;
        background: #111;
        color: #fff
    }

    .chip .label {
        white-space: nowrap;
        font-weight: 600
    }

    .chip .count {
        min-width: 22px;
        height: 22px;
        border-radius: 999px;
        border: 1px solid currentColor;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        padding: 0 6px
    }

/* Content/site.css – PRIDAJ jemnú deliacu čiaru */
.divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 8px 0 12px
}

.seo-cat {
    max-width: 1000px;
    margin: 28px auto;
    line-height: 1.7;
    color: #333
}

    .seo-cat h1, .seo-cat h2, .seo-cat h3 {
        color: #222;
        margin-top: 1.1em
    }

    .seo-cat ul {
        list-style: disc;
        margin-left: 1.5em
    }

    .seo-cat ol {
        margin-left: 1.5em
    }

    .seo-cat .faq h3 {
        margin-top: 1em
    }

    .seo-cat a {
        color: #b49458;
        text-decoration: none
    }

        .seo-cat a:hover {
            text-decoration: underline
        }
/* tlačidlá pod sebou */
.btn-stack .btn {
    display: block;
    margin-top: 8px;
    text-align: center
}

/* detail produktu */
.product-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: start
}

@media (max-width:900px) {
    .product-wrap {
        grid-template-columns: 1fr
    }
}

.p-gallery {
    display: grid;
    gap: 12px
}

.p-main {
    width: 100%;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden
}

    .p-main img {
        width: 100%;
        height: auto;
        display: block
    }

.p-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(70px,1fr));
    gap: 8px
}

    .p-thumbs img {
        width: 100%;
        height: 70px;
        object-fit: cover;
        border: 1px solid #eee;
        border-radius: 8px;
        cursor: pointer
    }

.p-info h1 {
    margin: 0 0 6px
}

.p-meta .badge {
    margin-right: 6px
}

.p-actions .btn {
    display: block;
    margin-top: 8px
}

.breadcrumbs {
    font-size: 14px;
    margin-bottom: 8px;
    color: #666
}

    .breadcrumbs a {
        text-decoration: none;
        color: inherit
    }

/* ZOOM efekt pre galériu */
.zoom-container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    cursor: crosshair;
}

.zoom-image {
    width: 400px;
    height: auto;
    display: block;
}

.zoom-lens {
    position: absolute;
    border: 1px solid rgba(0,0,0,0.3);
    width: 100px;
    height: 100px;
    opacity: 0.4;
    background-color: #ddd;
    display: none;
}

/* FIX: dovoľ prekrytie vedľa obrázka */
.p-main.zoom-container {
    position: relative; /* kotva pre absolútne pozicovaný zoom-result */
    overflow: visible !important; /* prebije staré overflow:hidden */
    display: inline-block;
}

/* zoom okno – nech je nad ostatnými a hneď vedľa obrázka */
.zoom-result {
    position: absolute;
    top: 0;
    left: calc(100% + 16px);
    width: 400px;
    height: 400px;
    border: 1px solid #ccc;
    overflow: hidden;
    background-repeat: no-repeat;
    display: none;
    z-index: 999; /* istota pre prekrytie */
}


@media (max-width: 900px) {
    .zoom-result {
        left: 0;
        top: calc(100% + 12px);
        width: 100%;
        height: 320px; /* alebo podľa potreby */
    }
}

.compare {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
}

    .compare .row {
        display: grid;
        grid-template-columns: 1.2fr 1fr 1fr;
        gap: 10px;
        padding: 6px 8px;
        border: 1px solid #eee;
    }

    .compare .head {
        background: #fafafa;
        font-weight: 600;
    }


/* =======================
   HERO CAROUSEL (upravené)
   ======================= */
.hero-carousel {
    padding: 12px 0
}

.hc-title {
    font-size: 1.25rem;
    margin: 0 0 10px
}

.hc-wrap {
    position: relative
}

.hc-viewport {
    overflow: hidden
}

/* Track: nikdy nezalamovať + medzery medzi kartami */
.hc-track {
    display: flex;
    flex-wrap: nowrap; /* dôležité: všetko v jednom riadku */
    gap: 12px;
    --items-per-view: 4; /* JS si toto číta a nastaví šírky */
    transition: transform .35s ease;
    will-change: transform;
    touch-action: pan-y;
}

/* Karty: šírku už NENASTAVUJEME v CSS, urobí to JS */
.hc-item {
    flex: 0 0 auto
}

.hc-card {
    display: block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit
}

/* Obrázok */
.hc-img {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa
}

    .hc-img img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block
    }

/* (voliteľné) info blok – ak ho budeš znova používať */
.hc-info {
    padding: 10px
}

.hc-name {
    font-size: .95rem;
    line-height: 1.25rem;
    height: 2.5rem;
    overflow: hidden
}

.hc-price {
    margin-top: 6px;
    display: flex;
    gap: 8px;
    align-items: baseline
}

.hc-price-now {
    font-weight: 700
}

.hc-price-old {
    text-decoration: line-through;
    color: #888;
    font-size: .9rem
}

/* Navigačné šípky */
.hc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    line-height: 34px;
    text-align: center;
    font-size: 20px;
    color: #333;
    user-select: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.08)
}

.hc-prev {
    left: -6px
}

.hc-next {
    right: -6px
}

.hc-nav[disabled] {
    opacity: .4;
    cursor: not-allowed
}

/* Responzívny počet kariet (JS číta túto premennú) */
@media (max-width:1023px) {
    .hc-track {
        --items-per-view: 3;
    }
}

@media (max-width:639px) {
    .hc-track {
        --items-per-view: 2;
    }
}




.main-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 50
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 56px
}

.brand {
    font-size: 18px;
    line-height: 1;
    margin: 0;
    white-space: nowrap
}

    .brand a {
        display: inline-block;
        padding: 10px 0;
        text-decoration: none;
        color: inherit
    }

/* Hamburger (skrytý na desktope) */
.nav-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    cursor: pointer
}

.nav-toggle-bar {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    background: #222;
    border-radius: 2px;
    transition: transform .2s ease,opacity .2s ease
}

    .nav-toggle-bar:nth-child(1) {
        top: 12px
    }

    .nav-toggle-bar:nth-child(2) {
        top: 19px
    }

    .nav-toggle-bar:nth-child(3) {
        top: 26px
    }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

.sr-only {
    position: absolute;
    left: -9999px
}

/* Layout: na desktope center, na mobile stacked */
.brand, .nav-actions {
    flex: 1 1 0
}

.menu-wrap {
    flex: 2 1 0;
    display: flex;
    justify-content: center
}

/* MENU DESKTOP */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    align-items: center
}

    .menu > li {
        position: relative
    }

    .menu a {
        display: block;
        padding: 12px 10px;
        text-decoration: none;
        color: #222
    }

/* SUBMENUS desktop (hover) */
.has-sub > .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    z-index: 20;
    padding: 6px 0
}

.has-sub:hover > .submenu {
    display: block
}

.submenu li a {
    padding: 6px 12px;
    white-space: nowrap
}

.submenu .divider {
    height: 1px;
    margin: 6px 8px;
    background: #f0f0f0
}

/* Blog submenu do dvoch stĺpcov na desktope */
.submenu-blog {
    min-width: 520px;
    padding: 10px;
    display: none
}

.has-sub:hover > .submenu-blog {
    display: grid
}

.submenu-blog {
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px
}

    .submenu-blog li a {
        padding: 4px 6px
    }

/* ===== MOBILE BREAKPOINT ===== */
@media (max-width:900px) {
    .nav-inner {
        gap: 10px;
        flex-wrap: wrap
    }

    .nav-toggle {
        display: block;
        margin-left: auto
    }

    .brand, .menu-wrap, .nav-actions {
        flex: 0 0 100%
    }

    .brand {
        text-align: left;
        padding-top: 6px
    }

    /* Menu: skryté, po rozbalení vertikálne */
    .menu-wrap {
        justify-content: stretch
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
        border-top: 1px solid #f0f0f0;
        display: none
    }

        .menu[aria-hidden="false"] {
            display: flex
        }
        /* fallback pre staršie – čítame aj dátový atribút, ak by si nechcel aria-hidden */
        .menu[data-collapsed="false"] {
            display: flex
        }

        .menu > li > a {
            padding: 12px 6px
        }

    /* Submenu ako accordion (skryté default) */
    .has-sub > .submenu {
        position: static;
        display: none;
        border: 0;
        box-shadow: none;
        padding: 0;
        margin: 0
    }

    .has-sub.open > .submenu {
        display: block
    }

    /* Tlačidlo na rozbalenie submenu (pravá strana riadku) */
    .submenu-toggle {
        display: inline-block;
        margin-left: auto;
        align-self: center;
        width: 36px;
        height: 36px;
        border: 1px solid #eee;
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }

    .has-sub {
        padding-right: 44px
    }
    /* priestor pre toggle */
    .submenu-toggle::before {
        content: "";
        display: block;
        width: 10px;
        height: 10px;
        border-right: 2px solid #222;
        border-bottom: 2px solid #222;
        transform: rotate(45deg);
        margin: 11px auto;
    }

    .has-sub.open > .submenu-toggle::before {
        transform: rotate(-135deg);
        margin: 14px auto
    }

    /* Blog submenu na mobile = 1 stĺpec */
    .submenu-blog {
        display: block;
        grid-template-columns: 1fr !important;
        gap: 0
    }

        .submenu-blog li a {
            padding: 10px 6px
        }

    /* Scroll v prípade dlhých zoznamov */
    .menu-wrap {
        max-height: 70vh;
        overflow: auto
    }
}

/* default: na desktope NEZOBRAZUJ toggle */
.submenu-toggle {
    display: none !important;
}

/* len MOBILE (<=900px): zobraz a naštýluj ako malé tlačidlo vpravo) */
@media (max-width:900px) {
    .has-sub {
        padding-right: 44px;
    }
    /* miesto pre toggle napravo */

    .submenu-toggle {
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border: 1px solid #eee;
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
    }

        /* šípka */
        .submenu-toggle::before {
            content: "";
            width: 10px;
            height: 10px;
            border-right: 2px solid #222;
            border-bottom: 2px solid #222;
            transform: rotate(45deg);
        }

    .has-sub.open > .submenu-toggle::before {
        transform: rotate(-135deg);
    }
}


.menu,
.menu ul,
.submenu,
.submenu-blog,
.submenu li,
.submenu-blog li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}
