/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Header Section */
header {
    background-color: #3498db;
    color: white;
    padding: 20px 0; /* Increased padding for height */
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 40px; /* Larger font size for emphasis */
    font-weight: bold;
    padding-bottom: 10px; /* Space between the title and menu */
}

/* Navigation Menu */
nav {
    background-color: #2980b9;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #ffdd57;
    color: #2980b9;
}


/* Ads Section Styling */
.ads-section {
    margin: 20px auto;
    padding: 20px;
    text-align: center;
    background: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 90%;
}

.ads-section h3 {
    color: #333;
    margin-bottom: 20px;
}

.ad {
    margin: 10px 0;
}

/* Section Title */
main h2 {
    color: #2c3e50;
    text-align: center;
    margin: 20px 0;
    font-size: 22px;
}

/* Product List */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 0 auto;
    max-width: 95%;
    padding: 10px;
}

/* Product Card Styling */
.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.product-card h3 {
    margin: 0 0 10px;
    color: #2c3e50;
    font-size: 18px;
}

.product-card ul {
    list-style: disc;
    margin: 10px 0;
    padding-left: 20px;
    text-align: left;
    color: #555;
}

.product-card ul li {
    margin-bottom: 8px;
    font-size: 14px;
}

.product-card p {
    margin: 10px 0 15px;
    color: #555;
    font-size: 14px;
}

.product-card .buy-now {
    display: inline-block;
    background-color: #e74c3c;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s;
}

.product-card .buy-now:hover {
    background-color: #c0392b;
}

/* Footer */
footer {
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 18px;
    }

    nav ul li {
        margin: 0 5px;
    }

    nav ul li a {
        font-size: 12px;
    }

    .ads-section {
        padding: 15px;
        font-size: 14px;
    }

    main h2 {
        font-size: 20px;
    }

    .product-card {
        padding: 15px;
    }

    .product-card h3 {
        font-size: 16px;
    }

    .product-card ul li {
        font-size: 12px;
    }

    .product-card .buy-now {
        padding: 8px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    .product-card ul {
        padding-left: 15px;
    }

    .ads-section {
        font-size: 12px;
    }
}
