/* Base Styles */
body {
    margin: 0;
    font-family: Calibri, Sans-seri;
    background-color: #f4f4f4;
}

header {
    background-color: #f53f5a;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

header h1 {
    margin: 1;
    font-size: 2rem;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 0;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* Hero Section */
#hero {
    text-align: center;
    padding: 4rem 1rem;
    background: url('hero-bg.png') no-repeat center center/cover;
    color: #ffffff;
}

#hero h2 {
    font-size: 1rem;
    margin-bottom: 13rem;
}

#hero h3 {
    font-size: 3rem;
    margin-bottom: 6rem;
}

.cta-button {
    padding: 1rem 2rem;
    background-color: #ff3381;
    color: #ffffff;
    text-decoration: none;
    border-radius: 100px;
    font-size: 1.2rem;
}

.cta-button:hover {
    background-color: #ff74a9;
}

/* Product Section */
main {
    padding: 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.product-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
}

.product {
    background: #fce2ec;
    border: 1.5px solid #ccc;
    border-radius: 20px;
    padding: 1.5rem; /* Reduced padding */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 250px; /* Reduced width */
    height: 380px; /* Reduced height */
}

.product:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.product img {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
}

.product h2 {
    margin: 0.6rem 0;
}

.product p {
    font-size: 1.3rem;
    color: #333;
}

.cart-button, .buy-button {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0.5rem;
}

.cart-button {
    background: #28a745;
    color: #fff;
}

.cart-button:hover {
    background: #218838;
}

.buy-button {
    background: #007bff;
    color: #fff;
}

.buy-button:hover {
    background: #0056b3;
}

/* Footer */
footer {
    text-align: center;
    background-color: #e31966;
    color: #fff;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Media Queries */
@media (min-width: 768px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (min-width: 1024px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktops */
    }

@media (min-width: 1024px)
    .product {
        width: 300px; /* Slightly larger tiles for desktop */
        height: 350px; /* Adjusted height */
    }
}
