/**
 * Custom CSS — Kiloue Design System
 * Kill Storefront + Style WooCommerce + Fix all color issues
 */

/* ═══ GLOBAL STOREFRONT KILL ═══ */
body.loutils-theme {
    font-family: Inter, system-ui, sans-serif !important;
    background: #F8FAFC !important;
    color: #475569 !important;
}

/* Hide ALL Storefront chrome */
body.loutils-theme .site-header,
body.loutils-theme .storefront-breadcrumb,
body.loutils-theme .storefront-sorting,
body.loutils-theme .storefront-product-section,
body.loutils-theme .woocommerce-products-header,
body.loutils-theme .hentry .entry-header,
body.loutils-theme .storefront-handheld-footer-bar,
body.loutils-theme .site-footer {
    display: none !important;
}

/* Full-width content */
body.loutils-theme .site-content,
body.loutils-theme .woocommerce-page .site-content,
body.loutils-theme .site-content .col-full,
body.loutils-theme #content > .col-full,
body.loutils-theme .col-full {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove default article padding */
body.loutils-theme article.page,
body.loutils-theme article.product,
body.loutils-theme article.type-page {
    padding: 0 !important;
    margin: 0 !important;
}
body.loutils-theme .entry-content {
    margin: 0 !important;
}

/* Links */
body.loutils-theme a { text-decoration: none; }

/* Headings inherit color */
body.loutils-theme h1, body.loutils-theme h2, body.loutils-theme h3,
body.loutils-theme h4, body.loutils-theme h5, body.loutils-theme h6 {
    color: inherit;
    font-family: Inter, system-ui, sans-serif;
}

/* Footer heading color force */
body.loutils-theme footer h4 { color: white !important; }

/* ═══ WOOCOMMERCE FORM STYLING ═══ */
body.loutils-theme .woocommerce-checkout .form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 6px;
}
body.loutils-theme .woocommerce-checkout .form-row input.input-text,
body.loutils-theme .woocommerce-checkout .form-row textarea,
body.loutils-theme .woocommerce-checkout .form-row select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 15px;
    font-family: Inter, system-ui, sans-serif;
    color: #1E293B;
    background: white;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
body.loutils-theme .woocommerce-checkout .form-row textarea {
    height: auto;
    padding: 12px 16px;
    min-height: 80px;
}
body.loutils-theme .woocommerce-checkout .form-row input.input-text:focus,
body.loutils-theme .woocommerce-checkout .form-row select:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
body.loutils-theme .woocommerce-checkout .form-row .select2-container {
    width: 100% !important;
}
body.loutils-theme .woocommerce-checkout .form-row .select2-container .select2-selection--single {
    height: 48px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 0 16px;
    display: flex;
    align-items: center;
}

/* Payment methods box */
body.loutils-theme .woocommerce-checkout-payment {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
body.loutils-theme .wc_payment_methods {
    padding: 0 !important;
    border: none !important;
}
body.loutils-theme .wc_payment_method {
    padding: 16px !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
    background: white !important;
}
body.loutils-theme .wc_payment_method.payment_method_stripe {
    border-color: #2563EB !important;
}
body.loutils-theme #place_order {
    width: 100%;
    height: 56px;
    background: #F59E0B !important;
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    font-family: Inter, system-ui, sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
body.loutils-theme #place_order:hover {
    background: #D97706 !important;
}

/* ═══ PRODUCT PAGE — Kill WC defaults, our template handles everything ═══ */
body.loutils-theme.single-product .type-product .summary,
body.loutils-theme.single-product .type-product .woocommerce-product-gallery,
body.loutils-theme.single-product .type-product .woocommerce-tabs,
body.loutils-theme.single-product .type-product .related.products,
body.loutils-theme.single-product .type-product .woocommerce-Reviews {
    display: none !important;
}

/* ═══ SHOP / ARCHIVE — Hide default WC wrappers ═══ */
body.loutils-theme .woocommerce-result-count,
body.loutils-theme .woocommerce-ordering {
    display: none !important;
}

/* ═══ CART — Hide default Storefront cart title ═══ */
body.loutils-theme .woocommerce-cart .page-title,
body.loutils-theme .woocommerce-cart .entry-header {
    display: none !important;
}

/* ═══ MY ACCOUNT ═══ */
body.loutils-theme.loutils-myaccount .woocommerce-MyAccount-navigation {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 24px;
}
body.loutils-theme.loutils-myaccount .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
body.loutils-theme.loutils-myaccount .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 10px 16px;
    border-radius: 8px;
    color: #475569;
    font-size: 15px;
    transition: background 0.2s;
}
body.loutils-theme.loutils-myaccount .woocommerce-MyAccount-navigation ul li a:hover {
    background: #F8FAFC;
}
body.loutils-theme.loutils-myaccount .woocommerce-MyAccount-navigation ul li.is-active a {
    background: #EFF6FF;
    color: #2563EB;
    font-weight: 600;
}

/* ═══ LUCIDE STAR ICONS ═══ */
.star-filled { color: #F59E0B; fill: #F59E0B; }
.star-empty { color: #E2E8F0; }

/* ═══ BADGE VERIFIED ═══ */
.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #D1FAE5;
    color: #065F46;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9999px;
}

/* ═══ SAFETY: Kill pointer-events on ALL hidden overlays ═══ */
#mobile-drawer-overlay.hidden,
#filter-drawer-overlay.hidden,
#dash-sidebar-overlay.hidden,
#msg-list-overlay.hidden {
    display: none !important;
    pointer-events: none !important;
}
/* Ensure no invisible overlay captures clicks */
[id$="-overlay"]:not(.active):not([style*="display: block"]) {
    pointer-events: none !important;
}

/* ═══ LEAFLET MAP FIXES ═══ */
#product-map {
    width: 100% !important;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    z-index: 0;
}
#product-map .leaflet-container {
    width: 100% !important;
    height: 100% !important;
}
/* Fix Leaflet tile gaps */
.leaflet-container img {
    max-width: none !important;
}
/* Override Storefront link styles inside map */
body.loutils-theme .leaflet-container a {
    color: #0078A8;
    text-decoration: none;
}
