/* Global Product Card Resets */
ul.products li.product.vcp-card-style--clean,
ul.products li.product.vcp-card-style--elegant,
ul.products li.product.vcp-card-style--bordered {
    position: relative;
    transition: var(--vcp-transition);
    background: transparent;
    padding: 0;
    border: none;
}

ul.products li.product .woocommerce-loop-product__title {
    margin-top: 12px;
    font-size: 15px;
    color: var(--vcp-text);
    transition: var(--vcp-transition);
}

/* Hover Image Swap */
.vcp-primary-image {
    transition: var(--vcp-transition);
    width: 100%;
    display: block;
}

.vcp-hover-image {
    opacity: 0;
    visibility: hidden;
    transition: var(--vcp-transition);
    z-index: 2;
}

/* Effects */
.vcp-hover-effect--swap:hover .vcp-primary-image {
    opacity: 0;
}

.vcp-hover-effect--swap:hover .vcp-hover-image {
    opacity: 1;
    visibility: visible;
}

.vcp-hover-effect--fade:hover .vcp-primary-image {
    opacity: 0;
}

.vcp-hover-effect--fade:hover .vcp-hover-image {
    opacity: 1;
    visibility: visible;
}

.vcp-hover-effect--zoomIN:hover .vcp-primary-image {
    opacity: 0;
    transform: scale(1.05);
}

.vcp-hover-effect--zoomIN:hover .vcp-hover-image {
    opacity: 1;
    visibility: visible;
    transform: scale(1.05);
}

/* Quick Actions Overlay */
.vcp-card-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 20px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    z-index: 10;
    transition: var(--vcp-transition);
    width: 80%;
}

ul.products li.product:hover .vcp-card-actions {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

.vcp-card-actions .vcp-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--vcp-text);
    border: none;
    padding: 12px 16px;
    border-radius: var(--vcp-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--vcp-shadow);
    transition: var(--vcp-transition);
    backdrop-filter: blur(4px);
}

.vcp-card-actions .vcp-btn:hover {
    background: var(--vcp-primary);
    color: #fff;
}

.vcp-card-actions .vcp-btn.loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.vcp-card-actions .vcp-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: vcp-spin 0.6s linear infinite;
}

.vcp-card-actions .vcp-btn:hover.loading::after {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
}

.vcp-card-actions .vcp-btn.added {
    background: #10b981;
    color: #fff;
}

.vcp-card-actions .vcp-btn.added span,
.vcp-card-actions .vcp-btn.added svg {
    display: none;
}

.vcp-card-actions .vcp-btn.added::after {
    content: '✓ Added';
    position: static;
    border: none;
    animation: none;
}

/* Card Styles */
.vcp-card-style--elegant {
    padding: 16px !important;
    background: #fff;
    border-radius: var(--vcp-radius);
}

.vcp-card-style--elegant:hover {
    box-shadow: var(--vcp-shadow-lg);
    transform: translateY(-4px);
}

.vcp-card-style--bordered {
    padding: 16px !important;
    border: 1px solid var(--vcp-border) !important;
    border-radius: var(--vcp-radius);
}

.vcp-card-style--bordered:hover {
    border-color: var(--vcp-primary) !important;
}

/* Hide Default WooCommerce Add to Cart */
.vcp-card-style--clean .add_to_cart_button,
.vcp-card-style--elegant .add_to_cart_button,
.vcp-card-style--bordered .add_to_cart_button {
    display: none !important;
}

@media (max-width: 767px) {

    /* On mobile, usually show actions below or make them simpler */
    .vcp-card-actions {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        flex-direction: row;
        width: 100%;
        margin-top: 12px;
    }

    .vcp-card-actions .vcp-btn span {
        display: none;
    }

    .vcp-hover-image {
        display: none;
        /* Disable hover on mobile usually */
    }
}