body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #FFFFFF;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFF8F0;
    padding: 15px 20px;
}

header h1 {
    margin: 0;
    color: #F22C2C;
    font-family: 'Lemonada';
}

.search-container input {
    padding: 8px 12px;
    border-radius: 20px;
    border: none;
    width: 320px;
    height: 35px;
}

main {
    display: flex;
    padding: 20px;
    gap: 20px;
}

/* Product Styling */
.products {
    width: 70%;
}

.products h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; 
    font-size: 24px;
    margin-bottom: 15px;
}


.product-list {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.product-card {
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px; 
    border-radius: 10px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
    cursor: pointer; 
    height: 140px; 
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 15px rgba(255, 195, 100, 0.5); /* Warm golden glow */
    background-color: #FFF8E1; /* Soft cream yellow */
}

.product-info h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
}

.product-info p {
    width: 170px;
    font-family: 'Quicksand', sans-serif;
    color: #555;
    font-size: 14px;
}

.price {
    color: #f9748f;
    font-weight: bold;
}

.product-image {
    position: relative;
}

.product-image img {
    width: 120px; 
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

/* Cart Info */
.cart {
    width: 30%;
    background: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
}

.cart h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #F22C2C;
    margin-bottom: 15px;
}

.cart img {
    width: 300px;
    display: block;
    margin: 0 auto;
}

.cart-total {
    margin-top: 20px;
}

.cart-total p {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    display: flex;
    justify-content: space-between;
}

.cart-total p, .total-price{
    font-weight: bold;
}

/* Empty Cart Info */
.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.empty-cart p {
    font-family: 'Quicksand', sans-serif;
    color: #777;
    font-size: 15px;
    margin-top: 10px;
}

.empty-cart img {
    width: 250px; 
    height: auto;
    margin-bottom: 10px;
}


/* Checking Out */
#checkout-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f78ca0, #f9748f);
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#checkout-btn:hover {
    background: linear-gradient(135deg, #f9748f, #f78ca0);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

#checkout-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    margin-top: 14px;
    background-color: #FFD9D0;
    text-align: center;
    padding: 6px 5px;
    box-shadow: 0px -2px 5px rgba(0,0,0,0.05);
    font-family: 'Poppins', sans-serif;
}

footer h2 {
    color: #F22C2C;
    font-family: 'Lemonada', cursive;
    font-weight: 600;
    font-size: 22px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

footer p:first-of-type {
    font-style: italic;
}

/* Cart Styling */
.cart-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

.cart-item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.cart-item-info {
    flex: 1;
}

/* Cart item name */
.cart-item-info h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

/* Cart item price */
.cart-item-info p {
    font-family: 'Quicksand', sans-serif;
    color: #f9748f;
    font-weight: bold;
    margin: 0 0 8px 0;
}

/* Quantity buttons text */
.cart-quantity span {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}


.cart-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-quantity button {
    background: linear-gradient(135deg, #f78ca0, #f9748f);
    color: white;
    border: none;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, background 0.3s ease;
}

.cart-quantity button:hover {
    background: linear-gradient(135deg, #f9748f, #f78ca0);
    transform: scale(1.1);
}

.cart-quantity button:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Popup overlay */
.popup-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Popup box */
.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 300px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: popIn 0.3s ease;
}

.popup-content h2 {
    color: #F22C2C;
    font-family: 'Lemonada';
    margin-bottom: 10px;
}

.popup-content p {
    margin-bottom: 20px;
}

.popup-content button {
    background: linear-gradient(135deg, #f78ca0, #f9748f);
    border: none;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-content button:hover {
    background: linear-gradient(135deg, #f9748f, #f78ca0);
}

/** Confirmation Oder **/
.popup-content button {
    background: linear-gradient(135deg, #f78ca0, #f9748f);
    border: none;
    padding: 10px 20px;
    color: white;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.popup-content button:hover {
    background: linear-gradient(135deg, #f9748f, #f78ca0);
}

/* Animation */
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
