/*
Theme Name: Horsila Child
Template: equivital
Version: 2.1.0
Author: TakinTech
Text Domain: horsila
*/

/* ============================================
   HORSILA CHILD THEME - BASE STYLES
   ============================================ */

/* Reset minimal */
*, *::before, *::after { box-sizing: border-box; }

/* WooCommerce compatibility fixes */
.woocommerce .content-area { width: 100%; max-width: 1400px; margin: 0 auto; padding: 2rem; }
.woocommerce-page .site-main { padding-top: 80px; }

/* Ensure our homepage overrides parent */
.horsila-homepage .site-header,
.horsila-homepage #masthead,
.horsila-homepage .entry-header,
.horsila-homepage .page-title,
.horsila-homepage .site-content > .container > .row > .col-lg-8,
.horsila-homepage .sidebar,
.horsila-homepage .entry-meta,
.horsila-homepage .entry-footer,
.horsila-homepage .post-navigation,
.horsila-homepage .comments-area {
    display: none !important;
}

.horsila-homepage .site-content,
.horsila-homepage .content-area,
.horsila-homepage main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Hide parent theme header/footer on homepage */
.horsila-homepage .site-header,
.horsila-homepage .main-header,
.horsila-homepage #header,
.horsila-homepage .top-bar,
.horsila-homepage .header-wrapper {
    display: none !important;
}

/* Ensure footer shows */
.horsila-homepage .site-footer,
.horsila-homepage .main-footer {
    display: block !important;
}

/* Product page fixes */
.horsila-product-page .product .images { width: 48%; float: left; }
.horsila-product-page .product .summary { width: 48%; float: right; }
.horsila-product-page .woocommerce-tabs { clear: both; padding-top: 3rem; }

/* Shop page grid */
.horsila-shop-page .products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.horsila-shop-page .product { width: 100% !important; float: none !important; margin: 0 !important; }

/* Cart/Checkout clean */
.horsila-cart-page .woocommerce,
.horsila-checkout-page .woocommerce { max-width: 1200px; margin: 0 auto; padding: 2rem; }

/* Loading state for buttons */
.hs-btn.loading { opacity: 0.7; pointer-events: none; }
.hs-btn.loading::after {
    content: '';
    width: 16px; height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Fix for parent theme interference */
#horsila-premium-home * {
    box-sizing: border-box;
}

#horsila-premium-home img {
    max-width: 100%;
    height: auto;
}

/* Ensure z-index hierarchy */
#hs-preloader { z-index: 999999; }
#hsHeader { z-index: 1000; }
#mobileMenu { z-index: 998; }
.hs-toast { z-index: 99999; }
