/* ==========================================================================
   La Bella — vizuálne vylepšenia (hlavička, menu, submenu, úvod)
   Načítava sa ZA public/css/catalog.min.css (head.twig). 2026-11-09, bajan.sk
   ========================================================================== */

:root {
    --lb-ink: #1a1a1a;
    --lb-text: #555;
    --lb-muted: #8a8a8a;
    --lb-line: #ece8e4;
    --lb-soft: #f7f4f1;
    --lb-accent: #b9877a;      /* púdrová / nude — ladí s módnymi fotkami */
    --lb-accent-dark: #9a6a5e;
    --lb-ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   Horná lišta
   -------------------------------------------------------------------------- */
#top {
    font-size: 12px;
    letter-spacing: .02em;
}

#top a,
#top a span {
    white-space: nowrap;          /* telefón sa nelámal na 2 riadky */
}

#top a:hover {
    color: var(--lb-accent-dark);
}

/* --------------------------------------------------------------------------
   Hlavička — logo
   -------------------------------------------------------------------------- */
#top-2 {
    border-bottom: 1px solid var(--lb-line);
}

#top-2 .header-logo .logo img {
    max-height: 64px;
    width: auto;
}

@media (max-width: 1199.98px) {
    #top-2 {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    #top-2 .header-logo {
        text-align: center;
        margin-bottom: 8px;
    }

    #top-2 .header-logo .logo img {
        max-height: 72px;      /* na mobile logo zaberalo ~280 px výšky */
    }
}

@media (max-width: 575.98px) {
    #top-2 .header-logo .logo img {
        max-height: 58px;
    }
}

/* --------------------------------------------------------------------------
   Menu — desktop (≥ 1200 px)
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
    /* mega menu cez celú šírku hlavičky (stĺpec s menu ani zoznam nesmú byť pozicionované) */
    #top-2 {
        position: relative;
    }

    #top-2 > .row > div:has(> #menu),
    #top-2 #menu,
    #top-2 #menu .container {
        position: static;
    }

    #top-2 #menu ul.level-1 {
        position: static;
        justify-content: center;
        gap: 6px;
    }

    #top-2 #menu ul.level-1 > li {
        position: static;
        padding: 0 10px;
    }

    #top-2 #menu ul.level-1 > li > a {
        padding: 26px 0;                 /* väčšia hover zóna, nadväzuje na submenu bez medzery */
        font-size: 12.5px;
        font-weight: 500;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--lb-ink);
    }

    #top-2 #menu ul.level-1 > li > a::after {
        bottom: 18px;
        left: 0;
        height: 1px;
        background-color: var(--lb-ink);
        transition: width .35s var(--lb-ease);
    }

    /* šípka len pri položkách, ktoré podmenu naozaj majú (has-children majú aj prázdne) */
    #top-2 #menu ul.level-1 > li.has-children:has(> .menu-sub) > a {
        padding-right: 14px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%231a1a1a' stroke-width='1.2'/%3E%3C/svg%3E") no-repeat right center;
    }

    #top-2 #menu ul.level-1 > li.has-children:has(> .menu-sub):hover > a::after {
        width: calc(100% - 14px);
    }

    /* Mega menu */
    #top-2 #menu .menu-sub {
        top: 100%;
        margin-top: 0 !important;
        padding: 34px 48px 30px;
        background: #fff;
        border-top: 1px solid var(--lb-line);
        box-shadow: 0 24px 40px -18px rgba(26, 26, 26, .18);
        transform: translateY(8px);
        transition: opacity .25s var(--lb-ease), transform .25s var(--lb-ease), visibility .25s;
    }

    #top-2 #menu ul.level-1 > li:hover .menu-sub,
    #top-2 #menu ul.level-1 > li:focus-within .menu-sub {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 100;
    }

    /* stĺpce ako masonry — bez prázdnych riadkov medzi skupinami */
    #top-2 #menu .menu-sub ul.level-2 {
        display: block;
        column-count: 5;
        column-gap: 40px;
        max-width: 1180px;
        margin: 0 auto;
    }

    #top-2 #menu .menu-sub ul.level-2 > li {
        display: block;
        flex: none;
        max-width: none;
        width: auto;
        padding: 0 0 6px;
        break-inside: avoid;
    }

    #top-2 #menu .menu-sub ul.level-2 > li > a {
        display: inline-block;
        margin: 0;
        padding: 7px 0;
        color: var(--lb-ink);
        font-size: 13.5px;
        font-weight: 500;
        line-height: 1.35;
        letter-spacing: .01em;
        background-image: linear-gradient(var(--lb-accent), var(--lb-accent));
        background-repeat: no-repeat;
        background-size: 0 1px;
        background-position: 0 calc(100% - 4px);
        transition: color .2s, background-size .3s var(--lb-ease);
    }

    #top-2 #menu .menu-sub ul.level-2 > li > a:hover,
    #top-2 #menu .menu-sub ul.level-2 > li > a:focus {
        color: var(--lb-accent-dark);
        background-size: 100% 1px;
    }

    #top-2 #menu .menu-sub ul.level-3 {
        margin: 2px 0 10px;
    }

    #top-2 #menu .menu-sub ul.level-3 > li > a {
        margin: 0;
        padding: 3px 0;
        color: var(--lb-muted);
        font-size: 12.5px;
    }

    #top-2 #menu .menu-sub ul.level-3 > li > a:hover {
        color: var(--lb-accent-dark);
    }
}

/* --------------------------------------------------------------------------
   Menu — mobil / tablet (< 1200 px, off-canvas)
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    #menu {
        width: 380px;
        right: -400px;
        padding: 64px 0 32px;
        box-shadow: -12px 0 40px rgba(0, 0, 0, .12);
    }

    #menu .btn-menu-close {
        width: 52px;
        height: 52px;
        background: var(--lb-ink);
        border: 0;
    }

    #menu ul.level-1 > li {
        border-bottom-color: var(--lb-line);
    }

    #menu ul.level-1 > li > a {
        padding: 17px 0;
        font-size: 13px;
        font-weight: 500;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--lb-ink);
    }

    /* väčší dotykový cieľ pre rozbalenie */
    #menu ul.level-1 > li.has-children .menu-toggler {
        top: 6px;
        right: -8px;
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 22px;
        border-radius: 0;
    }

    #menu .menu-sub.open {
        padding: 0 0 14px;
    }

    #menu ul.level-2 {
        display: block;
        margin: 0;
        padding: 0 0 4px 2px;
        border-left: 2px solid var(--lb-line);
    }

    #menu ul.level-2 > li {
        width: 100%;
        max-width: 100%;
        flex: none;
        padding: 0 0 0 14px;
    }

    #menu ul.level-2 > li > a {
        display: block;
        margin: 0;
        padding: 9px 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.3;
        color: var(--lb-text);
        border-bottom: 0;           /* pôvodne podčiarknuté, malé, v 2 stĺpcoch */
    }

    #menu ul.level-2 > li > a:hover,
    #menu ul.level-2 > li > a:active {
        color: var(--lb-accent-dark);
    }

    #menu ul.level-3 > li > a {
        display: block;
        padding: 6px 0 6px 10px;
        font-size: 13px;
        color: var(--lb-muted);
    }
}

@media (max-width: 575.98px) {
    #menu {
        width: 88%;
        right: -92%;
    }

    #menu .container {
        padding: 0 22px;
    }
}

.menu-open #menu {
    right: 0;
}

/* --------------------------------------------------------------------------
   Úvod — top kategórie
   -------------------------------------------------------------------------- */
.top-categories .top-category > .position-relative {
    aspect-ratio: 3 / 4;
    background: var(--lb-soft);
}

.top-categories .top-category > .position-relative > a {
    display: block;
    height: 100%;
}

.top-categories .top-category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .9s var(--lb-ease);
}

.top-categories .top-category:hover img {
    transform: scale(1.045);
}

.top-categories .top-category > .position-relative::after {
    content: '';
    position: absolute;
    inset: 55% 0 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.top-categories .top-category .btn {
    position: absolute;
    left: 50%;
    bottom: 22px;
    z-index: 2;
    transform: translateX(-50%);
    min-width: 170px;
    padding: 12px 26px;
    white-space: nowrap;
    border: 0;
    background: rgba(255, 255, 255, .94);
    color: var(--lb-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    pointer-events: none;          /* klik ide na odkaz pod ním */
    transition: background .3s, color .3s;
}

.top-categories .top-category:hover .btn {
    background: var(--lb-ink);
    color: #fff;
}

@media (max-width: 767.98px) {
    .top-categories .row {
        row-gap: 14px;
    }

    .top-categories .top-category {
        padding-bottom: 0 !important;
    }

    .top-categories .top-category > .position-relative {
        aspect-ratio: 1 / 1;      /* na mobile nižšie dlaždice, menej scrollovania */
    }

    .top-categories .top-category img {
        object-position: center 30%;
    }
}

/* --------------------------------------------------------------------------
   Úvod — Naše produkty
   -------------------------------------------------------------------------- */
.home-product-slider h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lb-ink);
}

.home-product-slider .product-slider h2 {
    display: none;                 /* duplicitný nadpis vnútri slidera */
}

.home-product-slider .nav-tabs {
    gap: 28px;
    border: 0;
    margin-bottom: 26px;
}

.home-product-slider .nav-tabs .nav-link {
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid transparent;
    color: var(--lb-muted);
    font-size: 12.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-product-slider .nav-tabs .nav-link.active,
.home-product-slider .nav-tabs .nav-link:hover {
    color: var(--lb-ink);
    border-bottom-color: var(--lb-ink);
    background: transparent;
}

.home-product-slider .product-slider {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* jednotný rámec fotky 2:3 — náhľady majú zapečené priehľadné okraje, preto biele pozadie */
.product-slider .product-thumb .image {
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.product-slider .product-thumb .image > a:first-child {
    display: block;
    width: 100%;
    height: 100%;
}

.product-slider .product-thumb .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .8s var(--lb-ease);
}

.product-slider .product-thumb:hover .image img {
    transform: scale(1.03);
}

.product-slider .product-thumb .caption,
.product-slider .product-thumb .name {
    text-align: left;
}

/* --------------------------------------------------------------------------
   Úvod — banner „O nás" (chýbajúci obrázok → elegantné pozadie namiesto bieleho bloku)
   -------------------------------------------------------------------------- */
.home-parallax,
.home-parallax .parallax {
    height: auto !important;
    min-height: 0;
    padding: 90px 24px;
    background-color: #2a2422;
    background-size: cover;
    background-position: center;
}

.home-parallax .parallax-content {
    max-width: 640px;
}

.home-parallax .parallax-content h2 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
}

.home-parallax .parallax-content p {
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
    font-style: italic;
    line-height: 1.6;
}

.home-parallax .parallax-content .btn {
    padding: 13px 34px;
    border: 1px solid #fff;
    color: #fff;
    background: transparent;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: background .3s, color .3s;
}

.home-parallax .parallax-content .btn:hover {
    background: #fff;
    color: var(--lb-ink);
}

@media (max-width: 575.98px) {
    .home-parallax .parallax {
        padding: 60px 20px;
    }

    .home-parallax .parallax-content h2,
    .home-product-slider h2 {
        font-size: 21px;
    }
}

/* --------------------------------------------------------------------------
   Úvod — výhody (testimonials)
   -------------------------------------------------------------------------- */
.testimonials .testimonial span {
    color: var(--lb-muted);
}

.testimonials .testimonial strong {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--lb-ink);
    font-style: normal;
    letter-spacing: .04em;
}

@media (max-width: 767.98px) {
    .testimonials {
        flex-direction: column;
    }

    .testimonials .testimonial {
        border: 0 !important;
        border-bottom: 1px solid var(--lb-line) !important;
        padding: 18px 10px;
    }

    .testimonials .testimonial:last-child {
        border-bottom: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-categories .top-category img,
    .product-slider .product-thumb .image img,
    #top-2 #menu .menu-sub {
        transition: none;
    }
}

@media (max-width: 575.98px) {
    .home-product-slider {
        padding-top: 36px !important;
    }

    .home-product-slider .nav-tabs {
        gap: 18px;
    }
}
