
/* ============================================================
   JOUD — Product Card Fix (List Layout)
   Refined for attractive product image display
   ============================================================ */

.product_list .product_wrap {
    display: flex !important;
    align-items: stretch !important;
    gap: 15px !important;
    margin-bottom: 20px !important;
    background: #FFFFFF !important;
    border: 1px solid #f0ece4 !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: box-shadow 0.3s ease !important;
}

.product_list .product_wrap:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

/* Image wrap area — explicit height so absolutely-positioned children resolve correctly */
.product_list .product_wrap .product-image-wrap {
    flex: 0 0 150px !important;
    max-width: 150px !important;
    width: 150px !important;
    height: 180px !important;
    background-color: #FAF8F3 !important;
    border-radius: 10px !important;
    display: block !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Discount badge */
.product_list .product_wrap .product-image-wrap .pr_flash {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    display: inline-block !important;
    background-color: #D4AF37 !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    z-index: 3 !important;
    margin: 0 !important;
}

/* Image container — fill the wrap entirely */
.product_list .product_wrap .product-image-wrap .product_img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

.product_list .product_wrap .product-image-wrap .product_img a,
.product_list .product_wrap .product-image-wrap .product_img a.product-link {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.product_list .product_wrap .product-image-wrap .product_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 10px !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.product_list .product_wrap .product-image-wrap .product_img img:hover {
    transform: scale(1.05) !important;
}

/* Hide hover image in list view */
.product_list .product_wrap .product-image-wrap .product_img .product_hover_img {
    display: none !important;
}

/* Hide product action buttons */
.product_list .product_wrap .product_action_box {
    display: none !important;
}

/* Info container — min-width:0 is critical so flex child can shrink below content size */
.product_list .product_wrap .product_info {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 6px 8px !important;
    overflow: hidden !important;
}

/* Product Title */
.product_list .product_wrap .product_info .product_title {
    margin-bottom: 4px !important;
    overflow: hidden !important;
}

.product_list .product_wrap .product_info .product_title a {
    font-size: 14px !important;
    font-family: 'Cormorant Garamond', serif !important;
    color: #513B2E !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    word-break: break-word !important;
    text-decoration: none !important;
    max-width: 100% !important;
}

/* Product Price */
.product_list .product_wrap .product_info .product_price {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: baseline !important;
    gap: 4px 6px !important;
    margin-bottom: 4px !important;
    overflow: hidden !important;
}

.product_list .product_wrap .product_info .product_price .price {
    color: #D4AF37 !important;
    font-weight: 600 !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 16px !important;
    white-space: nowrap !important;
}

.product_list .product_wrap .product_info .product_price del {
    font-size: 13px !important;
    color: #C2B29F !important;
    font-family: 'Cormorant Garamond', serif !important;
    white-space: nowrap !important;
}

/* On sale percentage — show as small badge */
.product_list .product_wrap .product_info .on_sale {
    display: none !important;
}

/* Rating */
.product_list .product_wrap .product_info .rating_wrap {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
}

.product_list .product_wrap .product_info .rating_wrap .rating {
    flex-shrink: 0 !important;
    font-size: 12px !important;
}

.product_list .product_wrap .product_info .rating_wrap .rating_num {
    font-size: 11px !important;
    color: #C2B29F !important;
    white-space: nowrap !important;
}

/* Description hidden in list view */
.product_list .product_wrap .product_info .pr_desc,
.product_list .product_wrap .product_info .list_product_action_box,
.product_list .product_wrap .product_info .pr_switch_wrap {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 575px) {
    .product_list .product_wrap {
        gap: 8px !important;
        padding: 8px !important;
    }
    .product_list .product_wrap .product-image-wrap {
        flex: 0 0 100px !important;
        max-width: 100px !important;
        width: 100px !important;
        height: 120px !important;
    }
    .product_list .product_wrap .product_info .product_title a {
        font-size: 13px !important;
    }
    .product_list .product_wrap .product_info .product_price .price {
        font-size: 14px !important;
    }
    .product_list .product_wrap .product_info .product_price del {
        font-size: 12px !important;
    }
}

/* ============================================================
   PRODUCT IMAGE CLICKABILITY FIX
   The ::before overlay and action_box container intercept pointer
   events even when transparent, preventing image link clicks.
   ============================================================ */

/* Decorative darkening overlay — visual only, must not block clicks */
.product_img::before {
    pointer-events: none !important;
}

/* Action box container is transparent — only the buttons inside should be clickable */
.product_action_box {
    pointer-events: none !important;
}

.product_action_box li a {
    pointer-events: auto !important;
}

/* Ensure image link covers the full image area and sits above the overlay */
.product_img a,
.product_img a.product-link {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    cursor: pointer !important;
}
