/* Override carousel settings for 5 items per row */
.product-grid-5-items .aiz-carousel,
.aiz-carousel.sm-gutters-16,
.aiz-carousel.gutters-10,
.aiz-carousel.gutters-5 {
    margin: 0 0px !important;
}

.aiz-carousel[data-items="5"] .slick-slide,
.aiz-carousel.sm-gutters-16 .slick-slide {
    padding: 0 1px !important;
}

.aiz-carousel.gutters-10 .slick-slide {
    padding: 0 5px !important;
}

.aiz-carousel.gutters-5 .slick-slide {
    padding: 0 0.5px !important;
}

/* Ensure product cards fit properly */
.product-card-marketplace {
    margin-bottom: 10px;
}

/* Global Larger Star Rating for Product Cards */
.rating i,
.rating-stars i,
.rating-stars {
    font-size: 16px !important;
    margin-right: 1px;
    color: #d1d5db;
    /* Default empty star color (light gray) */
}

.rating i.active,
.rating i.half,
.rating-stars i.active,
.rating-stars i.half {
    color: #ffa41c !important;
    /* Gold for filled stars */
    text-shadow: 0 0 8px rgba(255, 164, 28, 0.4);
    /* Glow effect */
}

/* Responsive adjustments */
@media (min-width: 1200px) {
    .aiz-carousel[data-items="6"] .slick-slide {
        width: 20% !important;
        /* 5 items per row */
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .aiz-carousel[data-lg-items="5"] .slick-slide {
        width: 20% !important;
        /* 5 items per row on large screens */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .aiz-carousel[data-md-items="4"] .slick-slide {
        width: 25% !important;
        /* 4 items per row on medium screens */
    }
}

@media (max-width: 767px) {
    .aiz-carousel[data-sm-items="3"] .slick-slide {
        width: 33.333% !important;
        /* 3 items per row on small screens */
    }
}

@media (max-width: 575px) {
    .aiz-carousel[data-xs-items="2"] .slick-slide {
        width: 50% !important;
        /* 2 items per row on extra small screens */
    }
}

/* Zero Gutter Spacing */
.gutters-10,
.gutters-5 {
    margin-left: 0px !important;
    margin-right: 0px !important;
}

.gutters-10>*,
.gutters-5>* {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/* Standardized Card Ratio and 3D Effect - Applied Globally to Base Classes */
.aiz-card-box,
.product-card-marketplace,
.onbuy-global-card {
    width: 230px !important;
    max-width: 100%;
    height: 510px !important;
    margin: 4px 0.5px !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 12px 15px 35px rgba(0, 0, 0, 0.08) !important;
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    display: flex;
    flex-direction: column;
}

.aiz-card-box:hover,
.product-card-marketplace:hover,
.onbuy-global-card:hover {
    transform: translateY(-8px) translateX(-2px) !important;
    border-color: #3449cb !important;
    box-shadow: 15px 25px 50px rgba(0, 0, 0, 0.15) !important;
}

/* Ensure images within cards fit the fixed ratio */
.aiz-card-box img,
.product-card-marketplace img,
.onbuy-global-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aiz-card-box .img-fit,
.product-card-marketplace .img-fit {
    object-fit: contain !important;
}

.aiz-card-box .img-fit-wrapper,
.aiz-card-box .position-relative.img-fit {
    background: #fff !important;
}

/* Mobile Ratio Optimization */
@media (max-width: 768px) {

    .aiz-card-box,
    .product-card-marketplace,
    .onbuy-global-card {
        width: 175px !important;
        height: 480px !important;
        box-shadow: 8px 10px 20px rgba(0, 0, 0, 0.06) !important;
    }
}