/* =============================================
   Metro Layout V2 - Premium Product Card Styles
   Safe version: no height:100% on cards, 
   no display:flex in generic utilities
   ============================================= */

/* Card Wrapper - block display is safe for slick.js */
.metro-product-card-v2 {
    border: none !important;
    background: #fff !important;
    border-radius: 12px;
    padding: 0 !important;
    margin: 2px !important;
    /* Decreased gap between cards even more */

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden !important;
    display: block;
    /* NOT flex - flex breaks slick.js height calculation */
}


.metro-product-card-v2:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
}


.metro-product-card-v2 .aiz-card-box {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Image Area - responsive aspect ratio ensures visual alignment in all grid views */
.metro-product-card-v2 .img-fit {
    border-radius: 12px 12px 0 0;
    overflow: hidden !important;
    background: #fafafa;
    position: relative;
    aspect-ratio: 1 / 1;
    height: auto !important;
    display: block;
}


/* Product images fill the box */
.metro-product-card-v2 .product-main-image,
.metro-product-card-v2 .product-hover-image {
    object-fit: cover !important;
    width: 100%;
    height: 100%;
    padding: 0;
    display: block;
}

/* =============================================
   Wishlist Heart - ALWAYS VISIBLE (no aiz-p-hov-icon class on element)
   ============================================= */
.metro-product-card-v2 .metro-wishlist-fixed {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    background: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 15 !important;
    transition: all 0.25s ease !important;
    cursor: pointer;
}

.metro-product-card-v2 .metro-wishlist-fixed a {
    color: #555 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 4px;
}

/* Outline (unfilled) heart by default */
.metro-product-card-v2 .metro-wishlist-fixed svg path {
    fill: none !important;
    stroke: #666 !important;
    stroke-width: 1.2px;
}

/* Hover: filled primary color heart */
.metro-product-card-v2 .metro-wishlist-fixed:hover svg path {
    fill: var(--primary) !important;
    stroke: var(--primary) !important;
}

/* Hide any leftover theme hover icons inside metro cards */
.metro-product-card-v2 .aiz-p-hov-icon {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =============================================
   Hover Reveal Actions (slides up from bottom)
   ============================================= */
.metro-reveal-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
    opacity: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.metro-product-card-v2:hover .metro-reveal-actions {
    bottom: 0;
    opacity: 1;
}

.metro-reveal-actions .action-item {
    color: #444;
    font-size: 20px;
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.metro-reveal-actions .action-item:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hide theme default buttons we've replaced */
.metro-product-card-v2 .cart-btn,
.metro-product-card-v2 .absolute-bottom-left {
    display: none !important;
}

/* =============================================
   Content Area (NO flex here - breaks carousels)
   ============================================= */
.metro-product-card-v2 .p-2,
.metro-product-card-v2 .p-md-3 {
    padding: 12px 15px 15px !important;
}

/* Strict 2-line title height so prices align */
.metro-product-card-v2 h3 {
    text-align: left !important;
    margin-bottom: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #2d2d2d;
    line-height: 1.4 !important;
    height: 40px !important;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}

/* Price row */
.metro-product-card-v2 .price-range {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    margin-top: 6px;
}

.metro-product-card-v2 .price-range .text-primary {
    color: #111 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.metro-product-card-v2 .price-range del {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    font-weight: 400;
}

/* =============================================
   Section-Level Backgrounds
   ============================================= */
.metro-section-bg {
    background: #f5f5fa !important;
    /* Standard light gray used for other sections */
    padding-top: 30px;
    padding-bottom: 30px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* =============================================
   Grid spacing - ONLY for the two metro sections
   NOT for top sellers, brands, categories etc.
   ============================================= */
#section_best_selling .carousel-box,
#section_newest .carousel-box {
    padding: 0 3px;
}

/* =============================================
   Mobile Adjustments
   ============================================= */
@media (max-width: 767px) {
    .metro-section-bg {
        padding-top: 20px;
        padding-bottom: 20px;
    }

}