/* ========================================
   PRODUCT CARDS - Card Layout & Styling
======================================== */


/* Category / Product Image Blocks - Updated for Elessi-like stylish carousel */
.product-swiper .field--name-field-iamge img,
.view-hproducts .views-field-field-iamge img,
.view-category-page .views-field-field-iamge img,
.page-taxonomy-term .views-field-field-iamge img,
.categories-carousal .views-field-field-image img,
.view--category-menu .views-field-field-iamge img {

    width: 100%;
    height: auto;
    max-height: 300px; /* Adjust for your desired card height */
    object-fit: contain; /* Keeps full product visible without cropping (perfect for mockups) */
    object-position: center;
    padding: 20px; /* Small inner spacing for breathing room */
    background-color: transparent; /* Let parent card handle background */
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

/* Parent card/container for each category item - ADD THIS NEW BLOCK */
.category-card, /* Add this class to your wrapping div if needed, or target existing (e.g., .views-row, .swiper-slide) */
.product-swiper .swiper-slide,
.categories-carousal .views-row,
.view--category-menu .views-row {
    background-color: #f8f8f8; /* Light neutral base - change to #ffffff for pure white */
    border-radius: 24px; /* Large rounded corners for soft, modern look */
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    text-align: center;
    transition: all 0.4s ease;
    margin: 10px; /* Spacing between cards */
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(240,245,255,0.7)); /* Optional light tint overlay for pastel feel */
}

.category-card:hover,
.product-swiper .swiper-slide:hover,
.categories-carousal .views-row:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

/* Optional: Auto pastel background per card (semi-auto feel) - add inline style or JS if needed */
/* For true auto dominant color, you'd need JS (e.g., ColorThief library), but this tint gives similar attractive vibe */

/* Category title styling - below the image */
.category-title { /* Target your title element, e.g., .views-field-title, h3, or add class */
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 15px 0 10px;
    text-transform: capitalize;
}

/* Carousel arrows (if using Swiper) - make them stylish */
.swiper-button-next,
.swiper-button-prev {
    color: #333;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px;
}

/* .product-card,
.views-row,
.view-category-page .views-row,
.page-taxonomy-term .views-row {
    background: var(--color-white);
    border: none !important;
    position: relative;
}

.product-swiper .field--name-field-iamge img,
.view-hproducts .views-field-field-iamge img,
.view-category-page .views-field-field-iamge img,
.page-taxonomy-term .views-field-field-iamge img,
.categories-carousal .views-field-field-image img,
.view--category-menu .views-field-field-iamge img {
    width: 100%;
    border: none;
    padding: 10px;
    padding: var(--button-padding) !important;
    background: var(--color-primary) !important;
    font-size: var(--button-font-size) !important;
    font-weight: var(--button-font-weight) !important;
    text-transform: uppercase !important;
    letter-spacing: var(--button-letter-spacing) !important;
    display: block !important;
    margin: var(--spacing-md) auto var(--spacing-sm) auto !important;
    cursor: pointer;
    transition: all var(--transition-base);
} */

/* Product Title */
.product-title,
.views-field-title a,
.field--name-title {
    font-size: var(--font-size-base) !important;
    font-weight: var(--font-weight-medium) !important;
    color: var(--color-text) !important;
    text-decoration: none !important;
    display: block !important;
    margin: var(--spacing-md) 0 var(--spacing-xs) 0 !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
    text-transform: uppercase;
}

.views-view-grid .views-field-title {
    order: 2 !important;
    text-align: center;
    font-weight: 600;
    display: none;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .view-category-page .view-content,
    .page-taxonomy-term .view-content {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
    }
}

@media (max-width: 768px) {
    .view-category-page .view-content,
    .page-taxonomy-term .view-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--grid-gap-mobile) !important;
    }

    .product-swiper .field--name-field-iamge img,
    .view-category-page .views-field-field-iamge img {
        height: 250px !important;
    }
}

@media (max-width: 576px) {
    .view-category-page .view-content,
    .page-taxonomy-term .view-content {
        grid-template-columns: 1fr !important;
    }
}