/* ----------------------------
   HERO SECTION WITH BACKGROUND IMAGE
---------------------------- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: url("./hp2.webp") no-repeat center/cover;
    color: white;
    position: relative;
}

/* Dark overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero h1,
.hero p {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

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

/* ----------------------------
   PRODUCT GRID
---------------------------- */
.product-grid {
    max-width: 1300px;
    margin: 50px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.product-card img {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1.2rem;
    margin: 12px 0 5px;
}

.product-card p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.add-cart {
    background: #ff4b5c;
    border: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.add-cart:hover {
    background: #d93c4a;
}

/* ----------------------------
   REVIEWS SECTION
---------------------------- */
.reviews {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
    font-size: 1.3rem;
    padding: 20px;
}

.review {
    display: none;
}

.review.active {
    display: block;
}

/* ----------------------------
   RESPONSIVE MEDIA QUERIES
---------------------------- */

/* -------- Laptop & Tablet Landscape -------- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-card img {
        height: 220px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* -------- Tablet Portrait -------- */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-card img {
        height: 200px;
    }

    .product-grid {
        gap: 20px;
    }
}

/* -------- Mobile -------- */
@media (max-width: 480px) {
    .hero {
        padding: 50px 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

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

    .product-card img {
        height: 180px;
    }

    .add-cart {
        width: 100%;
        padding: 12px;
    }
}

/* -------- Small Mobile (360px) -------- */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .product-card img {
        height: 160px;
    }
}
