/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'newt sanserif demi', sans-serif;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1ea3af;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
}

body {
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.login-btn {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37,99,235,0.12);
    transition: background 0.3s, box-shadow 0.3s;
    margin: 1rem auto;
}

.login-btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(37,99,235,0.18);
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 8px 24px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 32px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
    gap: 2.5rem;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.15rem;
    padding: 12px 28px;
    border-radius: 24px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    letter-spacing: 0.5px;
    display: inline-block;
}

nav ul li a:hover,
nav ul li a.active {
    background: linear-gradient(90deg, var(--primary-color) 60%, var(--secondary-color) 100%);
    color: #e0f2fe;
    box-shadow: 0 4px 16px rgba(219, 220, 222, 0.12);
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
}

.nav-icons a {
    color: var(--light-color);
    font-size: 1.2rem;
    transition: color 0.3s;
}

.nav-icons a:hover {
   color: var(--light-color); 
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 10%;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
}

.hero-content {
    flex: 1;
    max-width: 500px;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.cta-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-btn:hover {
    background-color: var(--secondary-color);
}

.hero-image {
    flex: 1;
    text-align: center;
    top: 100%;
}

/* Categories Section */
.categories {
    padding: 4rem 5%;
}

.categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--dark-color);
}

.category-grid {
    width: 50px 50px;
    max-width: 1200px;
    padding: 0px;
    gap: 30px;
    display: flex;
    justify-content: center;
}

.category-card {
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.category-card button {
    display: block;
    width: 80%;
    margin: 0 auto 1.5rem;
    padding: 0.6rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-card button:hover {
    background-color: var(--secondary-color);
}

/* Featured Products */
.featured-products {
    padding: 4rem 5%;
    background-color: #f1f5f9;
}

.featured-products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--dark-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.2rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.price {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.rating {
    color: #f59e0b;
    margin-bottom: 0.8rem;
}

.product-info button {
    width: 100%;
    padding: 0.6rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-info button:hover {
    background-color: var(--secondary-color);
}

/* Newsletter Section */
.newsletter {
    padding: 4rem 5%;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
}

.newsletter button {
    padding: 0.8rem 1.5rem;
    background-color: var(--dark-color);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: #111827;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.6rem;
}

.footer-section ul li a {
    text-decoration: none;
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.social-icons a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin: 1rem 0;
        gap: 1rem;
    }

    .hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2rem 5%;
    }

    .hero-content {
        margin-top: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-icons {
        margin-top: 0.8rem;
    }

    .newsletter form {
        flex-direction: column;
    }

    .newsletter input {
        border-radius: 4px;
        margin-bottom: 0.5rem;
    }

    .newsletter button {
        border-radius: 4px;
    }
}