/* Hintergrund Bild */
html,
body {
    background-image: url("../assets/availability.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

/* main {
    display: flex;
    flex: 1;
    align-items: flex-start;
    gap: 2rem;

} */

/* Warenkorb Fenster */
.cart-wrapper {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 2rem 2rem 2rem 4rem;
    background-color: rgba(255, 252, 247, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    box-sizing: border-box;
}


/* Warenkorb links */
.cart-left {
    width: 40%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding-right: 1rem;
}
.cart-left h2 {
    margin-bottom: 1rem;
}

/* Warenkorb recht */
.cart-right {
    width: 60%;
    display: flex;
    flex-direction: column;
    padding-left: 4rem;
    padding-right: 4rem;
    padding-top: 2.5rem;
    box-sizing: border-box;
    border-left: 1px solid #ccc;
}

/*--------------------Product Window-------------------------*/


.cart-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ------ Box mit Warenkorbprodukten ------ */

.cart-box {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product.product-horizontal {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
}


.product.product-horizontal .product-image {
    height: 120px;
    width: 120px;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
    display: block;
    flex-shrink: 0;
}


.cart-box::-webkit-scrollbar {
    width: 6px;
}

.cart-box::-webkit-scrollbar-thumb {
    background-color: #4E3000;
    border-radius: 3px;
}

/*------------------Product---------------------------*/
.product {
    background-color: #FFFCF7;
    border-radius: 16px;
    display: flex;
    align-items: center;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: border 0.1s ease;
    overflow: hidden;
}

.product.product-horizontal:hover {
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-main {
    display: flex;
    flex: 1;
    justify-content: space-between;
}

/* Textinhalt des Produkt Feldes */
.product-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.product-details p {
    line-height: 1.0;
}

/* Produkt Name */
.product-title {
    font-weight: bold;
    margin-right: 6rem;
    margin-bottom: 0.25rem;
}

/* Einzelpreis */
.single-price {
    margin: 0;
}
/* Menge im Warenkorb */
.product-qty {
    text-align: right;
}

/* Mengen Eingabe */
.input-qty {
    width: 3.5rem;
    padding: 0;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    appearance: textfield;
    background-color: transparent;
    margin-left: auto;
}

.input-qty::-webkit-outer-spin-button,
.input-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Gesamt Preis des Produkts */
.total {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
}

.total .info-value {
    font-weight: bold;
}

/* Produkt entfernen */
.product-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.button-remove {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.button-remove img {
    width: 24px;
    height: 24px;
    transition: opacity 0.2s;
    display: block;
}

.button-remove img:hover {
    opacity: 1;
    filter: brightness(1.2);

}

.button-remove:hover {
    background: none;

}

/*------------------ Bestelliste -------------------*/
.save-list {
    text-align: right;

}

.save-list-button {
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    color: #4E3000;
}

.save-list-button:hover {
    background-color: transparent;
    transform: scale(1.1);
}

/*------------------- Bestellsumme --------------------------*/

.total-summary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
}

.total-summary .info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 1rem;

}

.row1 {
    border-top: 1px solid #ccc;
    padding-top: 1rem;
}

.row2 {
    border-top: 1px solid #ccc;
    margin-top: 2rem;
    padding-top: 1rem;
}

.total-summary .info-value {
    font-weight: bold;

}

.total-summary .info-value {
    text-align: right;
    white-space: nowrap;
}

.total-summary .info-row:nth-child(3) .info-value {
    white-space: normal;
    line-height: 1.3;
}


/*------------------Submit Button / Bestellen ---------------------------*/
.place-order {
    width: 95%;
    margin: 1rem;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

/*-------------------- Persönliche Daten ------------------*/
.cart-right p {
    font-size: 1.5rem;
    padding-top: 2rem;
    color: #4E3000;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cart-right .header {
    font-size: 1.5rem;
    font-family: 'Lato', sans-serif;
    color: #4E3000;
    font-weight: bold;
    margin-bottom: 1rem;
}

form input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Datum Auswahl */
.date-selection {
    flex-direction: column;
    width: 80%;
}

/* Zeit Auswahl */
.time-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

}

.time-selection button {
    flex: 1 1 calc(33.333% - 0.5rem);
    min-width: 50px;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
}

/*
.payment-methods button img {
    max-width: 60%;
    max-height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
} */

.date-selection,
.time-selection,
.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.date-selection button,
.time-selection button,
.payment-methods button {
    padding: 0.5rem 2rem;
}

.date-selection button.active,
.time-selection button.active,
.payment-methods button.active {
    background-color: #d97b38;
    color: white;
    border: 1px solid #874c23;
}

.delivery-time {
    display: flex;
    flex-direction: row;
}

.date,
.time {
    flex: 1;
}

.payment-methods {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.payment-methods button {
    flex: 1;
    max-width: 33%;
    text-align: center;
}

.delivery-time, .payment-methods, .form-group {
    margin-bottom: 1rem;
}
