/* Fonts */
@font-face {
    font-family: "poppins";
    src: url(/fonts/Poppins/Poppins-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: "poppins";
    src: url(/fonts/Poppins/Poppins-Bold.ttf);
    font-weight: 700;
}

:root {
    /* Font family */
    --font-regular: "poppins", sans-serif;
    
    /* Font weights */
    --weight-regular: 400;
    --weight-bold: 700;
    
    /* Font sizes */
    --fs-rubrik: 28px;
    --fs-underrubrik: 24px;
    --fs-body: 16px;
    
    /* Colors */
    --color-text: #333;
    --color-red: #D31212;
    --color-background: #ffffff;
}

/* Basic resets */
body {
    margin: 0;
    background-color: var(--color-background);
}

/* Header styles */
.cart-icon {
    display: flex;
    align-items: center;
    padding-right: 60px;
}

.cart-icon img {
    width: 24px;
    height: auto;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-icon a:hover img {
    filter: invert(19%) sepia(91%) saturate(1184%) hue-rotate(354deg) brightness(85%) contrast(105%);
}

.nav-logo img {
    height: clamp(55px, 5vw + 30px, 60px);
    width: auto;
    display: block;
}

.nav-logo a {
    display: inline-block;
    text-decoration: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 78px;
    background: var(--color-background);
    display: flex;
    align-items: center;
    z-index: 1000;
}

.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: -1;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.1);
    mix-blend-mode: multiply;
}

.nav-logo {
    margin-left: 60px;
}

.nav-links {
    margin-left: auto;
    margin-right: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    position: relative;
    display: grid;
    place-items: center;
    width: fit-content;
    font-family: var(--font-regular);
    font-size: 20px;
    font-weight: var(--weight-regular);
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-red);
}

.nav-links a.active {
    color: var(--color-red);
}

/* Mobile menu styles */
.burger-menu {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.burger-menu div {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.burger-menu:hover div {
    background-color: var(--color-red);
}

/* Mobile drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--color-background);
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
    padding-top: 100px;
}

.mobile-drawer.active {
    left: 0;
}

.mobile-drawer .nav-links {
    flex-direction: column;
    margin: 0;
    padding: 20px;
    gap: 20px;
}

.mobile-drawer .nav-links a {
    font-size: 18px;
    width: 100%;
    text-align: left;
}

/* Overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .navbar {
        justify-content: center;
        position: relative;
        padding: 0 20px;
    }

    .nav-links {
        display: none;
    }
    
    .burger-menu {
        display: flex;
        position: absolute;
        left: 30px;
    }

    .nav-logo {
        margin: 0;
    }

    .cart-icon {
        position: absolute;
        right: 20px;
        padding-right: 30px;
    }

    .mobile-drawer .nav-links {
        display: flex;
    }
}

@media screen and (max-width: 576px) {
    .navbar {
        padding: 0 20px;
    }

    .burger-menu {
        left: 20px;
    }

    .cart-icon {
        right: 10px;
        padding-right: 20px;
    }
}

@media screen and (max-width: 360px) {
    .nav-logo img {
        height: clamp(40px, 5vw + 15px, 45px);
    }
}
