/* -------------------- General Reset -------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

/* -------------------- Category Container -------------------- */
.category-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.category-header {
    margin-bottom: 40px;
}

/* -------------------- Category Banner -------------------- */
.category-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.category-logo-container {
    flex: 1 1 40%;
    padding: 20px;
}

.category-logo-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.category-description-container {
    flex: 1 1 55%;
    padding: 20px;
}

.category-title {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.category-description {
    font-size: 1.2em;
    color: #666;
}

/* -------------------- Related Stores -------------------- */
.related-stores {
    margin-top: 40px;
}

.related-stores h2 {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.store-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.store-item {
    flex: 1 1 calc(33.33% - 20px);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.store-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.store-name {
    font-size: 1.5em;
    margin-top: 10px;
}

.store-name a {
    text-decoration: none;
    color: #007BFF;
}

.store-name a:hover {
    text-decoration: underline;
}

/* -------------------- Related Products -------------------- */
.related-products {
    margin-top: 40px;
}

.related-products h2 {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}
/* -------------------- Product Grid -------------------- */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.product-item {
    flex: 1 1 calc(33.33% - 20px);
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Hover effect for card */
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* -------------------- Product Image -------------------- */
.product-item img {
    width: 100%;
    height: 280px;          /* Fixed height like eCommerce */
    object-fit: cover;      /* Crop & fit properly */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

/* Zoom effect on hover */
.product-item:hover img {
    transform: scale(1.08);
}

/* -------------------- Product Name -------------------- */
.product-name {
    font-size: 1.2em;
    margin: 12px 0 8px;
    font-weight: bold;
    color: #333;
    min-height: 40px; /* uniform alignment */
}

/* -------------------- Price -------------------- */
.product-item .price-container {
    margin-top: 5px;
}

.product-price {
    font-size: 1.3em;
    color: #28a745;
    font-weight: bold;
}

.product-discount-price {
    font-size: 1.1em;
    color: #ff6f61;
    text-decoration: line-through;
    margin-left: 8px;
}

/* -------------------- Button -------------------- */
.product-item .btn {
    margin-top: 12px;
    padding: 8px 16px;
    font-size: 0.95em;
    border-radius: 6px;
}


/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

#loadMoreBtn {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    font-size: 1.2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#loadMoreBtn:hover {
    background-color: #218838;
}

/* -------------------- Blog Section -------------------- */
.related-blogs {
    margin-top: 40px;
}

.related-blogs h2 {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.blog-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.blog-item {
    flex: 1 1 calc(33.33% - 20px);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.blog-item img {
    width: 100%;
    height: 200px;  
    object-fit: cover; 
    border-radius: 8px;
}

.blog-title {
    font-size: 1.5em;
    margin-top: 10px;
}

.blog-title a {
    text-decoration: none;
    color: #007BFF;
}

.blog-title a:hover {
    text-decoration: underline;
}

/* -------------------- Mobile Responsiveness -------------------- */
@media (max-width: 768px) {
    .category-banner {
        flex-direction: column;
        text-align: center;
    }

    .category-logo-container,
    .category-description-container,
    .store-item,
    .product-item,
    .blog-item {
        flex: 1 1 100%;
    }

    .store-list,
    .product-grid,
    .blog-list {
        flex-direction: column;
    }

    .blog-item img {
        height: 150px; 
    }
}
