:root {
    --body-margin: 0;
    --main-color-light: rgb(0, 212, 0);
    --main-text-color-light: rgb(0, 95, 0);
    --main-color-dark: rgb(0, 131, 0);
    --main-text-color-dark: rgb(51, 255, 51);
}

main {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}

body {
    margin: 0;
    padding: 0;
    font-family: calibri, arial;
    font-size: 18px;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#header-container {
    position: fixed;
    display: flex;
    justify-content: center;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    user-select: none;
}

header {
    height: 70px;
    display: flex;
    flex-direction: row;
    z-index: 1;
}

#header-container::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    backdrop-filter: blur(50px);
}

html[color-preferences="light"] {
    ::-webkit-scrollbar {
        width: 14px;
        background-color: rgb(233, 231, 222);
    }

    ::-webkit-scrollbar-thumb {
        background-color: rgb(173, 173, 161);
        box-shadow: inset 0 0 0 2px  rgb(233, 231, 222);
        border-radius: 7px; 
    }

    @media (max-width: 500px) {
        header {
            .search-con {
                background-color: rgb(240, 240, 240);
            }
        }
    }

    body {
        color: #000;
        background-color: #fff;

        a {
            color: #000;
            text-decoration: none;
        }

        #menu-mobile {
            background-color: rgb(231, 231, 231);
        
            .header {
                background-color: rgb(211, 211, 211);
            }
        }

        .menu .menu-button svg path {
            fill: none;
            stroke: #000;
        }

        .menu a {
            background-image: linear-gradient(to right, black, black);
        }

        .menu-open-container span {
            background-image: linear-gradient(to right, black, black);
        }
    
        #header-container::before, #cookies {
            background-color: rgba(236, 236, 236, 0.6);
        }

        #cookies {
            .hide {
                background-color: var(--main-color-light);
            }

            a {
                color: var(--main-text-color-light);
            }
        }

        .img-black {
            display: flex;
        }

        .img-white {
            display: none;
        }

        .menu-shop {
            .open-search-container:hover, .light-dark-container:hover, .language-container:hover, .shopping-cart-container:hover {
                opacity: 0.6 !important;
            }
        }
    
        .menu-shopping-cart {
            background-color: rgb(231, 231, 231);
        
            .header {
                background-color: rgb(211, 211, 211);
            }

            > .content {
                > div:not(.sold) {
                    border: 2px solid #a0a0a0;

                    .content .down {
                        .remove-from-cart {
                            border: 2px solid #a0a0a0;
                        }
    
                        .remove-from-cart:hover {
                            border: 2px solid var(--main-color-light);
                            background-color: var(--main-color-light);
                        }
                    }
                }

                .sold {
                    border: 2px solid #a0a0a0;

                    a {
                        color: var(--main-text-color-light);
                    }
                }
            }

            .down {
                .order-realization {
                    background-color: var(--main-color-light);
                }
            }
        }

        .search-con {
            .close-search:hover path {
                stroke: rgb(226, 0, 0) !important;
            }
        }

        .search-container {
            .loup-container {
                background-color: var(--main-color-light);
            }

            .loup-container:hover {
                background-color: rgb(0, 245, 0);
            }

            .search {
                background-color: rgba(228, 228, 228, 0.6);
                backdrop-filter: blur(50px);
    
                .suggestions {
                    .suggestion:hover {
                        background-color: rgba(212, 212, 212, 0.3);
                    }
                }
    
                input {
                    color: #000;
                }
    
                input::placeholder {
                    color: rgb(117, 117, 117);
                }
            }
        }

        #search-container-menu-mobile {
            .search {
                background-color: rgba(212, 212, 212, 0.6);
            }
        }

        .search-active {
            .suggestions::before {
                background-color: rgb(255, 255, 255);
            }
        }

        .close-button path {
            stroke: #000 !important;
        }
        
        .close-button:hover path {
            stroke: rgb(226, 0, 0) !important;
        }

        footer hr {
            border: 1px solid rgb(196, 196, 196);
        }
    }
}

html[color-preferences="dark"] {
    ::-webkit-scrollbar-thumb:hover {
        background-color: rgb(117, 117, 112);
    }
    
    ::-webkit-scrollbar {
        width: 14px;
        background-color: rgb(37, 37, 35);
    }
    
    ::-webkit-scrollbar-thumb {
        background-color: rgb(59, 59, 56);
        box-shadow: inset 0 0 0 2px  rgb(37, 37, 35);
        border-radius: 7px; 
    }

    @media (max-width: 500px) {
        header {
            .search-con {
                background-color: rgb(31, 31, 31);
            }
        }
    }

    body {
        color: #fff;
        background-color: rgb(22, 22, 22);

        a {
            text-decoration: none;
            color: #fff;
        }

        #menu-mobile {
            background-color: rgb(22, 22, 22);

            .header {
                background-color: rgb(36, 36, 36);
            }
        }

        .menu .menu-button svg path {
            fill: none;
            stroke: #fff;
        }

        .menu a {
            background-image: linear-gradient(to right, white, white);
        }

        .menu-open-container span {
            background-image: linear-gradient(to right, white, white);
        }

        #header-container::before, #cookies {
            background-color: rgba(37, 37, 35, 0.6);
        }

        #cookies {
            .hide {
                background-color: var(--main-color-dark);
            }

            a {
                color: var(--main-text-color-dark);
            }
        }

        .img-black {
            display: none;
        }

        .img-white {
            display: flex;
        }

        .menu-shop {
            .open-search-container:hover, .light-dark-container:hover, .language-container:hover, .shopping-cart-container:hover {
                opacity: 0.7 !important;
            }

            > .language-container:hover .description {
                opacity: 0.7 !important;
            }
        }
    
        #menu-shopping-cart {
            background-color: rgb(22, 22, 22);
        
            .header {
                background-color: rgb(36, 36, 36);
            }

            > .content {
                > div:not(.sold) {
                    border: 2px solid #313131;

                    .content .down {
                        .remove-from-cart {
                            border: 2px solid #313131;
                        }
    
                        .remove-from-cart:hover {
                            border: 2px solid var(--main-color-dark);
                            background-color: var(--main-color-dark);
                        }
                    }
                }

                .sold {
                    border: 2px solid #313131;

                    a {
                        color: var(--main-text-color-dark);
                    }
                }
            }

            .down {
                .order-realization {
                    background-color: var(--main-color-dark);
                }
            }
        }

        .search-con {
            .close-search:hover path {
                stroke: rgb(236, 0, 0) !important;
            }
        }

        .search-container {
            .loup-container {
                background-color: var(--main-color-dark);
            }

            .loup-container:hover {
                background-color: rgb(2, 153, 2);
            }

            .search {
                background-color: rgba(44, 44, 44, 0.7);
                backdrop-filter: blur(50px);
    
                .suggestions {
                    .suggestion:hover {
                        background-color: rgba(51, 51, 51, 0.4);
                    }
                }
    
                input {
                    color: #fff;
                }
            }
        }

        .search-active {
            .suggestions::before {
                background-color: rgba(24, 24, 24, 0.8);
            }
        }

        .close-button path {
            stroke: #fff !important;
        }
        
        .close-button:hover path {
            stroke: rgb(236, 0, 0) !important;
        }

        footer hr {
            border: 1px solid rgb(71, 71, 71);
        }
    }
}

#menu-mobile {
    flex-direction: column;
    height: 100%;
    width: 380px;
    left: 0;
    top: 0;
    transition: translate 400ms;
    margin: 0;
    translate: -380px;
    z-index: 4;

    .header {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px 10px 15px;
    }

    > .content {
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 10px;

        .navigation {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
    
        .language-container .description {
            transition: all 200ms;
        }
        
        #search-container-menu-mobile {
            flex: none;
        }
    
        .light-dark-container, .language-container, .shopping-cart-container {
            display: flex;
            align-items: center;
            transition: all 200ms;
            cursor: pointer;
            gap: 10px;
            height: 34px;
            font-size: 18px;
            margin: 0 8px 0 8px;

            img {
                width: 34px;
            }
        }
    }
}

header {
    .logo-container {
        display: flex;
        margin: 5px;
        height: 60px;
        justify-content: left;

        img {
            height: 60px;
            cursor: pointer;
            transition: all 200ms;
        }
    }
}

.menu {
    display: flex;
    height: 60px;
    margin: 5px;
    justify-content: center;
    align-items: center;

    .menu-button {
        cursor: pointer;
        align-items: center;
        font-size: 20px;
        margin: 8px;
        gap: 5px;
    }

    nav {
        display: flex;
        flex-direction: row;
        padding: 0;
        gap: 10px;

        a {
            text-decoration: none;
            font-size: 20px;
            margin: 5px;
            background-size: 0 6%;
            background-position: 50% 100%;
            background-repeat: no-repeat;
            transition: background-size 300ms;
            translate: -5px;
            padding-bottom: 5px;
        }
    
        a:hover {
            background-size: 100% 6% !important;
        }
    }
}

.menu-shop {
    margin: 0 5px 0 5px;
    display: flex;
    align-items: center;
    height: 70px;
    flex: 1;

    img {
        width: 34px;
    }

    .language-container .description {
        transition: opacity 200ms;
    }

    .open-search-container, .language-container, .light-dark-container, .shopping-cart-container {
        display: flex;
        align-items: center;
        transition: opacity 200ms;
        cursor: pointer;
        gap: 10px;
        height: 34px;
        font-size: 18px;
        margin: 0 8px 0 8px;
    }

    .language-container {
        transition: all 0;
    }
}

.search-con {
    display: flex;
    flex-direction: row;
    flex: 1;
    gap: 10px;
    margin-right: 5px;
    z-index: 1;

    .close-search {
        align-items: center;
        cursor: pointer;
        transition: all 200ms;
    }
}

.search-container {
    height: 46px;
    display: flex;
    flex-direction: row;
    border-radius: 5px;
    width: 100%;
    position: relative;

    .search {
        display: flex;
        flex-direction: column;
        position: absolute;
        width: calc(100% - 46px);
        border-top-left-radius: 5px;
        border-bottom-left-radius: 5px;
        overflow: hidden;

        .input-container {
            padding: 8px 15px 8px 15px;
            height: 30px;
            display: flex;
            justify-content: space-between;
            position: relative;

            input {
                background-color: transparent;
                height: 30px;
                width: 100%;
                padding: 0;
                outline: none;
                border: 0;
                font-size: 16px;
                font-family: calibri;
            }
        }

        .suggestions {
            position: relative;
            width: 100%;

            .suggestion {
                display: none;
                width: calc(100% - 30px);
                align-items: center;
                padding: 0 15px 0 15px;
                font-size: 16px;
                height: 46px;
                cursor: pointer;
                gap: 10px;

                img {
                    height: 30px;
                    border-radius: 20px;
                }
            }
    
            .suggestion:hover {
                .x-suggestion {
                    visibility: visible;
                }
            }
        }
    }

    .loup-container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        cursor: pointer;
        right: 0;
        transition: all 200ms;
        width: 46px;
        height: 46px;
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;

        img {
            height: 26px;
            width: 26px;
        }
    }

    .search-active {
        border-bottom-right-radius: 5px;
        
        .suggestion {
            display: flex !important;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .suggestions::before {
            content: "";
            display: block;
            height: 2px;
            width: 100%;
        }
    }
}
.input-active {
    display: flex !important;
}

.x-active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ------------------- MENU-SHOPPING-CART ------------------- */

#menu-shopping-cart {
    display: flex;
    position: fixed;
    flex-direction: column;
    width: 380px;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    z-index: 6;
    translate: 380px;
    transition: translate 400ms;

    .header {
        display: flex;
        justify-content: space-between;
        padding: 10px 15px 10px 15px;
    }

    > .content {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        overflow-y: auto;
        height: calc(100% - 136px);

        > div:not(.sold) {
            display: flex;
            gap: 10px;
            padding: 13px;
            flex-direction: row;
    
            img {
                width: 100%;
                transition: all 200ms;
            }
        
            > a {
                position: relative;
                display: block;
                width: calc(40% - 5px);
                aspect-ratio: 3 / 4;
                overflow: hidden;
                border-radius: 8px;
            }

            .content {
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                width: calc(60% - 5px);

                a {
                    display: flex;
                    justify-content: center;
                    font-size: 22px;
                }

                .down {
                    display: flex;
                    flex-direction: row;
                    justify-content: center;
                    align-items: center;
                    gap: 10px;

                    .remove-from-cart {
                        height: 20px;
                        width: 20px;
                        padding: 5px;
                        border-radius: 5px;
                        transition: all 200ms;

                        img {
                            width: 20px;
                            height: 20px;
                        }
                    }
                }
            }
        }

        .sold {
            padding: 10px 42px 10px 10px;
            position: relative;

            .close-button {
                position: absolute;
                top: 10px;
                right: 10px;
            }
        }
    }

    > .down {
        padding: 15px;
        font-size: 20px;
        position: absolute;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        bottom: 0;
        left: 0;
        right: 0;

        .order-realization {
            padding: 5px;
            border-radius: 5px;
            cursor: pointer;
        }
    }
}

footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    margin: 30px 0 20px 0;
    gap: 50px;

    .logo-container {
        div {
            margin-top: 5px;
            font-size: 16px;
        }
    
        img {
            width: 100%;
        }
    }

    div {
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 20px;
    }

    hr {
        display: none;
    }

    .social-media {
        flex-direction: row;

        .fa {
            padding: 5px;
            width: 25px;
            height: 25px;
            border-radius: 5px;
            font-size: 25px;
            text-align: center;
            text-decoration: none;
        }

        .fa-youtube-play {
            background-color: rgb(240, 0, 0);
            color: white;
        }

        .fa-instagram {
            background-color: rgb(212, 0, 255);
            color: white;
        }

        .fa-facebook {
            background-color: rgb(0, 119, 255);
            color: white;
        }
    }
}

/* ------------------- ANIMATIONS ------------------- */

#blur-shopping-cart {
    position: fixed;
    display: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.5);
}

#blur-menu-mobile {
    position: fixed;
    display: none;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.5);
}

.blur-active {
    display: block !important;
}

.header-shopping-cart-active, .header-menu-mobile-active {
    margin-right: var(--body-margin);
}

.body-shopping-cart-active, .body-menu-mobile-active {
    overflow: hidden;
    width: calc(100vw - var(--body-margin));
}

.menu-shopping-cart-active {
    translate: 0 !important;
}

.menu-active {
    translate: 0 !important;
}

.close-button {
    transition: all 200ms;
    cursor: pointer;
}

#cookies {
    position: fixed;
    display: flex;
    flex-direction: row;
    align-items: center;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 15px 42px 15px 15px;
    gap: 10px;
    backdrop-filter: blur(50px);
    z-index: 1;

    .hide {
        padding: 5px;
        border-radius: 3px;
        cursor: pointer;
        user-select: none;
        text-wrap: nowrap;
    }

    .close-button {
        position: absolute;
        cursor: pointer;
        user-select: none;
        right: 10px;
        top: 10px;
    }

    .close:hover {
        path {
            stroke: rgb(236, 0, 0) !important;
        }
    }
}

@media (min-width: 1400px) {
    header, section, footer {
        width: 1400px;
    }
}

@media (min-width: 1200px) and (max-width: 1400px) {
    header, section, footer {
        width: 1200px;
    }
}

@media (min-width: 900px) and (max-width: 1200px) {
    header, section, footer {
        width: 900px;

        .menu {
            nav {
                gap: 10px;
            }
        }

        .menu-shop .description {
            display: none;
        }
    }

    footer {
        grid-template-columns: 1fr 1fr 1fr 80px;
    }
}

@media (min-width: 900px) {
    #menu-mobile {
        display: none;
    }

    #blur-menu-mobile {
        display: none !important;
    }
    
    header {
        .menu {
            .menu-button {
                display: none;
            }
        }
    }
}

@media (max-width: 900px) {
    #menu-mobile {
        position: fixed;
        display: flex;
    }

    header {
        .menu {
            .menu-button {
                display: flex;
            }

            
            nav {
                display: none;
            }
        }

        .menu-shop .description {
            display: none;
        }
    }

    footer {
        grid-template-columns: 1fr 1fr 1fr 80px;
        gap: 30px;
    }
}

@media (min-width: 700px) and (max-width: 900px) {
    header, section, footer {
        width: 700px;
    }
}

@media (min-width: 600px) and (max-width: 700px) {
    header, section, footer {
        width: 600px;
    }

    footer {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    header, section, footer {
        width: 100%;

        .menu-shop {
            .light-dark-container {
                display: none;
            }
        }
    }

    footer, section {
        width: calc(100% - 20px);
    }

    #cookies {
        flex-direction: column;
        align-items: start;
    }

    footer {
        grid-template-columns: 1fr;
        grid-template-rows: unset;
        gap: 15px;

        > *:nth-child(1) {
            order: 7;
        }

        > *:nth-child(2) {
            order: 2;
        }

        > *:nth-child(3) {
            order: 1;
        }

        > *:nth-child(4) {
            order: 4;
        }

        > *:nth-child(5) {
            order: 3;
        }

        > *:nth-child(6) {
            order: 6;
        }

        > *:nth-child(7) {
            order: 5;
        }

        div {
            gap: 5px;
        }

        hr {
            display: block;
        }
    }
}

@media (max-width: 550px) {
    header {
        .menu-shop {
            .language-container {
                display: none;
            }
        }
    }
}

@media (min-width: 500px) {
    header {
        .menu-shop {
            .open-search-container {
                display: none;
            }

            .search-con .close-search {
                display: none;
            }
        }
    }
}

@media (max-width: 500px) {
    header {
        .menu-shop {
            justify-content: right;
        }

        .menu-shop {
            .open-search-container {
                display: flex;
            }

            .search-con {
                display: none;
                position: absolute;
                align-items: center;
                left: 0;
                right: 0;
                top: 0;
                bottom: 0;
                padding: 5px 15px 5px 15px;
                margin: 0;

                .close-search {
                    display: flex;
                }
            }
        }
    }
    
    div {
        .content {
            a {
                font-size: 17px !important;
            }
            
            .price {
                font-size: 15px !important;
            }
        }
    }
}

@media (max-width: 500px) and (min-width: 400px) {
    header {
        .menu-shop {
            .light-dark-container {
                display: flex;
            }
        }
    }
}

@media (max-width: 380px) {
    #menu-mobile {
        width: 100%;
    }

    #menu-shopping-cart {
        width: 100%;
    }
    
    div {
        .content {
            a {
                font-size: 15px !important;
            }
            
            .price {
                font-size: 13px !important;
            }
        }
    }
}

@media (max-width: 340px) {
    header {
        .menu .menu-button {
            margin: 0;
        }
    }
}