* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #222;
}


/* =========================
   HEADER
========================= */

header {
    height: 70px;
    background-color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 60px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #2874f0;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

nav a:hover {
    color: #2874f0;
}

.cart {
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}


/* =========================
   HERO
========================= */

.hero {
    height: 500px;

    background: linear-gradient(
        120deg,
        #2874f0,
        #6c5ce7
    );

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 55px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 35px;
}

.shop-btn {
    display: inline-block;

    background-color: white;
    color: #2874f0;

    text-decoration: none;

    padding: 14px 35px;

    border-radius: 6px;

    font-size: 18px;
    font-weight: bold;
}

.shop-btn:hover {
    background-color: #f0f0f0;
}


/* =========================
   CATEGORIES
========================= */

.categories {
    padding: 70px 60px;
    text-align: center;
    background-color: white;
}

.categories h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.category-container {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 25px;

    max-width: 1100px;

    margin: auto;
}

.category-card {
    padding: 30px 20px;

    background-color: #f8f9fa;

    border-radius: 10px;

    transition: 0.3s;
}

.category-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.12);
}

.category-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 10px;
}

.category-card p {
    color: #777;
}


/* =========================
   PRODUCTS
========================= */

.products {
    padding: 70px 60px;
}

.products h2 {
    text-align: center;

    font-size: 32px;

    margin-bottom: 40px;
}

.product-container {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.product-card {
    background-color: white;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);

    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 220px;

    background-color: #f1f3f6;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 90px;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 21px;

    margin-bottom: 10px;
}

.description {
    color: #777;

    margin-bottom: 15px;
}

.price {
    font-size: 22px;

    font-weight: bold;

    color: #2874f0;

    margin-bottom: 15px;
}

.product-info button {
    width: 100%;

    padding: 12px;

    border: none;

    border-radius: 5px;

    background-color: #2874f0;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;
}

.product-info button:hover {
    background-color: #1256c4;
}


/* =========================
   OFFER
========================= */

.offer {
    background-color: #2874f0;

    color: white;

    text-align: center;

    padding: 60px 20px;
}

.offer h2 {
    font-size: 35px;

    margin-bottom: 15px;
}

.offer p {
    font-size: 19px;

    margin-bottom: 25px;
}

.offer-btn {
    border: none;

    padding: 13px 30px;

    border-radius: 5px;

    background-color: white;

    color: #2874f0;

    font-weight: bold;

    font-size: 16px;

    cursor: pointer;
}


/* =========================
   ABOUT
========================= */

.about {
    background-color: white;

    text-align: center;

    padding: 70px 20% ;
}

.about h2 {
    font-size: 32px;

    margin-bottom: 20px;
}

.about p {
    color: #666;

    line-height: 1.8;

    font-size: 17px;
}


/* =========================
   CONTACT
========================= */

.contact {
    padding: 70px 60px;

    text-align: center;
}

.contact h2 {
    font-size: 32px;

    margin-bottom: 40px;
}

.contact-container {
    max-width: 900px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.contact-container div {
    background-color: white;

    padding: 25px;

    border-radius: 8px;
}

.contact-container h3 {
    margin-bottom: 10px;

    color: #2874f0;
}

.contact-container p {
    color: #666;
}


/* =========================
   FOOTER
========================= */

footer {
    background-color: #172337;

    color: white;

    text-align: center;

    padding: 45px 20px 20px;
}

.footer-content h2 {
    margin-bottom: 10px;
}

.footer-content p {
    color: #bbb;

    margin-bottom: 20px;
}

.social {
    display: flex;

    justify-content: center;

    gap: 25px;

    margin-bottom: 30px;
}

.social span {
    cursor: pointer;
}

.social span:hover {
    color: #2874f0;
}

.copyright {
    border-top: 1px solid #444;

    padding-top: 20px;

    color: #aaa;

    font-size: 14px;
}


/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 900px) {

    header {
        padding: 0 25px;
    }

    nav {
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .category-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    header {
        height: auto;

        padding: 20px;

        flex-direction: column;

        gap: 15px;
    }

    nav {
        flex-wrap: wrap;

        justify-content: center;
    }

    .hero {
        height: 400px;

        padding: 20px;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .categories,
    .products,
    .contact {
        padding: 50px 20px;
    }

    .category-container,
    .product-container {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 50px 20px;
    }

}