/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/* ============================================
   ASTRA-SPECIFIC WOOCOMMERCE FEATURES
   These styles target Astra's classes and structure
   ============================================ */

/* ============================================
   CART ICON STYLING & ANIMATIONS
   ============================================ */

/* Cart container styling */
.ast-site-header-cart {
    position: relative;
}

/* Cart icon - make it blue */
.ast-icon.icon-cart svg {
    fill: #0073aa;
    transition: fill 0.3s ease;
}

/* Style the count badge (the ::after pseudo-element) */
.astra-icon.ast-icon-shopping-cart::after {
    background: #dc3545 !important;
    color: white !important;
    font-weight: 600;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    padding: 2px 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animation keyframes */
@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes cartBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes badgePop {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Apply animations */
.cart-animating {
    animation: cartBounce 0.4s ease-out;
}

.icon-pulse {
    animation: iconPulse 0.5s ease-out;
}

.cart-animating .astra-icon.ast-icon-shopping-cart::after {
    animation: badgePop 0.5s ease-out;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .astra-icon.ast-icon-shopping-cart::after {
        min-width: 22px;
        height: 22px;
        font-size: 13px;
    }
}

/* Add to cart button states */
.single_add_to_cart_button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.single_add_to_cart_button.added {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

/* ============================================
   QUICK ADD TO CART NOTIFICATION
   ============================================ */

.quick-add-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 25px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    font-weight: 600;
    max-width: 300px;
}

.quick-add-notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* Loading state for Astra cart icon */
.ast-on-card-button.adding {
    pointer-events: none !important;
}

.ast-on-card-button.adding .ast-icon.icon-cart svg,
.ast-on-card-button.adding .ast-icon svg,
.ast-on-card-button.adding svg {
    animation: cartPulse 1s ease-in-out infinite !important;
    transform-origin: center center !important;
}

@keyframes cartPulse {
    0% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.15);
        opacity: 0.7;
    }
    100% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Success state for Astra quick add button */
.ast-on-card-button.added .ast-icon.icon-cart svg,
.ast-on-card-button.added .ast-icon svg,
.ast-on-card-button.added svg {
    fill: #28a745 !important;
    animation: successPop 0.4s ease-out !important;
}

@keyframes successPop {
    0% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.3);
    }
    100% { 
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .quick-add-notification {
        top: 60px;
        right: 10px;
        left: 10px;
        text-align: center;
        max-width: none;
    }
}
