/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

/* Header Styling */
header {
    background-color: #333;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    align-items: center;
}


header .logo h1 {
    font-size: 28px;
    font-weight: 700;
}

header .cart button {
    background-color: #ff6600;
    border: none;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

header .cart button:hover {
    background-color: #ff4500;
}

/* Main Content */
main {
    padding: 40px 30px;
}

/* Greeting Styling */
.greeting {
    font-size: 24px;
    font-weight: 500;
    color: #555;
    margin-bottom: 20px;
}

/* Product Grid */
.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    justify-items: center;
}

.product {
    background-color: white;
    padding: 20px;
    text-align: center;
    border-radius: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.product img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.product p {
    font-size: 18px;
    color: #e74c3c;
    margin-bottom: 15px;
}

.product button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.product button:hover {
    background-color: #2980b9;
}

/* Cart Popup */
.cart-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.cart-popup-content {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 320px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-popup ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.cart-popup button {
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
    transition: background-color 0.3s ease;
}

.cart-popup button:last-child {
    margin-top: 10px;
    background-color: #2ecc71;
}

.cart-popup button:hover {
    background-color: #c0392b;
}

.cart-popup button:last-child:hover {
    background-color: #27ae60;
}

/* Shipping Popup */
.shipping-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.shipping-popup-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    width: 320px;
    text-align: center;
}

.shipping-popup-content form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.shipping-popup-content form label {
    margin: 10px 0 5px;
    font-weight: bold;
    font-size: 16px;
}

.shipping-popup-content form input,
.shipping-popup-content form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.shipping-popup-content form button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.shipping-popup-content form button[type="button"] {
    background-color: #e74c3c;
    margin-top: 10px;
}

.shipping-popup-content form button:hover {
    background-color: #2980b9;
}

.shipping-popup-content form button[type="button"]:hover {
    background-color: #c0392b;
}

/* Thank You Popup */
.thank-you-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.thank-you-popup-content {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    width: 320px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.smiley {
    font-size: 60px;
    margin: 15px 0;
}

.thank-you-popup-content h2 {
    font-size: 24px;
    color: #27ae60;
    margin-bottom: 15px;
}

.thank-you-popup-content button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.thank-you-popup-content button:hover {
    background-color: #e53935;
}

/* Footer Section */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 14px;
}

footer a {
    color: #e74c3c;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .products {
        grid-template-columns: 1fr; /* Single column for smaller screens */
    }
    
    .cart-popup-content, .shipping-popup-content, .thank-you-popup-content {
        width: 90%;
    }
}

