/* Modern Product Thumbnail Actions */
.ps-product__thumbnail,
.ps-product .ps-product__thumbnail {
    position: relative !important;
    overflow: visible !important;
}

/* Ensure the image link doesn't interfere */
.ps-product__thumbnail>a {
    display: block;
    position: relative;
    z-index: 1;
}

/* Quick View Button - Top Left */
.ps-product__quick-view {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    width: 40px;
    height: 40px;
    background: transparent !important;
    /* Fully transparent */
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100 !important;
    cursor: pointer;
}

.ps-product__quick-view i {
    font-size: 20px;
    color: #333;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

.ps-product__quick-view:hover {
    background: transparent !important;
    /* Stay transparent on hover */
    transform: scale(1.1);
}

.ps-product__quick-view:hover i {
    color: #333;
    /* Keep dark color on hover */
}

.ps-product__thumbnail:hover .ps-product__quick-view {
    opacity: 1;
    transform: scale(1);
}

/* Add to Cart Button - Bottom LEFT with gradient background */
.ps-product__add-cart {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    right: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100 !important;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.4) !important;
    overflow: hidden !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

/* Ensure no pseudo-elements interfere with centering */
.ps-product__add-cart:before,
.ps-product__add-cart:after {
    content: none !important;
    display: none !important;
}

.ps-product__add-cart svg {
    width: 22px !important;
    height: 22px !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
    transition: all 0.3s ease;
    filter: none !important;
    display: block !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

.ps-product__add-cart:hover {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%) !important;
    transform: none !important;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.4) !important;
    /* Keep same shadow */
    opacity: 1 !important;
}

.ps-product__add-cart:hover svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
    transform: translate(-50%, -50%) !important;
    /* Keep centered */
}

/* Active state for add to cart */
.ps-product__add-cart:active {
    transform: none !important;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.4) !important;
}

/* Ensure thumbnail image doesn't overflow */
.ps-product__thumbnail a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

.ps-product__thumbnail img {
    transition: transform 0.4s ease;
}

.ps-product__thumbnail:hover img {
    transform: scale(1.05);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .ps-product__quick-view {
        opacity: 1;
        transform: scale(1);
    }

    .ps-product__add-cart {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        left: 8px !important;
        bottom: 8px !important;
    }

    .ps-product__add-cart svg {
        width: 18px !important;
        height: 18px !important;
    }
}