/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* ==========================================================================
   WooCommerce Custom Styles
   ========================================================================== */
#tab-description p {
    font-size: 16px;
    color: black;
}
/* ==========================================================================
   1. CART PAGE STYLES
   ========================================================================== */

/* Cart page layout adjustments */
.woocommerce-cart .alignwide {
    margin-left: 5px;
    margin-right: 5px;
}

.woocommerce-cart h2.elementor-heading-title {
    display: none;
}

body.woocommerce-cart {
    color: black !important;
}

/* Cart items styling for mobile */
@media (max-width: 782px) {
    .wc-block-cart .wc-block-cart__submit-container--sticky {
        display: none !important;
    }
    
    .is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product,
    .is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product,
    .is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
        font-size: 16px;
    }
}

/* ==========================================================================
   2. PRODUCT LISTING STYLES
   ========================================================================== */

/* Product grid typography */
.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
    /* Specificity: (0,4,2) */
    font-size: 1.3em;
}

.woocommerce ul.products li.product .price {
    font-size: 1em;
}

/* Product alignment and colors */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    text-align: center;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price {
    color: #375F8E;
}

/* Product gallery controls */
.flex-control-nav.flex-control-thumbs {
    padding-top: 10px !important;
}

/* Hide simple product icons */
.product_type_simple.add_to_cart_button i {
    display: none;
}

/* ==========================================================================
   3. CART BUTTON STYLES (Primary Styling)
   ========================================================================== */

/* Base styles for all cart buttons */
.wc-block-cart__submit-button,
.add_to_cart_button,
.wp-block-button__link.add_to_cart_button {
    /* Reset default styles */
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    
    /* Primary button styling with gradient */
    background-color: transparent !important;
    background-image: linear-gradient(340deg, var(--e-global-color-accent) 30%, var(--e-global-color-secondary) 100%) !important;
    background-size: 200% 200% !important;
    
    /* Border and shape */
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    
    /* Typography */
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    
    /* Layout */
    cursor: pointer !important;
    display: inline-block !important;
    padding: 12px 24px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: 160px !important;
    
    /* Visual effects */
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Gradient animation */
    animation: gradient 3s ease infinite !important;
}

/* ==========================================================================
   4. CART BUTTON STATES
   ========================================================================== */

/* Hover effects */
.wc-block-cart__submit-button:hover,
.add_to_cart_button:hover,
.wp-block-button__link.add_to_cart_button:hover {
    background-color: transparent !important;
    background-image: linear-gradient(160deg, var(--e-global-color-secondary) 30%, var(--e-global-color-accent) 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Active state */
.wc-block-cart__submit-button:active,
.add_to_cart_button:active,
.wp-block-button__link.add_to_cart_button:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Focus state for accessibility */
.wc-block-cart__submit-button:focus,
.add_to_cart_button:focus,
.wp-block-button__link.add_to_cart_button:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(var(--e-global-color-accent-rgb, 102, 126, 234), 0.4) !important;
}

/* Loading state */
.add_to_cart_button.loading,
.wp-block-button__link.add_to_cart_button.loading,
.wc-block-cart__submit-button.is-loading {
    opacity: 0.8 !important;
    cursor: not-allowed !important;
    position: relative !important;
}

.add_to_cart_button.loading::before,
.wp-block-button__link.add_to_cart_button.loading::before,
.wc-block-cart__submit-button.is-loading .wc-block-components-button__text::before {
    content: "" !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-top: 2px solid #ffffff !important;
    border-radius: 50% !important;
    animation: spin 1s linear infinite !important;
    margin-right: 8px !important;
}

/* Added to cart state */
.add_to_cart_button.added,
.wp-block-button__link.add_to_cart_button.added {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.25) !important;
}

.add_to_cart_button.added:hover,
.wp-block-button__link.add_to_cart_button.added:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%) !important;
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.4) !important;
}

/* Disabled/Out of stock state */
.add_to_cart_button.disabled,
.wp-block-button__link.add_to_cart_button.disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%) !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    box-shadow: 0 2px 8px rgba(189, 195, 199, 0.2) !important;
}

.add_to_cart_button.disabled:hover,
.wp-block-button__link.add_to_cart_button.disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 8px rgba(189, 195, 199, 0.2) !important;
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%) !important;
}

/* ==========================================================================
   5. BUTTON ICONS
   ========================================================================== */

/* Shopping cart icons for checkout buttons */
.wc-block-components-button__text {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.wc-block-components-button__text::before {
    content: "\f07a" !important; /* FontAwesome shopping cart icon */
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-size: 14px !important;
}

/* Shopping cart icons for add-to-cart buttons */
.add_to_cart_button::before,
.wp-block-button__link.add_to_cart_button::before {
    content: "\f07a" !important; /* FontAwesome shopping cart icon */
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
    font-size: 14px !important;
    margin-right: 8px !important;
}

/* Check icon for added state */
.add_to_cart_button.added::before,
.wp-block-button__link.add_to_cart_button.added::before {
    content: "\f00c" !important; /* FontAwesome check icon */
    font-family: "Font Awesome 5 Free", "FontAwesome" !important;
    font-weight: 900 !important;
}

/* Fallback icons for when FontAwesome is not available */
.no-fontawesome .wc-block-components-button__text::before,
.no-fontawesome .add_to_cart_button::before,
.no-fontawesome .wp-block-button__link.add_to_cart_button::before {
    content: "🛒" !important;
    font-family: inherit !important;
    font-weight: normal !important;
}

.no-fontawesome .add_to_cart_button.added::before,
.no-fontawesome .wp-block-button__link.add_to_cart_button.added::before {
    content: "✓" !important;
    font-family: inherit !important;
}

/* ==========================================================================
   6. BUTTON VARIATIONS & SPECIAL CASES
   ========================================================================== */

/* Alternative gradient theme */
.alt-gradient .wc-block-cart__submit-button,
.alt-gradient .add_to_cart_button,
.alt-gradient .wp-block-button__link.add_to_cart_button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.25) !important;
}

.alt-gradient .wc-block-cart__submit-button:hover,
.alt-gradient .add_to_cart_button:hover,
.alt-gradient .wp-block-button__link.add_to_cart_button:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%) !important;
    box-shadow: 0 8px 25px rgba(240, 147, 251, 0.4) !important;
}

/* Block editor button styling */
.wp-block-button .wp-block-button__link.add_to_cart_button {
    border-radius: 8px !important;
}

/* Variation and grouped product forms */
.variations_form .add_to_cart_button,
.grouped_form .add_to_cart_button {
    margin-top: 15px !important;
}

/* Cart submit container */
.wc-block-cart__submit-container {
    text-align: center !important;
    padding: 20px 0 !important;
}

/* ==========================================================================
   7. FORM CONTROLS
   ========================================================================== */

/* Quantity input styling */
.quantity input.qty {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    margin-right: 10px !important;
    width: 60px !important;
    text-align: center !important;
    font-size: 14px !important;
}

/* ==========================================================================
   8. ANIMATIONS & KEYFRAMES
   ========================================================================== */

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gradient background animation */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================================================
   9. RESPONSIVE DESIGN
   ========================================================================== */

/* Mobile button adjustments */
@media (max-width: 768px) {
    .wc-block-cart__submit-button,
    .add_to_cart_button,
    .wp-block-button__link.add_to_cart_button {
        width: 100% !important;
        min-width: auto !important;
        padding: 16px 24px !important;
        font-size: 16px !important;
        margin-bottom: 10px !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 575px) {
    /* Page layout adjustments */
    .page-header .entry-title,
    .site-footer .footer-inner,
    .site-footer:not(.dynamic-footer),
    .site-header .header-inner,
    .site-header:not(.dynamic-header),
    body:not([class*=elementor-page-]) .site-main {
        padding-inline-start: 20px;
        padding-inline-end: 20px;
    }

    /* Hide specific Elementor element on mobile */
    .elementor-element-a15d8e7.e-flex.e-con-boxed.e-con.e-parent {
        display: none;
    }
}