* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #232f3e;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.hero {
    height: 400px;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Hero background image that covers the section */
.hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    display: block;
}

/* Semi-transparent overlay for text readability */
.hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

/* Ensure hero content sits above the background */
.hero > * {
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    .hero { height: 300px; padding: 1.5rem 1rem; }
}

.btn {
    margin-top: 20px;
    padding: 10px 25px;
    background: #febd69;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 50px 5%;
}

.product-card {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

/* Image wrapper keeps consistent aspect ratio; image covers area */
.product-card .img-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 62.5%; /* ~16:10 aspect ratio */
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #fafafa;
}

.product-card .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.price {
    color: #b12704;
    font-size: 1.2rem;
    margin: 10px 0;
}

.add-btn {
    background: #f0c14b;
    border: 1px solid #a88734;
    padding: 8px 15px;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 20px;
    background: #232f3e;
    color: white;
}
