/* General Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* Announcement Bar */
.announcement-bar {
    background-color: #ff4d4d;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 0.9em;
}

/* Sticky Header */
.sticky-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.sticky-header .logo h1 {
    margin: 0;
    font-size: 1.5em;
}

.sticky-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.sticky-header nav ul li {
    margin-left: 20px;
}

.sticky-header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.cart-icon {
    position: relative;
}

.cart-count {
    background-color: #ff4d4d;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8em;
    position: absolute;
    top: -10px;
    right: -10px;
}

/* Hero Section */
.hero-section {
    background-image: url('https://via.placeholder.com/1200x400');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta-button {
    background-color: #ff4d4d;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #cc0000;
}

/* Feature Highlights */
.feature-highlights {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
}

.feature-highlights h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Flash Sale Section */
.flash-sale {
    padding: 50px 20px;
    text-align: center;
    background-color: #333;
    color: #fff;
}

.flash-sale h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.countdown-timer {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #333;
}

.product-card img {
    max-width: 100%;
    border-radius: 10px;
}

.product-card h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

.product-card p {
    font-size: 1em;
    margin: 10px 0;
}

.product-card button {
    background-color: #ff4d4d;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-card button:hover {
    background-color: #cc0000;
}

/* Product Categories */
.product-categories {
    padding: 50px 20px;
    text-align: center;
    background-color: #fff;
}

.product-categories h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.category-item img {
    max-width: 100%;
    transition: transform 0.3s;
}

.category-item:hover img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

.category-item:hover .category-overlay {
    opacity: 1;
}

.category-overlay h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.category-overlay a {
    background-color: #ff4d4d;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.category-overlay a:hover {
    background-color: #cc0000;
}

/* Customer Testimonials */
.testimonials {
    padding: 50px 20px;
    text-align: center;
    background-color: #f9f9f9;
}

.testimonials h2 {
    font-size: 2em;
    margin-bottom: 30px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.testimonial-item p {
    font-size: 1em;
    margin-bottom: 10px;
}

.testimonial-item h4 {
    font-size: 1.2em;
    margin: 0;
}

/* Newsletter Signup */
.newsletter-signup {
    padding: 50px 20px;
    text-align: center;
    background-color: #333;
    color: #fff;
}

.newsletter-signup h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.newsletter-signup p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.newsletter-signup form {
    display: flex;
    justify-content: center;
}

.newsletter-signup input[type="email"] {
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    width: 300px;
}

.newsletter-signup button {
    background-color: #ff4d4d;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-signup button:hover {
    background-color: #cc0000;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.footer-links ul li {
    margin-right: 20px;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
}

.social-icons a {
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
}

.footer-bottom {
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .feature-grid, .product-grid, .category-grid, .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .sticky-header {
        flex-direction: column;
        text-align: center;
    }

    .sticky-header nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    .sticky-header nav ul li {
        margin: 5px 0;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .cta-button {
        font-size: 0.9em;
    }

    .flash-sale h2 {
        font-size: 1.5em;
    }

    .product-categories h2 {
        font-size: 1.5em;
    }

    .testimonials h2 {
        font-size: 1.5em;
    }

    .newsletter-signup h2 {
        font-size: 1.5em;
    }

    .newsletter-signup input[type="email"] {
        width: 200px;
    }
}