@import url('/css/root.css');
@import url('/css/pages/home/index.css');
@import url('/css/pages/home/index-mobile.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Quicksand:wght@300..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    font-family: "Quicksand", serif;
}

body {
    background-color: var(--main-color);
}

#effect {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color-light);
    backdrop-filter: blur(.2pc);
    opacity: 0;
    visibility: hidden;
    z-index: 450;
    transition: .4s ease;
}

#effect.active {
    opacity: 1;
    visibility: visible;
}

.header-menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 65px;
    background-color: var(--main-color);
    box-shadow: 0 0 5px #e3e3e3;
    z-index: 500;
}

.header-menu .cnt {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 85%;
    max-width: 1400px;
    height: 100%;
}

.header-menu .cnt .logo {
    position: relative;
    width: 100px;
    min-width: 100px;
    height: 100%;
}

.header-menu .cnt .logo img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}

.header-menu .cnt .options {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 3pc;
}

.header-menu .cnt .options .option {
    padding: .2pc .5pc;
    border-radius: .2pc;
    cursor: pointer;
    transition: .2s ease;
}

.header-menu .cnt .options .option:hover {
    background-color: var(--secondary-color-light);
}

.header-menu .cnt .options .option:active {
    transition: .1s ease;
    transform: scale(.98);
}

.header-menu .cnt .options .option p {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-color-light);
}

.header-menu .nav-menu {
    display: none;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
}

.header-menu .nav-menu .nav-menu-output {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.header-menu .nav-menu svg {
    fill: black;
}

#cart {
    position: fixed;
    top: 0;
    left: 100%;
    transform: translateX(0%);
    width: 275px;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: 550;
    transition: .4s ease;
}

#cart.active {
    transform: translateX(-100%);
}

#cart .cnt {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1pc;
    width: 100%;
    height: 100%;
    padding: 1pc;
}

#cart .cnt .icon {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 1pc;
    right: calc(100% + 1pc);
    width: 55px;
    aspect-ratio: 1/1;
    background-color: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: .2s ease;
}

#cart .cnt .icon:hover {
    background-color: var(--secondary-color-bold);
}

#cart .cnt .icon:active {
    transition: .1s ease;
    transform: scale(.99);
    background-color: var(--secondary-color);
}

#cart .cnt .icon svg {
    width: 1.6rem;
    height: 1.6rem;
    fill: white;
    transition: .2s ease;
}

#cart .cnt .icon svg:nth-child(2) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

#cart.active .cnt .icon svg:nth-child(1) {
    opacity: 0;
}

#cart.active .cnt .icon svg:nth-child(2) {
    opacity: 1;
}

#cart .cnt .cart-output {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    padding-right: .5pc;
}

#cart .cnt .cart-output::-webkit-scrollbar {
    width: .3pc;
}

#cart .cnt .cart-output::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
}

#cart .cnt .cart-output .cart-product {
    display: flex;
    flex-direction: column;
    gap: .25pc;
    width: 100%;
    min-height: 125px;
    background-color: var(--main-color);
    box-shadow: 0 0 2px var(--on-main-shadow-color);
    border-radius: .5pc;
    padding: .25pc;
    margin-bottom: 1pc;
}

#cart .cnt .cart-output .cart-product .top {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

#cart .cnt .cart-output .cart-product .top .img {
    position: relative;
    height: calc(95px - .25pc);
    aspect-ratio: 1.2/1;
    border-radius: .25pc;
}

#cart .cnt .cart-output .cart-product .top .img img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#cart .cnt .cart-output .cart-product .top .text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: .5pc;
    height: 100%;
    padding: 0 .5pc;
}

#cart .cnt .cart-output .cart-product .top .text .name p {
    font-size: 1rem;
    font-weight: 600;
}

#cart .cnt .cart-output .cart-product .top .text .price p {
    font-size: 1rem;
    font-weight: 600;
}

#cart .cnt .cart-output .cart-product .top .text .unit p {
    font-size: .9rem;
    font-weight: 600;
}

#cart .cnt .cart-output .cart-product .bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .5pc;
    width: 100%;
    height: 35px;
    padding: .25pc;
}

#cart .cnt .cart-output .cart-product .bottom > div {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: .5pc;
    height: 100%;
}

#cart .cnt .cart-output .cart-product .bottom > div svg {
    width: 1rem;
    height: 1rem;
    fill: white;
}

#cart .cnt .cart-output .cart-product .bottom > div > div {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: var(--secondary-color);
    border-radius: .25pc;
    transition: .2s ease;
    cursor: pointer;
}

#cart .cnt .cart-output .cart-product .bottom > div > div:hover {
    transform: translateY(-5%);
    filter: brightness(120%);
}

#cart .cnt .cart-output .cart-product .bottom > div > div:active {
    transition: .1s ease;
    transform: translateY(-2%);
}

#cart .cnt .cart-output .cart-product .bottom .delete-button {
    background-color: var(--err);
    border-radius: .25pc;
    transition: .2s ease;
    cursor: pointer;
}

#cart .cnt .cart-output .cart-product .bottom .delete-button:hover {
    transform: translateY(-5%);
    filter: brightness(120%);
}

#cart .cnt .cart-output .cart-product .bottom .delete-button:active {
    transition: .1s ease;
    transform: translateY(-2%);
}

#cart .cnt .cart-accept {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 45px;
    background-color: var(--secondary-color-bold);
    border-radius: .5pc;
    transition: .2s ease;
    cursor: pointer;
}

#cart .cnt .cart-accept:hover {
    transform: translateY(-5%);
}

#cart .cnt .cart-accept:active {
    transition: .1s ease;
    transform: translateY(-2%);
}

#cart .cnt .cart-accept p {
    font-weight: 600;
    color: var(--text-color-white);
}