:root {
    --primary-color: #111111;
    --secondary-color: #496f48;
    --primary-dark: #1c1c1e;
    --primary-light: #f0ede8;
    --accent-green: #496f48;
    --accent-blue: #4867cc;
}

html {
    font-size: 16px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    background-color: var(--primary-dark);
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

body.home-page {
    background-image:
        linear-gradient(rgba(28, 28, 30, 0.9), rgba(28, 28, 30, 0.9)),
        url('/images/fourways_logo.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.text-light {
    color: var(--primary-light);
}

.header__container {
    color: var(--primary-light);
    font-family: 'Barlow', sans-serif;
    h1 {
        text-align: center;
    }
    .headline-text {
        /* font-size: 2.5rem; */
        font-weight: 400;
    }
}

.page-wrapper {
    max-width: 750px;
    margin: 0 auto;
    padding: 1rem 1rem 2rem 1rem;
    flex: 1;
}

.home-hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-wrapper .header__container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.collaboration-flip-card {
    width: 100%;
    min-height: 320px;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    perspective: 1200px;
    cursor: pointer;
}

.collaboration-flip-card:focus-visible {
    outline: 2px solid var(--primary-light);
    outline-offset: 3px;
}

.collaboration-flip-card__inner {
    position: relative;
    width: 100%;
    min-height: 320px;
    border-radius: 8px;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.collaboration-flip-card.is-flipped .collaboration-flip-card__inner {
    transform: rotateY(180deg);
}

.collaboration-flip-card__face {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
    backface-visibility: hidden;
}

.collaboration-flip-card__face--front {
    background-image:
        linear-gradient(rgba(28, 28, 30, 0.62), rgba(28, 28, 30, 0.62)),
        url('/images/ts-shopfront.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.collaboration-flip-card__face--back {
    background-image:
        linear-gradient(rgba(28, 28, 30, 0.78), rgba(28, 28, 30, 0.78)),
        url('/images/ts-interior.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transform: rotateY(180deg);
}

.collaboration-hero__title {
    margin: 0;
    padding-bottom: 1rem;
    font-size: 1.75rem;
}

.collaboration-flip-card__text {
    margin: 0.35rem 0;
    max-width: 540px;
}

.main-page__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-text {
    font-size: 2.5rem;
    text-align: center;
    padding-bottom: 4rem;
}

.hero-btn {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    border-radius: 16px;
    a {
        color: var(--primary-dark);
        text-decoration: none;
    }
}

.product-cards__container {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 1.5rem;
    color: var(--primary-dark);
}

.product-card__container {
    display: flex;
    height: 150px;
    width: 800px;
    border-radius: 8px;
    background-color: var(--primary-light);
    transition: transform 0.2s;
}
.product-card__container:hover {
    transform: translateY(-3px);
}

.product-card__left {
    flex: 1;
    padding-top: 1.5rem;
}

.product-details__product-card-container:hover {
    transform: translateY(0px);
}
.product-details__product-card__left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 0.5rem;
    p {
        margin: 0;
    }
}
.product-details__main-text {
    margin-top: 1.5rem;
    line-height: 1.6;
    color: var(--primary-light);
    h2 {
        font-weight: 400;
        font-family: 'Barlow', sans-serif;
    }
}

.modern-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    background-color: var(--primary-light);
}

.more-info-btn {
    text-decoration: none;
    color: var(--primary-dark);
}

.product-card__price {
    font-size: 24px;
    text-align: center;
}

.product-card__right {
    display: flex;
    flex: 2;
}

.product-card__text-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding-top: 2rem;
}

.product-card__origin {
    display: flex;
    justify-content: space-evenly;
    font-weight: 700;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
}
.product-card__process {
    display: flex;
    justify-content: space-evenly;
}
.product-card__producer {
    display: flex;
    justify-content: space-evenly;
}
.product-card__variety {
    display: flex;
    justify-content: space-evenly;
}

.product-card__logo-container {
    flex: 1;
    position: relative;
}

.product-card__logo {
    position: absolute;
    top: 10px;
    right: 10px;
    height: 100px;
    width: 100px;
    background-color: orange;
    background-image: url('/images/fourways_logo.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

.cart-indicator {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 5px;
    z-index: 998;
    transition: background-color 0.2s ease;
}

.cart-indicator:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.about_text {
    text-align: left;
}

.success-email__link {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
}

.privacy-text {
    color: var(--primary-light);
}

@media (max-width: 900px) {
    body.home-page .page-wrapper {
        max-width: 100%;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    body.home-page .header__container {
        padding-left: 1rem;
        padding-right: 1rem;
        font-family: 'Barlow', sans-serif;
    }

    .product-card__container {
        flex-direction: column-reverse;
        height: auto;
        width: 100%;
    }

    .product-card__left,
    .product-card__right {
        flex: none;
        width: 100%;
    }
    .product-card__left {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
        padding-top: 0.5rem;
    }

    .product-card__right {
        line-height: 1.3;
    }
    .product-card__text-container {
        padding-top: 1rem;
        padding: 1rem 1rem 0 0.5rem;
    }

    .product-details__product-card__left {
        flex-direction: row;
        justify-content: space-evenly;
    }
}
