/*
Theme Name: 		Hema Child
Theme URI: 			https://hema.templateoption.com/
Author: 			TemplateOption Team
Author URI: 		https://www.webtwine.com/
Description: 		hema is ThemeForest WordPress Premium Theme.
Version: 			1.0.0
Requires at least: 	5.9
Tested up to: 		6.0
Requires PHP: 		7
License: 			Themeforest Commercial Licence
License URI: 		https://themeforest.net/licenses/standard
Tags: 				flexible-header, one-column, two-columns, left-sidebar, right-sidebar, custom-colors, custom-menu, editor-style, featured-images, featured-image-header, full-width-template, microformats, post-formats, theme-options, threaded-comments, translation-ready, blog, shop
Template:     		hema
Text Domain: 		hema-child

Theme Custom CSS starts here
------------------------------------------------------------ */

/* BabyGear: category SEO text + FAQ below the product grid */
.bg-category-seo { margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid #e5e5e5; max-width: 60rem; }
.bg-category-seo h2 { font-size: 1.6rem; margin: 0 0 1rem; text-transform: none; }
.bg-category-seo h3 { font-size: 1.25rem; margin: 1.75rem 0 .75rem; text-transform: none; }
.bg-category-seo p, .bg-category-seo li { line-height: 1.7; }
.bg-category-seo ul { padding-left: 1.25rem; list-style: disc; margin-bottom: 1rem; }
.bg-category-seo a { text-decoration: underline; }
.bg-category-seo__faq { margin-top: 2.5rem; }
.bg-category-seo__faq details { border-bottom: 1px solid #e5e5e5; padding: .9rem 0; }
.bg-category-seo__faq summary { cursor: pointer; font-weight: 600; list-style-position: inside; }
.bg-category-seo__faq details p { margin: .6rem 0 0; }

/* BabyGear: product catalogue page (tiles like buvegudri.lv) */
.bg-catalog__group { margin: 0 0 3.5rem; }
.bg-catalog__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.bg-catalog__title { font-size: 1.9rem; margin: 0; text-transform: none; }
.bg-catalog__all { flex-shrink: 0; background: #222; color: #fff !important; padding: .65rem 1.2rem; border-radius: .3rem; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.bg-catalog__all:hover { background: #000; }
.bg-catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.bg-catalog__item a { display: block; text-align: center; border: 1px solid #ececec; border-radius: .5rem; padding: 1rem .75rem; height: 100%; }
.bg-catalog__item a:hover { border-color: #222; }
.bg-catalog__item img { width: 100%; height: 9rem; object-fit: contain; margin-bottom: .5rem; }
.bg-catalog__item h3 { font-size: 1rem; margin: 0 0 .25rem; text-transform: none; }
.bg-catalog__item span { font-size: .85rem; color: #777; }
.bg-catalog-seo { max-width: 60rem; margin: 3rem auto 1rem; }
.bg-catalog-seo h2 { font-size: 1.6rem; text-transform: none; }
.bg-catalog-seo h3 { font-size: 1.2rem; margin-top: 1.5rem; text-transform: none; }
.bg-catalog-seo ul { list-style: disc; padding-left: 1.25rem; }
.bg-catalog-seo a { text-decoration: underline; }
@media (max-width: 767px) {
	.bg-catalog__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
	.bg-catalog__item img { height: 7rem; }
	.bg-catalog__title { font-size: 1.4rem; }
	.bg-catalog__all { padding: .5rem .8rem; font-size: .8rem; }
}

/* BabyGear: Rank Math breadcrumbs inside the HEMA page title bar */
.rank-math-breadcrumb p { margin: 0; font-size: .9rem; }
.rank-math-breadcrumb a { color: inherit; }
.rank-math-breadcrumb .separator { margin: 0 .4rem; opacity: .6; }
.rank-math-breadcrumb .last { font-weight: 600; }

/* BabyGear: shop mega menu */
.bg-mega { padding: 1.75rem 2rem 1.25rem; max-width: 1320px; margin: 0 auto; text-align: left; }
.bg-mega__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.bg-mega__title { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .6rem; padding-bottom: .4rem; border-bottom: 1px solid #e5e5e5; }
.bg-mega ul { list-style: none; margin: 0; padding: 0; }
.bg-mega li a { display: block; padding: .25rem 0; font-size: .92rem; }
.bg-mega li ul { padding-left: .75rem; }
.bg-mega li ul a { font-size: .85rem; opacity: .85; }
.bg-mega a:hover { text-decoration: underline; }
.bg-mega__foot { display: flex; gap: 1.5rem; margin-top: 1.25rem; padding-top: .9rem; border-top: 1px solid #e5e5e5; font-weight: 600; }

/* BabyGear: round 2 fixes */
.page-title-section h1, .page-title-section .page-title, .wt-page-title h1, .page-header h1, .entry-header .page-title { color: #111 !important; }
.bg-mega li ul { padding-left: 1rem !important; margin-left: .25rem !important; border-left: 1px solid #e5e5e5; }
.wt-act-info-links, .product-avl-meta, .wt-trust-badge { display: none !important; }
.bg-stock-delivery { margin: .75rem 0 1rem; }
.bg-stock-delivery p { margin: 0 0 .25rem; }
.bg-stock-delivery .in-stock { color: #3c8a2e; }
.widget_product_categories li.open > ul.children { display: block; }
.widget_product_categories li.current-cat > a { font-weight: 700; }

/* BabyGear: round 3 */
.single-product .woocommerce-variation-description { display: none !important; }
.wt-sticky-cart form.cart { flex-wrap: nowrap !important; align-items: center; gap: .6rem; margin: 0 !important; }
.wt-sticky-cart form.cart .quantity, .wt-sticky-cart form.cart .single_add_to_cart_button { margin: 0 !important; width: auto !important; }
.wt-sticky-cart .wt-buy-now-btn { display: none !important; }

/* BabyGear: homepage hero – text block vertically centred (desktop) */
@media (min-width: 1025px) {
	.elementor-element-4108fc1 .bx-wrap-cont { top: 0 !important; bottom: 0 !important; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
}

/* BabyGear: free-shipping progress bar (cart / mini-cart) */
.wt-free-ship-bar .progress { height: .55rem; border-radius: 1rem; background: #e9e9e9; overflow: hidden; margin: .6rem 0 0 !important; }
.wt-free-ship-bar .progress-bar { font-size: 0 !important; line-height: 0; color: transparent; background: #3c8a2e !important; background-image: none !important; border-radius: 1rem; min-width: .55rem; animation: none !important; }
.wt-free-ship-bar .progress-bar::before, .wt-free-ship-bar .progress-bar::after { display: none !important; }
.wt-free-ship-bar .progress-bar br { display: none; }

/* BabyGear: blog "Lasīt vairāk" buttons – white text */
.read-more-button, .read-more-button:hover, .entry-read-more .btn { color: #fff !important; }

/* BabyGear: footer contact list – icon aligned with the first line of multi-line items */
.elementor-element-9bde01c .list-item { align-items: flex-start !important; }

/* BabyGear: homepage hero on phones – white text over the photo with a dark gradient from the left */
@media (max-width: 767px) {
	.elementor-element-4108fc1 .hwt-banner-bx { position: relative; overflow: hidden; }
	.elementor-element-4108fc1 .hwt-banner-bx .bx-img img { height: 500px !important; width: 100% !important; object-fit: cover; object-position: 62% bottom; }
	.elementor-element-4108fc1 .hwt-banner-bx::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
		background: linear-gradient(to right, rgba(0,0,0,.82) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.15) 85%, rgba(0,0,0,0) 100%); }
	.elementor-element-4108fc1 .bx-wrap-cont { position: absolute !important; inset: 0 !important; z-index: 2; transform: none !important; width: 100% !important; max-width: none !important;
		padding: 1.25rem var(--bg-gutter) !important; display: flex !important; flex-direction: column; justify-content: center; align-items: flex-start !important; background: none !important; }
	.elementor-element-4108fc1 .bx-wrap-cont, .elementor-element-4108fc1 .bx-wrap-cont * { text-align: left !important; color: #fff !important; }
	.elementor-element-4108fc1 .bx-wrap-cont h1 { font-size: 1.7rem !important; line-height: 1.18 !important; max-width: 90%; margin-bottom: .5rem !important; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
	.elementor-element-4108fc1 .bx-wrap-cont .bx-content.wtmob-hide { display: block !important; font-size: .9rem !important; line-height: 1.5; max-width: 88%; margin: 0 0 1rem; }
	.elementor-element-4108fc1 .bx-wrap-cont a { border-color: #fff !important; background: transparent !important; }
	.elementor-element-4108fc1 .bx-wrap-cont a:hover { background: #fff !important; color: #111 !important; }
	/* header stays readable above the dark hero */
	.elementor-element-bceb891 { background-color: #fff !important; }
}

/* BabyGear: mobile off-canvas menu – BabyGear logo, one menu (same links as desktop) */
.mobile-nav-wrapper .mmenu-logo img { content: url("https://babygear.majaslapasparaugs.id.lv/wp-content/uploads/2024/12/BABYGEAR-logo-ar-piedevu-1-Photoroom-4-e1776949996436.png"); width: 170px !important; height: auto !important; max-width: 100%; }
.mobile-nav-wrapper .offcanvas-body > ul.mobile-nav:first-of-type { display: none !important; }

/* BabyGear: product cards on touch screens – hide the hover action stack (cut-off blue boxes) */
@media (max-width: 991px), (hover: none) {
	.wt-product .product-image .button-set.button-icons { display: none !important; }
}

/* BabyGear: consistent responsive side gutters (rem) for header, content and footer.
   Content is capped at --bg-max and always aligns with the header edges, at any browser zoom. */
:root { --bg-gutter: 4rem; --bg-max: 1920px; }
@media (max-width: 1440px) { :root { --bg-gutter: 3rem; } }
@media (max-width: 1199px) { :root { --bg-gutter: 2rem; } }
@media (max-width: 767px)  { :root { --bg-gutter: 1rem; } }

/* full-width rows with a background (header bars): pad so the inner content matches the content edges */
.elementor-element-e69fb44, .elementor-element-bceb891 {
	padding-left: max(var(--bg-gutter), calc((100% - var(--bg-max)) / 2 + var(--bg-gutter))) !important;
	padding-right: max(var(--bg-gutter), calc((100% - var(--bg-max)) / 2 + var(--bg-gutter))) !important;
}
/* boxed Elementor containers and theme containers */
.e-con-boxed > .e-con-inner,
.elementor-section-boxed > .elementor-container,
.container {
	max-width: var(--bg-max) !important;
	width: 100% !important;
	padding-left: var(--bg-gutter) !important;
	padding-right: var(--bg-gutter) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box;
}
/* nested containers must not add the gutter twice */
.container .container, .e-con-inner .container, .container .e-con-boxed > .e-con-inner { padding-left: 0 !important; padding-right: 0 !important; }
/* logo and hero text sit exactly on the same edge as the content */
.elementor-element-08bf5b2 { padding-left: 0 !important; }
@media (min-width: 1025px) {
	.elementor-element-4108fc1 .bx-wrap-cont { left: max(var(--bg-gutter), calc((100% - var(--bg-max)) / 2 + var(--bg-gutter))) !important; right: auto !important; }
}

/* BabyGear: language switcher (GTranslate "dropdown with flags") styled for the dark top bar */
.elementor-element-8ae45f4 .gt_switcher { width: auto !important; font-family: inherit !important; position: relative; line-height: 1; overflow: visible !important; }
.elementor-element-8ae45f4 .gt_switcher .gt_selected { background: transparent !important; border: 1px solid rgba(255,255,255,.35) !important; border-radius: 4px; }
.elementor-element-8ae45f4 .gt_switcher .gt_selected:hover { border-color: rgba(255,255,255,.75) !important; }
.elementor-element-8ae45f4 .gt_switcher .gt_selected a { color: #fff !important; border: 0 !important; width: auto !important; padding: 5px 28px 5px 9px !important; font-size: 12px !important; letter-spacing: .02em; display: flex; align-items: center; gap: 6px; background-color: transparent !important; }
.elementor-element-8ae45f4 .gt_switcher .gt_selected a::after { filter: invert(1); right: 9px !important; opacity: .8; }
.elementor-element-8ae45f4 .gt_switcher .gt_selected a img, .elementor-element-8ae45f4 .gt_switcher .gt_option a img { border-radius: 2px; width: 16px; height: auto; }
.elementor-element-8ae45f4 .gt_switcher .gt_option { position: absolute !important; top: calc(100% + 6px); right: 0; left: auto; min-width: 150px; width: auto !important; background: #fff !important; border: 0 !important; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.18); z-index: 9999; overflow: hidden; }
.elementor-element-8ae45f4 .gt_switcher .gt_option a { color: #222 !important; padding: 9px 12px !important; font-size: 13px !important; display: flex !important; align-items: center; gap: 8px; border: 0 !important; }
.elementor-element-8ae45f4 .gt_switcher .gt_option a:hover { background: #f3f3f3 !important; }
.elementor-element-8ae45f4 .gt_switcher .gt_option a.gt_current { font-weight: 600; }
.elementor-element-8ae45f4 .gt_switcher .gt_option { height: auto !important; max-height: none !important; overflow: hidden !important; }

/* Language switcher — compact on phones (flag + code), list scrolls if needed */
@media (max-width: 767px) {
	.elementor-element-8ae45f4 .gt_switcher .gt_selected { border-color: rgba(255,255,255,.25) !important; }
	.elementor-element-8ae45f4 .gt_switcher .gt_selected a { font-size: 0 !important; padding: 5px 24px 5px 8px !important; gap: 5px; min-height: 26px; }
	.elementor-element-8ae45f4 .gt_switcher .gt_selected a img { order: 0; }
	.elementor-element-8ae45f4 .gt_switcher .gt_selected a::before { order: 1; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: #fff; content: "LV"; }
	.elementor-element-8ae45f4 .gt_switcher .gt_selected a:has(img[alt="en"])::before { content: "EN"; }
	.elementor-element-8ae45f4 .gt_switcher .gt_selected a:has(img[alt="et"])::before { content: "ET"; }
	.elementor-element-8ae45f4 .gt_switcher .gt_selected a:has(img[alt="lt"])::before { content: "LT"; }
	.elementor-element-8ae45f4 .gt_switcher .gt_selected a:has(img[alt="ru"])::before { content: "RU"; }
	.elementor-element-8ae45f4 .gt_switcher .gt_selected a::after { right: 7px !important; }
	.elementor-element-8ae45f4 .gt_switcher .gt_option { min-width: 170px; max-height: 70vh !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
	.elementor-element-8ae45f4 .gt_switcher .gt_option a { padding: 11px 14px !important; font-size: 14px !important; }
	.elementor-element-7afa9e2 { position: relative; z-index: 1001; overflow: visible !important; }
}

/* Mega menu: no hover gap between "Veikals" and the panel (panel sits flush, invisible bridge under the link) */
@media (min-width: 992px) {
	.hwt-menu > li.has-mega-menu > a { position: relative; }
	.hwt-menu > li.has-mega-menu > a::before { content: ""; position: absolute; left: -1rem; right: -1rem; top: 100%; height: 48px; }
	.hwt-menu > li > .hwt-megamenu,
	.hwt-menu > li:hover > .hwt-megamenu { top: 100% !important; }
	.hwt-menu > li > .hwt-megamenu { transition: opacity .2s ease, visibility 0s linear .2s !important; }
	.hwt-menu > li:hover > .hwt-megamenu { transition: opacity .2s ease, visibility 0s !important; }
}
