/* Info bar */
.navbar-info-bar {
    background: #000;
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Main bar */
.navbar-main-bar {
    background: #fff;
    padding-top: 24px;
    padding-bottom: 24px;
}

/* Search form */
.navbar-search-form {
    flex: 1;
    max-width: 813px;
    height: 44px;
    border: 1px solid #a9a9a9;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-search-input {
    flex: 1;
    outline: none;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    color: #a2a2a2;
    background: transparent;
    border: 0;
    padding: 0;
}

.navbar-search-input::placeholder {
    color: #a2a2a2;
}

/* Category tiles */
.navbar-cat-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    text-decoration: none;
}

/* Nav mindig látható */
.owl-carousel.navbar-cat-carousel .owl-nav,
.owl-carousel.navbar-cat-carousel .owl-nav.disabled {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    margin-top: 0 !important;
    width: 100% !important;
    pointer-events: none;
}

.owl-carousel.navbar-cat-carousel .owl-nav button,
.owl-carousel.navbar-cat-carousel .owl-nav button.disabled {
    position: absolute !important;
    top: calc(170px / 2 - 22px + 8px);
    width: 45px;
    height: 45px;
    background-color: #000 !important;
    border: none !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    transition: background-color 0.2s;
    pointer-events: auto;
}

.owl-carousel.navbar-cat-carousel .owl-nav button.owl-prev::before,
.owl-carousel.navbar-cat-carousel .owl-nav button.owl-next::before {
    content: none !important;
}

.owl-carousel.navbar-cat-carousel .owl-nav button:hover {
    background-color: var(--primary) !important;
}

.owl-carousel.navbar-cat-carousel .owl-nav button::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    color: #fff;
    display: block;
    line-height: 1;
    width: auto;
    height: auto;
    border: none;
}

.owl-carousel.navbar-cat-carousel .owl-nav .owl-prev::after { content: '\f060'; }
.owl-carousel.navbar-cat-carousel .owl-nav .owl-next::after { content: '\f061'; }

.owl-carousel.navbar-cat-carousel .owl-nav .owl-prev { left: 0; }
.owl-carousel.navbar-cat-carousel .owl-nav .owl-next { right: 0; }

.navbar-cat-item {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.navbar-cat-item:hover,
.navbar-cat-item:focus-visible {
    text-decoration: none;
    transform: translateY(-6px);
}

.navbar-cat-img {
    width: 100%;
    height: 170px;
    overflow: hidden;
    flex-shrink: 0;
    transition: box-shadow 0.3s ease;
}

.navbar-cat-item:hover .navbar-cat-img,
.navbar-cat-item:focus-visible .navbar-cat-img {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.navbar-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.navbar-cat-item:hover .navbar-cat-img img,
.navbar-cat-item:focus-visible .navbar-cat-img img {
    transform: scale(1.08);
}

/* Owl stage-outer overflow:hidden levágná a kiemelkedést és az árnyékot */
.owl-carousel.navbar-cat-carousel .owl-stage-outer {
    padding-top: 8px;
    padding-bottom: 14px;
}

.navbar-cat-placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

.navbar-cat-label {
    color: #292929;
    text-align: center;
    margin: 0;
    width: 100%;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-cat-label::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 40px;
    height: 2px;
    background: var(--primary);
    transform: translateX(-50%) scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-cat-item:hover .navbar-cat-label,
.navbar-cat-item:focus-visible .navbar-cat-label {
    color: var(--primary);
}

.navbar-cat-item:hover .navbar-cat-label::after,
.navbar-cat-item:focus-visible .navbar-cat-label::after {
    transform: translateX(-50%) scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
    .navbar-cat-item,
    .navbar-cat-img,
    .navbar-cat-img img,
    .navbar-cat-label::after {
        transition: none;
    }

    .navbar-cat-item:hover,
    .navbar-cat-item:focus-visible,
    .navbar-cat-item:hover .navbar-cat-img img,
    .navbar-cat-item:focus-visible .navbar-cat-img img {
        transform: none;
    }
}

/* Promo bar */
.navbar-promo-bar {
    background: #ff0000;
    padding-top: 4px;
    padding-bottom: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== MOBILE — NEW HEADER ===== */

/* Fixed wrapper: sticks to top, hides/shows on scroll */
@media (max-width: 991.98px) {
    .navbar-mobile-fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition: transform 0.3s ease;
    }

    .navbar-mobile-fixed.navbar-mobile-hidden {
        transform: translateY(-100%);
    }
}

/* White header container */
.navbar-mobile-top {
    background: #fff;
    padding: 24px 10px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Row 1: hamburger | logo | icons */
.navbar-mobile-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Hamburger button (black square) */
.navbar-hamburger {
    background: #000;
    color: #fff;
    border: 0;
    width: 43px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Logo */
.navbar-mobile-logo img {
    display: block;
    width: auto;
}

/* Right icons */
.navbar-mobile-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-mobile-icons a {
    color: #000;
    text-decoration: none;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-mobile-icons a:hover {
    color: #000;
    text-decoration: none;
}

/* Mobile search bar */
.navbar-mobile-search {
    width: 100%;
    height: 44px;
    border: 1px solid #a9a9a9;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.navbar-mobile-search-input {
    flex: 1;
    outline: none;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    color: #a2a2a2;
    background: transparent;
    border: 0;
    padding: 0;
}

.navbar-mobile-search-input::placeholder {
    color: #a2a2a2;
}

.navbar-mobile-search button {
    background: transparent;
    border: 0;
    padding: 0;
    color: #888;
    flex-shrink: 0;
    cursor: pointer;
}

/* ===== OFFCANVAS DRAWER ===== */

.navbar-mobile-drawer {
    width: 341px !important;
    background: #fff;
    border-right: none;
    display: flex;
    flex-direction: column;
}

/* Drawer top row: login + close */
.navbar-drawer-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 10px 20px;
    flex-shrink: 0;
}

/* BELÉPÉS / PROFIL button */
.navbar-drawer-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000;
    padding: 8px 30px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 25px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.navbar-drawer-login-btn:hover {
    color: #000;
    text-decoration: none;
}

/* Close button (black square) */
.navbar-drawer-close-btn {
    background: #000;
    color: #fff;
    border: 0;
    width: 43px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 16px;
    flex-shrink: 0;
    cursor: pointer;
}

/* Category list */
.navbar-drawer-body {
    padding: 0 10px;
    overflow-y: auto;
    flex: 1;
    overscroll-behavior: contain; /* a lista vége ne "adja át" a görgetést a mögötte lévő oldalnak */
}

.navbar-drawer-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #9d9d9d;
    text-decoration: none;
    color: inherit;
}

.navbar-drawer-cat-item:first-child {
    border-top: 1px solid #9d9d9d;
}

.navbar-drawer-cat-item:hover {
    text-decoration: none;
    color: inherit;
}

.navbar-drawer-cat-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.navbar-drawer-cat-placeholder {
    background: #e0e0e0;
}

.navbar-drawer-cat-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 19px;
    color: #292929;
}

.navbar-drawer-cat-arrow {
    width: 35px;
    height: 35px;
    border: 1.5px solid #9d9d9d;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    flex-shrink: 0;
    color: #9d9d9d;
    font-size: 13px;
}

/* Contact info */
.navbar-drawer-contact {
    padding: 10px 10px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.navbar-drawer-contact a {
    color: #000;
    text-decoration: none;
    font-size: 28px;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.navbar-drawer-contact a:hover,
.navbar-drawer-contact a:focus-visible {
    color: var(--primary);
    text-decoration: none;
}

/* Social icons */
.navbar-drawer-social {
    padding: 20px 10px 10px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.navbar-drawer-social a {
    color: #000;
    text-decoration: none;
    font-size: 28px;
    display: flex;
    align-items: center;
}

.navbar-drawer-social a {
    transition: color 0.2s ease;
}

.navbar-drawer-social a:hover,
.navbar-drawer-social a:focus-visible {
    color: var(--primary);
    text-decoration: none;
}

/* Cart dropdown */
.navbar-cart-wrapper {
    position: relative;
}

.navbar-cart-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 480px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    padding: 24px;
}

.navbar-cart-wrapper:hover .navbar-cart-dropdown,
.navbar-cart-wrapper.is-pinned .navbar-cart-dropdown {
    display: block;
}

/* Invisible bridge over the gap so hover doesn't break when moving mouse to dropdown */
.navbar-cart-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.navbar-cart-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #9d9d9d;
}

.navbar-cart-item-img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    object-fit: cover;
}

.navbar-cart-item-name {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.navbar-cart-item-remove {
    width: 37px;
    height: 38px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.navbar-cart-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    gap: 16px;
}

.navbar-cart-total {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #000;
    flex: 1;
    min-width: 0;
}

.navbar-cart-btn {
    background: var(--primary);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 20px;
    padding: 8px 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-cart-btn:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}
