/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #cfd7e7;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 160px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #1e2B42;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    color: white;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar .logo {
    position: absolute;
    left: 20px;
    width: 55px;
    top: 2px;
}

.navbar .title {
    font-size: 1.5rem;
    font-weight: bold;
}

/* =========================
   MAIN & BANNER
========================= */
main {
    background-color: #f9f9f9;
    width: 100%;
}

.banner-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.banner-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
}

.banner-text h1 {
    font-size: 2.8rem;
    color: white;
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

/* =========================
   SECTION HEADING
========================= */
.section-heading {
    text-align: center;
    margin: 40px 0 20px;
}

.section-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e2b42;
}

.section-heading p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 10px;
    line-height: 1.6;
}

/* =========================
   BUTTONS
========================= */
.shop-now-btn,
.buy-btn,
.explore-btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s ease;
}

.shop-now-btn {
    margin: 20px auto;
    padding: 12px 28px;
    background-color: #1e2b42;
    color: #fff;
}

.shop-now-btn:hover {
    background-color: #162234;
}

/* =========================
   PRODUCT GRID
========================= */
.product-grid,
.product-list {
    display: grid;
    gap: 20px;
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: auto;
    max-width: 150px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e2b42;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.price {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #ea4c2a;
    margin-bottom: 12px;
}

.buy-btn {
    padding: 10px 18px;
    font-size: 0.95rem;
    background-color: #1e2b42;
    color: #fff;
}

.buy-btn:hover {
    background-color: #162234;
}

.explore-btn {
    background-color: #ea4c2a;
    color: #fff;
    padding: 12px 28px;
    margin: 20px auto 50px;
}

.explore-btn:hover {
    background-color: #c63e21;
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: #1e2B42;
    color: white;
    text-align: center;
    padding: 25px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    border-top: 1px solid #223a5a;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

/* =========================
   RESPONSIVE GRID
========================= */

/* Extra small devices (mobiles) */
@media (max-width: 479px) {
    .banner-text h1 {
        font-size: 1.6rem;
    }

    .section-heading h2 {
        font-size: 1.4rem;
    }

    .section-heading p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        max-width: 100px;
    }
}

/* Small devices (phones / tablets) */
@media (min-width: 480px) and (max-width: 768px) {
    .banner-text h1 {
        font-size: 2rem;
    }

    .section-heading h2 {
        font-size: 1.6rem;
    }

    .section-heading p {
        font-size: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card img {
        max-width: 120px;
    }
}

/* Medium devices (tablets) */
@media (min-width: 769px) and (max-width: 992px) {
    .banner-text h1 {
        font-size: 2.4rem;
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .section-heading p {
        font-size: 1.05rem;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-card img {
        max-width: 140px;
    }
}

/* Large devices (desktops) */
@media (min-width: 993px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
