/**
 * Product Loop Quick View Enhancements
 * - Hide the add to cart bag icon
 * - Make entire product card clickable for quick view
 */

/* Make entire product card clickable */
.product-item {
    cursor: pointer !important;
    transition: all 0.3s ease;
    position: relative;
}

/* Ensure product wrap doesn't block clicks */
.product-item .product-wrap {
    pointer-events: auto;
}

/* Make sure all child elements allow pointer events */
.product-item * {
    pointer-events: auto;
}

/* But the product-top should be fully clickable */
.product-item .product-top {
    cursor: pointer;
}

/* Add hover effect to entire card */
.product-item.quick-view-hover-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Hide the add-to-cart bag button in product loop */
.product-item .product-actions .product-button--add-to-cart {
    display: none !important;
}

/* Hide compare button if you want (optional) */
/* .product-item .product-actions .product-button--compare {
    display: none !important;
} */

/* Make quick view button more prominent */
.product-item .product-actions .product-button--quickview {
    display: block;
}

/* Make the entire product thumbnail area clickable for quick view */
.product-item .product-thumbnail {
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

/* Add a subtle hover effect to indicate clickability */
.product-item:hover .product-thumbnail {
    opacity: 0.95;
}

.product-item.quick-view-hover-card .product-thumbnail {
    transform: scale(1.02);
}

/* Add overlay effect on hover */
.product-item.quick-view-hover-card .product-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Show quick view icon on hover */
.product-item:hover .product-actions {
    opacity: 1;
}

/* Center and style the quick view button */
.product-item .product-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Make quick view icon larger and more visible */
.product-button--quickview a.quickview {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-button--quickview a.quickview:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Style the quickview icon */
.product-button--quickview a.quickview::before {
    content: '\e93c';
    font-family: 'phosphor';
    font-size: 20px;
    color: #000;
}

/* Hide text tooltip on desktop, show on mobile */
.product-button--quickview .button-tooltip {
    display: none;
}

@media (max-width: 768px) {
    .product-button--quickview .button-tooltip {
        display: block;
        font-size: 12px;
    }
    
    /* Less dramatic hover on mobile */
    .product-item.quick-view-hover-card {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
}

/* For RTL support */
[dir="rtl"] .product-item .product-actions {
    direction: rtl;
}

/* Enhance product card hover state */
.product-item.quick-view-hover-card .product-thumbnail img {
    filter: brightness(0.98);
}

/* Add subtle border effect on hover */
.product-item {
    border-radius: 8px;
    overflow: hidden;
}

.product-item.quick-view-hover-card {
    border-color: transparent;
}

/* Smooth transition for product info */
.product-item .product-info {
    transition: all 0.3s ease;
}

.product-item.quick-view-hover-card .product-info {
    transform: translateY(-2px);
}


