/* Chorkit child theme additions (SEO / CTA / mobile) */
:root {
	--ck-orange: #ff5e15;
	--ck-navy: #1b1b3f;
	--ck-line: #06c755;
	--ck-border: #e6e6ee;
	--ck-soft: #f6f6fa;
}

/* Title bar H1 keeps the old visual size */
.section-page-header h1.page-title { margin: 0; }

/* Widget titles are <div> now (were H3) */
.widget-title { display: block; }

/* ---------- Buttons ---------- */
.chorkit-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 24px; }
.chorkit-btn,
a.chorkit-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 10px 22px; border-radius: 30px;
	font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none !important;
	border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.chorkit-btn--primary { background: var(--ck-orange); color: #fff !important; border-color: var(--ck-orange); }
.chorkit-btn--primary:hover { background: #e24e0b; border-color: #e24e0b; }
.chorkit-btn--line { background: var(--ck-line); color: #fff !important; border-color: var(--ck-line); }
.chorkit-btn--line:hover { background: #05a647; border-color: #05a647; }
.chorkit-btn--ghost { background: #fff; color: var(--ck-navy) !important; border-color: var(--ck-navy); }
.chorkit-btn--ghost:hover { background: var(--ck-navy); color: #fff !important; }
button.chorkit-btn { cursor: pointer; }
a.button.chorkit-quote-btn {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px;
	background: var(--ck-orange); color: #fff; border-radius: 22px; font-weight: 600;
}

/* ---------- Trust badges ---------- */
.chorkit-badges { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chorkit-badges li { background: var(--ck-soft); border-radius: 10px; padding: 12px 14px; text-align: center; margin: 0; }
.chorkit-badges strong { display: block; font-size: 22px; line-height: 1.2; color: var(--ck-orange); }
.chorkit-badges span { display: block; font-size: 13px; color: var(--ck-navy); }
@media (max-width: 767px) { .chorkit-badges { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Category page long content ---------- */
.chorkit-term-content { margin: 40px 0 20px; color: #444; }
.chorkit-term-content h2 { font-size: 26px; color: var(--ck-navy); margin: 32px 0 12px; }
.chorkit-term-content h3 { font-size: 19px; color: var(--ck-navy); margin: 20px 0 8px; }
.chorkit-table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.chorkit-table-wrap table, .chorkit-landing table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.chorkit-table-wrap th, .chorkit-table-wrap td, .chorkit-landing th, .chorkit-landing td { border: 1px solid var(--ck-border); padding: 9px 12px; text-align: left; }
.chorkit-table-wrap th, .chorkit-landing th { background: var(--ck-navy); color: #fff; font-weight: 600; }
.chorkit-table-wrap tr:nth-child(even) td { background: var(--ck-soft); }
.chorkit-note { font-size: 13px; color: #777; }
.chorkit-steps { counter-reset: step; list-style: none; padding: 0; margin: 12px 0; }
.chorkit-steps li { counter-increment: step; position: relative; padding: 4px 0 12px 44px; margin: 0; }
.chorkit-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ck-orange); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.chorkit-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 10px 0; }
.chorkit-links li { margin: 0; }
.chorkit-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--ck-border); border-radius: 22px; color: var(--ck-navy); }
.chorkit-links a:hover { border-color: var(--ck-orange); color: var(--ck-orange); }

/* ---------- FAQ ---------- */
.chorkit-faq { margin: 32px 0; }
.chorkit-faq h2 { font-size: 26px; color: var(--ck-navy); margin-bottom: 12px; }
.chorkit-faq__item { border: 1px solid var(--ck-border); border-radius: 10px; margin: 0 0 10px; background: #fff; }
.chorkit-faq__item summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; position: relative; min-height: 48px; }
.chorkit-faq__item summary::-webkit-details-marker { display: none; }
.chorkit-faq__item summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--ck-orange); }
.chorkit-faq__item[open] summary::after { content: "–"; }
.chorkit-faq__item summary h3 { display: inline; font-size: 17px; margin: 0; color: var(--ck-navy); font-weight: 600; }
.chorkit-faq__a { padding: 0 16px 12px; color: #444; }

/* ---------- Related box in articles ---------- */
.chorkit-related { margin: 36px 0 10px; padding: 20px 22px; background: var(--ck-soft); border-radius: 12px; }
.chorkit-related h2 { font-size: 20px; margin: 0 0 10px; color: var(--ck-navy); }
.chorkit-related ul { margin: 0 0 14px; padding-left: 20px; }
.chorkit-related li { margin: 4px 0; }
.chorkit-related li a { display: inline-block; padding: 6px 0; color: var(--ck-orange); }
.chorkit-related p { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* ---------- Landing pages ---------- */
.chorkit-landing { color: #444; }
.chorkit-landing .chorkit-lead { font-size: 18px; color: var(--ck-navy); }
.chorkit-landing h2 { font-size: 28px; color: var(--ck-navy); margin: 36px 0 14px; }
.chorkit-landing h3 { font-size: 20px; color: var(--ck-navy); margin: 18px 0 8px; }
.chorkit-landing .products { margin-top: 10px; }

/* ---------- RFQ form ---------- */
.chorkit-rfq { max-width: 860px; }
.chorkit-rfq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 767px) { .chorkit-rfq__grid { grid-template-columns: 1fr; } }
.chorkit-rfq label { display: block; font-weight: 600; color: var(--ck-navy); margin-bottom: 4px; }
.chorkit-rfq input:not([type=hidden]):not([type=file]), .chorkit-rfq textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #ccd; border-radius: 8px; font-size: 16px; }
.chorkit-rfq input[type=file] { min-height: 46px; }
.chorkit-rfq__hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.chorkit-rfq__error { background: #fdecea; color: #a12622; padding: 10px 14px; border-radius: 8px; }
.chorkit-rfq__note { font-size: 13px; color: #777; }
.chorkit-rfq-done { background: #eaf8ef; border-radius: 12px; padding: 22px; }

/* ---------- Mobile sticky contact bar ---------- */
.chorkit-sticky { display: none; }
@media (max-width: 767px) {
	.chorkit-sticky {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		background: #fff; box-shadow: 0 -2px 12px rgba(0,0,0,.12); padding-bottom: env(safe-area-inset-bottom);
	}
	.chorkit-sticky a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 54px; font-weight: 700; font-size: 16px; text-decoration: none; }
	.chorkit-sticky__call { color: var(--ck-navy); }
	.chorkit-sticky__line { background: var(--ck-line); color: #fff !important; }
	.chorkit-sticky__quote { background: var(--ck-orange); color: #fff !important; }
	body { padding-bottom: 54px; }
	/* keep the floating chat button above the bar */
	.chaty-widget, .chaty-i-trigger, #chaty-widget-0, .chaty { bottom: 66px !important; }
}

/* ---------- Mobile performance / tap targets ---------- */
@media (max-width: 767px) {
	/* no parallax / fixed backgrounds on phones */
	.section-page-header, [data-parallax], .elementor-section, .e-con { background-attachment: scroll !important; }
	/* tap targets ≥ 44px */
	.la-breadcrumbs a, .la-breadcrumbs span, .widget_product_categories li a, .widget ul li a, .product_meta a,
	.woocommerce-breadcrumb a, .site-footer .menu li a, .site-footer a[href^="tel:"], .site-footer a[href^="mailto:"] {
		display: inline-flex; align-items: center; min-height: 44px;
	}
}

/* Mobile: content (products) first, sidebar (search / category list) after */
@media (max-width: 991px) {
	.woocommerce-page .site-main .row, .site-main > .container > .row { flex-direction: column !important; }
	.site-main > .container > .row > #site-content { order: 1 !important; }
	.site-main > .container > .row > #sidebar_primary { order: 2 !important; }
}

/* Product category cards: equal height everywhere (every row as tall as the tallest card) */
ul.products.grid-items:has(> li.product-category) { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 1fr; }
ul.products.grid-items:has(> li.product-category)::before, ul.products.grid-items:has(> li.product-category)::after { display: none !important; }
ul.products.grid-items > li.product-category { float: none !important; width: auto !important; display: flex; margin: 0 !important; }
ul.products.grid-items > li.product-category > a { display: flex; flex-direction: column; width: 100%; height: 100%; }
li.product-category .cat-img { aspect-ratio: 1 / 1; width: 100%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; flex: none; }
li.product-category .cat-img img { width: 100%; height: 100%; object-fit: contain; }
li.product-category .cat-information { flex: 1; }
li.product-category .woocommerce-loop-category__title { text-align: center; }
@media (max-width: 991px) { ul.products.grid-items:has(> li.product-category) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575px) { ul.products.grid-items:has(> li.product-category) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Product cards (shop, categories, related, [products]): equal height, square image box */
ul.products.grid-items:has(> li.product:not(.product-category)) { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }
ul.products.grid-items:has(> li.product:not(.product-category))::before,
ul.products.grid-items:has(> li.product:not(.product-category))::after { display: none !important; }
ul.products.grid-items > li.product:not(.product-category) { float: none !important; width: auto !important; margin: 0 !important; display: flex; }
ul.products.grid-items > li.product:not(.product-category) > .product_item--inner { display: flex; flex-direction: column; width: 100%; height: 100%; }
li.product .product_item--thumbnail-holder > a { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
li.product .product_item--thumbnail-holder > a img { width: 100%; height: 100%; object-fit: contain; }
li.product .product_item--info { flex: 1; display: flex; flex-direction: column; }
li.product .product_item--info-inner { flex: 1; }
@media (max-width: 991px) { ul.products.grid-items:has(> li.product:not(.product-category)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { ul.products.grid-items:has(> li.product:not(.product-category)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sidebar product categories: active (current) item */
.widget_product_categories li.current-cat > a,
.widget_product_categories li.current-cat-parent > a {
	color: var(--ck-orange) !important; font-weight: 700; text-decoration: none;
	border-left: 3px solid var(--ck-orange); padding-left: 10px;
}
.widget_product_categories li > a:hover { color: var(--ck-orange); }

/* Product card titles are H2 now (were H3): keep the original look */
h2.product_item--title { font-size: 18px; font-weight: 400; line-height: 1.6; margin: 0 0 5px; text-transform: none; letter-spacing: normal; }
h2.block_heading--title { font-size: 26px; }
.blog-main-loop h2.entry-title, h2.entry-title.h3 { font-size: 20px; line-height: 1.4; }
.elementor-widget-image-box h3.elementor-image-box-title { line-height: 1.2; }

/* Cookie banner (cookiewow): tap targets >= 44px */
.cwc-banner-close-button { min-width: 44px !important; min-height: 44px !important; display: inline-flex !important; align-items: center; justify-content: center; }
.cwc-banner-policy-link { display: inline-flex !important; align-items: center; min-height: 44px; }

/* Homepage hero on phones: 800px first frame (the 1920px image is only for wider screens).
   Overrides the "Hero slider fallback" rule in Customizer → Additional CSS. */
@media (max-width: 767px) {
	body .elementor-element.elementor-element-1da5e84 { background-image: url(/wp-content/uploads/revslider/home-13/banner-slide-1-mobile.jpg.webp); }
}
