/*
 Theme Name:   Twenty Twenty-Five Child (High Conversion)
 Theme URI:    https://example.com/twentytwentyfive-child/
 Description:  Twenty Twenty-Five Child Theme with CR Optimization
 Author:       Antigravity
 Author URI:   https://example.com
 Template:     twentytwentyfive
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  twentytwentyfive-child
*/

/* ==========================================================================
   Conversion Optimization Styles
   ========================================================================== */

/* Trust Badges */
.trust-badges-container {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    color: #555;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #eee;
}

/* Sticky Add to Cart (Mobile) */
@media (max-width: 768px) {
    .single-product .summary form.cart {
        position: sticky;
        bottom: 0;
        background: white;
        padding: 15px;
        z-index: 100;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        width: 100%;
        left: 0;
        margin-bottom: 0;
    }
}

/* Call to Action Buttons */
.single_add_to_cart_button {
    background-color: #2E4F28 !important;
    /* Kapiva Green */
    /* Green for go/buy */
    color: white !important;
    font-weight: bold !important;
    padding: 12px 24px !important;
    transition: transform 0.2s ease, background-color 0.2s ease !important;
    border-radius: 50px !important;
    /* Pill shape */
}

/* ==========================================================================
   CRO (Conversion Rate Optimization) Styles
   ========================================================================== */

/* 1. Signals (Urgency & Viewing) */
.cro-live-viewing,
.cro-order-urgency {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cro-live-viewing strong,
.cro-order-urgency strong {
    color: #e74c3c;
    /* Red for urgency */
}

/* Pulse Animation for "Live" dot */
.pulse-icon {
    width: 10px;
    height: 10px;
    background-color: #e74c3c;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(231, 76, 60, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* 2. Sticky Product Bar */
.cro-sticky-bar {
    position: fixed;
    bottom: -100px;
    /* Hidden by default */
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 10px 20px;
    transition: bottom 0.3s ease-in-out;
}

.cro-sticky-bar.visible {
    bottom: 0;
}

.cro-sticky-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cro-sticky-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cro-sticky-product img {
    height: 50px;
    width: auto;
    border-radius: 4px;
}

.cro-sticky-info {
    display: flex;
    flex-direction: column;
}

.cro-sticky-title {
    font-weight: bold;
    font-size: 1.1em;
}

.cro-sticky-price {
    font-size: 0.9em;
    color: #2E4F28;
    /* Kapiva Green */
    font-weight: bold;
}

.cro-sticky-btn {
    background-color: #2E4F28 !important;
    /* Kapiva Green */
    color: white !important;
    padding: 12px 30px !important;
    border-radius: 30px !important;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s;
}

.cro-sticky-btn:hover {
    background-color: #1a3016 !important;
    /* Darker Green */
}

/* Mobile Adjustments for Sticky Bar */
@media (max-width: 600px) {
    .cro-sticky-product img {
        display: none;
        /* Hide image on small screens */
    }

    .cro-sticky-title {
        font-size: 0.9em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
}

/* UTILITIES */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* ==========================================================================
   WooCommerce Cart & Checkout Styling
   ========================================================================== */

/* Cart Table Styling */
.woocommerce-cart-form__contents thead th {
    background-color: #f9f9f9;
    padding: 15px !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #1a1a1a;
    border-bottom: 2px solid #eee;
}

.woocommerce-cart-form__contents .cart_item td {
    padding: 20px 15px !important;
    vertical-align: middle;
}

.woocommerce-cart .product-name a {
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
}

.woocommerce-cart .product-name a:hover {
    color: #2E4F28;
}

/* Coupon & Update Cart */
.woocommerce-cart .coupon .input-text {
    border-radius: 4px;
    padding: 10px 15px !important;
    border: 1px solid #ddd;
}

.woocommerce-cart .actions .button {
    background-color: #f5f5f5 !important;
    color: #333 !important;
    border-radius: 50px !important;
    padding: 12px 25px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 11px !important;
    border: 1px solid #ddd !important;
}

.woocommerce-cart .actions .button:hover {
    background-color: #eee !important;
}

/* Cart Totals */
.cart-collaterals {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
}

.cart-collaterals h2 {
    font-family: 'Fraunces', serif;
    font-size: 24px !important;
    margin-bottom: 20px !important;
}

.shop_table_responsive tr td::before {
    font-weight: 700;
    color: #1a1a1a;
}

/* Main Checkout Button (Classic & Blocks) */
.wc-proceed-to-checkout .checkout-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-step__container .wc-block-components-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button {
    background-color: #2E4F28 !important;
    /* Brand Green */
    color: white !important;
    padding: 18px 30px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 14px !important;
    letter-spacing: 0.05em;
    transition: all 0.3s ease !important;
    width: 100% !important;
    text-align: center;
    box-shadow: 0 4px 15px rgba(46, 79, 40, 0.2);
}

.wc-proceed-to-checkout .checkout-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-step__container .wc-block-components-button:hover {
    background-color: #1a3016 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 79, 40, 0.3);
}

/* Quantity Input */
.woocommerce-cart .quantity .qty {
    width: 60px !important;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    text-align: center;
}