/* This file is the main stylesheet for La La Lush */
/* It controls layout, colours, spacing, and responsiveness */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BASE */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff8f9;
    color: #333;
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    background-color: #fff;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar .logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #e75480;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

.nav-links a:hover {
    color: #e75480;
}

/* CART BADGE */
.cart-badge {
    background: #e75480;
    color: #fff;
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.75rem;
}

/* HERO BANNER */
.hero-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 450px;
    padding: 100px 20px;

    background-image: url("../images/products/banner.jpg"); /* restored banner */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-color: #fff0f5; /* fallback */
}

/* overlay layer */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 248, 249, 0.65);
    z-index: 1;
}

/* keep content above overlay */
.hero-banner h1,
.hero-banner p,
.hero-banner a {
    position: relative;
    z-index: 2;
}

.hero-banner h1 {
    font-size: 2.8rem;
    color: #c2185b;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-banner p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 25px;
}

/* fallback visible image */
.banner-img-fallback {
    display: block;
    width: 100%;
    height: 300px;       /* banner strip height */
    object-fit: cover;
    border-radius: 0;    /* fixed: was invalid */
    margin-bottom: 18px;
}

@media (max-width: 768px) {
    .banner-img-fallback {
        height: 200px;   /* smaller on mobile */
    }
}

/* BUTTONS */
.btn-primary {
    background: #e75480;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #c2185b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #e75480;
    color: #e75480;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #e75480;
    color: #fff;
}

/* SECTION TITLE */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: #c2185b;
    margin: 40px 0 20px;
}

/* PRODUCTS GRID */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    padding: 20px 40px 60px;
}

/* PRODUCT CARD */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card .card-body {
    padding: 15px;
}

.price {
    color: #e75480;
    font-weight: 700;
}

/* FOOTER */
footer {
    background: #2d2d2d;
    color: #ccc;
    text-align: center;
    padding: 25px;
    margin-top: 60px;
}

/* MOBILE */
@media (max-width: 768px) {
    .hero-banner {
        padding: 80px 20px;
        min-height: 320px;
    }

    .hero-banner h1 {
        font-size: 1.8rem;
    }
}
