
/* =========================================
   ALAPBEÁLLÍTÁSOK
========================================= */

#top-head,
#head,
#top-head *,
#head * {
    box-sizing: border-box;
}

#top-head {
    --header-orange: #f86b0d;
    height: 64px;
    min-height: 64px;
    background: var(--header-orange);
    color: #fff;
    width: 100%;
    position: fixed;
    z-index: 9999;
}


#head {
    --header-orange: #f86b0d;
    --header-button: #ff5a17;
    position: relative;
    z-index: 1001;
    background: #fff;
    min-height: 150px;
    padding-top: 2rem;

}

#top-head .content-box,
#head .content-box {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

/* =========================================
   FELSŐ KAPCSOLATI SÁV
========================================= */

#top-head .content-box {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

#top-head .content-box > div,
.top-left,
.top-right,
.top-contact {
    display: flex;
    align-items: center;
}

.top-left {
    gap: 25px;
}

.top-right {
    justify-content: flex-end;
}

.top-contact {
    gap: 20px;
}

.top-contact ul,
#top-head ul {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#top-head p,
#top-head span,
#top-head a,
#top-head li {
    margin: 0;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
    list-style: none;
}

#top-head a:hover {
    opacity: .8;
}

#top-head i {
    margin-right: 7px;
    color: #fff;
    font-style: normal;
}



#head .content-box {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-top: 20px;
    padding-bottom: 20px;
}


#logo {
    flex: 0 0 auto;
    min-width: 0;
}

#logo img {
    display: block;
    width: clamp(180px, 19vw, 280px);
    max-width: 100%;
    height: auto;
}


#head-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.5vw, 40px);
    margin-left: auto;
    min-width: 0;
}

#main-menu {
    min-width: 0;
}

#main-menu ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 3vw, 48px);
    padding: 0;
    margin: 0;
    list-style: none;
}

#main-menu li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-menu a {
    position: relative;
    display: block;
    padding: 12px 0;
    color: #111;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(14px, 1.15vw, 18px);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease;
}

/* Aláhúzás */

#main-menu > ul > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 0;
    height: 3px;
    background: #f86b0d;
    border-radius: 3px;
    transition: width .25s ease;
}

#main-menu > ul > li:hover > a,
#main-menu > ul > li:focus-within > a,
#main-menu > ul > li > a:hover {
    color: #f86b0d;
}

#main-menu > ul > li:hover > a::after,
#main-menu > ul > li:focus-within > a::after {
    width: 100%;
}
/*LENYÍLÓ MENÜ*/

#main-menu li ul {
    display: block;
    position: absolute;
    top: 100%;
    left: -18px;
    z-index: 1100;
    min-width: 220px;
    padding: 8px 0;
    margin: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .13);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition:
        opacity .2s ease,
        transform .2s ease,
        visibility .2s ease;
}

#main-menu li:hover > ul,
#main-menu li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#main-menu li ul li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

#main-menu li ul li:last-child {
    border-bottom: 0;
}

#main-menu li ul li a {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 500;
    white-space: normal;
}

#main-menu li ul li a:hover,
#main-menu li ul li:focus-within > a {
    color: #f86b0d;
    background: #fff5ef;
}

#main-menu li ul li a::after {
    display: none;
}

/* Többszintű almenü */

#main-menu li ul li ul {
    top: 0;
    left: 100%;
}

/*RENDELÉS GOMB*/

.order-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 23px;
    border: 0;
    border-radius: 10px;
    background: #ff5a17;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .14);
    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.order-btn:hover {
    color: #fff;
    background: #f14e0d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

/*KOSÁR*/

.header-cart {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 40px;
    background: #2f8f2f;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background .25s ease;
}

.header-cart:hover {
    background: #267526;
    color: #fff;
}

.header-cart i {
    font-size: 18px;
}

.cart-text {
    font-size: 14px;
    font-weight: 600;
}

span.cart-count {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #000 !important;
    font-size: 12px;
    font-weight: 700;
}

/*HAMBURGER*/

#hamburger {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    padding: 8px;
    border: 0;
    border-radius: 10px;
    background: #fff5ef;
    cursor: pointer;
}

#hamburger svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: #111;
}

#hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #111;
    border-radius: 3px;
}


@media (max-width: 1200px) and (min-width: 992px) {
    #top-head .content-box,
    #head .content-box {
        padding-left: 22px;
        padding-right: 22px;
    }

    #head .content-box {
        gap: 20px;
    }

    #logo img {
        width: 190px;
    }

    #head-menu {
        gap: 18px;
    }

    #main-menu ul {
        gap: 20px;
    }

    #main-menu a {
        font-size: 14px;
    }

    .order-btn {
        min-height: 48px;
        padding: 0 15px;
        font-size: 13px;
    }

    .header-cart {
        gap: 6px;
        padding: 9px 11px;
    }

    .cart-text {
        font-size: 12px;
    }
}


@media (max-width: 991px) {
  #top-head {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  min-height: 45px;
  z-index: 9999;
}

    #top-head .content-box {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 10px 15px;
    }

    #top-head .content-box > div {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    #top-head ul,
    .top-contact ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }


    #head {
        padding-top: 3rem;
    }

    #head .content-box {
        min-height: 82px;
        flex-wrap: wrap;
        gap: 0;
        padding: 12px 20px;
    }

    #logo img {
        width: clamp(160px, 34vw, 220px);
    }


    #hamburger {
        display: inline-flex;
    }


    #head-menu {
        display: flex;
        flex: 0 0 calc(100% + 40px);
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: calc(100% + 40px);
        max-height: 0;
        margin: 0 -20px;
        padding: 0 20px;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        background: #fff;
        border-top: 1px solid #eee;
        transition:
            max-height .35s ease,
            opacity .25s ease,
            padding .35s ease,
            visibility .35s ease;
    }


    #head-menu.nyitva {
        max-height: 80vh;
        max-height: 80dvh;
        padding-top: 12px;
        padding-bottom: 20px;
        overflow-y: auto;
        visibility: visible;
        opacity: 1;
    }

    #main-menu {
        width: 100%;
    }

    #main-menu > ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    #main-menu ul li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    #main-menu > ul > li:first-child {
        border-top: 0;
    }

    #main-menu a {
        padding: 14px 8px;
        color: #111;
        font-size: 15px;
        white-space: normal;
    }

    #main-menu > ul > li > a::after {
        display: none;
    }

    #main-menu a:hover,
    #main-menu li:focus-within > a {
        color: #f86b0d;
    }

    #main-menu li ul {
        position: static;
        display: block;
        min-width: 0;
        padding: 0 0 5px 14px;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        background: #fff;
    }

    #main-menu li ul li {
        border-bottom: 0;
    }

    #main-menu li ul li a {
        padding: 10px 12px;
        font-size: 14px;
    }

    #main-menu li ul li ul {
        padding-left: 12px;
    }

    /* Gomb a mobilmenü alján */

    #head-menu .order-btn {
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 14px;
    }

    #head-menu .header-cart {
        align-self: flex-start;
    }
}

@media (max-width: 768px) {

  #top-head a {
    font-size: 15px;
  }
}



@media (max-width: 480px) {
    #head .content-box {
        padding-left: 15px;
        padding-right: 15px;
    }

    #logo img {
        width: min(58vw, 190px);
    }

    #hamburger {
        width: 42px;
        height: 42px;
    }

    #head-menu {
        flex-basis: calc(100% + 30px);
        width: calc(100% + 30px);
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    #head-menu.nyitva {
        padding-top: 10px;
        padding-bottom: 16px;
    }
}
@media (max-width: 440px) {

  #top-head .content-box {
    gap: 1rem;
  }
#head {
  padding-top: 6rem;
}

#top-head a {
  font-size: 15px;
}

}
/* =========================================
   MOZGÁSCSÖKKENTÉS
========================================= */

@media (prefers-reduced-motion: reduce) {
    #main-menu *,
    #head-menu,
    #hamburger,
    .order-btn {
        transition: none !important;
    }
}
