/*
Theme Name: Kriya Commerce Child
Description: Custom child theme for Kriya Commerce using Elementor.
Template: hello-elementor
Version: 1.1.0
*/

/* --- MASTER CSS START --- */

:root {
    /* Color Palette */
    --kriya-primary: #ce1b17;
    --kriya-primary-dark: #8e0b13;
    --kriya-bg-light: #ffffff;
    --kriya-bg-dark: #102217;
    --kriya-text-main: #252b2b;
    --kriya-text-sec: #4c4f54;
    --kriya-accent: #efdfc5;
    --kriya-accent-sec: #fa5454;
    
    /* Spacing & Radius */
    --radius-default: 1rem;
    --radius-lg: 2rem;
    --radius-full: 9999px;
    --shadow-subtle: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-primary: 0 20px 25px -5px rgba(206, 27, 23, 0.15);
}

/* --- Global Refinements --- */
body {
    font-family: 'Spline Sans', sans-serif;
    color: var(--kriya-text-main);
    background-color: var(--kriya-bg-light);
    -webkit-font-smoothing: antialiased;
}

/* --- Elementor Button Sync & Color Fix --- */
/* Expert Fix: Removed brightness(1.1) to prevent pink color on hover */
.elementor-button, .kriya-btn-primary {
    border-radius: var(--radius-full) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 700 !important;
    letter-spacing: 0.015em !important;
    background-color: var(--kriya-primary) !important;
    border: none !important;
}

.elementor-button:hover, .elementor-button:focus {
    transform: translateY(-2px);
    background-color: var(--kriya-primary-dark) !important; /* Rich Dark Red instead of Pink */
    box-shadow: var(--shadow-primary) !important;
    filter: none !important;
}

/* Expert UI addition: Physical 'press' feel on click */
.elementor-button:active {
    transform: translateY(0px) scale(0.97) !important;
    transition: all 0.1s ease !important;
}

/* --- Custom Carousel Logic --- */
.kriya-carousel {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    gap: 1.5rem;
    scrollbar-width: none; 
}

.kriya-carousel::-webkit-scrollbar {
    display: none;
}

/* --- FAQ / Details Styling --- */
details.group {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

details[open] {
    border-color: var(--kriya-primary);
    background: white;
    box-shadow: var(--shadow-subtle);
}

/* --- Material Symbols Support --- */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    vertical-align: middle;
}

/* --- Checkout Card "Glassmorphism" --- */
.kriya-checkout-summary {
    background: var(--kriya-bg-dark);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.kriya-checkout-summary::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--kriya-primary);
    filter: blur(100px);
    opacity: 0.2;
    pointer-events: none;
}

/* --- Utility Classes --- */
.kriya-text-primary { color: var(--kriya-primary); }
.kriya-bg-primary { background-color: var(--kriya-primary); }
.kriya-font-display { font-family: 'Spline Sans', sans-serif; }

.kriya-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-default);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.kriya-card:hover {
    box-shadow: 0 20px 25px -5px rgba(206, 27, 23, 0.1);
    transform: translateY(-5px);
    border-color: rgba(206, 27, 23, 0.2);
}

/* Utility for hiding scrollbars but keeping functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}


/* Remove default WooCommerce 2-column layout so our JS grid takes over */
.woocommerce-checkout .col2-set { width: 100% !important; float: none !important; margin: 0 !important; }

/* Style the Woo Billing Form to match your UI */
#left-col-bridge .woocommerce-billing-fields__field-wrapper p {
    margin-bottom: 15px !important;
}

#left-col-bridge input.input-text {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 12px !important;
    font-family: 'Spline Sans', sans-serif;
}

/* Style the Sidebar Table inside the dark box */
#woo-summary-injection table.shop_table {
    background: transparent !important;
    border: none !important;
    color: white !important;
}

#woo-summary-injection table.shop_table th, 
#woo-summary-injection table.shop_table td {
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    padding: 15px 0 !important;
}

#woo-summary-injection .order-total {
    font-size: 24px !important;
    color: #efdfc5 !important;
}

/* Style the Place Order Button */
#place_order {
    background-color: #ce1b17 !important;
    width: 100% !important;
    border-radius: 50px !important;
    padding: 18px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}