@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src:
        url("../fonts/Poppins-Regular.ttf") format("truetype");
}

:root {
    --font-family: "Poppins", sans-serif;
    --primary-color: #ffc107;
    --secondary-color: #2e2e2e;
    --extra-color: #e5e5e5;
    --background-color: #fff;
    --text-color: #111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family) !important;
    font-weight: 400;
    display: flex;
    flex-direction: column;
}

html,
body {
    height: 100%;
    margin: 0;
}

.general__wrapper {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
}

a {
    text-decoration: none !important;
}

button {
    outline: none !important;
}

.btnStyle {
    font-weight: 400;
    font-size: 18px;
    color: var(--secondary-color);
    text-decoration: none;
    outline: none;
    display: inline-block;
    text-align: center;
    border: 1px solid var(--secondary-color);
    padding: 15px 40px;
    cursor: pointer;
    background-color: transparent;
    transition: color .3s linear, background-color .3s linear, border .3s linear;
}

.btnStyle:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    border-color: var(--primary-color);
}

.general {
    overflow-x: hidden;
}

.general__wrapper .top-splash {
    position: absolute;
    top: -70px;
    right: -70px;
    width: 100%;
    height: 100%;
    max-height: 545px;
    object-fit: cover;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;
    z-index: -1;
}

.general__wrapper .bottom-splash {
    position: absolute;
    bottom: 0;
    left: -70px;
    width: 100%;
    max-width: 279px;
    height: 100%;
    max-height: 735px;
    object-fit: cover;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom left;
    z-index: -1;
}

header.header {
    padding: 40px 0;
}

.header .container {
    align-items: center;
}

.header .header__logo {
    margin-bottom: 20px;
    opacity: 0;
    transform: scale(0.9);
    transition: transform .2s linear, opacity .2s linear;
}

.header .header__logo.active {
    opacity: 1;
    transform: scale(1);
}

.header .header__logo.normal {
    transform: scale(1);
    opacity: 1;
}

.header .header__logo svg,
.footer .footer__logo svg {
    max-width: 124px;
    max-height: 80px;
}

nav.header__menu .header__menu--list,
nav.footer__menu .footer__menu--list {
    display: flex;
    gap: 40px;
    list-style: none;
}

.header__burger {
    display: none;
}

.menu-overlay {
    display: none;
}

nav.header__menu .header__menu--list li a,
nav.footer__menu .footer__menu--list li a {
    font-weight: 400;
    font-size: 14px;
    color: var(--secondary-color);
    border-bottom: 1px solid transparent;
    transition: border-color .3s linear, color .3s linear;
}

nav.header__menu .header__menu--list li:hover a,
nav.footer__menu .footer__menu--list li:hover a {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

nav.header__menu .header__menu--list li a.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Cart button with counter */
.header__menu--item-cart {
    position: relative;
}

.header__cart-count {
    position: absolute;
    top: 0;
    right: -15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 12px;
    padding: 1px 5px 0 5px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 8px;
    text-align: center;
    color: var(--background-color);
    background-color: var(--primary-color);
    border-radius: 100px;
    line-height: 1;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header__cart-count:empty {
    display: none;
}

.cart-count-updated {
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

footer.footer {
    padding: 20px 0;
    margin-top: auto;
}

.footer .container {
    align-items: center;
}

.footer__menu--list {
    margin-bottom: 40px;
}

.footer .footer__logo {
    margin-bottom: 10px;
}

.footer__info {
    font-weight: 400;
    font-size: 18px;
    text-align: center;
    color: var(--extra-color);
    margin-bottom: 10px;
}

.footer__rights {
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    color: var(--extra-color);
    margin-top: 40px;
}

.footer .footer__social {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Cart Popup Styles */
.cart-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-popup {
    position: relative;
    background: #fff;
    padding: 60px 30px;
    max-width: 640px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cart-popup-overlay.active .cart-popup {
    transform: scale(1);
}

.cart-popup__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-popup__close svg {
    stroke: var(--extra-color);
    transition: stroke 0.3s linear;
}

.cart-popup__close:hover svg {
    stroke: var(--secondary-color);
}

.cart-popup__content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-popup__title {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 64px;
    line-height: 100%;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 32px;
}

.cart-popup__title span {
    color: var(--primary-color);
}

.cart-popup__desc {
    max-width: 365px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 48px;
}

.cart-popup__desc span {
    color: var(--primary-color);
}

.cart-popup__buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.cart-popup__button {
    display: inline-block;
    border: 1px solid var(--secondary-color);
    background-color: transparent;
    padding: 16px 40px;
    font-weight: 400;
    font-size: 18px;
    color: var(--secondary-color);
    height: 59px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s linear, color .3s linear, border .3s linear;
}

.cart-popup__button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: 1px solid var(--primary-color);
}

/* Intro overlay animation */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    pointer-events: all;
    opacity: 1;
    background-color: #fff;
}

.intro-overlay.is-visible {
    opacity: 1;
    transition: opacity .8s linear, background-color .5s linear;
}

/* .intro-overlay.fade-out {
    opacity: 0;
    transition: opacity .7s linear;
} */

body.intro-no-scroll {
    overflow: hidden;
}

.intro-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
    width: min(70vw, 500px);
    max-width: 500px;
    z-index: 2;
    transition: transform .5s linear, opacity 1s linear, top 1s linear;
}

.intro-logo svg {
    width: 100%;
    height: auto;
    display: block;
}

.intro-logo svg>path:nth-child(29),
.intro-logo svg path:nth-child(n+1):nth-child(-n+14) {
    fill: black;
    transition: fill .5s linear;
}

.intro-logo svg path:nth-child(n+15):nth-child(-n+28) {
    stroke: black;
    transition: stroke .5s linear;
}

.intro-overlay.logo-in .intro-logo {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.intro-overlay.logo-color .intro-logo svg>path:nth-child(29),
.intro-overlay.logo-color .intro-logo svg path:nth-child(n+1):nth-child(-n+14) {
    fill: var(--primary-color);
}

.intro-overlay.logo-color .intro-logo svg path:nth-child(n+15):nth-child(-n+28) {
    stroke: var(--primary-color);
}

.intro-overlay.logo-color .intro-logo {
    transform: translate(-50%, -50%) scale(1.5);
}

.intro-overlay.logo-up .intro-logo {
    top: -76px;
    transition: transform .3s linear, opacity .3s linear, top .3s linear;
    transform: translate(-52%, 0) scale(0.2);
}

.intro-overlay.logo-opacity .intro-logo {
    opacity: 0;
}

.intro-overlay.logo-up {
    background-color: transparent;
}

.intro-splash-top {
    position: absolute;
    top: -90px;
    right: -115px;
    width: 100%;
    height: 100%;
    max-height: 800px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;
    z-index: 1;
    opacity: 0;
    transition: opacity .5s linear;
}

.intro-splash-bottom {
    position: absolute;
    bottom: 0;
    left: -40px;
    width: 100%;
    max-width: 279px;
    height: 100%;
    max-height: 735px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom left;
    z-index: 1;
    opacity: 0;
    transition: opacity .5s linear;
}

.intro-overlay.is-visible .intro-splash-bottom {
    opacity: 1;
}

.intro-overlay.splash-up .intro-splash-top {
    opacity: 1;
}

.intro-overlay.logo-color .intro-splash-top,
.intro-overlay.logo-color .intro-splash-bottom {
    opacity: 0;
}

@media screen and (max-width: 1279px) {
    .container {
        padding: 0 40px;
        box-sizing: content-box;
    }
}

@media screen and (max-width: 1150px) {
    .general__wrapper .top-splash {
        max-height: 475px;
    }
}

@media screen and (max-width: 1023px) {}

@media screen and (max-width: 959px) {
    .intro-splash-top {
        max-height: 607px;
        right: -80px;
    }

    .intro-splash-bottom {
        max-height: 467px;
        left: -20px;
    }

    .general__wrapper .top-splash {
        max-height: 400px;
    }
}

@media screen and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    .intro-overlay.logo-color .intro-logo {
        transform: translate(-50%, -50%) scale(1.4);
    }

    .intro-overlay.logo-up .intro-logo {
        top: -76px;
        transition: transform .3s linear, opacity .3s linear, top .3s linear;
        transform: translate(-52%, 0) scale(0.2);
    }

    .intro-splash-top {
        max-height: 407px;
        right: -55px;
        max-height: 535px;
    }

    .intro-splash-bottom {
        max-height: 425px;
    }

    .top-splash,
    .bottom-splash {
        display: none;
    }


}

@media screen and (max-width: 549px) {
    .intro-splash-top {
        max-height: 540px;
        right: -90px;
    }

    .intro-splash-bottom {
        max-height: 390px;
    }

    .btnStyle {
        max-width: 100%;
        width: 100%;
    }

    .header .container {
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
    }

    .header .header__logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scale(0.9);
    }

    .header .header__logo.normal {
        margin-bottom: 0;
        transform: translate(-50%, -50%) scale(1);
        max-width: 124px;
        max-height: 80px;
    }

    /* Burger icon */
    .header__burger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 1001;
        background: none;
        border: none;
        padding: 0;
        position: relative;
        align-self: flex-end;
    }

    .header__burger svg {
        width: 100%;
        height: 100%;
        transition: opacity 0.3s ease;
    }

    .header__burger-icon {
        position: absolute;
        opacity: 1;
    }

    .header__burger-close {
        position: absolute;
        opacity: 0;
    }

    .header__burger.active .header__burger-icon {
        opacity: 0;
    }

    .header__burger.active .header__burger-close {
        opacity: 1;
    }

    /* Mobile menu */
    nav.header__menu {
        position: fixed;
        top: 120px;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        z-index: 1001;
    }

    nav.header__menu.active {
        max-height: 400px;
    }

    nav.header__menu .header__menu--list {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 30px 0;
    }

    nav.header__menu .header__menu--list li {
        text-align: center;
        padding: 20px 0;
        max-width: 74px;
    }

    nav.header__menu .header__menu--list li a {
        font-size: 18px;
        display: block;
    }

    .header__menu--item-cart {
        position: relative;
    }

    .header__cart-count {
        right: -15px;
        top: 15px;
    }

    /* Overlay for closing menu */
    .menu-overlay {
        position: fixed;
        top: 120px;
        left: 0;
        width: 100%;
        height: calc(100% - 120px);
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        display: block;
    }

    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* nav.header__menu .header__menu--list, */
    nav.footer__menu .footer__menu--list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer .footer__logo {
        margin-bottom: 20px;
    }

    .footer__info {
        margin-bottom: 40px;
    }

    nav.footer__menu .footer__menu--list li a {
        font-size: 18px;
    }
}

@media screen and (max-width: 474px) {
    .intro-splash-top {
        max-height: 540px;
        right: -100px;
    }
}

@media screen and (max-width: 424px) {
    .intro-splash-top {
        max-height: 500x;
        right: -100px;
    }
}