@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Montserrat:wght@400;500;600&display=swap');

.rixes-products,
.rixes-products * {
    box-sizing: border-box;
}

.rixes-products {
    --rx-blue: #314677;
    --rx-blue-dark: #27395f;
    --rx-gold: #B99162;

    --rx-bg: #f7f3ef;
    --rx-card: #ffffff;
    --rx-image: #eee9e6;

    --rx-text: #625d58;
    --rx-line: #ddd5d0;

    width: 100%;

    padding: 88px 0 94px;

    overflow: hidden;

    background: var(--rx-bg);

    font-family: "Montserrat", sans-serif;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.rixes-products__inner {
    width: min(1380px, calc(100% - 100px));

    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.rixes-products__header {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 50px;

    align-items: end;

    margin-bottom: 41px;
}

.rixes-products__intro {
    max-width: 700px;
}


/* Eyebrow */

.rixes-products__eyebrow {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 17px;

    font-size: 10px;
    line-height: 1;

    font-weight: 600;

    letter-spacing: 4.5px;

    text-transform: uppercase;

    color: var(--rx-gold);
}

.rixes-products__eyebrow-line {
    width: 42px;
    height: 1px;

    flex: 0 0 42px;

    background: var(--rx-gold);
}


/* Headline */

.rixes-products__heading {
    margin: 0 0 15px !important;
    padding: 0 !important;

    font-family: "Cormorant Garamond", serif !important;

    font-size: clamp(45px, 3.7vw, 64px) !important;
    line-height: .98 !important;

    font-weight: 400 !important;

    letter-spacing: -.7px !important;

    color: var(--rx-blue-dark) !important;
}


/* Text */

.rixes-products__description {
    max-width: 620px;

    margin: 0 !important;
    padding: 0 !important;

    font-family: "Montserrat", sans-serif !important;

    font-size: 15px !important;
    line-height: 1.7 !important;

    font-weight: 400 !important;

    color: var(--rx-text) !important;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.rixes-products__controls {
    display: flex;

    gap: 9px;
}

.rixes-products__arrow {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--rx-line);
    border-radius: 50%;

    background: transparent;

    color: var(--rx-blue);

    font-family: Arial, sans-serif;

    font-size: 19px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.rixes-products__arrow:hover {
    border-color: var(--rx-blue);

    background: var(--rx-blue);

    color: #fff;

    transform: translateY(-2px);
}

.rixes-products__arrow:disabled {
    opacity: .3;

    cursor: default;

    transform: none;
}


/* =========================================================
   TRACK
   ========================================================= */

.rixes-products__track {
    display: flex;

    gap: 22px;

    width: 100%;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 1px 1px 16px;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;

    overscroll-behavior-inline: contain;
}

.rixes-products__track::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.rixes-product-card {
    position: relative;

    flex:
        0 0
        calc(
            (100% - 66px) / 4
        );

    min-width: 0;

    overflow: hidden;

    scroll-snap-align: start;

    border: 1px solid rgba(49,70,119,.07);
    border-radius: 18px;

    background: var(--rx-card);

    box-shadow:
        0 12px 36px rgba(46,39,36,.045);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.rixes-product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(46,39,36,.085);
}


/* =========================================================
   IMAGE
   ========================================================= */

.rixes-product-card__image-link {
    display: block;

    text-decoration: none !important;
}

.rixes-product-card__image {
    position: relative;

    width: 100%;

    aspect-ratio: 1.06 / 1;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    padding: 25px;

    background:
        linear-gradient(
            145deg,
            #f3efec,
            #ebe4e1
        );
}

.rixes-product-card__img {
    display: block;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;

    object-fit: contain;

    mix-blend-mode: multiply;

    transition:
        transform .55s cubic-bezier(.2,.7,.2,1);
}

.rixes-product-card:hover
.rixes-product-card__img {
    transform: scale(1.045);
}


/* =========================================================
   BODY
   ========================================================= */

.rixes-product-card__body {
    padding: 23px 23px 22px;
}


/* Kategorie */

.rixes-product-card__category {
    margin-bottom: 8px;

    font-family: "Montserrat", sans-serif;

    font-size: 9px;
    line-height: 1;

    font-weight: 600;

    letter-spacing: 2.4px;

    text-transform: uppercase;

    color: var(--rx-gold);
}


/* Produktname */

.rixes-product-card__title {
    min-height: 51px;

    margin: 0 0 19px !important;
    padding: 0 !important;

    font-family: "Montserrat", sans-serif !important;

    font-size: 18px !important;
    line-height: 1.4 !important;

    font-weight: 500 !important;

    letter-spacing: 0 !important;
}

.rixes-product-card__title a {
    color: var(--rx-blue-dark) !important;

    text-decoration: none !important;
}

.rixes-product-card__title a:hover {
    color: var(--rx-gold) !important;
}


/* =========================================================
   FOOT
   ========================================================= */

.rixes-product-card__bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-top: 17px;

    border-top: 1px solid #eee8e5;
}


/* Preis */

.rixes-product-card__price {
    color: var(--rx-blue-dark);

    font-family: "Montserrat", sans-serif;

    font-size: 15px;
    line-height: 1.3;

    font-weight: 600;
}

.rixes-product-card__price del {
    margin-right: 5px;

    opacity: .45;

    font-size: 12px;
}

.rixes-product-card__price ins {
    text-decoration: none;
}


/* Button */

.rixes-product-card__button {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--rx-line);
    border-radius: 50%;

    color: var(--rx-blue) !important;

    text-decoration: none !important;

    font-size: 17px;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.rixes-product-card:hover
.rixes-product-card__button {
    border-color: var(--rx-gold);

    background: var(--rx-gold);

    color: #fff !important;

    transform: translateX(2px);
}


/* =========================================================
   LAPTOP / TABLET
   ========================================================= */

@media (max-width: 1150px) {

    .rixes-products__inner {
        width: calc(100% - 60px);
    }

    .rixes-product-card {
        flex-basis:
            calc(
                (100% - 44px) / 3
            );
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {

    .rixes-products {
        padding: 68px 0 72px;
    }

    .rixes-products__header {
        grid-template-columns: 1fr;

        gap: 23px;

        margin-bottom: 32px;
    }

    .rixes-products__controls {
        justify-content: flex-start;
    }

    .rixes-product-card {
        flex-basis:
            calc(
                (100% - 22px) / 2
            );
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .rixes-products {
        padding: 52px 0 58px;
    }

    .rixes-products__inner {
        width: calc(100% - 36px);
    }

    .rixes-products__heading {
        font-size: 40px !important;
    }

    .rixes-products__description {
        font-size: 14px !important;
    }

    .rixes-products__arrow {
        width: 45px;
        height: 45px;
    }

    .rixes-products__track {
        gap: 14px;

        margin-right: -18px;

        width: calc(100% + 18px);
    }

    .rixes-product-card {
        flex: 0 0 84%;
    }

    .rixes-product-card__image {
        padding: 20px;
    }

}


/* SMALL MOBILE */

@media (max-width: 420px) {

    .rixes-products__inner {
        width: calc(100% - 28px);
    }

    .rixes-products__heading {
        font-size: 36px !important;
    }

    .rixes-product-card {
        flex-basis: 88%;
    }

}
