:root {
    --main-color: #94573C;
    --second-color: #F4EBDC;
    --third-color: rgba(38, 38, 38, 0.88);
    --fourth-color: rgba(255, 255, 255, 0.64);
    --five-color:  #9C7767;
    --contetn-horizontal-padding: 1rem
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 52px;
}

body {
    padding: 0 0 100px;
    margin: 0;
    position: relative;
    background-color: var(--second-color);
}

* {
    box-sizing: border-box;
}
/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px;
    max-width: 1400px;
    margin: 0 auto;
}
.header-search-btn {
    padding: 0.5rem;
    border-radius: 50%;
    border:  0;
    background-color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.header form {
    width: 100%;
    margin-right: .9rem;
}
.header .text-field {
    display: flex;
    align-items: center;
    border-radius: .5rem;
    background: #FFF;

    padding: .75rem;
    width: 100%;
}
.header .text-field-icon {
    margin-right: 0.5rem;
}
.header .text-input{
    border: none;
    color: #262626;
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: "Axiforma", sans-serif;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    width: 100%;
    &::placeholder {
        color: var(--five-color);
        font-feature-settings: 'clig' off, 'liga' off;
        font-family: "Axiforma", sans-serif;
        font-size: 0.875rem;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }
    &:focus {
        outline: none;
    }
}

/* Banner */
.banner {
    width: 100%;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}
.banner-slider{
    padding: 0 var(--contetn-horizontal-padding) 0.5rem;
}
.banner-slider img{
    width: 100%;
}
.banner .divider {
    width: 100%; 
    margin: 0 auto; 
    background-repeat: no-repeat;
}


 

/* Categories */
.categories {
    padding: 0.5rem var(--contetn-horizontal-padding);
    position: sticky;
    top: 0;
    left: 0;
    background-color: var(--second-color);
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}
.categories .swiper-slide {
    width: auto;
}
.categories .category-item.active {
    border-color: var(--main-color);
    padding: 0.4rem 0.75rem;
}
.categories .category-item {
    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 2.3125rem;
    border: 1px solid transparent;

    padding: 0.4rem 0.75rem 0.4rem 0;
    /* Text */
    color: var(--main-color);
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: "Axiforma", sans-serif;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}

/* Products */
.products {
    display: flex;
    flex-direction: column;
    padding: 0 var(--contetn-horizontal-padding);
    max-width: 1400px;
    margin: 0 auto;
}
.products-title {
    color: var(--main-color);
    font-feature-settings: 'clig' off, 'liga' off;
    font-family: "Axiforma", sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 24px 0 0.5rem;
}
.products-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0.70rem;
}
.product-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 0.75rem;
    background: var(--second-color);
    box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.12);
}
.product-img {
    border-radius: 0.75rem;
    max-width: 100%;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.product-info {
    padding: 0.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    border: 0;
    border-radius: 0.5rem;
    width: 100%;
    padding: 12px 10px;
    &:hover {
        cursor: pointer;
    }
}
.product-btn-icon {
    margin-right: 7px;
}
.product-title {
    color: var(--main-color);
    font-family: "Axiforma", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 130%;
    margin: 0 0 0.75rem;
}
.product-price {
    color: var(--second-color);
    font-family: "Axiforma", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1rem;
    margin: 0;
}

@media (min-width: 576px) {
    .products-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .products-list {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

/* Cart-Floating-Btn */

.floating-cart-btn {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 0.5rem;
    max-width: calc(100% - 1rem);
    background-color: var(--third-color);
    border: 0;
    border-radius: 2rem;
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}
.floating-cart-title {
    color: var(--second-color);
    text-align: center;
    font-family: "Axiforma", sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin: 0;
}
.floating-cart-price {
    color: var(--fourth-color);
    text-align: right;
    font-family: "Axiforma", sans-serif;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.floating-cart-count {
    display: flex;
    align-items: center;
}
.floating-cart-count .count {
    color: var(--fourth-color);
    font-family: "Axiforma", sans-serif;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-left: 0.4rem;
}

@media (min-width: 576px) {
    .floating-cart-btn {
        border-radius: 50%;
        max-width: 4rem;
        max-height: 4rem;
        height: 100%;
        width: 100%;
        left: calc(100% - 5rem);
        justify-content: center;
    }
    .floating-cart-price, .floating-cart-title {
        display: none;
    }
}

/* Bottom Sheet */
.bottom-sheet {
    position: fixed;
    background-color: var(--second-color);
    width: 100%;
    max-width: 600px;
    z-index: 999;
    height: 100%;
    top: 20%;
    left: 50%;
    transition: .4s;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    transform: translate(-50%, 100%);
    overflow: hidden;
}

.bottom-sheet.active {
    transform: translate(-50%, 0);
}
.sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sheet .content {
    padding: 1rem;
}
.sheet .image-container {
    display: flex;
    position: relative;
    max-width: 100%;
}

.sheet .content-img {
    width: 100%;
}

.sheet .image-container .close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.5rem;
    border-radius: 50%;
    border:  0;
    background-color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sheet .content-title {
    color: var(--main-color);
    font-family: "Axiforma", sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    margin-bottom: .5rem;
}

.sheet .content-description {
    color: var(--five-color);
    font-family: "Axiforma", sans-serif;
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 1rem;
}

.sheet .content-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    border: 0;
    border-radius: 0.5rem;
    width: 100%;
    padding: 12px 10px;
    &:hover {
        cursor: pointer;
    }
}

.sheet .content-btn-icon {
    margin-right: 7px;
}

.sheet .content-price {
    color: var(--second-color);
    font-family: "Axiforma", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1rem;
    margin: 0;
}

/* Backdrop */
.backdrop {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}
.backdrop.active {
    display: block;
}

.notFound-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notFound-title {
    margin: 20px 0;
    color: var(--main-color);
    font-family: "Axiforma", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 130%;
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 94px;
    height: 94px;
    color: var(--main-color);
}
.loader:before,
.loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
}
.loader:after {
    color: var(--main-color);
    transform: rotateY(70deg);
    animation-delay: .4s;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spin {
    0%,
    100% {
        box-shadow: .2em 0px 0 0px currentcolor;
    }
    12% {
        box-shadow: .2em .2em 0 0 currentcolor;
    }
    25% {
        box-shadow: 0 .2em 0 0px currentcolor;
    }
    37% {
        box-shadow: -.2em .2em 0 0 currentcolor;
    }
    50% {
        box-shadow: -.2em 0 0 0 currentcolor;
    }
    62% {
        box-shadow: -.2em -.2em 0 0 currentcolor;
    }
    75% {
        box-shadow: 0px -.2em 0 0 currentcolor;
    }
    87% {
        box-shadow: .2em -.2em 0 0 currentcolor;
    }
}