* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #e3e6e6;
    color: #111;
}


/* ================= NAVBAR ================= */

.navbar {
    min-height: 65px;
    background: #131921;
    color: white;

    display: flex;
    align-items: center;
    gap: 18px;

    padding: 20px 18px 8px 18px;
}


/* LOGO */

.logo {
    font-size: 27px;
    font-weight: bold;
    white-space: nowrap;
}

.logo span {
    color: #ff9900;
}

.logo small {
    font-size: 12px;
}


/* LOCATION */

.location {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.location i {
    font-size: 20px;
}

.location small,
.account small,
.orders small {
    display: block;
    font-size: 11px;
}

.location strong,
.account strong,
.orders strong {
    font-size: 14px;
}


/* SEARCH */

.search-box {
    height: 42px;

    flex: 1;

    display: flex;
    background: white;

    border-radius: 5px;
    overflow: hidden;
}

.search-box select {
    width: 60px;
    border: none;
    background: #e6e6e6;
    padding: 0 5px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;

    padding: 0 12px;
    font-size: 15px;
}

.search-box button {
    width: 50px;

    border: none;
    background: #febd69;

    cursor: pointer;

    font-size: 18px;
}

.search-box button:hover {
    background: #f3a847;
}


/* LANGUAGE */

.language {
    white-space: nowrap;
    font-weight: bold;
}


/* ACCOUNT */

.account,
.orders {
    white-space: nowrap;
}


/* CART */

.cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;

    white-space: nowrap;
}

.cart i {
    font-size: 30px;
}

.cart span {
    position: absolute;

    top: -9px;
    left: 17px;

    color: #ff9900;
    font-weight: bold;
}

.cart b {
    font-size: 15px;
}


/* ================= MENU ================= */

.menu {
    min-height: 45px;

    display: flex;
    align-items: center;
    gap: 25px;

    background: #232f3e;
    color: white;

    padding: 0 20px;
}

.menu a,
.menu div {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.menu div {
    display: flex;
    gap: 7px;
    align-items: center;
}


/* ================= HERO ================= */

.hero {
    height: 350px;

    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.15),
            rgba(0, 0, 0, 0.65)),
        url("https://images.unsplash.com/photo-1607082349566-187342175e2f") center / cover;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.hero-content button {
    background: #ff9900;
    border: none;

    padding: 12px 30px;

    font-size: 16px;
    font-weight: bold;

    border-radius: 4px;
    cursor: pointer;
}


/* ================= SECTION ================= */

.section {
    max-width: 1400px;

    margin: 25px auto;
    padding: 0 20px;
}

.section h2 {
    margin-bottom: 18px;
}


/* ================= CATEGORY ================= */

.category-container {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.category-card {
    background: white;

    padding: 30px;

    text-align: center;

    min-height: 180px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.15);
}

.category-card i {
    font-size: 55px;
    color: #232f3e;

    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 12px;
}

.category-card a {
    color: #007185;
    text-decoration: none;
}

/* ================ Latest-Product ============== */
.latest-product-container {
    display: flex;
    overflow: auto;
    gap: 20px;

}

.latest-product-card {
    background: white;

    padding: 20px;
    flex: 0 0 clamp(220px, 25vw, 325px);
    min-height: 400px;

    position: relative;

    transition: 0.3s;
}

.latest-product-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.18);
}

.latest-product-image {
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7f7f7;

    font-size: 17px;
    text-align: center;
    margin-bottom: 15px;
}

.latest-product-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.latest-product-card h3 {
    font-size: 17px;

    margin-bottom: 10px;
}

.rating {
    color: #f08804;
    font-size: 14px;
}

.rating span {
    color: #007185;
}


.price {
    font-size: 25px;
    font-weight: bold;

    margin-top: 12px;
}

.old-price {
    color: #777;
    text-decoration: line-through;

    font-size: 13px;
}


.latest-product-card button {
    width: 100%;

    margin-top: 15px;

    padding: 10px;

    border: none;
    border-radius: 20px;

    background: #ffd814;

    cursor: pointer;

    font-weight: bold;
}

.latest-product-card button:hover {
    background: #f7ca00;
}

/* ================= PRODUCTS ================= */

.product-container {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.product-card {
    background: white;

    padding: 20px;

    min-height: 400px;

    position: relative;

    transition: 0.3s;
}

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

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.18);
}



/* PRODUCT IMAGE */

.product-image {
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7f7f7;

    font-size: 17px;
    text-align: center;

    margin-bottom: 15px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.product-card h3 {
    font-size: 17px;

    margin-bottom: 10px;
}

.rating {
    color: #f08804;
    font-size: 14px;
}

.rating span {
    color: #007185;
}


.price {
    font-size: 25px;
    font-weight: bold;

    margin-top: 12px;
}

.old-price {
    color: #777;
    text-decoration: line-through;

    font-size: 13px;
}


.product-card button {
    width: 100%;

    margin-top: 15px;

    padding: 10px;

    border: none;
    border-radius: 20px;

    background: #ffd814;

    cursor: pointer;

    font-weight: bold;
}

.product-card button:hover {
    background: #f7ca00;
}


/* ================= FOOTER ================= */

footer {
    margin-top: 40px;

    background: #131a22;
    color: white;
}

.back-top {
    text-align: center;

    padding: 18px;

    background: #37475a;

    cursor: pointer;
}

.footer-content {
    max-width: 1100px;

    margin: auto;

    padding: 45px 20px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 40px;
}

.footer-content h3 {
    margin-bottom: 15px;
}

.footer-content a {
    display: block;

    color: #ddd;

    text-decoration: none;

    margin: 10px 0;

    font-size: 14px;
}

.copyright {
    text-align: center;

    border-top: 1px solid #444;

    padding: 25px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {

    .location,
    .language,
    .account,
    .orders {
        display: none;
    }

    .category-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .product-container {
        grid-template-columns:
            repeat(3, 1fr);
    }

}


@media (max-width: 700px) {

    .navbar {
        flex-wrap: wrap;
    }

    .logo {
        font-size: 22px;
    }

    .search-box {
        order: 3;
        flex-basis: 100%;
    }

    .menu {
        overflow-x: auto;
        white-space: nowrap;
    }

    .product-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 480px) {

    .hero {
        height: 280px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .category-container,
    .product-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 0 12px;
    }

}