/* style.css */
body {
    min-height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary-regular);
}

ul {
    list-style: none;
}

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

button {
    border: none;
    background-color: transparent;
    cursor: pointer;
    color: inherit;
}

.btn {
    display: block;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    font-weight: 500;
}

.badge-cart {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--secondary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#nav-menu {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    width: 100%;
    height: var(--header-height);
    position: fixed;
    padding: 0 var(--margin-normal);
    z-index: 10000;
}

.category-item {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.category-item:before {
    content: '\0335';
    font-weight: bolder;
    color: var(--secondary-color);
    margin-left: 10px;
    font-size: 24px;

}

.subcategory-item:before {
    content: '\00B7';
    font-size: 24px;
    margin-left: 20px;
}

.subcategory-item {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
    margin: 0 auto;
    column-gap: 2rem;
    height: 100%;
    padding: 1.2rem 3rem;
    background-color: var(--primary-color);
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

/* section:not(.splide) {
    margin: var(--margin-small) var(--margin-normal);
} */

.menu {
    position: relative;
}

.menu-bar li:first-child .dropdown {
    flex-direction: initial;
    min-width: 480px;
}

.menu-bar li:first-child ul:nth-child(1) {
    border-right: var(--border);
}

.menu-bar .category-item .dropdown-link-title {
    font-weight: 900;
}

.menu-bar .subcategory-item .dropdown-link-title {
    font-weight: 500;
}

.menu-bar .nav-link {
    font-weight: 500;
    letter-spacing: -0.6px;
    min-width: 60px;
}

.menu-bar li {
    padding: 0.3rem;
    margin: 0 0.6rem;
}

.menu-bar .top-link {
    padding: 0;
    margin: 0;
    white-space: nowrap;
    color: var(--ash);
    font-size: clamp(16px, 1.5vw, 24px);
    text-transform: uppercase;
    font-family: var(--font-family-Poppins);
}

.menu-bar .nav-link:hover,
.dropdown-link:hover {
    color: var(--secondary-color);
}

.nav-start,
.nav-end,
.menu-bar,
.right-container,
.right-container .search {
    display: flex;
    align-items: center;
}

.dropdown {
    display: flex;
    min-width: 230px;
    border-top: 5px solid var(--secondary-color);
    background-color: var(--white);
    position: absolute;
    top: 36px;
    z-index: 1;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.97) translateX(-5px);
    transition: 0.1s ease-in-out;
    box-shadow: var(--shadow);
    padding-top: 15px;
    padding-bottom: 15px;
}

.dropdown.active {
    visibility: visible;
    opacity: 1;
    transform: scale(1) translateX(5px);
}

.dropdown ul {
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
    padding: 1.2rem;
    font-size: clamp(13px, 3vw, 14px);
}

.dropdown-btn {
    /* display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.15rem; */
    display: block;
}

.dropdown-link {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-radius: 7px;
    transition: 0.1s ease-in-out;
}

.dropdown-link p {
    font-size: 0.8rem;
    color: var(--medium-grey);
}

.right-container {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.top-link.current {
    color: var(--secondary-color);
}

.right-container .search {
    position: relative;
}

.bx {
    color: var(--ash);
}

#hamburger {
    display: none;
    padding: 0.1rem;
    margin-left: 1rem;
    font-size: 1.9rem;
}

.menu:not(.first) {
    border-left: 1px solid var(--primary-color);
}

.footer {
    display: flex;
    background-color: var(--primary-color);
    color: var(--ash);
    font-size: 24px;
    padding: 2.5rem 4rem;
}

.footer>.first-column {
    width: 35%;
}

.footer>.first-column p {
    line-height: 1.5;
}

.footer-partner {
    margin-top: 30px;
    text-align: end;
}

.footer-partner p {
    font-size: 16px;
}

.footer>.column {
    width: 65%;
}

.footer>.column ul {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    white-space: nowrap;
    flex-wrap: wrap;
}

.footer>.column ul li a {
    font-family: var(--font-family-Poppins);
    text-transform: uppercase;
    font-size: clamp(18px, 3vw, 25px);
}

.leaflet-attribution {
    padding-right: 35px;
}

.justburger {
    display: none;
}

@media screen and (max-width: 1430px) {
    .nav-start>.logo>img {
        max-width: 80%;
        min-width: 100px;
    }
}

@media screen and (max-width: 1100px) {
    .noburger {
        display: none;
    }

    .justburger {
        display: block;
    }

    .menu-bar .nav-link.headerhomebutton {
        display: none;
    }

    #hamburger {
        display: block;
    }

    #nav-menu>.container {
        padding: 1.2rem;
    }

    .menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        min-height: 100vh;
        width: 100vw;
    }

    .menu-bar li:first-child ul:nth-child(1) {
        border-right: none;
        border-bottom: var(--border);
    }

    .dropdown {
        display: none;
        min-width: 100%;
        border: none !important;
        border-radius: 5px;
        position: static;
        top: 0;
        left: 0;
        visibility: visible;
        opacity: 1;
        transform: none;
        box-shadow: none;
        padding: 0;
    }

    .dropdown-link {
        gap: 0.5rem;
        /* padding: 0.5rem 0; */
    }

    .menu.show,
    .dropdown.active {
        display: block;
    }

    .dropdown ul {
        padding-left: 0.3rem;
    }

    .menu-bar {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        row-gap: 1rem;
        padding: 1rem;
        margin-left: 40px;
        margin-right: 40px;
        background-color: #000000e0;
        height: 100vh;
    }

    .menu-bar .nav-link {
        display: flex;
        justify-content: space-between;
        width: 100%;
        font-weight: 500;
        font-size: 0.9rem;
        margin: 0;
    }

    .menu-bar .top-link {
        /* color: var(--primary-color); */
        color: var(--white);
    }

    .menu-bar li:first-child .dropdown {
        min-width: 100%;
    }

    .menu-bar>li:not(:last-child,:first-of-type) {
        padding-bottom: 0.5rem;
        border-bottom: var(--border);
    }

    .footer {
        flex-direction: column;
    }

    .footer>.column {
        width: 100%;
    }

    .footer-partner {
        margin-top: 30px;
        text-align: end;
    }

    .footer-partner p {
        font-size: 16px;
    }

    .footer>.first-column {
        width: 100%;
        font-size: clamp(18px, 3vw, 24px);
        text-align: center;
    }

    .footer>.column ul {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        white-space: nowrap;
        flex-wrap: wrap;
    }

    .logo img {
        max-width: 250px;
    }

    .badge-cart {
        top: unset;
        right: unset;
        left: 60px;
    }
}

@media screen and (max-width: 1199px) {
    .menu-bar .nav-link {
        white-space: nowrap;
        padding: 0;
        margin: 0;
    }
}

@media screen and (max-width: 700px) {
    #nav-menu {
        margin-left: 0;
        margin-right: 0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        padding: 0;
    }

    #nav-menu>.container {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .nav-start>.logo>img {
        max-width: 150px;
    }

    .menu-bar {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    .right-container {
        display: none;
    }
}

.cat-prod-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.cat-prod-container-col {
    flex: 1;
    min-width: 300px;
}
.cat-prod-container img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
}
.cat-prod-container img:first-child {
    flex-basis: 100%;
}
.cat-prod-container img:not(:first-child) {
    max-width: calc(33% - 10px);
}
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}
.cat-prod-container-img {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
}
.overlay .close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2em;
    cursor: pointer;
}