/* ==========================================================================
   Arun Surgical — Medibazar Child UI fixes
   Loaded after the parent main.css, responsive.css and style.css.

   1. Tokens
   2. Product card
   3. Product details page
   4. Breadcrumb
   5. Related products
   6. Home: category listing
   7. Home: section spacing & alignment
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
	--as-primary: #4e97fd;
	--as-accent: #e4573d;
	--as-heading: #234969;
	--as-text: #333333;
	--as-muted: #6c757d;
	--as-border: #e8edf3;
	--as-border-strong: #d6e2f0;
	--as-card-bg: #ffffff;
	--as-radius: 10px;
	--as-shadow-hover: 0 6px 18px rgba(35, 73, 105, .08);
	--as-ease: .25s ease;
	--as-section-y: 80px;
	--as-title-gap: 40px;
}

@media (max-width: 991px) {
	:root { --as-section-y: 60px; --as-title-gap: 32px; }
}
@media (max-width: 575px) {
	:root { --as-section-y: 40px; --as-title-gap: 24px; }
}

/* 2. Product card — one style for every card the theme outputs:
      .product-03-wrapper  shop / category / related / home "Product Grid" widget
      .product-wrapper     home "Product Tab" widget
   ========================================================================== */
.product-03-wrapper,
.product-wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	height: calc(100% - 30px); /* equal height inside flex columns, keeps the 30px row gap */
	background: var(--as-card-bg) !important; /* overrides .grey-2-bg */
	border: 1px solid var(--as-border);
	border-radius: var(--as-radius);
	padding: 16px 16px 20px;
	margin-bottom: 30px;
	overflow: hidden;
	transition: box-shadow var(--as-ease), border-color var(--as-ease), transform var(--as-ease);
}

.product-03-wrapper:hover,
.product-03-wrapper:focus-within,
.product-wrapper:hover,
.product-wrapper:focus-within {
	border-color: var(--as-border-strong);
	box-shadow: var(--as-shadow-hover);
	transform: translateY(-2px);
}

/* Columns that hold a card stretch so every card in a row is the same height */
.row > [class*="col-"]:has(> .product-03-wrapper),
.row > [class*="col-"]:has(> .product-wrapper),
.klb-product:has(> .product-03-wrapper) {
	display: flex;
	flex-direction: column;
}
.row > [class*="col-"] > .product-03-wrapper,
.row > [class*="col-"] > .product-wrapper,
.klb-product > .product-03-wrapper {
	flex: 1 1 auto;
}
.product-03-wrapper .product-text,
.product-wrapper .product-text {
	margin-top: auto;
	padding-top: 0;
}

/* Consistent square image box */
.product-03-wrapper .product-02-img,
.product-wrapper .product-img {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	border-radius: calc(var(--as-radius) - 4px);
	background: #f8fafc;
	overflow: hidden;
}
.product-03-wrapper .product-02-img > a,
.product-wrapper .product-img > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.product-03-wrapper .product-02-img img,
.product-wrapper .product-img img {
	max-width: 100%;
	max-height: 100%;
	width: auto !important;
	height: auto;
	object-fit: contain;
	transition: transform .35s ease, opacity .3s ease;
}
.product-wrapper .product-img img.secondary-img {
	inset: 0;
	width: 100% !important;
	height: 100%;
	max-height: none;
	background: #f8fafc;
}
.product-03-wrapper:hover .product-02-img img,
.product-wrapper:hover .product-img img:not(.secondary-img) {
	transform: scale(1.04);
}

/* Title: 2 lines max, keeps rows aligned */
.product-03-wrapper .product-text h4,
.product-wrapper .product-text h4,
.col-lg-3 .product-03-wrapper .product-text h4 {
	font-size: 16px;
	line-height: 1.4;
	font-weight: 500;
	margin-bottom: 6px;
	min-height: 2.8em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-03-wrapper .product-text h4 a,
.product-wrapper .product-text h4 a {
	color: var(--as-text);
}
.product-03-wrapper .product-text h4 a:hover,
.product-wrapper .product-text h4 a:hover {
	color: var(--as-primary);
}
.product-03-wrapper .product-text .price,
.product-wrapper .product-text .price,
.product-03-wrapper .product-text > .woocommerce-Price-amount,
.product-wrapper .product-text > span {
	font-size: 16px;
	font-weight: 600;
	color: var(--as-accent);
}
.product-03-wrapper .product-text del,
.product-wrapper .product-text del,
.product-03-wrapper .product-text del .woocommerce-Price-amount,
.product-wrapper .product-text del .woocommerce-Price-amount {
	color: #9aa3ad !important;
	font-weight: 400;
	font-size: 13px;
	margin-right: 4px;
}
.product-03-wrapper .product-text ins,
.product-wrapper .product-text ins {
	text-decoration: none;
}

/* Sale badge */
.product-03-wrapper .pro-tag,
.product-wrapper .pro-tag {
	top: 12px;
	left: 12px;
	z-index: 3;
	border-radius: 4px;
}

/* Action buttons: slide up on hover (desktop), always visible on touch screens */
.product-03-wrapper .product-action,
.product-wrapper .product-action {
	bottom: 10px;
	z-index: 4;
}
.product-03-wrapper:hover .product-action,
.product-wrapper:hover .product-action {
	bottom: 14px;
}
@media (hover: none) {
	.product-03-wrapper .product-action,
	.product-wrapper .product-action {
		opacity: 1;
		bottom: 10px;
	}
}

/* Mobile-first catalogue: 2 cards per row on phones (grid list view excluded) */
@media (max-width: 767px) {
	.row:has(> [class*="col-"] > .product-03-wrapper),
	.row:has(> [class*="col-"] > .product-wrapper) {
		margin-left: -6px;
		margin-right: -6px;
	}
	.row > [class*="col-"]:has(> .product-03-wrapper),
	.row > [class*="col-"]:has(> .product-wrapper) {
		flex: 0 0 50%;
		max-width: 50%;
		padding-left: 6px;
		padding-right: 6px;
	}
}

@media (max-width: 575px) {
	.product-03-wrapper,
	.product-wrapper { padding: 8px 8px 12px; height: calc(100% - 12px); margin-bottom: 12px; }
	.product-03-wrapper .product-02-img,
	.product-wrapper .product-img { margin-bottom: 10px; }
	.product-03-wrapper .pro-tag,
	.product-wrapper .pro-tag { top: 6px; left: 6px; font-size: 11px; padding: 2px 6px; }
	.product-03-wrapper .product-text h4,
	.product-wrapper .product-text h4,
	.col-lg-3 .product-03-wrapper .product-text h4 { font-size: 14px; }
	.product-03-wrapper .product-text .price,
	.product-wrapper .product-text .price { font-size: 14px; }
	.product-03-wrapper .action-btn,
	.product-wrapper .action-btn { width: 36px; height: 36px; line-height: 36px; font-size: 13px; }
}

/* 3. Product details page
   ========================================================================== */
.single-product .klb-child-single {
	padding-top: 40px;
	padding-bottom: 40px;
}

/* Gallery */
.single-product .woocommerce-product-gallery {
	border: 1px solid var(--as-border);
	border-radius: var(--as-radius);
	padding: 16px;
	background: #fff;
	margin-bottom: 30px;
}
.single-product .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	object-fit: contain;
}
.single-product .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px !important;
	padding: 0;
}
.single-product .flex-control-thumbs li {
	width: calc(25% - 7.5px) !important;
	float: none !important;
	list-style: none;
}
.single-product .flex-control-thumbs li img {
	border: 1px solid var(--as-border);
	border-radius: 6px;
	padding: 4px;
	opacity: .7;
	cursor: pointer;
	transition: opacity var(--as-ease), border-color var(--as-ease);
}
.single-product .flex-control-thumbs li img.flex-active,
.single-product .flex-control-thumbs li img:hover {
	opacity: 1;
	border-color: var(--as-primary);
}

/* Summary */
.single-product .product-details-wrapper {
	padding-left: 24px;
}
.single-product .product-details-wrapper .product_title {
	font-size: 28px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--as-heading);
	margin-bottom: 12px;
}
.single-product .product-details-wrapper .woocommerce-product-rating {
	margin-bottom: 12px;
}
.single-product .product-details-wrapper p.price {
	font-size: 24px;
	font-weight: 600;
	color: var(--as-accent);
	margin-bottom: 16px;
}
.single-product .product-details-wrapper p.price del {
	font-size: 18px;
	font-weight: 400;
	color: var(--as-muted);
}
.single-product .woocommerce-product-details__short-description {
	color: var(--as-muted);
	line-height: 1.7;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--as-border);
}

/* Quantity + add to cart on one line, wraps cleanly on small screens */
.single-product .product-details-wrapper form.cart:not(.variations_form),
.single-product .product-details-wrapper .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.single-product .product-details-wrapper form.cart .quantity {
	margin: 0 !important;
}
.single-product .product-details-wrapper form.cart .single_add_to_cart_button {
	margin: 0 !important;
	border-radius: 30px;
	min-height: 50px;
	padding: 0 32px;
}
.single-product .product-details-wrapper table.variations {
	margin-bottom: 16px;
}
.single-product .product-details-wrapper table.variations td,
.single-product .product-details-wrapper table.variations th {
	padding: 6px 0;
	vertical-align: middle;
}

/* Meta (SKU, categories, tags) */
.single-product .product_meta {
	border-top: 1px solid var(--as-border);
	padding-top: 18px;
	margin-top: 10px;
	font-size: 14px;
}
.single-product .product_meta > span {
	padding-bottom: 8px;
	color: var(--as-muted);
}
.single-product .product_meta span.meta-title {
	font-size: 14px;
	display: inline-block;
	min-width: 100px;
}
.single-product .product_meta a {
	color: var(--as-primary);
}

/* Tabs */
.single-product .product-desc-area {
	padding-bottom: 30px;
}
.single-product ul.nav.tabs.wc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	border-bottom: 1px solid var(--as-border);
	padding-bottom: 0;
	margin-bottom: 28px;
}
.single-product .bakix-details-tab ul li a {
	position: relative;
	display: block;
	padding: 0 0 14px;
	font-size: 17px;
	font-weight: 500;
	color: var(--as-muted);
}
.single-product .bakix-details-tab ul li.active a {
	color: var(--as-heading);
}
.single-product .bakix-details-tab ul li.active a:before {
	display: block;
	bottom: -1px;
	width: 100%;
}
.single-product .woocommerce-Tabs-panel {
	line-height: 1.75;
	color: var(--as-muted);
}
.single-product .woocommerce-Tabs-panel table.shop_attributes {
	border: 1px solid var(--as-border);
}
.single-product .woocommerce-Tabs-panel table.shop_attributes th,
.single-product .woocommerce-Tabs-panel table.shop_attributes td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--as-border);
}

@media (max-width: 991px) {
	.single-product .product-details-wrapper { padding-left: 0; }
}
@media (max-width: 575px) {
	.single-product .klb-child-single { padding-top: 20px; padding-bottom: 20px; }
	.single-product .woocommerce-product-gallery { padding: 10px; }
	.single-product .product-details-wrapper .product_title { font-size: 22px; }
	.single-product .product-details-wrapper p.price { font-size: 20px; }
	.single-product .product-details-wrapper form.cart .single_add_to_cart_button { flex: 1 1 auto; }
	.single-product .bakix-details-tab ul li a { font-size: 15px; }
	.plus-minus + button.single_add_to_cart_button { margin-top: 0; }
}

/* 4. Breadcrumb
   ========================================================================== */
/* Shop / single product breadcrumb bar */
.woocommerce-breadcrumb.klb-child-breadcrumb,
.single-product nav.woocommerce-breadcrumb {
	margin: 0;
	padding: 14px 0;
}

.breadcrumb-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.breadcrumb-menu li,
.single-product .breadcrumb-menu li {
	display: inline-flex;
	align-items: center;
	padding-right: 0;
	line-height: 1.5;
}
.breadcrumb-menu li::before,
.single-product .breadcrumb-menu li::before {
	content: "/";
	position: static;
	font-family: inherit;
	font-size: 14px;
	color: #b5bec9;
	padding: 0 10px;
}
.breadcrumb-menu li:first-child::before {
	display: none;
}
.breadcrumb-menu li a,
.single-product .breadcrumb-menu li a {
	font-size: 14px;
	font-weight: 400;
	color: var(--as-muted) !important;
	text-transform: none;
}
.breadcrumb-menu li a:hover {
	color: var(--as-primary) !important;
}
.breadcrumb-menu li span,
.single-product .breadcrumb-menu li span {
	font-size: 14px;
	font-weight: 500;
	color: var(--as-heading);
	text-transform: none;
	max-width: 60ch;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* Banner-style breadcrumb (blog, pages, Elementor breadcrumb widget) */
.breadcrumb-area.pt-125 { padding-top: 90px; }
.breadcrumb-area.pb-125 { padding-bottom: 90px; }
.breadcrumb-area { background-size: cover; background-position: center; }
.breadcrumb-text h1,
.breadcrumb-text h2 {
	position: relative;
	color: #fff;
	font-size: 40px;
	line-height: 1.2;
	margin-bottom: 0;
}
.klb-breadcrumb-wrapper ul.breadcrumb-menu {
	padding: 10px 28px;
	border-radius: 30px;
	box-shadow: 0 4px 14px rgba(35, 73, 105, .1);
}

@media (max-width: 767px) {
	.breadcrumb-area.pt-125 { padding-top: 56px; }
	.breadcrumb-area.pb-125 { padding-bottom: 56px; }
	.breadcrumb-text h1,
	.breadcrumb-text h2 { font-size: 26px; }
	.klb-breadcrumb-wrapper ul.breadcrumb-menu {
		left: 15px;
		right: 15px;
		padding: 8px 18px;
		justify-content: center;
	}
	.breadcrumb-menu li span,
	.single-product .breadcrumb-menu li span { max-width: 22ch; }
	.breadcrumb-menu li a,
	.breadcrumb-menu li span { font-size: 13px; }
	.breadcrumb-menu li::before { padding: 0 6px; }
}

/* 5. Related products
   ========================================================================== */
.single-product .related.products {
	padding-top: 10px;
}
.single-product .product-area.pb-100 {
	padding-bottom: var(--as-section-y);
}
h2.related-title {
	font-size: 24px;
	font-weight: 600;
	color: var(--as-heading);
	border-bottom: 1px solid var(--as-border);
	padding-bottom: 14px;
	margin-bottom: 28px;
}
h2.related-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 60px;
	height: 2px;
	background: var(--as-primary);
}
.related.products .klb-product {
	margin-bottom: 24px;
}
.related.products .klb-product .product-03-wrapper {
	height: 100%;
	margin-bottom: 0;
}
.related.products > .products,
.related.products ul.products {
	margin: 0;
	padding: 0;
}

@media (max-width: 575px) {
	h2.related-title { font-size: 20px; margin-bottom: 20px; }
	.related.products .row { margin-left: -6px; margin-right: -6px; }
	.related.products .klb-product { padding-left: 6px; padding-right: 6px; margin-bottom: 12px; }
}

/* 6. Product category cards
      a) .as-cat-grid  — child-theme component (home widget + category archives)
      b) .row.product-categories .item — legacy / live-site markup, restyled
   ========================================================================== */

/* a) Component ------------------------------------------------------------- */
.as-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.as-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1200px) {
	.as-cat-grid--widget { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
	.as-cat-grid--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* sits beside the sidebar */
}
.as-cat-grid__item { display: flex; margin: 0; }
.as-cat-grid__item::before { display: none; }

.as-cat-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 12px;
	background: var(--as-card-bg);
	border: 1px solid var(--as-border);
	border-radius: var(--as-radius);
	color: var(--as-text);
	text-decoration: none;
	transition: box-shadow var(--as-ease), border-color var(--as-ease), transform var(--as-ease);
}
.as-cat-card:hover,
.as-cat-card:focus-visible {
	border-color: var(--as-border-strong);
	box-shadow: var(--as-shadow-hover);
	transform: translateY(-2px);
	color: var(--as-text);
}
.as-cat-card:focus-visible { outline: 2px solid var(--as-primary); outline-offset: 2px; }

.as-cat-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	margin-bottom: 12px;
	border-radius: calc(var(--as-radius) - 4px);
	background: #f5f8fc;
	overflow: hidden;
}
.as-cat-card__img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
	transition: transform .35s ease;
}
.as-cat-card:hover .as-cat-card__img { transform: scale(1.05); }
.as-cat-card__placeholder {
	font-size: 36px;
	font-weight: 600;
	color: var(--as-primary);
	opacity: .5;
}

.as-cat-card__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 auto;
}
.as-cat-card__title {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
	color: var(--as-heading);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.as-cat-card:hover .as-cat-card__title { color: var(--as-primary); }
.as-cat-card__count {
	font-size: 12px;
	color: var(--as-muted);
}
.as-cat-card__desc {
	display: none; /* phones: name + count only, keeps the grid scannable */
	font-size: 13px;
	line-height: 1.6;
	color: var(--as-muted);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.as-cat-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 500;
	color: var(--as-primary);
}
.as-cat-card__cta svg { transition: transform var(--as-ease); }
.as-cat-card:hover .as-cat-card__cta svg { transform: translateX(3px); }

@media (min-width: 768px) {
	.as-cat-card { padding: 16px; }
	.as-cat-card__title { font-size: 17px; }
	.as-cat-card__count { font-size: 13px; }
	.as-cat-card__desc { display: -webkit-box; }
}

.as-cat-grid__empty {
	padding: 16px;
	border: 1px dashed var(--as-border-strong);
	border-radius: var(--as-radius);
	color: var(--as-muted);
}

/* Category archive: sub-category block above the products */
.as-subcats { margin: 0 0 32px; }
.as-subcats__title {
	font-size: 20px;
	font-weight: 600;
	color: var(--as-heading);
	margin: 0 0 16px;
}
.woocommerce-products-header .term-description {
	color: var(--as-muted);
	line-height: 1.7;
	margin-bottom: 24px;
}
@media (max-width: 575px) {
	.as-subcats { margin-bottom: 24px; }
	.as-subcats__title { font-size: 18px; margin-bottom: 12px; }
	.woocommerce-products-header .term-description { font-size: 14px; margin-bottom: 16px; }
}

/* b) Legacy / live markup: .row.product-categories > col > .item ------------ */
.row.product-categories {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 32px;
}
@media (min-width: 768px) {
	.row.product-categories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
.row.product-categories > [class*="col-"] {
	display: flex;
	width: auto;
	max-width: none;
	padding: 0;
	margin: 0 !important;
}
.product-categories .item {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	padding: 12px;
	background: var(--as-card-bg);
	border: 1px solid var(--as-border);
	border-radius: var(--as-radius);
	box-shadow: none;
	transition: box-shadow var(--as-ease), border-color var(--as-ease), transform var(--as-ease);
}
.product-categories .item:hover {
	border-color: var(--as-border-strong);
	box-shadow: var(--as-shadow-hover);
	transform: translateY(-2px);
}
/* Stack image over title; drop Bootstrap row/col widths */
.product-categories .item > .row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin: 0;
}
.product-categories .item > .row > [class*="col-"] {
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
	padding: 0;
	text-align: left;
}
.product-categories .logo-img a,
.product-categories .logo-img a:hover {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	margin: 0 0 12px;
	border-radius: calc(var(--as-radius) - 4px);
	background: #f5f8fc;
	overflow: hidden;
}
.product-categories .logo-img img,
.product-categories img.img-responsive,
.product-categories img.img-fluid {
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: contain;
	padding: 8px;
	transition: transform .35s ease;
}
.product-categories .item:hover .logo-img img { transform: scale(1.05); }
.product-categories .item h3 {
	margin: 0;
	font-size: 15px;
	line-height: 1.35;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.product-categories .item h3 a { color: var(--as-heading); }
.product-categories .item:hover h3 a { color: var(--as-primary); }
/* Whole card clickable via the title link */
.product-categories .item h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}
.product-categories .item p {
	display: none; /* phones: hide long descriptions */
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: var(--as-muted);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media (min-width: 768px) {
	.product-categories .item { padding: 16px; }
	.product-categories .item h3 { font-size: 17px; }
	.product-categories .item p { display: -webkit-box; }
}

/* 7. Home: section spacing & alignment
   ========================================================================== */
/* The parent's 165px side gutters have no responsive rule */
@media (max-width: 1599px) {
	.pl-165 { padding-left: 60px; }
	.pr-165 { padding-right: 60px; }
}
@media (max-width: 1199px) {
	.pl-165 { padding-left: 15px; }
	.pr-165 { padding-right: 15px; }
}

/* One vertical rhythm for theme widget sections */
.elementor .testimonial-area,
.elementor .deal-area,
.elementor .blog-area,
.elementor .cta-bg {
	padding-top: var(--as-section-y);
	padding-bottom: var(--as-section-y);
}
.elementor .product-area.pb-50,
.elementor .product-area.pb-70,
.elementor .banner-02-area {
	padding-bottom: calc(var(--as-section-y) - 30px); /* cards already add 30px */
}

/* Section titles: same gap under every heading */
.elementor .section-title.mb-25,
.elementor .section-title.mb-30,
.elementor .section-title.mb-35,
.elementor .section-title.mb-40,
.elementor .section-title.mb-50,
.elementor .section-title.mb-65,
.elementor .tab-border.mb-60 {
	margin-bottom: var(--as-title-gap);
}
.elementor .section-title h2 {
	font-size: 30px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--as-heading);
}
@media (max-width: 767px) {
	.elementor .section-title h2 { font-size: 24px; }
	.elementor .section-title,
	.elementor .section-title.text-left { text-align: center; }
	.elementor .b-button.text-md-right,
	.elementor .team-button.text-md-right { text-align: center !important; margin-bottom: var(--as-title-gap); }
}

/* Keep Elementor boxed sections aligned with the theme's 15px gutters */
.elementor-section.elementor-section-boxed > .elementor-container {
	padding-left: 15px;
	padding-right: 15px;
}
.elementor-section .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
	padding: 10px;
}
@media (max-width: 767px) {
	.elementor-section .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
		padding: 8px 0;
	}
	.elementor .hero-text.mt-90 { margin-top: 30px; }
	.elementor .hero-area,
	.elementor .hero-text { text-align: center; }
}

/* Product tab filter row (Product Tab widget) */
@media (max-width: 991px) {
	.elementor .product-nav { margin-top: 12px; }
}
@media (max-width: 575px) {
	.elementor .product-nav {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}
	.elementor .product-nav::-webkit-scrollbar { display: none; }
	.elementor .product-nav a { white-space: nowrap; }

	/* Tighter product-grid gutters on phones */
	.elementor .product-area .row { margin-left: -6px; margin-right: -6px; }
	.elementor .product-area .row > [class*="col-"] { padding-left: 6px; padding-right: 6px; }
}

/* No horizontal page scroll on small screens */
@media (max-width: 767px) {
	html, body { overflow-x: hidden; }
	img { max-width: 100%; height: auto; }
}

/* 8. Shop / category listing: compact mobile spacing + toolbar
   ========================================================================== */
.sh0p-area.pt-100 { padding-top: 60px; }
.sh0p-area.pb-100 { padding-bottom: 60px; }
@media (max-width: 991px) {
	.sh0p-area.pt-100 { padding-top: 40px; }
	.sh0p-area.pb-100 { padding-bottom: 40px; }
}
@media (max-width: 767px) {
	/* banner breadcrumb: pill overlaps the banner bottom, so start content closer */
	.klb-shop-breadcrumb.breadcrumb-area.pt-125 { padding-top: 40px; }
	.klb-shop-breadcrumb.breadcrumb-area.pb-125 { padding-bottom: 44px; }
	.klb-shop-breadcrumb .breadcrumb-text h1,
	.klb-shop-breadcrumb .breadcrumb-text h2 { font-size: 24px; }
	.sh0p-area.pt-100 { padding-top: 36px; }
	.sh0p-area .shop1-sidebar { margin-top: 24px; }
	.woocommerce-products-header .term-description { margin-bottom: 12px; }
}

.as-shop-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 0 0 20px;
	padding: 10px 10px 10px 16px;
	border: 1px solid var(--as-border);
	border-radius: var(--as-radius);
	background: #fff;
}
.as-shop-bar__count { margin: 0; font-size: 14px; font-weight: 500; color: var(--as-muted); }
.as-shop-bar__filters { flex: 1 1 100%; }
.as-shop-bar__filters:empty { display: none; }
.as-sort {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0 !important;
	border: 1px solid var(--as-border);
	border-radius: 999px;
	background: #f8fafc;
	transition: border-color var(--as-ease), box-shadow var(--as-ease);
}
.as-sort:focus-within { border-color: var(--as-primary); box-shadow: 0 0 0 3px rgba(78, 151, 253, .18); }
.as-sort__label {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	margin: 0 !important;
	padding: 0 0 0 14px;
	color: var(--as-heading) !important;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	pointer-events: none;
}
.as-sort__select.orderby {
	height: 40px;
	min-width: 0;
	padding: 0 34px 0 8px !important;
	border: 0 !important;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23234969' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center !important;
	color: var(--as-heading);
	font-size: 14px;
	font-weight: 500;
	text-transform: none;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	box-shadow: none !important;
}
.as-sort__select.orderby:focus { outline: none; }
.as-sort .nice-select { display: none !important; }
@media (max-width: 575px) {
	.as-shop-bar { padding: 8px 8px 8px 12px; margin-bottom: 14px; }
	.as-shop-bar__count { font-size: 13px; }
	.as-sort__select.orderby { max-width: 170px; font-size: 13px; text-overflow: ellipsis; }
}

/* 9. Mobile header + mobile navigation
   ========================================================================== */
@media (max-width: 991px) {
	#sticky-header.main-menu-area { padding-top: 8px; padding-bottom: 8px; }
	#sticky-header .container-fluid > .row { position: relative; align-items: center; }
	/* logo column leaves room for the menu button */
	#sticky-header .row > .col-xl-3.col-lg-3 { flex: 1 1 auto; max-width: 100%; padding-right: 76px; }
	#sticky-header .logo { padding: 4px 0; }
	#sticky-header .logo img,
	#sticky-header .logo img.logo_dark.custom {
		display: block;
		width: auto;
		max-width: 100%;
		max-height: 48px;
		margin: 0;
		object-fit: contain;
	}

	#sticky-header .mobile-menu,
	#sticky-header .mobile-menu .mean-bar { position: static; }
	#sticky-header .row > .col-12 { position: static; padding: 0 15px; }
	#sticky-header .mean-container a.meanmenu-reveal {
		position: absolute;
		top: 30px;
		right: 15px !important;
		left: auto !important;
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		margin: 0;
		padding: 0;
		border: 1px solid var(--as-border);
		border-radius: 12px;
		background: #fff;
		color: var(--as-heading);
		transform: translateY(-50%);
		font-size: 0;
		text-indent: 0;
	}
	#sticky-header .mean-container a.meanmenu-reveal::before { font-size: 20px; line-height: 1; }
	#sticky-header .mean-container a.meanmenu-reveal.meanclose {
		background: var(--as-heading);
		border-color: var(--as-heading);
		color: #fff;
		font-size: 22px;
		line-height: 1;
	}

	/* Menu panel */
	#sticky-header .mean-container .mean-nav {
		margin-top: 10px;
		border: 1px solid var(--as-border);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 16px 40px rgba(15, 23, 42, .12);
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	#sticky-header .mean-container .mean-nav ul li { border-bottom: 1px solid #f1f5f9; }
	#sticky-header .mean-container .mean-nav > ul > li:last-child { border-bottom: 0; }
	#sticky-header .mean-container .mean-nav ul li a {
		float: none;
		width: auto;
		padding: 14px 64px 14px 18px;
		border-top: 0;
		color: var(--as-heading);
		font-size: 15px;
		font-weight: 500;
		line-height: 1.4;
		text-transform: none;
	}
	#sticky-header .mean-container .mean-nav ul li a:hover,
	#sticky-header .mean-container .mean-nav ul li.current-menu-item > a,
	#sticky-header .mean-container .mean-nav ul li.current-menu-ancestor > a { color: var(--as-primary); background: #f8fbff; }
	#sticky-header .mean-container .mean-nav ul li li a {
		padding: 12px 64px 12px 32px;
		font-size: 14px;
		color: #475569;
		opacity: 1;
		background: #fafcff;
	}
	#sticky-header .mean-container .mean-nav ul li li li a { padding-left: 46px; }
	#sticky-header .mean-container .mean-nav ul li a.mean-expand {
		top: 0;
		right: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 52px;
		height: 50px;
		margin: 0;
		padding: 0;
		border: 0;
		border-left: 1px solid #f1f5f9;
		background: transparent;
		color: var(--as-heading);
		font-size: 20px;
		font-weight: 400;
	}
	#sticky-header .mean-container .mean-nav ul li a.mean-expand:hover { background: #f8fbff; }
	#sticky-header .mean-container .mean-nav ul li a.mean-expand.mean-clicked { color: var(--as-primary); }
}

/* 10. Footer
   ========================================================================== */
.as-footer {
	--f-bg: #0b2545;
	--f-bg-2: #082038;
	--f-text: #b9c6d8;
	--f-head: #ffffff;
	--f-line: rgba(255, 255, 255, .1);
	background: var(--f-bg);
	color: var(--f-text);
	font-size: 15px;
}
.as-footer a { color: var(--f-text); transition: color var(--as-ease); }
.as-footer a:hover { color: #fff; }

.as-footer__cta { padding: 36px 0; background: linear-gradient(120deg, #0a3d7a 0%, #1d64b8 100%); }
.as-footer__cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.as-footer__cta-title { margin: 0 0 6px; color: #fff; font-size: 24px; font-weight: 600; line-height: 1.3; }
.as-footer__cta-text { margin: 0; color: rgba(255, 255, 255, .85); }
.as-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.as-fbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}
.as-footer .as-fbtn--light { background: #fff; color: #0a3d7a; }
.as-footer .as-fbtn--light:hover { color: #0a3d7a; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.as-footer .as-fbtn--wa { background: #128c4b; color: #fff; }
.as-footer .as-fbtn--outline { border-color: rgba(255, 255, 255, .6); color: #fff; }
.as-footer .as-fbtn--outline:hover { background: rgba(255, 255, 255, .1); }

.as-footer__main { padding: 56px 0 24px; }
.as-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.5fr; gap: 32px; }
.as-footer .footer-wrapper { margin: 0 !important; padding: 0 !important; }
.as-footer .footer-title,
.as-footer__title {
	position: relative;
	margin: 0 0 18px;
	padding-bottom: 12px;
	color: var(--f-head);
	font-size: 17px;
	font-weight: 600;
}
.as-footer .footer-title::after,
.as-footer__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 36px;
	height: 2px;
	border-radius: 2px;
	background: var(--as-primary);
}
.as-footer .footer-text p { margin: 0 0 18px; color: var(--f-text); line-height: 1.75; }
.as-footer .footer-icon a,
.as-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0 6px 6px 0;
	border: 1px solid var(--f-line);
	border-radius: 50%;
	color: #fff;
}
.as-footer .footer-icon a:hover,
.as-footer__social a:hover { background: var(--as-primary); border-color: var(--as-primary); }
.as-footer__social { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.as-footer__social li { margin: 0; }
.as-footer__social .asb-icon { width: 17px; height: 17px; }

.as-footer .widget_nav_menu ul { margin: 0; padding: 0; list-style: none; }
.as-footer .widget_nav_menu ul li { margin: 0 0 10px; padding: 0; }
.as-footer .widget_nav_menu ul li::before { display: none; }
.as-footer .widget_nav_menu ul li a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 2px 0;
	color: var(--f-text);
	font-size: 15px;
}
.as-footer .widget_nav_menu ul li a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: .5;
}
.as-footer .widget_nav_menu ul li a:hover { color: #fff; transform: translateX(2px); }

.as-footer__branches { margin: 0; padding: 0; list-style: none; }
.as-footer__branches li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0 0 14px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--f-line);
}
.as-footer__branches li:last-child { margin-bottom: 0; border-bottom: 0; }
.as-footer__branches li::before { display: none; }
.as-footer .as-footer__branch-name { color: #fff; font-weight: 600; }
.as-footer__branch-addr { font-size: 14px; line-height: 1.5; }
.as-footer__branch-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 14px; }
.as-footer__branch-links i { margin-right: 4px; color: var(--as-primary); }

.as-footer__bottom { padding: 18px 0; background: var(--f-bg-2); border-top: 1px solid var(--f-line); }
.as-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.as-footer__copy { margin: 0; font-size: 14px; color: var(--f-text); }
.as-footer__copy p { margin: 0; color: inherit; }
.as-footer__menu ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.as-footer__menu li { margin: 0; }
.as-footer__menu a { font-size: 14px; }

@media (max-width: 991px) {
	.as-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
	.as-footer__col--about,
	.as-footer__col--branches { grid-column: 1 / -1; }
	.as-footer__branches { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
}
@media (max-width: 575px) {
	.as-footer { font-size: 14px; }
	.as-footer__cta { padding: 28px 0; }
	.as-footer__cta-title { font-size: 20px; }
	.as-footer__cta-actions { width: 100%; }
	.as-footer__cta-actions .as-fbtn { flex: 1 1 calc(50% - 5px); padding: 0 14px; }
	.as-footer__cta-actions .as-fbtn--outline { flex-basis: 100%; }
	.as-footer__main { padding: 36px 0 12px; }
	.as-footer__grid { gap: 28px 16px; }
	.as-footer__branches { grid-template-columns: 1fr; }
	.as-footer .widget_nav_menu ul li a { font-size: 14px; }
	.as-footer__bottom-inner { flex-direction: column; text-align: center; }
	body:has(.wc-rfq-fab:not(.is-empty)) .as-footer__bottom { padding-bottom: 84px; }
}

/* 11. Side panel navigation (mobile menu + desktop info bar)
   ========================================================================== */
/* The meanmenu dropdown is replaced by the side panel. */
.mean-container .mean-nav { display: none !important; }

html.as-panel-locked,
html.as-panel-locked body { overflow: hidden; }

.extra-info.as-panel {
	display: flex;
	flex-direction: column;
	width: min(88vw, 380px);
	height: 100%;
	height: 100dvh;
	padding: 0;
	background: #fff;
	color: var(--as-text);
	box-shadow: -20px 0 50px rgba(15, 23, 42, .18);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
	z-index: 100002;
	outline: none;
	visibility: hidden;
}
.extra-info.as-panel.info-open { visibility: visible; }
.as-panel-overlay {
	position: fixed;
	inset: 0;
	z-index: 100001;
	background: rgba(15, 23, 42, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
}
.as-panel-overlay.is-visible { opacity: 1; visibility: visible; }

.as-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 14px 20px;
	border-bottom: 1px solid var(--as-border);
}
.as-panel__logo img { display: block; max-height: 40px; width: auto; max-width: 220px; }
.as-panel__logo span { font-size: 18px; font-weight: 700; color: var(--as-heading); }
.as-panel .close-icon.as-panel__close { margin: 0; text-align: right; }
.as-panel__close button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--as-border);
	border-radius: 12px;
	background: #fff;
	color: var(--as-heading);
	cursor: pointer;
}
.as-panel__close button:hover { background: #f8fafc; }

.as-panel__body {
	flex: 1 1 auto;
	padding: 8px 0 calc(24px + env(safe-area-inset-bottom));
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

/* Menu */
.as-panel__menu,
.as-panel__menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.as-panel__menu li { position: relative; margin: 0; border-bottom: 1px solid #f1f5f9; }
.as-panel__menu li::before { display: none; }
.as-panel__menu > li:last-child { border-bottom: 0; }
.as-panel__menu a {
	display: block;
	padding: 14px 60px 14px 20px;
	color: var(--as-heading);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
}
.as-panel__menu a:hover,
.as-panel__menu .current-menu-item > a,
.as-panel__menu .current-menu-ancestor > a { color: var(--as-primary); background: #f8fbff; }
.as-panel__menu .current-menu-item > a { box-shadow: inset 3px 0 0 var(--as-primary); }
.as-panel__menu .menu-item-description,
.as-panel__menu .sub { display: none; }
.as-panel__toggle {
	position: absolute;
	top: 3px;
	right: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--as-muted);
	cursor: pointer;
}
.as-panel__toggle:hover { background: #f1f5f9; color: var(--as-heading); }
.as-panel__toggle svg { transition: transform .2s; }
.as-panel__menu li.is-open > .as-panel__toggle svg { transform: rotate(180deg); }
.as-panel__menu .sub-menu {
	display: none;
	position: static !important;
	width: auto !important;
	margin: 0 !important;
	padding: 4px 0 !important;
	border: 0 !important;
	background: #f8fafc;
	box-shadow: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}
.as-panel__menu li.is-open > .sub-menu { display: block; }
.as-panel__menu .sub-menu li { border-bottom: 0; }
.as-panel__menu .sub-menu a { padding: 11px 56px 11px 34px; font-size: 15px; color: #475569; }
.as-panel__menu .sub-menu .sub-menu a { padding-left: 48px; }

.as-panel__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 16px 20px 4px;
	min-height: 48px;
	border-radius: 999px;
	background: var(--as-heading);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
}

/* Sections */
.as-panel__section { margin: 20px 20px 0; padding-top: 20px; border-top: 1px solid var(--as-border); }
.as-panel__title {
	margin: 0 0 12px;
	color: var(--as-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
}
.as-panel__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.as-panel__qbtn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 64px;
	border: 1px solid var(--as-border);
	border-radius: 12px;
	color: var(--as-heading) !important;
	font-size: 13px;
	font-weight: 600;
}
.as-panel__qbtn i { font-size: 18px; color: var(--as-primary); }
.as-panel__qbtn--wa i { color: #128c4b; }
.as-panel__qbtn:hover { border-color: var(--as-primary); background: #f8fbff; }
.as-panel__info { margin: 0; padding: 0; list-style: none; }
.as-panel__info li { display: flex; gap: 12px; margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: #475569; }
.as-panel__info li::before { display: none; }
.as-panel__info i { flex: 0 0 16px; margin-top: 3px; color: var(--as-primary); text-align: center; }
.as-panel__info a { color: var(--as-heading); word-break: break-word; }

.as-panel__branches { margin: 0; padding: 0; list-style: none; }
.as-panel__branches li { margin: 0; }
.as-panel__branches li::before { display: none; }
.as-panel__branches a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 11px 0;
	border-bottom: 1px solid #f1f5f9;
	color: var(--as-heading);
	font-size: 15px;
	font-weight: 500;
}
.as-panel__branches small { color: var(--as-muted); font-size: 12px; }
.as-panel__branches a:hover { color: var(--as-primary); }

.as-panel__social { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.as-panel__social li { margin: 0; }
.as-panel__social li::before { display: none; }
.as-panel__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--as-border);
	border-radius: 50%;
	color: var(--as-heading);
}
.as-panel__social a:hover { background: var(--as-heading); border-color: var(--as-heading); color: #fff; }
.as-panel__widgets { margin: 20px; }

@media (prefers-reduced-motion: reduce) {
	.extra-info.as-panel, .as-panel-overlay { transition: none; }
}

/* 12. Visual-pass fixes
   ========================================================================== */
/* Hamburger drawn in CSS (theme icon font glyph is unreliable) */
@media (max-width: 991px) {
	#sticky-header .mean-container a.meanmenu-reveal::before {
		content: "" !important;
		display: block;
		width: 20px;
		height: 14px;
		font-family: inherit !important;
		background:
			linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat,
			linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
			linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat;
		border-radius: 1px;
	}
	#sticky-header .mean-container a.meanmenu-reveal span { display: none !important; }
	/* scroll-to-top adds clutter next to the quote / call buttons on phones */
	#scrollUp { display: none !important; }
}

/* Footer CTA: stack on small screens */
@media (max-width: 767px) {
	.as-footer__cta-inner { flex-direction: column; align-items: stretch; }
	.as-footer__cta-inner > div:first-child { min-width: 0; }
}

/* Footer links: keep the chevron inline (theme forces display:block on links) */
.as-footer .widget_nav_menu ul li a { display: inline-flex !important; }

/* Contact-form selects: single arrow */
.wc-rfq-fields select.wc-rfq-input { -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important; }

/* footer chevron: theme positions link ::before absolutely */
.as-footer .widget_nav_menu ul li a::before { position: static !important; top: auto !important; left: auto !important; }

/* 13. Responsive type scale & spacing (mobile first)
   --------------------------------------------------------------------------
   The parent sets fixed desktop sizes (h1 40px, h2 35px, product title 35px)
   with line-height:1, so headings were oversized and cramped on phones.
   One fluid scale, one rhythm. Elementor spacing/heading sizes that only have
   a desktop value are scaled by inc/responsive.php (as-rs-* classes below).
   ========================================================================== */
:root {
	--as-fs-h1: clamp(26px, 1.25rem + 1.9vw, 40px);
	--as-fs-h2: clamp(22px, 1.1rem + 1.3vw, 32px);
	--as-fs-h3: clamp(19px, 1rem + .8vw, 26px);
	--as-fs-h4: clamp(17px, .95rem + .4vw, 21px);
	--as-fs-h5: clamp(15px, .9rem + .2vw, 18px);
	--as-fs-h6: 15px;
}

h1 { font-size: var(--as-fs-h1); line-height: 1.2; }
h2 { font-size: var(--as-fs-h2); line-height: 1.25; }
h3 { font-size: var(--as-fs-h3); line-height: 1.3; }
h4 { font-size: var(--as-fs-h4); line-height: 1.35; }
h5 { font-size: var(--as-fs-h5); line-height: 1.4; }
h6 { font-size: var(--as-fs-h6); line-height: 1.4; }

/* Page / post content headings (parent .klb-post sizes are fixed) */
h1.klb-page-title,
.klb-post h1 { font-size: var(--as-fs-h1); line-height: 1.2; }
.klb-post h2 { font-size: var(--as-fs-h2); line-height: 1.25; }
.klb-post h3 { font-size: var(--as-fs-h3); line-height: 1.3; }
.klb-post h4 { font-size: var(--as-fs-h4); line-height: 1.35; }
.klb-post h5 { font-size: var(--as-fs-h5); }
.klb-post h6 { font-size: var(--as-fs-h6); }
.klb-post h1, .klb-post h2, .klb-post h3,
.klb-post h4, .klb-post h5, .klb-post h6 { margin: 0 0 .6em; }
.klb-post * + h2, .klb-post * + h3, .klb-post * + h4 { margin-top: 1.2em; }
.contact-address-text h4 { font-size: clamp(16px, .9rem + .45vw, 21px); line-height: 1.45; }

/* Hero slider title */
@media (max-width: 767px) {
	.hero-slider-caption h2,
	.hero-text h1,
	.hero-text h2 { font-size: clamp(26px, 7.2vw, 32px) !important; line-height: 1.2 !important; }
}

/* Body copy: a little more air on small screens */
@media (max-width: 767px) {
	p { line-height: 1.7; }
	.klb-post p,
	.elementor-widget-text-editor { font-size: 15px; line-height: 1.7; }
}

/* Elementor: scaled spacing/heading values from inc/responsive.php.
   Only present where the editor left tablet/mobile empty. */
@media (min-width: 768px) and (max-width: 1024px) {
	.as-rs-pt-t { padding-top: var(--as-pt-t) !important; }
	.as-rs-pb-t { padding-bottom: var(--as-pb-t) !important; }
	.as-rs-fs-t .elementor-heading-title { font-size: var(--as-fs-t) !important; }
}
@media (max-width: 767px) {
	.as-rs-pt-m { padding-top: var(--as-pt-m) !important; }
	.as-rs-pb-m { padding-bottom: var(--as-pb-m) !important; }
	.as-rs-fs-m .elementor-heading-title { font-size: var(--as-fs-m) !important; line-height: 1.25 !important; }
}

/* Theme spacing utilities used by page/shop/blog templates */
@media (max-width: 767px) {
	.pt-80, .pt-95, .pt-100, .pt-105 { padding-top: var(--as-section-y); }
	.pb-75, .pb-80, .pb-100, .pb-175 { padding-bottom: var(--as-section-y); }
	.mb-60, .mb-65 { margin-bottom: var(--as-title-gap); }
	.mb-45, .mb-50 { margin-bottom: 28px; }
	.mt-90 { margin-top: 32px; }
	.breadcrumb-area.pt-125 { padding-top: 44px; }
	.breadcrumb-area.pb-125 { padding-bottom: 44px; }
}

/* Consistent 16px side gutter on phones */
@media (max-width: 575px) {
	.container,
	.container-fluid { padding-left: 16px; padding-right: 16px; }
	.row:not(.no-gutters) { margin-left: -8px; margin-right: -8px; }
	.row:not(.no-gutters) > [class*="col"] { padding-left: 8px; padding-right: 8px; }
}

/* 14. Top bar (includes/header/topheader.php)
   Mobile: social left · call/WhatsApp icons right, one 44px row.
   Desktop: text + phone left · branch links, social, account menu right.
   ========================================================================== */
.as-topbar { border-bottom: 1px solid var(--as-border); background: #f7f9fc; font-size: 13px; color: var(--as-muted); }
.as-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1600px;
	min-height: 44px;
	margin: 0 auto;
	padding: 0 30px;
}
.as-topbar__left,
.as-topbar__right { display: flex; align-items: center; gap: 18px; min-width: 0; }
.as-topbar .asb-icon { width: 15px; height: 15px; flex: 0 0 auto; }
.as-topbar a { color: var(--as-heading); text-decoration: none; transition: color var(--as-ease); }
.as-topbar a:hover { color: var(--as-primary); }

.as-topbar__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-topbar__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.as-topbar__boxtext { white-space: nowrap; }

.as-topbar__branches { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.as-topbar__branches > .asb-icon { margin-right: 2px; color: var(--as-primary); }
.as-topbar__branches a { padding: 4px 6px; border-radius: 6px; font-weight: 500; }
.as-topbar__branches a + a { position: relative; }
.as-topbar__branches a + a::before { content: "·"; position: absolute; left: -4px; color: #b5bec9; }
.as-topbar__branches a:hover { background: #fff; }

.as-topbar__social { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.as-topbar__social li { margin: 0; padding: 0; }
.as-topbar__social a {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: var(--as-heading);
}
.as-topbar__social a:hover { background: #fff; color: var(--as-primary); box-shadow: 0 2px 8px rgba(35, 73, 105, .1); }

/* Account / wishlist menu kept on desktop, compact */
.as-topbar__menu ul.header_right { display: flex; align-items: center; gap: 14px; margin: 0; padding: 0; }
.as-topbar__menu ul.header_right > li { margin: 0; padding: 0; }
.as-topbar__menu ul.header_right > li > a { font-size: 13px; line-height: 44px; }
.as-topbar__menu img { width: 24px; height: 24px; border-radius: 50%; }

/* Round icon buttons (mobile only) */
.as-topbar__icon {
	display: none;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--as-heading);
	color: #fff !important;
}
.as-topbar__icon--wa { background: #128c4b; }
.as-topbar__icon .asb-icon { width: 16px; height: 16px; }
.as-topbar__branches-m { display: none; }

/* Desktop separators */
@media (min-width: 992px) {
	.as-topbar__right > * + * { padding-left: 18px; border-left: 1px solid var(--as-border); }
	.as-topbar__left .as-topbar__social { display: none; }
}
@media (max-width: 1199px) {
	.as-topbar__text { display: none; }
}

/* Tablet & phone: one compact row */
@media (max-width: 991px) {
	.as-topbar__inner { min-height: 44px; padding: 0 16px; gap: 10px; }
	.as-topbar__text,
	.as-topbar__phone,
	.as-topbar__boxtext,
	.as-topbar__branches,
	.as-topbar__social--d,
	.as-topbar__menu { display: none !important; }
	.as-topbar__right { gap: 8px; }
	.as-topbar__icon { display: grid; }
	.as-topbar__left .as-topbar__social { gap: 2px; margin-left: -6px; }
	.as-topbar__branches-m { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--as-heading); }
	.as-topbar__branches-m .asb-icon { color: var(--as-primary); }
}

/* 15. Desktop header: menu never wraps under the search/cart
   The parent floats .header-right inside the menu column, leaving the menu
   ~0px slack at 1366–1440px (one extra item or a scrollbar wrapped "Contact Us"
   onto a second 94px line). Flex lets the menu take the remaining width. */
@media (min-width: 992px) {
	.main-menu-area [class*="col-"]:has(> .main-menu) {
		display: flex !important; /* column also has Bootstrap .d-lg-block (!important) */
		align-items: center;
		justify-content: flex-end;
		gap: 24px;
	}
	.main-menu-area [class*="col-"]:has(> .main-menu) > .main-menu { order: 1; flex: 1 1 auto; min-width: 0; }
	.main-menu-area [class*="col-"]:has(> .main-menu) > .header-right {
		order: 2;
		flex: 0 0 auto;
		display: flex;
		flex-direction: row-reverse;
		align-items: center;
		float: none;
	}
	.main-menu-area .main-menu > nav > ul { display: flex; flex-wrap: nowrap; }
	.main-menu-area .main-menu > nav > ul > li { float: none; white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1439px) {
	.main-menu-area .main-menu > nav > ul > li { margin-right: 16px; }
	.main-menu-area .header-right .header-search { width: 200px; margin-right: 18px !important; }
	.main-menu-area .header-right .header-search form,
	.main-menu-area .header-right .header-search input[type="text"],
	.main-menu-area .header-right .header-search input[type="search"] { width: 100%; }
	.main-menu-area .header-right .header-lang { margin-left: 24px !important; }
}

/* Footer credit */
.as-footer__credit { margin: 0; font-size: 13px; color: var(--f-text); }
.as-footer__credit a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); transition: border-color .2s; }
.as-footer__credit a:hover { color: #fff; border-bottom-color: #fff; }

/* Top bar: left text shrinks first, right side never wraps */
.as-topbar__left { flex: 1 1 auto; }
.as-topbar__right { flex: 0 0 auto; }
.as-topbar__menu ul.header_right > li { display: flex; align-items: center; }
.as-topbar__menu ul.header_right > li > a { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; line-height: 1.2; padding: 0; }
.as-topbar__menu ul.header_right > li > a::before { position: static; }
@media (min-width: 992px) and (max-width: 1365px) {
	.as-topbar__text { display: none; }
}

/* Plain pages (Branches, Quote list…): no banner, so 100px top padding left a
   large empty gap under the header. */
.klb-page.pt-100 { padding-top: 56px; }
@media (max-width: 767px) { .klb-page.pt-100 { padding-top: 28px; } }
h1.klb-page-title { margin-bottom: .6em; }
/* Parent hides the last menu item (often "Contact Us") at 921–1204px to make
   room; the flex header above has room, so keep every item visible. */
@media (min-width: 992px) and (max-width: 1204px) {
	.main-menu-area .main-menu > nav > ul > li:last-child { display: block; }
	.main-menu-area .main-menu > nav > ul > li { margin-right: 14px; }
	.main-menu-area .main-menu > nav > ul > li > a { font-size: 15px; }
}
/* Keep the footer credit clear of the floating "Quote list" button */
@media (min-width: 768px) {
	body:has(.wc-rfq-fab:not(.is-empty)) .as-footer__bottom-inner { padding-right: 180px; }
}
