/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styling */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    flex-wrap: wrap;
}

.logo-area img.site-logo {
    height: 50px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
}

nav ul li a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #d63384;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-right .nav-btn {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.header-right .cart-btn {
    text-decoration: none;
    background-color: #d63384;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('product1.jpg') center/cover no-repeat;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 0 15px;
}

.hero-content h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.hero-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #d63384;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
}

/* Category Title */
.section-header {
    text-align: center;
    margin-bottom: 25px;
}

.category-title {
    font-size: 1.5rem;
    color: #222;
}

.category-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #d63384;
    margin: 6px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Product Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile screen-e 2-column grid */
    gap: 15px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.product-img-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    padding: 10px;
    text-align: center;
}

.product-details h3 {
    font-size: 0.85rem;
    color: #333;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-details .price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #d63384;
    margin-bottom: 8px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 8px;
    border: none;
    background-color: #222;
    color: #fff;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* Footer Styling */
footer {
    background-color: #1a1a1a;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
}

/* Responsive Media Queries */

/* Tablet View (Screen width >= 600px) */
@media (min-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .product-img-box {
        height: 250px;
    }
}

/* Desktop View (Screen width >= 992px) */
@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    .product-img-box {
        height: 320px;
    }
    .hero {
        height: 380px;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

/* Small Mobile Screens (Screen width <= 480px) */
@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    nav ul {
        gap: 10px;
    }
    nav ul li a {
        font-size: 12px;
    }
}