/* Existing CSS remains unchanged */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

.header {
    background-color: pink;
    padding: 20px 0;
    text-align: center;
}

.shop-name {
    font-size: 36px;
    color: white;
    font-weight: bold;
}

.flash-sale-all {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.sale-products {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.product-item {
    background-color: white;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(255, 64, 129, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 22%;
    margin-bottom: 20px;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 64, 129, 0.5);
}

.product-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-info {
    margin-top: 15px;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.price {
    font-size: 16px;
    color: #f44336;
    margin-bottom: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
}

.add-to-cart, .buy-now {
    background-color: pink;
    border: none;
    color: white;
    padding: 10px;
    width: 100%;
    margin-top: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover, .buy-now:hover {
    background-color: #ff69b4;
}

.footer {
    background-color: pink;
    color: white;
    text-align: center;
    padding: 20px 0;
    position: fixed;
    width: 100%;
    bottom: 0;
}

.footer p {
    font-size: 14px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
}

.modal-content h3 {
    margin-bottom: 20px;
}

#modalColorSelect {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.modal-buttons {
    display: flex;
    justify-content: space-between;
}

.modal-confirm, .modal-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-confirm {
    background-color: pink;
    color: white;
}

.modal-confirm:hover {
    background-color: #ff69b4;
}

.modal-cancel {
    background-color: #ddd;
    color: #333;
}

.modal-cancel:hover {
    background-color: #bbb;
}