* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #fff;
    color: #333;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    padding: 15px 60px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.hero {
    height: 450px;

    display: flex;
    align-items: center;

}

.hero img {
    height: 450px;
    width: 1982px;
}

.section {
    padding: 60px 80px;
}

.section h2 {
    margin-bottom: 30px;
    text-align: center;
    font-family: font-header-family;
    font-style: font-header-style;
    font-weight: font-header-weight;
    font-size: 32px;
    padding: 0;
    margin: 0 auto 20px;
}

.gray {
    background: #f6f6f6;
}

/* .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
} */
/* .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
} */
/* .grid-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.grid-row .card {
    flex: 0 0 23%;
    /* 4 cards per row with spacing */


.grid-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.grid-row .card {
    flex: 0 0 23%;
    /* 4 cards per row */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    position: relative;
    background: #fff;
}

.card img {
    width: 100%;
    border-radius: 8px;
}

.card button {
    margin-top: 5px;
    padding: 6px 12px;
    background: #ff4081;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.card button:hover {
    opacity: 0.9;
}

.heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #ff4081;
}

.heart-btn.fav {
    color: #ff0000;
}
/* Grid row */
.grid-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* Card styling */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    flex: 1 1 calc(25% - 20px); /* 4 cards per row */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Hover zoom */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Card image */
.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Heart button */
.heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.heart-btn:hover {
    background: #fce4ec;
}

/* Add to cart button */
.add-cart-btn {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-radius: 6px;
    background-color: #e91e63;
    color: white;
    cursor: pointer;
    margin-top: 10px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.add-cart-btn:hover:not(:disabled) {
    background-color: #d81b60;
}

.card img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

.card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.card h3 {
    margin: 10px 0;
}

.card p {
    color: #b30000;
    font-weight: bold;
    padding-bottom: 15px;
}

.large img {
    height: 320px;
}

/* FOOTER */
/* ===== MOBILE & TABLET RESPONSIVE ===== */
@media (max-width: 1200px) {
    .header {
        padding: 15px 40px;
    }
    .hero img {
        width: 100%;
        height: auto;
    }
    .section {
        padding: 40px 30px;
    }
}

@media (max-width: 992px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header nav {
        margin-top: 10px;
    }
    .header nav a {
        margin-left: 0;
        margin-right: 15px;
    }
    .grid-row {
        gap: 15px;
    }
    .card {
        flex: 1 1 calc(50% - 15px); /* 2 cards per row */
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 20px 0;
        text-align: center;
    }
    .hero img {
        height: auto;
        max-height: 300px;
    }
    .grid-row {
        flex-direction: column;
    }
    .card {
        flex: 1 1 100%;
    }
    .section {
        padding: 30px 15px;
    }
    .card img {
        height: 200px;
    }
    .large img {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }
    .header nav a {
        font-size: 14px;
        margin-right: 10px;
    }
    .card img {
        height: 180px;
    }
    .large img {
        height: 220px;
    }
    .add-cart-btn {
        padding: 6px 0;
    }
    .section h2 {
        font-size: 24px;
    }
}
