/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
}

header h1 {
    font-size: 2.5em;
}

header p {
    font-size: 1.2em;
    margin-top: 10px;
}

.view-cart-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
}

/* Marquee */
.promo-marquee {
    background-color: #e74c3c;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    margin: 0;
    border-bottom: 2px solid #c0392b;
}

/* Sections */
section {
    padding: 40px 0;
    background-color: #fff;
    margin-bottom: 20px;
}

#hero {
    background-color: #ecf0f1;
    text-align: center;
}

/* Products */
.category {
    margin-bottom: 30px;
}

.category h3 {
    color: #e74c3c;
    margin-bottom: 10px;
}

.category ul {
    list-style: none;
}

.category li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.add-to-cart-btn, .order-btn {
    background-color: #27ae60;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin-left: 10px;
    transition: background-color 0.3s;
    
  
}


.add-to-cart-btn:hover, .order-btn:hover {
    background-color: #2ecc71;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -300px; /* Hidden by default */
    top: 0;
    width: 300px;
    height: 100%;
    background-color: #fff;
    border-left: 1px solid #ddd;
    padding: 20px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    transition: right 0.3s;
}

.cart-sidebar.show {
    right: 0;
}

#cart-items, #cart-items-modal {
    list-style: none;
    padding: 0;
}

#cart-items li, #cart-items-modal li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls button {
    background: #ddd;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    margin: 0 5px;
}

#cart-total, #cart-total-modal {
    font-weight: bold;
    font-size: 18px;
    margin: 10px 0;
}

#clear-cart-btn, #clear-cart-btn-modal {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    .cart-sidebar.show {
        right: 0;
    }
    .category li {
        flex-direction: column;
        align-items: flex-start;


}

.category li button {
    margin-top: 10px;
}
    
    .add-to-cart-btn, .order-btn {
        width: 100%;
        margin-top: 15px;
    }
}