/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f0f2f5;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(to right, #007BFF, #00C6FF);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
}

nav {
    display: flex;
    align-items: center;
}

nav a {
    margin-left: 1rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffd700;
}

/* Responsive menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 1rem;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background: white;
    margin: 4px 0;
    transition: 0.4s;
}

/* Hide menu links on small screens */
nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

@media (max-width: 768px) {
    nav {
        position: relative;
    }

    nav ul {
        flex-direction: column;
        background: linear-gradient(to right, #007BFF, #00C6FF);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        display: none;
        border-radius: 8px;
        padding: 1rem 0;
    }

    nav ul.show {
        display: flex;
    }

    nav a {
        margin: 0.5rem 1rem;
    }

    .menu-toggle {
        display: flex;
    }
}

/* Search bar */
.search-bar {
    padding: 0.5rem;
    border-radius: 25px;
    border: none;
    width: 250px;
    margin: 0 1rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f12711, #f5af19);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    background: white;
    color: #f12711;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

/* Categories, deals, newsletter */
.categories,
.deals,
.newsletter {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.cat-grid,
.deal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cat-box {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cat-box:hover {
    background: #00c6ff;
    color: white;
    transform: scale(1.05);
}

.deal-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-5px);
}

.btn-small {
    display: inline-block;
    margin-top: 1rem;
    background: #007BFF;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
}

.newsletter input[type="email"] {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 30px;
    width: 250px;
}

.newsletter button {
    padding: 0.7rem 1.5rem;
    border: none;
    background: #f12711;
    color: white;
    border-radius: 30px;
    margin-left: 1rem;
    cursor: pointer;
    font-weight: 600;
}

footer {
    background: #333;
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}