* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    color: #25251f;

    background: linear-gradient(
        to bottom,
        #d1caaf 0%,
        #d1caaf 50%,
        #c5bea5 75%,
        #b8b19a 100%
    );
}

button {
    font-family: inherit;

    transition:
        transform 0.12s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}

button:active {
    transform: scale(0.96);
}

/* HERO */

.hero {
    min-height: 100vh;

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

    text-align: center;

    padding: 40px 20px;

    position: relative;
}

.logo {
    width: min(520px, 70vw);
    height: auto;
}

.subtitle {
    margin-top: 25px;

    font-size: 18px;
    letter-spacing: 1px;
}

.scroll-button {
    margin-top: 40px;

    color: #25251f;

    text-decoration: none;

    border-bottom: 1px solid #25251f;

    padding: 8px 4px;
}

/* OBEN FAVORITEN */

.favorites-button {
    position: fixed;

    top: 25px;
    right: 125px;

    width: 90px;
    height: 64px;

    border: none;
    border-radius: 32px;

    background: rgba(255,255,255,0.65);

    color: #25251f;

    cursor: pointer;

    z-index: 50;

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

    gap: 10px;
}

.heart-icon {
    font-size: 34px;
    line-height: 1;
}

#favoritesCount {
    font-size: 18px;
}

/* OBEN WARENKORB */

.cart-button {
    position: fixed;

    top: 25px;
    right: 25px;

    width: 90px;
    height: 64px;

    border: none;
    border-radius: 32px;

    background: rgba(255,255,255,0.65);

    color: #25251f;

    cursor: pointer;

    z-index: 50;

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

    gap: 10px;
}

.cart-button svg {
    width: 34px;
    height: 34px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.5;

    stroke-linecap: round;
    stroke-linejoin: round;
}

#cartCount {
    font-size: 18px;
}

/* PRODUKTE */

.products {
    padding: 80px 7% 120px;
}

.products h1 {
    text-align: center;

    font-size: 38px;
    font-weight: normal;

    margin-bottom: 55px;
}

.product-grid {
    max-width: 900px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 45px 35px;
}

.product {
    position: relative;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.product:hover {
    opacity: 0.88;

    transform: translateY(-2px);
}

.product-image {
    width: 100%;

    aspect-ratio: 4 / 3;

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

    background: rgba(255,255,255,0.3);

    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.product h2 {
    font-size: 19px;
    font-weight: normal;

    margin-top: 14px;
}

.price {
    font-size: 16px;

    margin-top: 7px;
}

/* PRODUKT BUTTONS */

.product-actions {
    position: absolute;

    top: 12px;
    right: 12px;

    display: flex;

    gap: 8px;

    z-index: 10;
}

.favorite-product-button,
.quick-cart-button {
    width: 44px;
    height: 44px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.82);

    color: #25251f;

    cursor: pointer;

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

.favorite-product-button {
    font-size: 28px;
}

.quick-cart-button svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.favorite-product-button.active {
    background: #777b69;

    color: white;
}

.quick-cart-button.added {
    background: #777b69;

    color: white;

    font-size: 21px;
}

/* KONTAKT */

.contact {
    padding: 100px 20px;

    text-align: center;
}

.contact h2 {
    font-size: 32px;
    font-weight: normal;

    margin-bottom: 25px;
}

.contact p {
    margin: 10px;
}

/* PRODUKT MODAL */

.product-modal {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(25,25,20,0.55);

    z-index: 100;

    padding: 40px;

    overflow-y: auto;
}

.product-modal.open {
    display: flex;

    justify-content: center;
    align-items: center;
}

.product-modal-content {
    position: relative;

    width: min(950px,100%);

    max-height: 90vh;

    overflow-y: auto;

    background: #d1caaf;

    padding: 50px;

    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 40px 50px;
}

/* X */

.close-button {
    position: absolute;

    top: 12px;
    right: 14px;

    width: 36px;
    height: 36px;

    padding: 0;

    border: none;

    background: transparent;

    color: #25251f;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

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

    z-index: 20;
}

/* GALERIE */

.product-gallery {
    width: 100%;
}

.gallery-main {
    position: relative;

    width: 100%;
}

.main-product-image {
    width: 100%;

    aspect-ratio: 4 / 3;

    background: rgba(255,255,255,0.35);

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

    overflow: hidden;

    user-select: none;

    touch-action: pan-y;
}

.main-product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.gallery-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.78);

    color: #25251f;

    font-size: 34px;

    cursor: pointer;

    z-index: 5;
}

.gallery-arrow:active {
    transform: translateY(-50%) scale(0.93);
}

.gallery-arrow-left {
    left: 12px;
}

.gallery-arrow-right {
    right: 12px;
}

.gallery-dots {
    display: flex;

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

    gap: 7px;

    margin-top: 10px;
}

.gallery-dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: rgba(37,37,31,0.20);

    cursor: pointer;
}

.gallery-dot.active {
    background: #25251f;

    transform: scale(1.15);
}

/* PRODUKT DETAILS */

.product-details {
    display: flex;

    flex-direction: column;

    justify-content: center;
}

.product-details h2 {
    font-size: 30px;
    font-weight: normal;
}

.modal-price {
    font-size: 20px;

    margin-top: 15px;
}

.product-description {
    line-height: 1.7;

    margin: 30px 0;
}

/* BEIDE MODAL BUTTONS */

.modal-actions {
    grid-column: 1 / -1;

    display: grid;

    grid-template-columns: 1.2fr 1fr;

    gap: 50px;
}

.modal-favorite-button,
.add-to-cart {
    width: 100%;

    min-height: 52px;

    padding: 14px 20px;

    border: none;

    background: #777b69;

    color: white;

    cursor: pointer;

    font-size: 15px;
}

.modal-favorite-button.active {
    background: #5f6354;
}

.modal-favorite-button.added,
.add-to-cart.added {
    background: #5f6354;
}

/* FAVORITEN PANEL */

.favorites {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(25,25,20,0.55);

    z-index: 160;
}

.favorites.open {
    display: block;
}

.favorites-content {
    position: absolute;

    top: 0;
    right: 0;

    width: min(500px,100%);

    height: 100%;

    background: #d1caaf;

    padding: 70px 35px 35px;

    overflow-y: auto;
}

.favorites-content h2 {
    font-size: 28px;
    font-weight: normal;

    margin-bottom: 35px;
}

/* FAVORITEN PRODUKT */

.favorite-item {
    width: 100%;

    display: grid;

    grid-template-columns: 82px 1fr;

    align-items: center;

    gap: 16px;

    padding: 18px 0;

    border-bottom: 1px solid rgba(37,37,31,0.18);
}

.favorite-item-image {
    width: 82px;
    height: 82px;

    background: rgba(255,255,255,0.32);

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

    overflow: hidden;
}

.favorite-item-image span {
    font-size: 13px;

    opacity: 0.65;
}

.favorite-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.favorite-item-main {
    min-width: 0;
}

.favorite-item h3 {
    font-size: 17px;
    font-weight: normal;

    margin-bottom: 5px;
}

.favorite-item-price {
    font-size: 14px;

    margin-bottom: 11px;
}

.favorite-item-buttons {
    display: flex;

    gap: 10px;

    flex-wrap: wrap;
}

.favorite-item-buttons button {
    padding: 9px 12px;

    border: none;

    background: #777b69;

    color: white;

    cursor: pointer;
}

.favorite-item-buttons .remove-favorite {
    background: transparent;

    color: #25251f;

    border: 1px solid rgba(37,37,31,0.3);
}

/* WARENKORB */

.cart {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(25,25,20,0.55);

    z-index: 150;
}

.cart.open {
    display: block;
}

.cart-content {
    position: absolute;

    top: 0;
    right: 0;

    width: min(500px,100%);

    height: 100%;

    background: #d1caaf;

    padding: 70px 35px 35px;

    overflow-y: auto;
}

.cart-content h2 {
    font-size: 28px;
    font-weight: normal;

    margin-bottom: 35px;
}

.cart-item {
    width: 100%;

    display: grid;

    grid-template-columns: 82px 1fr 44px;

    align-items: center;

    gap: 16px;

    padding: 18px 0;

    border-bottom: 1px solid rgba(37,37,31,0.18);
}

.cart-item-image {
    width: 82px;
    height: 82px;

    background: rgba(255,255,255,0.32);

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

    overflow: hidden;
}

.cart-item-image span {
    font-size: 13px;

    opacity: 0.65;
}

.cart-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.cart-item-main {
    min-width: 0;
}

.cart-item-name {
    font-size: 17px;

    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 15px;

    margin-bottom: 11px;
}

/* MENGE */

.cart-quantity {
    display: inline-flex;

    align-items: center;

    border: 1px solid rgba(37,37,31,0.28);

    border-radius: 20px;

    overflow: hidden;

    background: rgba(255,255,255,0.12);
}

.quantity-button {
    width: 32px;
    height: 32px;

    padding: 0;

    border: none;

    background: transparent;

    color: #25251f;

    cursor: pointer;

    font-size: 20px;

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

/* KEIN HELLES AUFBLITZEN */

.quantity-button:hover {
    background: rgba(37,37,31,0.05);
}

.quantity-button:active {
    transform: none;

    background: rgba(37,37,31,0.10);

    color: #25251f;
}

.quantity-number {
    min-width: 28px;

    text-align: center;

    font-size: 14px;
}

/* MÜLLEIMER */

.remove-cart-item {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,0.45);

    color: #25251f;

    cursor: pointer;

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

    justify-self: end;
}

.remove-cart-item svg {
    width: 22px;
    height: 22px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.6;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-total {
    display: flex;

    justify-content: space-between;

    margin-top: 35px;

    padding-top: 20px;

    border-top: 1px solid rgba(0,0,0,0.25);

    font-size: 18px;
}

.checkout-button {
    width: 100%;

    margin-top: 25px;

    padding: 15px;

    border: none;

    background: #777b69;

    color: white;

    cursor: pointer;

    font-size: 15px;
}

/* CHECKOUT */

.checkout {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(25,25,20,0.55);

    z-index: 200;

    padding: 30px;

    overflow-y: auto;
}

.checkout.open {
    display: flex;

    justify-content: center;
    align-items: flex-start;
}

.checkout-content {
    position: relative;

    width: min(650px,100%);

    margin: 30px 0;

    padding: 55px 50px;

    background: #d1caaf;
}

.checkout-content h2 {
    font-size: 32px;
    font-weight: normal;

    margin-bottom: 35px;
}

.checkout-content h3 {
    font-size: 19px;
    font-weight: normal;

    margin-top: 35px;
    margin-bottom: 15px;
}

.checkout input,
.checkout select {
    width: 100%;

    padding: 14px;

    margin-bottom: 12px;

    border: 1px solid rgba(37,37,31,0.3);

    background: rgba(255,255,255,0.35);

    color: #25251f;

    font-family: inherit;

    font-size: 15px;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.checkout-total {
    display: flex;

    justify-content: space-between;

    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid rgba(37,37,31,0.25);

    font-size: 18px;
}

.payment-option {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 15px;

    margin-bottom: 10px;

    border: 1px solid rgba(37,37,31,0.25);

    cursor: pointer;
}

.payment-option input {
    width: auto;

    margin: 0;
}

.order-button {
    width: 100%;

    margin-top: 30px;

    padding: 16px;

    border: none;

    background: #777b69;

    color: white;

    font-size: 15px;

    cursor: pointer;
}

/* PAYPAL */

.payment-message {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(25,25,20,0.6);

    z-index: 300;

    padding: 20px;

    justify-content: center;
    align-items: center;
}

.payment-message.open {
    display: flex;
}

.payment-message-content {
    width: min(500px,100%);

    background: #d1caaf;

    padding: 50px 40px;

    text-align: center;
}

.payment-message-content h2 {
    font-size: 30px;
    font-weight: normal;

    margin-bottom: 20px;
}

.payment-message-content p {
    line-height: 1.6;

    margin-bottom: 30px;
}

#closePaymentMessage {
    padding: 14px 30px;

    border: none;

    background: #777b69;

    color: white;

    cursor: pointer;
}

/* FOOTER */

footer {
    padding: 30px 7%;

    display: flex;

    justify-content: space-between;

    border-top: 1px solid rgba(0,0,0,0.2);
}

footer a {
    color: #25251f;
    margin-left: 20px;
    display: inline-block;
    width: fit-content;
}

/* MOBILE */

@media (max-width: 650px) {

    body {
        font-size: 14px;
    }

    .logo {
        width: min(390px,82vw);
    }

    .subtitle {
        font-size: 15px;
    }

    .favorites-button {
        top: 14px;
        right: 89px;

        width: 68px;
        height: 50px;
    }

    .cart-button {
        top: 14px;
        right: 14px;

        width: 68px;
        height: 50px;
    }

    .heart-icon {
        font-size: 26px;
    }

    .cart-button svg {
        width: 25px;
        height: 25px;
    }

    #favoritesCount,
    #cartCount {
        font-size: 15px;
    }

    .products {
        padding: 60px 18px 90px;
    }

    .products h1 {
        font-size: 29px;

        margin-bottom: 38px;
    }

    .product-grid {
        gap: 30px 14px;
    }

    .product h2 {
        font-size: 14px;
    }

    .price {
        font-size: 13px;
    }

    .product-actions {
        top: 7px;
        right: 7px;

        gap: 5px;
    }

    .favorite-product-button,
    .quick-cart-button {
        width: 34px;
        height: 34px;
    }

    .favorite-product-button {
        font-size: 22px;
    }

    .quick-cart-button svg {
        width: 18px;
        height: 18px;
    }

    /* MODAL MOBILE */

    .product-modal {
        padding: 18px;
    }

    .product-modal-content {
        width: min(390px,100%);

        max-height: 88vh;

        padding: 40px 20px 22px;

        grid-template-columns: 1fr;

        gap: 17px;
    }

    #closeProduct {
        top: 4px;
        right: 4px;

        width: 30px;
        height: 30px;

        font-size: 22px;
    }

    .gallery-arrow {
        width: 36px;
        height: 36px;

        font-size: 27px;
    }

    .gallery-arrow-left {
        left: 7px;
    }

    .gallery-arrow-right {
        right: 7px;
    }

    .product-details h2 {
        font-size: 23px;
    }

    .modal-price {
        font-size: 16px;

        margin-top: 8px;
    }

    .product-description {
        font-size: 14px;

        line-height: 1.55;

        margin: 15px 0 4px;
    }

    /* BEIDE BUTTONS AUF MOBILE GLEICH */

    .modal-actions {
        grid-column: auto;

        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }

    .modal-favorite-button,
    .add-to-cart {
        min-height: 44px;

        padding: 10px 8px;

        font-size: 12px;
    }

    /* PANELS */

    .favorites-content,
    .cart-content {
        width: 100%;

        padding: 58px 20px 25px;
    }

    .favorites-content h2,
    .cart-content h2 {
        font-size: 24px;

        margin-bottom: 25px;
    }

    .favorites-content .close-button,
    .cart-content .close-button {
        top: 7px;
        right: 7px;

        width: 30px;
        height: 30px;

        font-size: 22px;
    }

    /* FAVORITEN MOBILE */

    .favorite-item {
        grid-template-columns: 68px 1fr;

        gap: 11px;

        padding: 14px 0;
    }

    .favorite-item-image {
        width: 68px;
        height: 68px;
    }

    .favorite-item-image span {
        font-size: 11px;
    }

    .favorite-item h3 {
        font-size: 14px;
    }

    .favorite-item-price {
        font-size: 12px;

        margin-bottom: 8px;
    }

    .favorite-item-buttons {
        gap: 6px;
    }

    .favorite-item-buttons button {
        padding: 7px 9px;

        font-size: 11px;
    }

    /* WARENKORB MOBILE */

    .cart-item {
        grid-template-columns: 68px 1fr 38px;

        gap: 11px;

        padding: 14px 0;
    }

    .cart-item-image {
        width: 68px;
        height: 68px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .cart-item-price {
        font-size: 12px;

        margin-bottom: 8px;
    }

    .quantity-button {
        width: 28px;
        height: 28px;

        font-size: 17px;
    }

    .quantity-number {
        min-width: 24px;

        font-size: 12px;
    }

    .remove-cart-item {
        width: 36px;
        height: 36px;
    }

    .remove-cart-item svg {
        width: 18px;
        height: 18px;
    }

    /* CHECKOUT */

    .checkout {
        padding: 10px;
    }

    .checkout-content {
        margin: 10px 0;

        padding: 45px 20px 26px;
    }

    .checkout-content h2 {
        font-size: 25px;
    }

    .checkout-content h3 {
        font-size: 16px;
    }

    .checkout input {
        padding: 11px;

        font-size: 13px;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .order-button {
        font-size: 13px;
    }

    footer {
        flex-direction: column;

        gap: 15px;

        text-align: center;

        font-size: 13px;
    }
}