/* Mobile-first responsive design */
.category-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.category-image:hover {
    transform: scale(1.05);
}

.product-media {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

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

.product-title {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
}

.product-title a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: block;
    line-height: 1.4;
}

.product-title a:hover {
    color: #007bff;
    text-decoration: none;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .category-image {
        height: 200px;
    }
    
    .product-title a {
        font-size: 15px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .category-image {
        height: 220px;
    }
    
    .product-title a {
        font-size: 16px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .category-image {
        height: 250px;
    }
    
    .product-title a {
        font-size: 16px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .category-image {
        height: 280px;
    }
    
    .product-title a {
        font-size: 17px;
    }
}

/* Container responsive adjustments */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 575px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .product {
        padding: 5px;
    }
}