/*
 * Fabcrush Empty Cart Styles
 * Styling for empty cart message and return to shop button
 * Matches the "use design" button style from AI marketplace gallery
 */

/* Empty cart wrapper container */
.fabcrush-empty-cart-wrapper {
    text-align: center;
    padding: 40px 20px;
}

/* Empty cart message styling */
.wc-empty-cart-message {
    margin-bottom: 30px !important;
}

.wc-empty-cart-message .cart-empty.woocommerce-info {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    text-align: center !important;
}

/* Return to shop button - matches add-to-cart-btn style */
/* Override WooCommerce button defaults first */
.fabcrush-return-to-shop-btn,
a.fabcrush-return-to-shop-btn,
.button.fabcrush-return-to-shop-btn,
.wc-backward.fabcrush-return-to-shop-btn {
    display: inline-block !important;
    width: auto !important;
    min-width: 200px !important;
    padding: 10px 24px !important;
    margin: 0 !important;
    /* Set background-color transparent, then apply gradient as background-image */
    background-color: transparent !important;
    background-image: linear-gradient(135deg, #2b6bc7 0%, #cf3a74 50%, #e53143 75%, #ff6b35 100%) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
    border: 1px solid rgba(102, 126, 234, 0.5) !important;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15) !important;
    transform: none !important;
    font-weight: 600 !important;
    /* Gradient text effect - clip background to text */
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
}

.fabcrush-return-to-shop-btn:hover,
a.fabcrush-return-to-shop-btn:hover,
.button.fabcrush-return-to-shop-btn:hover,
.wc-backward.fabcrush-return-to-shop-btn:hover {
    /* Background color for the button box */
    background-color: rgba(102, 126, 234, 0.1) !important;
    /* Keep gradient for text */
    background-image: linear-gradient(135deg, #2b6bc7 0%, #cf3a74 50%, #e53143 75%, #ff6b35 100%) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
    border: 1px solid rgba(102, 126, 234, 0.3) !important;
    backdrop-filter: blur(3px);
    transform: none !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1) !important;
    text-decoration: none !important;
    /* Keep gradient text on hover */
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Strengthen hover override to match AI Gallery tint */
.woocommerce-page div.woocommerce .return-to-shop a.fabcrush-return-to-shop-btn:hover,
#qodef-woo-page .return-to-shop a.fabcrush-return-to-shop-btn:hover {
    background-color: rgba(102, 126, 234, 0.1) !important;
    border-color: rgba(102, 126, 234, 0.3) !important;
}

.fabcrush-return-to-shop-btn:active {
    transform: none !important;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.2) !important;
}

.fabcrush-return-to-shop-btn:focus {
    outline: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15), 0 0 0 3px rgba(102, 126, 234, 0.2) !important;
}

/* Return to shop paragraph wrapper */
.return-to-shop {
    margin: 0 !important;
    padding: 0 !important;
}

/* Force title to stay black (override any theme injections) */
.wc-empty-cart-message .cart-empty.woocommerce-info {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    color: #000 !important;
}

/* Parent theme wraps button text in .qodef-m-text after load; apply gradient to inner text */
.fabcrush-return-to-shop-btn .qodef-m-text,
.fabcrush-return-to-shop-btn .qodef-btn-text,
.fabcrush-return-to-shop-btn .qodef-m-more-text {
    display: inline-block !important;
    background-image: linear-gradient(135deg, #2b6bc7 0%, #cf3a74 50%, #e53143 75%, #ff6b35 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
}

/* Hide underline effect which uses currentColor (would be transparent) */
.fabcrush-return-to-shop-btn .qodef-m-text:after,
.fabcrush-return-to-shop-btn .qodef-btn-text:after,
.fabcrush-return-to-shop-btn .qodef-m-more-text:after {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fabcrush-empty-cart-wrapper {
        padding: 30px 15px;
    }
    
    .fabcrush-return-to-shop-btn {
        min-width: 180px !important;
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }
    
    .wc-empty-cart-message .cart-empty.woocommerce-info {
        font-size: 1rem !important;
    }
}

