/* Biometrix Equipments – additions on top of the Medilove theme */
:root {
    --bx-primary: #3F85FE;
    --bx-primary-dark: #2a6be0;
    --bx-dark: #0B1B3F;
    --bx-accent: #FFD630;
    --bx-muted: #6c7a91;
    --bx-bg: #f4f6fa;
    --bx-border: #e6e9f0;
}

body { font-family: 'Inter', sans-serif; color: #444; }
img { max-width: 100%; }

/* Theme colour hooks that came from WP customizer inline CSS */
.medilove_count_number, .m_top_btn, .medi-slider-btn, .medilove-banner-btn, .medilove-action > a,
nav.pagination ul .page-numbers.current, .product-sidebar .sidebar_title::before,
.medilove_footer_social a:hover, .medilove_product_tab_head ul li a::before,
.medilove-single-product-description-tab .wc-tabs li.active a { background: var(--bx-primary); }
.medilove-action > a:hover, .m_top_btn:hover, .medi-slider-btn:hover, .medilove-banner-btn:hover { background: var(--bx-dark); color: #fff; }
.medilove_main_menu ul > li:hover > a, .medilove_main_menu ul li .sub-menu li a:hover, .medilove_price span.price bdi,
.medilove_cat_name:hover, .medilove_footer_call_info p a, .medilove_footer_widget ul li a:hover,
.breadcrumb-menu .breadcrumbs ul li a span, .medilove_heading_button_button .medilove_heading_button_btn:hover { color: var(--bx-primary); }
.m-slider-subtitle span, .medilove_product_thumb span.sale { background: var(--bx-accent); color: var(--bx-dark); }

/* Header */
.medilove_logo img { max-height: 48px; width: auto; }
.medilove_main_menu ul > li > a { text-transform: none; }
.medilove_main_menu ul li .sub-menu { min-width: 250px; }
.medilove_main_menu ul li .sub-menu li { position: relative; }
.medilove_main_menu ul li .sub-menu .sub-menu { left: 100%; top: 0; }
.medilove_main_menu ul li .sub-menu.bx-mega { width: 520px; columns: 2; column-gap: 0; max-height: 75vh; overflow-y: auto; }
.medilove_main_menu ul li .sub-menu.bx-mega li { break-inside: avoid; }
.medilove_main_menu ul li .sub-menu li.has-dropdown > a::after { content: "\f105"; font-family: "Font Awesome 5 Pro"; float: right; font-weight: 300; }
.medilove_count_item .fa-whatsapp { font-size: 22px; color: #25D366; }
.medilove_right_cart .medilove_hsearch { margin-right: 20px; }

/* Breadcrumb banner */
.bx-page-title { background: linear-gradient(120deg, #eaf2ff 0%, #f6f9ff 60%, #fff 100%); min-height: 260px; }
.bx-page-title .breadcrumb-title { color: var(--bx-dark); font-size: 40px; }
@media (max-width: 767px) { .bx-page-title .breadcrumb-title { font-size: 28px; } }

/* Hero */
.bx-hero-slide { background: linear-gradient(110deg, #eef4ff 0%, #f7f9fc 55%, #e7f0ff 100%); min-height: 560px; }
.bx-hero-slide .container { min-height: 560px; display: flex; align-items: center; }
.bx-hero-img { position: absolute; right: 2%; top: 50%; transform: translateY(-50%); max-height: 460px; max-width: 46%; object-fit: contain; mix-blend-mode: multiply; }
.bx-hero .medi-slider-title { color: var(--bx-dark); }
.bx-hero .slick-dots { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; list-style: none; padding: 0; }
.bx-hero .slick-dots button { width: 12px; height: 12px; border-radius: 50%; border: 0; background: #c6d6f5; font-size: 0; }
.bx-hero .slick-dots .slick-active button { background: var(--bx-primary); }
@media (max-width: 991px) {
    .bx-hero-slide, .bx-hero-slide .container { min-height: 460px; }
    .bx-hero-img { opacity: .18; max-width: 70%; }
}

/* Features */
.bx-feature { display: flex; gap: 16px; align-items: center; padding: 22px; border: 1px solid var(--bx-border); border-radius: 10px; background: #fff; height: 100%; }
.bx-feature i { font-size: 34px; color: var(--bx-primary); }
.bx-feature h5 { margin: 0 0 4px; font-size: 16px; color: var(--bx-dark); }
.bx-feature p { margin: 0; font-size: 14px; color: var(--bx-muted); }

/* Category tiles */
.bx-subcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.bx-subcats-home { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.bx-subcat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 10px; border: 1px solid var(--bx-border); border-radius: 10px; background: #fff; transition: .25s; }
.bx-subcat:hover { border-color: var(--bx-primary); box-shadow: 0 10px 25px rgba(63,133,254,.12); transform: translateY(-3px); }
.bx-subcat-img { width: 110px; height: 110px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.bx-subcat-img img { max-height: 110px; object-fit: contain; }
.bx-subcat-name { font-weight: 600; color: var(--bx-dark); font-size: 15px; line-height: 1.3; }
.bx-subcat-count { font-size: 13px; color: var(--bx-muted); margin-top: 4px; }

/* Product cards */
.medilove_grid_product_wrapper { background: #fff; border: 1px solid var(--bx-border); border-radius: 10px; padding: 14px 14px 20px; height: calc(100% - 30px); }
.medilove_product_thumb { position: relative; }
.medilove_product_thumb img { aspect-ratio: 1 / 1; object-fit: contain; width: 100%; background: #fff; }
.medilove_product_thumb span.sale { position: absolute; left: 6px; top: 6px; z-index: 2; padding: 2px 10px; border-radius: 30px; font-weight: 600; font-size: 13px; }
.woocommerce-loop-product__title { font-size: 16px !important; line-height: 1.4; color: var(--bx-dark); min-height: 44px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.medilove_price .price del { color: #9aa3b2; font-size: 14px; margin-right: 6px; }
.medilove_price .price ins { text-decoration: none; }
.bx-carousel .slick-track { display: flex; }
.bx-carousel .slick-slide { height: auto; }
.bx-carousel .slick-slide > div, .bx-carousel .slick-slide > div > div { height: 100%; }

/* Sidebar categories */
.bx-cat-tree li { position: relative; }
.bx-cat-tree .count { color: var(--bx-muted); font-size: 13px; }
.bx-cat-tree .children { display: none; padding-left: 16px; margin-top: 6px; }
.bx-cat-tree li.open > .children { display: block; }
.bx-cat-tree .current-cat > a { color: var(--bx-primary); font-weight: 600; }
.bx-toggle { position: absolute; right: 0; top: 0; border: 0; background: none; padding: 0 6px; color: var(--bx-muted); }
.bx-cat-tree li.open > .bx-toggle i { transform: rotate(180deg); }
.medilove-content-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* Rich text from product/category descriptions */
.bx-rich-text { line-height: 1.75; }
.bx-rich-text h2, .bx-rich-text h3, .bx-rich-text h4 { color: var(--bx-dark); margin: 24px 0 12px; font-size: 22px; }
.bx-rich-text ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.bx-rich-text ol { list-style: decimal; padding-left: 22px; margin-bottom: 16px; }
.bx-rich-text li { margin-bottom: 6px; }
.bx-rich-text table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.bx-rich-text td, .bx-rich-text th { border: 1px solid var(--bx-border); padding: 8px 12px; }
.bx-rich-text img { height: auto; }
.bx-cat-desc { border-top: 1px solid var(--bx-border); padding-top: 30px; }

/* Product page */
.bx-gallery-main { display: block; position: relative; border: 1px solid var(--bx-border); border-radius: 12px; background: #fff; padding: 20px; }
.bx-gallery-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.bx-gallery-main .onsale { position: absolute; left: 16px; top: 16px; z-index: 2; background: var(--bx-accent); color: var(--bx-dark); border-radius: 30px; padding: 3px 12px; font-weight: 600; }
.bx-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.bx-thumb { width: 84px; height: 84px; border: 2px solid var(--bx-border); border-radius: 8px; background: #fff; padding: 4px; }
.bx-thumb.active, .bx-thumb:hover { border-color: var(--bx-primary); }
.bx-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bx-summary .product_title { font-size: 30px; color: var(--bx-dark); margin: 8px 0 14px; }
.bx-price { font-size: 24px; font-weight: 700; }
.bx-price del { color: #9aa3b2; font-size: 18px; font-weight: 400; margin-right: 8px; }
.bx-price ins { text-decoration: none; color: var(--bx-primary); }
.bx-stock { font-weight: 600; margin-bottom: 16px; }
.bx-stock.in { color: #1a9b55; } .bx-stock.out { color: #d43c3c; }
.bx-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.product_meta > span { display: block; margin-bottom: 6px; color: var(--bx-muted); }
.product_meta a { color: var(--bx-dark); }
.bx-tabs .wc-tabs { border-bottom: 1px solid var(--bx-border); gap: 6px; }
.bx-tabs .wc-tabs li a { display: inline-block; padding: 12px 24px; border-radius: 8px 8px 0 0; background: var(--bx-bg); color: var(--bx-dark); font-weight: 600; }
.bx-tabs .wc-tabs li a.active { background: var(--bx-primary); color: #fff; }

/* Buttons & forms */
.bx-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--bx-primary); color: #fff !important; border: 2px solid var(--bx-primary);
    padding: 12px 26px; border-radius: 6px; font-weight: 600; transition: .2s; cursor: pointer; }
.bx-btn:hover { background: var(--bx-dark); border-color: var(--bx-dark); }
.bx-btn-wa { background: #25D366; border-color: #25D366; }
.bx-btn-outline { background: transparent; color: var(--bx-primary) !important; }
.bx-btn-outline:hover { color: #fff !important; }
.bx-btn-light { background: #fff; color: var(--bx-primary) !important; border-color: #fff; }
.bx-form .form-control { height: auto; padding: 14px 18px; border: 1px solid var(--bx-border); border-radius: 6px; background: var(--bx-bg); }
.bx-form .form-control:focus { border-color: var(--bx-primary); box-shadow: none; background: #fff; }
.bx-h2 { color: var(--bx-dark); font-size: 34px; }

/* Home banners */
.bx-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 30px; border-radius: 12px;
    background: linear-gradient(120deg, #eaf2ff, #f8fbff); min-height: 210px; overflow: hidden; transition: .25s; }
.bx-banner:hover { box-shadow: 0 12px 30px rgba(11,27,63,.08); }
.bx-banner img { width: 45%; max-height: 170px; object-fit: contain; mix-blend-mode: multiply; }
.bx-banner .medilove-banner-subtitle { color: var(--bx-muted); display: block; margin-bottom: 6px; }
.bx-banner .medilove-banner-title { color: var(--bx-dark); margin-bottom: 18px; }
.bx-banner .medilove-banner-btn { display: inline-block; padding: 8px 18px; border-radius: 4px; color: #fff; font-size: 14px; }

.bx-tab-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.bx-tab-head .nav { gap: 8px; }
.bx-tab-head .nav a { padding: 8px 18px; border-radius: 30px; border: 1px solid var(--bx-border); color: var(--bx-dark); font-weight: 600; }
.bx-tab-head .nav a.active { background: var(--bx-primary); border-color: var(--bx-primary); color: #fff; }

.bx-cta-band { background: linear-gradient(110deg, var(--bx-primary), #1e5fd6); color: #fff; }
.bx-cta-band h3 { color: #fff; font-size: 28px; }
.bx-cta-band p { color: rgba(255,255,255,.85); margin: 0; }

.bx-stat { background: var(--bx-bg); border-radius: 12px; padding: 30px; text-align: center; }
.bx-stat strong { display: block; font-size: 36px; color: var(--bx-primary); }
.bx-stat span { color: var(--bx-dark); font-weight: 600; }
.bx-contact-card { padding: 34px 20px; border: 1px solid var(--bx-border); border-radius: 12px; height: 100%; }
.bx-contact-card .contact-info-icon a { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; align-items: center; justify-content: center;
    background: #eaf2ff; color: var(--bx-primary); font-size: 24px; margin-bottom: 16px; }
.bx-contact-card h4 { color: var(--bx-dark); }

.bx-whatsapp-float { position: fixed; left: 22px; bottom: 22px; z-index: 99; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 8px 20px rgba(0,0,0,.2); }
.bx-whatsapp-float:hover { color: #fff; transform: scale(1.06); }

/* Spam honeypot field: hidden from people, visible to naive bots */
.bx-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
