/**
 * Product Card Fixes
 * This CSS file contains fixes for the product cards in the New Arrivals section
 */

/* Fix swiper container to ensure equal height rows */
.mySwiper3.swiper {
    padding: 10px 0 !important;
}

/* Fix swiper wrapper to align items */
.mySwiper3 .swiper-wrapper {
    align-items: stretch !important;
    display: flex !important;
}

/* Fix swiper slide to ensure equal height */
.mySwiper3 .swiper-slide {
    height: auto !important;
    display: flex !important;
    align-items: stretch !important;
    padding: 5px !important;
}

/* Fix background for slides */
.mySwiper3 .swiper-slide.background-none {
    background: none !important;
}

/* Fix card width and height */
.card-h-418 {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Fix product card layout */
.product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

/* Fix product image container */
.product-img-style3 {
    height: 240px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 10px !important;
    background-color: #f8f9fa !important;
}

/* Fix product image */
.product-img-style3 img {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

/* Fix card body */
.product-card .card-body {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 15px !important;
}

/* Fix card title */
.product-card .card-title {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;
    height: 2.6rem !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* Fix card price */
.product-card .card-price {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

/* Fix jewelry info display */
.jewelry-info-compact {
    margin-top: auto !important;
    background-color: rgba(248, 249, 250, 0.7) !important;
    border-radius: 5px !important;
    padding: 5px 8px !important;
}

/* Fix for mobile devices */
@media (max-width: 768px) {
    .product-img-style3 {
        height: 200px !important;
    }
    
    .product-card .card-body {
        padding: 10px !important;
    }
    
    .product-card .card-title {
        font-size: 0.85rem !important;
        height: 2.2rem !important;
    }
}

/* Fix for small mobile devices */
@media (max-width: 576px) {
    .product-img-style3 {
        height: 180px !important;
    }
}

/* Additional fixes for new arrivals section */
.mySwiper3 {
    overflow: visible !important;
    padding: 10px 0 !important;
}

.mySwiper3 .swiper-slide {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure cards are visible and properly sized */
.card-h-418.product-card {
    min-height: 400px !important;
    max-width: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Fix for jewelry enhanced cards */
.jewelry-enhanced.product-card {
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
}

/* Ensure proper spacing between cards */
.mySwiper3 .swiper-wrapper {
    gap: 10px !important;
}

/* Fix for card hover effects */
.product-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important;
}

/* Force visibility for all swiper elements */
.mySwiper3,
.mySwiper3 .swiper-wrapper,
.mySwiper3 .swiper-slide,
.mySwiper3 .product-card,
.mySwiper3 .jewelry-product-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.mySwiper3 {
    display: block !important;
}

.mySwiper3 .swiper-wrapper {
    display: flex !important;
}

/* Ensure cards have proper dimensions */
.mySwiper3 .product-card,
.mySwiper3 .jewelry-product-card {
    min-height: 400px !important;
    width: 100% !important;
    flex-direction: column !important;
}

/* Fix for product images */
.mySwiper3 .product-img-style3 img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

