:root {
    --inner-width: min(calc(100vw - 32px), 1312px);
    --bg-1: #f6f5ed;
    --bg-2: #f6f5ed;
    --border: #e0e0e0;
    --accent-1: #485b48;
    --font-1: #4e4c52;
    --font-2: #828282;
    --shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --button-text: rgb(0, 0, 0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-display: swap;
}

body {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: var(--font-1);
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--accent-1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media screen and (max-width: 599px) {
    .main-header__account-item > span {
        display: none;
    }

    .navigation__footer-item > span {
        display: none;
    }
}

.dark-overlay {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -200;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: var(--transition);
}

.dark-overlay.active {
    z-index: 200;
    opacity: 1;
}

/* ADD TO CART MESSAGE */
.atc__notice {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -300;
    padding: 24px;
    width: 500px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background-color: var(--bg-1);
    opacity: 0;
    transition: var(--transition);
}

.atc__notice.active {
    z-index: 300;
    opacity: 1;
}

.atc__notice > i {
    width: 96px;
    height: 96px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-1);
    border-radius: 50%;
    font-size: 48px;
    color: var(--bg-1);
}

.atc__notice > span {
    font-size: 20px;
    font-weight: 500;
}

.atc__notice-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.atc__notice-accept {
    padding: 0px 24px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-1);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bg-1);
}

.atc__notice-close {
    padding: 0px 24px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 1px solid var(--accent-1);
    outline: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--font-1);
}

/* NAVIGATION */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -300;
    width: 100%;
    max-width: 500px;
    height: 100%;
    display: flex;
    transform: translateX(-100%);
    transition: var(--transition);
}

.navigation.active {
    z-index: 300;
    transform: translateX(0);
}

.navigation__inner {
    width: 90%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-1);
    overflow-y: auto;
}

.navigation__block {
    width: 100%;
    display: none;
    flex-direction: column;
    flex-grow: 1;
}

.navigation__block.active {
    display: flex;
}

.navigation__categories {
    width: 100%;
    display: none;
    flex-direction: column;
    flex-grow: 1;
}

.navigation__categories.active {
    display: flex;
}

.navigation__header {
    padding: 12px 0;
    width: 100%;
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.navigation__header > a {
    width: auto;
    height: 60px;
    display: flex;
    justify-content: center;
}

.navigation__header > a > img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.navigation__header > button {
    padding: 0 16px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
}

.navigation__header > button > i {
    color: var(--button-text);
}

body
    > div.navigation.active
    > div.navigation__inner
    > div.navigation__block.active
    > div.navigation__categories.active
    > div
    > button
    > span {
    color: var(--button-text);
}

.navigation__content {
    width: 100%;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    list-style-type: none;
    overflow-y: auto;
}

.navigation__content > li {
    width: 100%;
    transition: var(--transition);
}

.navigation__content > li:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.navigation__content > li:hover {
    background-color: var(--bg-2);
}

.navigation__content > li > a,
.navigation__content > li > button {
    padding: 14px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.navigation__content > li > a > img:not(.circle),
.navigation__content > li > button > img:not(.circle) {
    object-fit: cover;
    aspect-ratio: 1;
    width: 40px;
    height: 40px;
}

.navigation__content > li > a > img.circle,
.navigation__content > li > button > img.circle {
    width: 64px;
    height: 64px;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
}

.navigation__content > li > a > span,
.navigation__content > li > button > span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.navigation__content > li > a > i,
.navigation__content > li > button > i {
    margin-left: auto;
    font-size: 16px;
}

.navigation__footer {
    padding: 12px 0;
    width: 100%;
    display: none;
    justify-content: space-around;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.navigation__footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.navigation__footer-item > i {
    font-size: 24px;
}

.navigation__footer-item > span {
    font-size: 12px;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navigation__outer {
    padding-top: 16px;
    width: 10%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.navigation__close {
    width: fit-content;
    height: fit-content;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--bg-1);
}

/* HEADER */
header {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-1);
    box-shadow: var(--shadow);
}

.pre-header,
.main-header,
.post-header {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pre-header {
    background-color: var(--bg-2);
}

.post-header {
    border-top: 1px solid var(--border);
}

.pre-header__inner,
.main-header__inner,
.post-header__inner {
    width: var(--inner-width);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pre-header__inner {
    height: 40px;
}

.main-header__inner {
    height: 80px;
}

.post-header__inner {
    height: 60px;
}

.pre-header__section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pre-header__section:nth-child(3) {
    display: none;
}

.pre-header__divider {
    width: 2px;
    height: 16px;
    background-color: var(--border);
}

.pre-header__section > a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.free-shipping {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.free-shipping-mobile {
    display: none;
}

@media screen and (max-width: 1023px) {
    .free-shipping-mobile {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        text-decoration: none;
        color: inherit;
        justify-content: center;
        background-color: #f6f5ed;
    }
}

.free-shipping > i {
    font-size: 16px;
}

.navigation__open {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
}

.navigation__open > i {
    font-size: 20px;
}

.navigation__open > span {
    font-size: 12px;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1px;
}

.main-header__logo {
    width: auto;
    height: 60px;
    display: flex;
}

@media (max-width: 599px) {
    .main-header__logo {
        display: none;
    }

    .cart__heading {
        display: none !important;
    }
}

.main-header__logo > img {
    scale: 1.4;
    width: auto;
    height: 100%;
    object-fit: contain;
}

.main-header__search {
    max-width: 400px;
    height: 40px;
    display: flex;
    flex-grow: 1;
    align-items: center;
    border: 1px solid var(--accent-1);
    border-radius: 100px;
    overflow: hidden;
    padding: 0;
    margin: 0 !important;
}

.mobile-main-header__search {
    max-width: 400px;
    height: 40px;
    display: flex;
    flex-grow: 1;
    align-items: center;
    border: 1px solid var(--accent-1);
    border-radius: 100px;
    overflow: hidden;
    padding: 0;
    margin: 0 !important;
}

.mobile-main-header__search > button[type='reset'],
.mobile-main-header__search > input,
.mobile-main-header__search > button[type='submit'] {
    border: none;
    outline: none;
    font-size: 14px;
}

.mobile-main-header__search > button[type='reset'] {
    padding-left: 16px;
    display: none;
    background-color: transparent;
    cursor: pointer;
    color: var(--font-1);
}

.mobile-main-header__search > input {
    padding: 0 16px;
    flex-grow: 1;
    background-color: transparent;
    color: var(--font-1);
}

.mobile-main-header__search > button[type='submit'] {
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: var(--accent-1);
    cursor: pointer;
    color: var(--bg-1);
}

.main-header__search > button[type='reset'],
.main-header__search > input,
.main-header__search > button[type='submit'] {
    border: none;
    outline: none;
    font-size: 14px;
}

.main-header__search > button[type='reset'] {
    padding-left: 16px;
    display: none;
    background-color: transparent;
    cursor: pointer;
    color: var(--font-1);
}

.main-header__search > input {
    padding: 0 16px;
    flex-grow: 1;
    background-color: transparent;
    color: var(--font-1);
}

.main-header__search > button[type='submit'] {
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    background-color: var(--accent-1);
    cursor: pointer;
    color: var(--bg-1);
}

.main-header__account {
    display: flex;
    align-items: center;
    gap: 24px;
}

@media screen and (max-width: 599px) {
    .main-header__account {
        width: 100%;
        justify-content: space-evenly;
    }
}

.main-header__account-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.main-header__account-item-icon {
    position: relative;
}

.main-header__account-item-icon > i {
    font-size: 24px;
}

.main-header__account-item-icon > span {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-1);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 500;
    color: var(--bg-1);
}

.main-header__account-item > span {
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1px;
}

.post-header__nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.post-header__nav-open {
    padding: 0 24px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent-1);
    border: none;
    outline: none;
    cursor: pointer;
    color: var(--bg-1);
}

.post-header__nav-open > i {
    font-size: 24px;
}

.post-header__nav-open > span {
    font-size: 16px;
    font-weight: 500;
}

.post-header__nav > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.post-header__nav > a > i {
    font-size: 22px;
}

.post-header__nav > a > span {
    font-size: 14px;
    font-weight: 500;
}

.post-header__nav > a::after {
    position: absolute;
    content: '';
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-1);
    transition: var(--transition);
}

.post-header__nav > a:hover::after {
    width: 100%;
}

.main-wrapper {
    padding: 24px 0 48px;
    width: 100%;
    display: flex;
    justify-content: center;
    height: 100%;
}

.main-wrapper__inner {
    width: var(--inner-width);
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
}

/* FOOTER */
footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-2);
}

.pre-footer,
.main-footer,
.post-footer {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pre-footer {
    padding: 32px 0;
}

.main-footer {
    padding: 64px 0;
    border-top: 1px #eebaa9;
    border-bottom: 1px #eebaa9;
}

.post-footer {
    padding: 16px 0;
}

.pre-footer__inner,
.main-footer__inner,
.post-footer__inner {
    width: var(--inner-width);
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.pre-footer__inner,
.main-footer__inner {
    justify-content: space-between;
}

.post-footer__inner {
    justify-content: center;
}

.pre-footer__section {
    width: calc((100% - 96px) / 4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pre-footer__section > img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    object-position: center;
    filter: invert(89%) sepia(21%) saturate(300%) hue-rotate(325deg)
        brightness(114%) contrast(93%);
}

.pre-footer__section > span {
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.main-footer__section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-footer__section:nth-child(1) {
    max-width: 320px;
}

.main-footer__logo {
    width: 100%;
    display: flex;
    justify-content: center;
}

.main-footer__logo > img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.main-footer__section > p {
    font-size: 12px;
    font-weight: 400;
}

.main-footer__section > h4 {
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.main-footer__section > h4::after {
    position: absolute;
    content: '';
    bottom: -8px;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--accent-1);
}

.main-footer__section > ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style-type: none;
}

.main-footer__section:nth-child(1) > ul {
    flex-direction: row;
}

.main-footer__section > ul > li > a {
    position: relative;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
}

.main-footer__section:nth-child(1) > ul > li > a {
    font-size: 16px;
}

.main-footer__section > ul > li > a::after {
    position: absolute;
    content: '';
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--accent-1);
    transition: var(--transition);
}

.main-footer__section > ul > li > a:hover::after {
    width: 100%;
}

.post-footer__inner > p {
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}

@media screen and (max-width: 1023px) {
    .navigation__footer {
        display: flex;
    }

    .pre-header__inner {
        justify-content: center;
    }

    .pre-header__section:nth-child(1),
    .pre-header__section:nth-child(2) {
        display: none;
    }

    .pre-header__section:nth-child(3) {
        display: flex;
    }

    .navigation__open {
        display: flex;
    }

    .main-header__search {
        display: none;
    }

    .main-header__account-item-icon > i {
        font-size: 20px;
    }

    .main-header__account-item > span {
        font-size: 12px;
    }

    .post-header {
        display: none;
    }

    .pre-footer__inner {
        flex-wrap: wrap;
    }

    .pre-footer__section {
        width: calc((100% - 64px) / 2);
    }

    .main-footer__inner {
        flex-direction: column;
    }

    .main-footer__section {
        align-items: center;
    }

    .main-footer__section:nth-child(1) {
        max-width: 100%;
    }

    .main-footer__section > p {
        text-align: center;
    }

    .main-footer__section > ul {
        align-items: center;
    }

    .main-footer__section > h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
}
