/* =============================================================================
   GASTROLINE — Shop & product taxonomy archives (WooCommerce listing UI)
   Loaded only on shop + product category/tag archives.
   Depends on CSS variables from header-b2b.css (:root).
   ============================================================================= */

body.woocommerce-page:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .content-area {
	background: var(--hdr-gray-bg, #f4f6f9);
}

/* ─── Layout wrapper ─────────────────────────────────────────────────────────── */
.woo-shop-layout {
	/* Matches sticky .header-nav-bg height (~52px + 3px border) */
	--woo-shop-sticky-top: 56px;
	--woo-shop-sticky-gap: 8px;
	--woo-shop-sticky-offset: calc(var(--woo-shop-sticky-top) + var(--woo-shop-sticky-gap));
	/* Shared left category sidebar width (shop archive + PDP shell) */
	--gl-shop-sidebar-w: 280px;
	font-size: 1.5rem;
}

body.admin-bar .woo-shop-layout {
	--woo-shop-sticky-offset: calc(32px + var(--woo-shop-sticky-top) + var(--woo-shop-sticky-gap));
}

@media screen and (max-width: 782px) {
	body.admin-bar .woo-shop-layout {
		--woo-shop-sticky-offset: calc(46px + var(--woo-shop-sticky-top) + var(--woo-shop-sticky-gap));
	}
}

/* overflow-x: clip does not create a scroll container (unlike hidden),
   so position:sticky works correctly while still preventing horizontal overflow.
   Applied globally (not just ≥1101px) so mobile/tablet also stay in bounds. */
html:has(body.gl-shop-archive),
body.gl-shop-archive,
html:has(body.gl-cart-page),
body.gl-cart-page,
html:has(body.gl-page-service),
body.gl-page-service,
html:has(body.gl-content-page),
body.gl-content-page,
html:has(body.gl-thankyou-page),
body.gl-thankyou-page {
	overflow-x: clip !important;
}

body.gl-shop-archive .content-area,
body.gl-shop-archive .woo-shop-layout,
body.gl-shop-archive .woo-shop-layout .wrapper,
body.gl-shop-archive .woo-shop-layout .product-category-cst-box,
body.gl-shop-archive .woo-shop-layout .product-category-cst-sidebar,
body.gl-shop-archive .woo-shop-layout .product-category-cst-content,
body.gl-cart-page .content-area,
body.gl-cart-page .woo-shop-layout,
body.gl-cart-page .woo-shop-layout .wrapper,
body.gl-cart-page .woo-shop-layout .product-category-cst-box,
body.gl-cart-page .woo-shop-layout .product-category-cst-sidebar,
body.gl-cart-page .woo-shop-layout .product-category-cst-content,
body.gl-page-service .woo-shop-layout,
body.gl-page-service .woo-shop-layout .wrapper,
body.gl-page-service .woo-shop-layout .product-category-cst-box,
body.gl-page-service .woo-shop-layout .product-category-cst-content,
body.gl-content-page .woo-shop-layout,
body.gl-content-page .woo-shop-layout .wrapper,
body.gl-content-page .woo-shop-layout .product-category-cst-box,
body.gl-content-page .woo-shop-layout .product-category-cst-sidebar,
body.gl-content-page .woo-shop-layout .product-category-cst-content,
body.gl-thankyou-page .content-area,
body.gl-thankyou-page .woo-shop-layout,
body.gl-thankyou-page .woo-shop-layout .wrapper,
body.gl-thankyou-page .woo-shop-layout .product-category-cst-box,
body.gl-thankyou-page .woo-shop-layout .product-category-cst-sidebar,
body.gl-thankyou-page .woo-shop-layout .product-category-cst-content {
	overflow: visible;
}

.woo-shop-layout .product-category-cst-box {
	padding-top: clamp(16px, 2.5vw, 28px);
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: clamp(16px, 2.5vw, 28px);
}

@media (max-width: 1100px) {
	.woo-shop-layout .product-category-cst-box {
		flex-wrap: wrap;
	}
}

.woo-shop-layout .product-category-cst-sidebar {
	flex: 0 0 clamp(220px, 24%, var(--gl-shop-sidebar-w));
	max-width: 100%;
	align-self: flex-start;
}

.woo-shop-layout .product-category-cst-content {
	flex: 1 1 280px;
	min-width: 0;
	width: auto !important;
}

/* ─── Intro / title ─────────────────────────────────────────────────────────── */
.woo-shop-intro {
	margin-bottom: clamp(20px, 3vw, 32px);
}

.woo-shop-intro .woocommerce-products-header__title.page-title {
	margin: 0 0 clamp(8px, 1.5vw, 14px);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--hdr-navy);
}

.woo-shop-intro .term-description,
.woo-shop-intro .woocommerce-products-header .term-description {
	margin-bottom: 0;
	padding: 15px;
	background: var(--hdr-white);
	border: 1px solid #d2d4d4;
	border-radius: var(--hdr-radius);
	box-shadow: none;
	/* Staging category archive — Open Sans regular (400), see style.css */
	font-family: 'Open Sans', Lato, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	color: #4d4d4d;
}

.woo-shop-intro .term-description::after {
	display: none;
}

/* Category description: 2-line clamp + “Vis mer” (legacy collapsible wraps only).
   .gl-cat-seo-intro stays unclamped — full top intro must remain visible. */
.woo-shop-intro .woo-term-desc-wrap {
	margin-bottom: 0;
	padding: 15px;
	background: var(--hdr-white);
	border: 1px solid #d2d4d4;
	border-radius: var(--hdr-radius);
	box-shadow: none;
	font-family: 'Open Sans', Lato, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	color: #4d4d4d;
}

.woo-shop-intro .woo-term-desc-wrap .woo-term-desc__inner.term-description,
.woo-shop-intro .woo-term-desc-wrap .woo-term-desc-inner.term-description {
	padding: 0;
	margin: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	font-family: 'Open Sans', Lato, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	color: #4d4d4d;
}

/* Description H2–H6 — staging computed px (body/p rules live in style.css) */
.woo-shop-intro .term-description h2,
.woo-shop-intro .woo-term-desc__inner h2,
.woo-shop-intro .woo-term-desc-inner h2 {
	font-family: 'Open Sans', Lato, sans-serif !important;
	font-size: 16.5px !important;
	font-weight: 700;
	line-height: 1.4;
	color: #4d4d4d !important;
	margin: 13.695px 0;
	letter-spacing: normal;
}
.woo-shop-intro .term-description h3,
.woo-shop-intro .woo-term-desc__inner h3,
.woo-shop-intro .woo-term-desc-inner h3 {
	font-family: 'Open Sans', Lato, sans-serif !important;
	font-size: 12.87px !important;
	font-weight: 700;
	line-height: 1.4;
	color: #4d4d4d !important;
	margin: 12.87px 0;
	letter-spacing: normal;
}
.woo-shop-intro .term-description h4,
.woo-shop-intro .woo-term-desc__inner h4,
.woo-shop-intro .woo-term-desc-inner h4 {
	font-family: 'Open Sans', Lato, sans-serif !important;
	font-size: 11px !important;
	font-weight: 700;
	line-height: 1.4;
	color: #4d4d4d !important;
	margin: 14.63px 0;
	letter-spacing: normal;
}
.woo-shop-intro .term-description h5,
.woo-shop-intro .woo-term-desc__inner h5,
.woo-shop-intro .woo-term-desc-inner h5 {
	font-family: 'Open Sans', Lato, sans-serif !important;
	font-size: 9.13px !important;
	font-weight: 700;
	line-height: 1.4;
	color: #4d4d4d !important;
	margin: 15.25px 0;
	letter-spacing: normal;
}
.woo-shop-intro .term-description h6,
.woo-shop-intro .woo-term-desc__inner h6,
.woo-shop-intro .woo-term-desc-inner h6 {
	font-family: 'Open Sans', Lato, sans-serif !important;
	font-size: 7.37px !important;
	font-weight: 700;
	line-height: 1.4;
	color: #4d4d4d !important;
	margin: 17.17px 0;
	letter-spacing: normal;
}

.woo-shop-intro .woo-term-desc-wrap:not(.gl-cat-seo-intro):not(.is-expanded):not(.is-measuring) .woo-term-desc__inner,
.woo-shop-intro .woo-term-desc-wrap:not(.gl-cat-seo-intro):not(.is-expanded):not(.is-measuring) .woo-term-desc-inner {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
}

.woo-shop-intro .woo-term-desc-wrap.is-measuring .woo-term-desc__inner,
.woo-shop-intro .woo-term-desc-wrap.is-measuring .woo-term-desc-inner {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	overflow: visible;
}

.woo-shop-intro .woo-term-desc-wrap.is-expanded .woo-term-desc__inner,
.woo-shop-intro .woo-term-desc-wrap.is-expanded .woo-term-desc-inner {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	overflow: visible;
}

.woo-term-desc__toggle {
	display: inline-flex;
	align-items: center;
	margin-top: clamp(10px, 1.5vw, 14px);
	padding: 10px 18px;
	font-family: var(--hdr-font);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--hdr-navy);
	background: transparent;
	border: 2px solid var(--hdr-navy);
	border-radius: var(--hdr-radius);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.woo-term-desc__toggle:hover {
	background: var(--hdr-navy);
	color: var(--hdr-white);
}

.woo-term-desc__toggle:focus-visible {
	outline: 2px solid var(--hdr-red);
	outline-offset: 3px;
}

.woo-term-desc-wrap--short .woo-term-desc__toggle {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.woo-term-desc__toggle {
		transition: none;
	}
}

/* ─── Sorting toolbar ───────────────────────────────────────────────────────── */
.woo-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: clamp(10px, 1.5vw, 14px) clamp(14px, 2vw, 24px);
	margin-bottom: clamp(20px, 3vw, 28px);
	padding: clamp(12px, 1.5vw, 16px) clamp(14px, 2vw, 20px);
	background: var(--hdr-white);
	border: 1px solid var(--hdr-gray-brd);
	border-radius: var(--hdr-radius);
}

.woo-shop-layout .woocommerce-result-count,
.woo-shop-layout .woocommerce-ordering {
	display: block !important;
	margin: 0 !important;
	float: none !important;
}

.woo-shop-layout .woocommerce-result-count {
	font-size: 1.5rem;
	color: var(--hdr-muted);
}

.woo-shop-layout .woocommerce-ordering select {
	min-height: 3.25rem;
	padding: 8px 36px 8px 14px;
	font-size: 1.5rem;
	font-family: var(--hdr-font);
	color: var(--hdr-body, #1a2333);
	border: 1px solid var(--hdr-gray-brd);
	border-radius: var(--hdr-radius);
	background-color: var(--hdr-white);
	cursor: pointer;
}

.woo-shop-layout .woocommerce-ordering select:focus-visible {
	outline: 2px solid var(--hdr-red);
	outline-offset: 2px;
}

/* ─── Shop sidebar (widgets + category nav) ─────────────────────────────────── */
.woo-shop-sidebar {
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 2vw, 20px);
}

/* ─── Sidebar search — hidden globally ──────────────────────────────────────── */
.gl-sidebar-search {
	display: none !important;
}

/* Accordion replaces legacy WC category widget — hide duplicate if still output */
.woo-shop-layout .woo-shop-sidebar .widget_product_categories {
	display: none !important;
}

.woo-shop-layout .woo-shop-sidebar .widget {
	background: var(--hdr-white);
	border: 1px solid var(--hdr-gray-brd);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	margin: 0;
	padding: 0;
}

/* Kill legacy chevron bullets + harsh red fills inside shop sidebar only */
.woo-shop-layout .woo-shop-sidebar .product-categories .cat-item::before,
.woo-shop-layout .woo-shop-sidebar .product-categories .cat-item:hover::before {
	display: none !important;
	content: none !important;
}

.woo-shop-layout .widget_product_categories .widget-title,
.woo-shop-layout .widget_product_categories h3,
.woo-shop-layout .woo-shop-sidebar .widget .widget-title,
.woo-shop-layout .woo-shop-sidebar .widget .widgettitle,
.woo-shop-layout .woo-shop-sidebar .widget > h2:first-child {
	margin: 0;
	background: linear-gradient(135deg, var(--hdr-navy) 0%, var(--hdr-navy-dk, #002a4f) 100%);
	color: var(--hdr-white);
	padding: clamp(14px, 2vw, 18px) clamp(16px, 2.2vw, 20px);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.02em;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Text / custom HTML widgets */
.woo-shop-layout .woo-shop-sidebar .widget.widget_text .textwidget {
	padding: clamp(14px, 2vw, 18px) clamp(16px, 2.2vw, 20px);
	font-size: 1.5rem;
	line-height: 1.55;
	color: var(--hdr-body, #1a2333);
}

/* Legacy Produsenter text widget — replaced by .woo-cat-accordion--producers */
.woo-shop-layout .woo-shop-sidebar .producers-widget {
	display: none !important;
}

/* Produsenter — image-only grid (2 per row), below categories */
.woo-shop-layout .woo-shop-sidebar .woo-cat-accordion--producers {
	flex-shrink: 0;
	margin-top: clamp(16px, 2.5vw, 28px);
}

.woo-producers-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 8px;
	list-style: none;
	max-height: min(300px, 40vh);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.woo-producers-grid__item {
	margin: 0;
	padding: 0;
	border: none !important;
}

.woo-producers-grid__link {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1.55 / 1;
	min-height: 56px;
	padding: 6px 8px !important;
	background: #fff;
	border: 1px solid var(--hdr-gray-brd, #e2e6ea);
	border-radius: 6px;
	text-decoration: none;
	overflow: hidden;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.woo-producers-grid__link:hover {
	border-color: var(--hdr-navy, #003b6b);
	box-shadow: 0 2px 10px rgba(0, 35, 75, 0.1);
	transform: translateY(-1px);
	padding-left: 8px !important;
	background: #fff;
}

.woo-producers-grid__img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}

.woo-producers-grid__item.is-current .woo-producers-grid__link,
.woo-shop-layout .woo-cat-accordion--producers .woo-producers-grid__item.is-current > .woo-producers-grid__link {
	border-color: var(--hdr-red, #b80000);
	box-shadow: inset 0 0 0 1px var(--hdr-red, #b80000);
	background: #fff;
	font-weight: inherit;
	color: inherit;
}

.woo-cat-acc__label {
	flex: 1;
	min-width: 0;
}

#breadcrumbs a:hover {
    color: #cd1e1e;
}

/* Category list */
.woo-shop-layout .woo-shop-sidebar ul.product-categories {
	border: none !important;
	margin: 0;
	padding: clamp(6px, 1vw, 10px) 0 clamp(10px, 1.5vw, 14px);
	list-style: none !important;
}

.woo-shop-layout .woo-shop-sidebar .product-categories > .cat-item {
	border: none !important;
	border-bottom: 1px solid var(--hdr-gray-brd) !important;
}

.woo-shop-layout .woo-shop-sidebar .product-categories > .cat-item:last-child {
	border-bottom: none !important;
}

.woo-shop-layout .woo-shop-sidebar .product-categories li.cat-item > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: clamp(12px, 1.8vw, 16px) clamp(14px, 2vw, 18px);
	font-size: 1.5rem;
	font-weight: 600;
	color: #444 !important;
	text-decoration: none;
	border-left: 4px solid transparent;
	transition: background var(--hdr-transition, 0.2s ease), color var(--hdr-transition, 0.2s ease), border-color 0.2s ease;
}

.woo-shop-layout .woo-shop-sidebar .product-categories li.cat-item > a::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--hdr-muted);
	border-bottom: 2px solid var(--hdr-muted);
	transform: rotate(-45deg);
	flex-shrink: 0;
	opacity: 0.35;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.woo-shop-layout .woo-shop-sidebar .product-categories li.cat-item > a:hover {
	background: rgba(0, 59, 107, 0.06) !important;
	color: var(--hdr-navy) !important;
}

.woo-shop-layout .woo-shop-sidebar .product-categories li.cat-item > a:hover::after {
	opacity: 0.85;
	border-color: var(--hdr-navy);
}

.woo-shop-layout .woo-shop-sidebar .product-categories li.cat-item > a:focus-visible {
	outline: 2px solid var(--hdr-red);
	outline-offset: -2px;
}

/* Active trail */
.woo-shop-layout .woo-shop-sidebar .product-categories > li.current-cat > a,
.woo-shop-layout .woo-shop-sidebar .product-categories > li.current-cat-parent > a {
	border-left-color: var(--hdr-red);
	background: rgba(0, 59, 107, 0.08) !important;
	color: var(--hdr-navy) !important;
	font-weight: 700;
}

.woo-shop-layout .woo-shop-sidebar .product-categories > li.current-cat > a::after,
.woo-shop-layout .woo-shop-sidebar .product-categories > li.current-cat-parent > a::after {
	opacity: 1;
	border-color: var(--hdr-red);
}

/* Nested subcategories */
.woo-shop-layout .woo-shop-sidebar .product-categories .children {
	display: none;
	margin: 0;
	padding: 0 0 8px 0;
	list-style: none !important;
	background: rgba(0, 59, 107, 0.03);
	border-top: 1px solid var(--hdr-gray-brd);
	border-left: 3px solid rgba(184, 0, 0, 0.35);
	margin-left: 0;
}

.woo-shop-layout .woo-shop-sidebar .product-categories li.current-cat > .children,
.woo-shop-layout .woo-shop-sidebar .product-categories li.current-cat-parent > .children {
	display: block !important;
}

.woo-shop-layout .woo-shop-sidebar .product-categories .children .cat-item {
	border: none !important;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.woo-shop-layout .woo-shop-sidebar .product-categories .children .cat-item:last-child {
	border-bottom: none !important;
}

.woo-shop-layout .woo-shop-sidebar .product-categories .children .cat-item > a {
	padding-left: clamp(22px, 3vw, 28px);
	font-weight: 600;
	border-left-width: 3px;
	font-size: 1.5rem;
	color: #444 !important;
}

.woo-shop-layout .woo-shop-sidebar .product-categories .children .cat-item > a:hover {
	background: rgba(255, 255, 255, 0.85) !important;
	color: var(--hdr-navy) !important;
}

.woo-shop-layout .woo-shop-sidebar .product-categories .children li.current-cat > a {
	border-left-color: var(--hdr-red);
	background: rgba(255, 255, 255, 0.95) !important;
	color: var(--hdr-navy) !important;
	font-weight: 700;
}

/* WooCommerce layered nav / filter widgets */
.woo-shop-layout .woo-shop-sidebar .woocommerce-widget-layered-nav ul,
.woo-shop-layout .woo-shop-sidebar .widget_layered_nav ul,
.woo-shop-layout .woo-shop-sidebar .widget_rating_filter ul {
	margin: 0;
	padding: clamp(8px, 1.2vw, 12px) 0;
	list-style: none;
}

.woo-shop-layout .woo-shop-sidebar .woocommerce-widget-layered-nav li,
.woo-shop-layout .woo-shop-sidebar .widget_layered_nav li {
	border-bottom: 1px solid var(--hdr-gray-brd);
}

.woo-shop-layout .woo-shop-sidebar .woocommerce-widget-layered-nav li:last-child,
.woo-shop-layout .woo-shop-sidebar .widget_layered_nav li:last-child {
	border-bottom: none;
}

.woo-shop-layout .woo-shop-sidebar .woocommerce-widget-layered-nav a,
.woo-shop-layout .woo-shop-sidebar .widget_layered_nav a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: clamp(12px, 1.8vw, 16px) clamp(14px, 2vw, 18px);
	font-size: 1.5rem;
	font-weight: 600;
	color: #444;
	text-decoration: none;
	transition: background 0.2s ease;
}

.woo-shop-layout .woo-shop-sidebar .woocommerce-widget-layered-nav a:hover,
.woo-shop-layout .woo-shop-sidebar .widget_layered_nav a:hover {
	background: rgba(0, 59, 107, 0.06);
	color: var(--hdr-navy);
}

/* ─── Sidebar (desktop only — ≥1101px) ───────────────────────────────── */
@media (min-width: 1101px) {
	.woo-shop-layout .product-category-cst-sidebar {
		position: static;
		align-self: flex-start;
		flex: 0 0 var(--gl-shop-sidebar-w);
		width: var(--gl-shop-sidebar-w) !important;
		max-width: var(--gl-shop-sidebar-w);
		min-width: 0;
	}

	.woo-shop-layout .product-category-cst-content {
		flex: 1 1 0 !important;
		min-width: 0 !important;
		width: auto !important;
		max-width: none;
	}

	.woo-shop-layout .woo-shop-sidebar {
		display: flex;
		flex-direction: column;
		gap: clamp(14px, 2vw, 20px);
	}

	.woo-shop-layout .woo-shop-sidebar > .woo-cat-accordion,
	.woo-shop-layout .woo-shop-sidebar > .widget {
		flex-shrink: 0;
	}
}

/* ─── Main shop: top-level categories only (3 × 10 grid = 30 per page) ─────── */
body.gl-shop-main-categories .woo-shop-layout .product-category-cst-content ul.products.product-list-box {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 768px) and (max-width: 991px) {
	body.gl-shop-main-categories .woo-shop-layout .product-category-cst-content ul.products.product-list-box {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	body.gl-shop-main-categories .woo-shop-layout .product-category-cst-content ul.products.product-list-box {
		grid-template-columns: 1fr !important;
	}
}

/* ─── Product & category grid ───────────────────────────────────────────────── */
/* ul.products restored in loop-start.php; .product-list-box kept for legacy hooks */

.woo-shop-layout .product-category-cst-content ul.products.product-list-box {
	display: grid !important;
	flex-wrap: unset !important;
	justify-content: unset !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: clamp(18px, 2.8vw, 32px);
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	clear: both !important;
	width: 100% !important;
}

@media (min-width: 1200px) {
	.woo-shop-layout .product-category-cst-content ul.products.product-list-box {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

.woo-shop-layout .product-category-cst-content ul.products::before,
.woo-shop-layout .product-category-cst-content ul.products::after {
	display: none !important;
	content: none !important;
}

.woo-shop-layout .product-category-cst-content ul.products li.product {
	display: flex;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	padding: 0 !important;
}

/* ─── Category tiles (subcategories in loop) ────────────────────────────────── */
/* Override legacy .product-list-box flex + 30% width from style.css */
.woo-shop-layout .product-category-cst-content ul.products.product-list-box > li.product-category,
.woo-shop-layout ul.products li.product-category {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	margin-right: 0 !important;
	float: none !important;
	padding: 0 !important;
	list-style: none;
	text-align: center;
	height: auto !important;
	min-height: 0;
	background: var(--hdr-white);
	border: 1px solid var(--hdr-gray-brd) !important;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05), 0 2px 14px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
	position: relative;
}

/* Red top accent on hover */
.woo-shop-layout ul.products li.product-category::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--hdr-red, #b80000);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.3s ease;
	z-index: 2;
}

.woo-shop-layout ul.products li.product-category:hover::before {
	transform: scaleX(1);
}

.woo-shop-layout ul.products li.product-category:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07), 0 20px 48px rgba(0, 59, 107, 0.1);
	border-color: rgba(0, 59, 107, 0.18) !important;
}

.woo-shop-layout ul.products li.product-category > a {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	height: 100%;
	min-height: 100%;
	text-decoration: none;
	color: inherit;
	outline: none;
}

.woo-shop-layout ul.products li.product-category > a:focus-visible {
	box-shadow: inset 0 0 0 3px var(--hdr-red);
	border-radius: 12px;
}

/* 4:3 media stage — image fills the frame, no crop, no outer padding */
.woo-shop-layout ul.products li.product-category .woo-cat-card__media {
	display: block;
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: auto;
	height: 305px;
	min-height: 305px;
	max-height: 305px;
	padding: 0;
	box-sizing: border-box;
	background: #ffffff;
	border-bottom: 1px solid var(--hdr-gray-brd);
	overflow: hidden;
	position: relative;
}

.woo-shop-layout .product-category-cst-content ul.products.product-list-box li.product-category img,
.woo-shop-layout ul.products li.product-category .woo-cat-card__media img,
.woo-shop-layout ul.products li.product-category img {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: 100% !important;
	max-height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	aspect-ratio: unset;
	object-fit: contain;
	object-position: center center;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-size: unset !important;
	background-position: unset !important;
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease;
}

/* Absolute fill so contain always uses the full 4:3 box */
.woo-shop-layout ul.products li.product-category .woo-cat-card__media > a,
.woo-shop-layout ul.products li.product-category .woo-cat-card__media > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.woo-shop-layout ul.products li.product-category .woo-cat-card__media > a {
	display: flex;
	align-items: center;
	justify-content: center;
}

.woo-shop-layout ul.products li.product-category .woo-cat-card__media > a img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	object-position: center center;
}

.woo-shop-layout ul.products li.product-category:hover img {
	transform: scale(1.07);
	opacity: 1;
}

/* Product count pill — hidden sitewide */
.woo-shop-layout ul.products li.product-category mark.count {
	display: none !important;
}

/* Category title footer */
.woo-shop-layout ul.products li.product-category h2,
.woo-shop-layout ul.products li.product-category .woocommerce-loop-category__title {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	width: 100%;
	margin: 0 !important;
	padding: clamp(14px, 2vw, 20px) clamp(16px, 2.2vw, 22px);
	font-size: clamp(14px, 1.5rem, 16px) !important;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	color: var(--hdr-dark, #0c1c2e);
	border-top: 1px solid var(--hdr-gray-brd);
	background: #fff;
	flex-grow: 1;
	transition: color 0.2s ease, background 0.2s ease;
	position: relative;
}

/* Chevron arrow — appears on hover */
.woo-shop-layout ul.products li.product-category h2::after,
.woo-shop-layout ul.products li.product-category .woocommerce-loop-category__title::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b80000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.woo-shop-layout ul.products li.product-category:hover h2::after,
.woo-shop-layout ul.products li.product-category:hover .woocommerce-loop-category__title::after {
	opacity: 1;
	transform: translateX(0);
}

.woo-shop-layout ul.products li.product-category:hover .woocommerce-loop-category__title {
	color: var(--hdr-red, #b80000);
	background: #fff8f8;
}

/* ─── Produsent parent only: compact manufacturer logo cards ─────────────────── */
/* MAIN CONTENT ONLY — never .woo-shop-sidebar / .woo-cat-accordion.
   Scoped to manufacturers parent archive:
   Local slug: term-produsent | production slug: term-produsenter |
   PHP also adds .gl-produsent-archive when that parent term is viewed. */
body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products.product-list-box {
	/* Manufacturer cats → 5 per row on desktop */
	grid-template-columns: repeat(5, minmax(0, 1fr));
	grid-template-rows: none;
	gap: clamp(12px, 1.6vw, 18px);
}

body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category .woo-cat-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px !important;
	min-height: 120px !important;
	max-height: 120px !important;
	aspect-ratio: auto;
	padding: 16px 20px !important;
	box-sizing: border-box;
	overflow: hidden;
}

/* Override absolute-fill from category cards — flex + padding keeps logos fully visible */
body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category .woo-cat-card__media > a {
	position: static !important;
	inset: auto !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
}

body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category .woo-cat-card__media > img {
	position: static !important;
	inset: auto !important;
	display: block;
}

body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products.product-list-box li.product-category img,
body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category .woo-cat-card__media img,
body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category img {
	position: static !important;
	inset: auto !important;
	transform: none !important;
	/* Leave room inside the padded media box so edge-flush logo assets don't look cropped */
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center;
}

body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category h2,
body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category .woocommerce-loop-category__title {
	padding: 10px 12px;
}

/* No hover zoom — scale would clip logos inside the compact media box */
body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category:hover img {
	transform: none !important;
}

@media (max-width: 1199px) {
	body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products.product-list-box {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		grid-template-rows: none;
	}

	body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category .woo-cat-card__media {
		height: 104px !important;
		min-height: 104px !important;
		max-height: 104px !important;
		padding: 12px 14px !important;
	}
}

@media (max-width: 991px) {
	body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products.product-list-box {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: none;
	}

	body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category .woo-cat-card__media {
		height: 112px !important;
		min-height: 112px !important;
		max-height: 112px !important;
		padding: 14px 16px !important;
	}
}

@media (max-width: 767px) {
	body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products.product-list-box {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		grid-template-rows: none;
	}

	body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category .woo-cat-card__media {
		height: 104px !important;
		min-height: 104px !important;
		max-height: 104px !important;
		padding: 12px 14px !important;
	}
}

@media (max-width: 480px) {
	body:is(.gl-produsent-archive, .term-produsent, .term-produsenter) .woo-shop-layout .product-category-cst-content ul.products li.product-category .woo-cat-card__media {
		height: 96px !important;
		min-height: 96px !important;
		max-height: 96px !important;
		padding: 10px 12px !important;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.woo-shop-layout ul.products li.product-category,
	.woo-shop-layout ul.products li.product-category::before,
	.woo-shop-layout ul.products li.product-category img,
	.woo-shop-layout ul.products li.product-category .woocommerce-loop-category__title,
	.woo-shop-layout ul.products li.product-category h2::after,
	.woo-shop-layout ul.products li.product-category .woocommerce-loop-category__title::after {
		transition: none;
		animation: none;
	}

	.woo-shop-layout ul.products li.product-category:hover {
		transform: none;
	}

	.woo-shop-layout ul.products li.product-category:hover img {
		transform: none;
	}

	.woo-shop-layout ul.products li.product-category:hover::before {
		transform: scaleX(1);
	}

	.woo-shop-layout ul.products li.product-category:hover h2::after,
	.woo-shop-layout ul.products li.product-category:hover .woocommerce-loop-category__title::after {
		opacity: 1;
		transform: none;
	}
}

/* Product cards: see css/product-card-b2b.css (global system) */

/* ─── Extra category description (ACF) ──────────────────────────────────────── */
.woo-shop-layout .product-cat-desc {
	margin-top: 20px;
	padding: 15px;
	background: var(--hdr-white);
	border: 1px solid #d2d4d4;
	border-radius: var(--hdr-radius);
	font-family: 'Open Sans', Lato, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	color: #4d4d4d;
}

/* Bottom/ACF category description headings — staging computed px */
.woo-shop-layout .product-cat-desc h2 {
	font-family: 'Open Sans', Lato, sans-serif !important;
	font-size: 16.5px !important;
	font-weight: 700;
	line-height: 1.4;
	color: #4d4d4d !important;
	margin: 13.695px 0;
	letter-spacing: normal;
}
.woo-shop-layout .product-cat-desc h3 {
	font-family: 'Open Sans', Lato, sans-serif !important;
	font-size: 12.87px !important;
	font-weight: 700;
	line-height: 1.4;
	color: #4d4d4d !important;
	margin: 12.87px 0;
	letter-spacing: normal;
}
.woo-shop-layout .product-cat-desc h4 {
	font-family: 'Open Sans', Lato, sans-serif !important;
	font-size: 11px !important;
	font-weight: 700;
	line-height: 1.4;
	color: #4d4d4d !important;
	margin: 14.63px 0;
	letter-spacing: normal;
}
.woo-shop-layout .product-cat-desc h5 {
	font-family: 'Open Sans', Lato, sans-serif !important;
	font-size: 9.13px !important;
	font-weight: 700;
	line-height: 1.4;
	color: #4d4d4d !important;
	margin: 15.25px 0;
	letter-spacing: normal;
}
.woo-shop-layout .product-cat-desc h6 {
	font-family: 'Open Sans', Lato, sans-serif !important;
	font-size: 7.37px !important;
	font-weight: 700;
	line-height: 1.4;
	color: #4d4d4d !important;
	margin: 17.17px 0;
	letter-spacing: normal;
}

/* Inner content — same typography, no extra chrome */
.woo-shop-layout .product-cat-desc[data-term-desc-collapsible] .woo-term-desc__inner {
	font-family: 'Open Sans', Lato, sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1.4;
	color: #4d4d4d;
	margin: 0;
}

/* Collapsed: clamp to 3 lines */
.woo-shop-layout .product-cat-desc[data-term-desc-collapsible]:not(.is-expanded):not(.is-measuring) .woo-term-desc__inner {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

/* Measuring pass: full height, no clamp */
.woo-shop-layout .product-cat-desc[data-term-desc-collapsible].is-measuring .woo-term-desc__inner {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	overflow: visible;
}

/* Expanded: show everything */
.woo-shop-layout .product-cat-desc[data-term-desc-collapsible].is-expanded .woo-term-desc__inner {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	overflow: visible;
}

/* ─── Shop welcome / SEO section (bottom of archives) ─────────────────────────── */
/* Reset: .woo-shop-layout uses font-size: 1.5rem for chrome; prose uses root rem. */
.woo-shop-welcome {
	--gl-welcome-font: "Open Sans", Lato, sans-serif;
	--gl-welcome-body: #4d4d4d;
	--gl-welcome-navy: var(--hdr-navy, #0c1c2e);
	--gl-welcome-red: var(--hdr-red, #b80000);
	--gl-welcome-red-hover: #9a0000;
	margin-top: clamp(40px, 6vw, 72px);
	font-size: 1.6rem; /* isolate from layout 1.5rem chrome scale */
	font-family: var(--gl-welcome-font);
}

.woo-shop-welcome__card {
	padding: clamp(2.4rem, 4vw, 4rem);
	background: var(--hdr-white);
	border: 1px solid var(--hdr-border, var(--hdr-gray-brd));
	border-radius: var(--hdr-radius, 8px);
	box-shadow: var(--hdr-shadow);
}

.woo-shop-welcome__eyebrow {
	margin: 0 0 1rem;
	font-family: var(--gl-welcome-font);
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--hdr-muted, #5d6b7a);
}

.woo-shop-welcome__title {
	margin: 0 0 clamp(1.6rem, 2.5vw, 2.4rem);
	font-family: var(--hdr-font, "Avenir Next", "Avenir", "Inter", system-ui, sans-serif);
	font-size: 2.0rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--gl-welcome-navy);
}

.woo-shop-welcome__body {
	max-width: 72rem;
	font-family: var(--gl-welcome-font);
	font-size: 1.6rem;
	font-weight: 400;
	line-height: 1.7;
	color: var(--gl-welcome-body);
}

.woo-shop-welcome__body p {
	margin: 0 0 1.15em;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	color: inherit;
}

.woo-shop-welcome__body p:last-child {
	margin-bottom: 0;
}

.woo-shop-welcome__body a {
	color: var(--gl-welcome-navy);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.woo-shop-welcome__body a:hover {
	color: var(--gl-welcome-red);
}

.woo-shop-welcome__body a:focus-visible {
	outline: 2px solid var(--gl-welcome-red);
	outline-offset: 3px;
}

.woo-shop-welcome__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.2rem;
	margin-top: clamp(2.4rem, 3vw, 3.2rem);
	padding-top: clamp(2rem, 2.5vw, 2.4rem);
	border-top: 1px solid var(--hdr-border, var(--hdr-gray-brd, #e2e4e7));
}

.woo-shop-welcome__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	min-height: 4.8rem;
	padding: 1.2rem 2.4rem;
	border-radius: var(--hdr-radius, 8px);
	font-family: var(--gl-welcome-font);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

/* Primary — solid red (matches header cart / cart checkout) */
.woo-shop-welcome__btn--primary,
.woo-shop-welcome a.btn-primary.woo-shop-welcome__btn {
	background: var(--gl-welcome-red);
	color: #fff;
	border: 1.5px solid var(--gl-welcome-red);
	box-shadow: 0 4px 16px rgba(184, 0, 0, 0.22);
}

.woo-shop-welcome__btn--primary:hover,
.woo-shop-welcome a.btn-primary.woo-shop-welcome__btn:hover {
	background: var(--gl-welcome-red-hover);
	border-color: var(--gl-welcome-red-hover);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(184, 0, 0, 0.3);
}

/* Secondary — navy outline (matches header Logg inn / cart continue) */
.woo-shop-welcome__btn--outline,
.woo-shop-welcome a.btn-outline.woo-shop-welcome__btn {
	background: #fff;
	color: var(--gl-welcome-navy);
	border: 1.5px solid var(--gl-welcome-navy);
	box-shadow: none;
}

.woo-shop-welcome__btn--outline:hover,
.woo-shop-welcome a.btn-outline.woo-shop-welcome__btn:hover {
	background: var(--gl-welcome-navy);
	color: #fff;
	border-color: var(--gl-welcome-navy);
	transform: translateY(-1px);
}

.woo-shop-welcome__btn:focus-visible {
	outline: 2px solid var(--gl-welcome-red);
	outline-offset: 3px;
}

.woo-shop-welcome__btn:active {
	transform: translateY(0);
}

@media (max-width: 768px) {
	.woo-shop-welcome__title {
		font-size: 2.0rem;
	}

	.woo-shop-welcome__body {
		font-size: 1.5rem;
		line-height: 1.65;
	}

	.woo-shop-welcome__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
	}

	.woo-shop-welcome__btn {
		width: 100%;
		white-space: normal;
		font-size: 1.4rem;
		padding: 1.2rem 1.6rem;
	}
}

/* ─── Notices ───────────────────────────────────────────────────────────────── */
.woo-shop-layout .woocommerce-notices-wrapper {
	margin-bottom: 16px;
}

.woo-shop-layout .woocommerce-message,
.woo-shop-layout .woocommerce-error,
.woo-shop-layout .woocommerce-info {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	font-size: clamp(14px, 1.4vw, 15px) !important;
}

.woo-shop-layout .woocommerce-message {
	font-size: 13px !important;
	line-height: 1.35;
}

/* ─── Pagination ─────────────────────────────────────────────────────────────── */
.woo-shop-layout nav.woocommerce-pagination {
	margin-top: clamp(36px, 5vw, 56px);
}

.woo-shop-layout .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	border: none !important;
}

.woo-shop-layout .woocommerce-pagination li {
	border: none !important;
	margin: 0 !important;
}

.woo-shop-layout .woocommerce-pagination a.page-numbers,
.woo-shop-layout .woocommerce-pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 8px 12px !important;
	border-radius: var(--hdr-radius) !important;
	font-size: 1.5rem !important;
	font-weight: 600;
	border: 1px solid transparent !important;
	transition: background 0.2s ease, color 0.2s ease;
}

.woo-shop-layout .woocommerce-pagination a.page-numbers {
	background: var(--hdr-navy) !important;
	color: var(--hdr-white) !important;
}

.woo-shop-layout .woocommerce-pagination a.page-numbers:hover {
	background: var(--hdr-red) !important;
	color: var(--hdr-white) !important;
}

.woo-shop-layout .woocommerce-pagination span.page-numbers.current {
	background: var(--hdr-red) !important;
	color: var(--hdr-white) !important;
}

.woo-shop-layout .woocommerce-pagination span.page-numbers.dots {
	background: transparent !important;
	color: var(--hdr-muted) !important;
}

/* ─── Breadcrumb strip ──────────────────────────────────────────────────────── */
body.woocommerce-page:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .bread-bg {
	background: var(--hdr-gray-bg, #f4f6f9) !important;
	border-bottom: 1px solid var(--hdr-gray-brd);
	font-size: 1.5rem;
}

body.woocommerce-page:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-breadcrumb {
	margin-bottom: 0 !important;
	padding: clamp(10px, 2vw, 14px) 0;
	font-size: 1.5rem;
	color: var(--hdr-muted) !important;
}

body.woocommerce-page:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-breadcrumb a {
	color: var(--hdr-navy) !important;
	font-weight: 600;
	text-decoration: none;
}

body.woocommerce-page:not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-breadcrumb a:hover {
	color: var(--hdr-red) !important;
	text-decoration: underline;
}

/* ─── Responsive (tablet + mobile — off-canvas sidebar) ───────────────────────── */
@media (max-width: 1100px) {
	.woo-shop-layout .product-category-cst-sidebar {
		flex: 1 1 100%;
		width: 100% !important;
		max-width: 100%;
		position: static;
		top: auto;
		z-index: auto;
	}

	.woo-shop-layout .product-category-cst-content {
		flex: 1 1 100%;
		width: 100% !important;
		max-width: 100%;
		min-width: 0;
	}

	.woo-shop-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.woo-shop-layout .woocommerce-ordering {
		width: 100%;
	}

	.woo-shop-layout .woocommerce-ordering select {
		width: 100%;
	}
}

/* ─── AJAX pane + skeleton loading ─────────────────────────────────────────── */

/*
 * Breadcrumb now lives above the sidebar/content flex row (full-width).
 * When the hero already shows it, the div is empty — hide it so it takes
 * no vertical space and both columns stay top-aligned.
 */
.woo-shop-ajax-breadcrumb {
	margin-bottom: clamp(12px, 2vw, 18px);
}

.woo-shop-ajax-breadcrumb--fullwidth:not(:has(.woocommerce-breadcrumb)) {
	display: none;
}

/* Fallback for browsers without :has() support */
.woo-shop-ajax-breadcrumb--fullwidth:empty {
	display: none;
}

.woo-shop-ajax-breadcrumb .woocommerce-breadcrumb {
	margin: 0;
	font-size: 1.35rem;
	color: var(--hdr-muted);
}

.woo-shop-ajax-pane {
	position: relative;
	min-height: 200px;
}

.woo-shop-ajax-error {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 200px;
	padding: 24px;
	text-align: center;
	background: var(--hdr-white);
	border: 1px solid var(--hdr-gray-brd);
	border-radius: var(--hdr-radius);
}

.woo-shop-ajax-error p {
	margin: 0;
	font-size: 1.5rem;
	color: var(--hdr-body, #1a2333);
}

.woo-shop-ajax-error__retry {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	font-family: var(--hdr-font);
	font-size: 1.4rem;
	font-weight: 600;
	color: #fff;
	background: var(--hdr-navy);
	border: none;
	border-radius: var(--hdr-radius);
	cursor: pointer;
}

.woo-shop-ajax-error__retry:hover {
	background: var(--hdr-red, #b80000);
}

/* ─── Load more ─────────────────────────────────────────────────────────────── */
.woo-shop-load-more {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: clamp(28px, 4vw, 40px) 0 0;
	padding: 0;
}

.woo-shop-load-more__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: min(100%, 280px);
	min-height: 48px;
	padding: 12px 28px;
	font-family: var(--hdr-font);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background: var(--hdr-navy, #003b6b);
	border: none;
	border-radius: var(--hdr-radius, 8px);
	box-shadow: 0 4px 14px rgba(0, 59, 107, 0.22);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.woo-shop-load-more__btn:hover:not(:disabled) {
	background: var(--hdr-red, #b80000);
	transform: translateY(-1px);
}

.woo-shop-load-more__btn:disabled,
.woo-shop-load-more__btn.is-loading {
	opacity: 0.75;
	cursor: wait;
	transform: none;
}

/* Loading spinner appended via ::after on the button */
.woo-shop-load-more__btn.is-loading::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 10px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: glLoadMoreSpin 0.65s linear infinite;
	vertical-align: middle;
	flex-shrink: 0;
}

@keyframes glLoadMoreSpin {
	to { transform: rotate(360deg); }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
	.woo-shop-load-more__btn.is-loading::after {
		animation: none;
		opacity: 0.6;
	}
}

.woo-shop-load-more__status {
	font-size: 1.35rem;
	color: var(--hdr-muted, #5d6b7a);
}

.woo-shop-load-more__status[hidden] {
	display: none;
}

.woo-shop-ajax-pane.is-loading .woo-shop-ajax-main {
	pointer-events: none;
}

.woo-shop-skeleton__toolbar {
	height: 52px;
	margin-bottom: clamp(20px, 3vw, 28px);
	border-radius: var(--hdr-radius);
	background: linear-gradient(90deg, #e8ecf1 0%, #f4f6f9 50%, #e8ecf1 100%);
	background-size: 200% 100%;
	animation: woo-shop-shimmer 1.2s ease-in-out infinite;
}

.woo-shop-skeleton__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.5vw, 24px);
}

.woo-shop-skeleton__card {
	aspect-ratio: 0.85;
	border-radius: 12px;
	background: linear-gradient(90deg, #e8ecf1 0%, #f4f6f9 50%, #e8ecf1 100%);
	background-size: 200% 100%;
	animation: woo-shop-shimmer 1.2s ease-in-out infinite;
}

@keyframes woo-shop-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ─── Mobile sidebar toggle ──────────────────────────────────────────────────── */
.woo-shop-sidebar-toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 14px;
	padding: 14px 18px;
	font-family: var(--hdr-font);
	font-size: 1.4rem;
	font-weight: 600;
	color: var(--hdr-white);
	background: var(--hdr-navy);
	border: none;
	border-radius: var(--hdr-radius);
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 35, 75, 0.2);
}

.woo-shop-sidebar-toggle__icon {
	width: 18px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

body.woo-shop-sidebar-open::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(10, 20, 40, 0.45);
}

/* ─── Category accordion nav ───────────────────────────────────────────────── */
.woo-cat-accordion {
	flex-shrink: 0;
	background: var(--hdr-white);
	border: 1px solid var(--hdr-gray-brd);
	border-radius: 0;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.woo-cat-accordion__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: var(--hdr-navy);
	color: var(--hdr-white);
}

.woo-cat-accordion__title {
	margin: 0;
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
}

.woo-cat-accordion__mobile-close {
	display: none;
	width: 36px;
	height: 36px;
	padding: 0;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--hdr-white);
	background: transparent;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.woo-cat-accordion__mobile-close:hover {
	background: rgba(255, 255, 255, 0.12);
}

.woo-cat-accordion__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woo-cat-acc__item {
	border-bottom: 1px solid var(--hdr-gray-brd);
}

.woo-cat-acc__item:last-child {
	border-bottom: none;
}

.woo-cat-acc__row {
	display: flex;
	align-items: stretch;
	min-height: 48px;
}

.woo-cat-acc__link {
	flex: 1;
	display: flex;
	align-items: center;
	padding: 12px 14px;
	/* Match legacy Gastroline sidebar: 15px / 600 / #444 */
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.4;
	color: #444;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.woo-cat-acc__link:hover {
	background: rgba(0, 35, 75, 0.04);
	color: var(--hdr-navy);
	padding-left: 18px;
}

.woo-cat-acc__link:focus-visible {
	outline: 2px solid var(--hdr-red);
	outline-offset: -2px;
}

/* Active trail — light gray background + red left border (no red fill) */
.woo-shop-layout .woo-cat-acc__item.is-current > .woo-cat-acc__row .woo-cat-acc__link,
.woo-shop-layout .woo-cat-acc__item.current-cat > .woo-cat-acc__row .woo-cat-acc__link,
.woo-shop-layout .woo-cat-acc__item.is-ancestor > .woo-cat-acc__row .woo-cat-acc__link,
.woo-shop-layout .woo-cat-acc__item.current-cat-parent > .woo-cat-acc__row .woo-cat-acc__link {
	font-weight: 700;
	color: var(--hdr-navy, #003b6b);
	background: rgba(0, 59, 107, 0.08);
	box-shadow: inset 3px 0 0 var(--hdr-red, #b80000);
}

.woo-shop-layout .woo-cat-acc__item.is-current > .woo-cat-acc__row .woo-cat-acc__link:hover,
.woo-shop-layout .woo-cat-acc__item.current-cat > .woo-cat-acc__row .woo-cat-acc__link:hover,
.woo-shop-layout .woo-cat-acc__item.is-ancestor > .woo-cat-acc__row .woo-cat-acc__link:hover,
.woo-shop-layout .woo-cat-acc__item.current-cat-parent > .woo-cat-acc__row .woo-cat-acc__link:hover {
	color: var(--hdr-navy, #003b6b);
	background: rgba(0, 59, 107, 0.12);
	padding-left: 14px;
}

.woo-shop-layout .woo-cat-acc__item.is-current > .woo-cat-acc__row .woo-cat-acc__toggle,
.woo-shop-layout .woo-cat-acc__item.is-ancestor > .woo-cat-acc__row .woo-cat-acc__toggle,
.woo-shop-layout .woo-cat-acc__item.current-cat-parent > .woo-cat-acc__row .woo-cat-acc__toggle {
	background: rgba(0, 59, 107, 0.06);
	color: var(--hdr-red, #b80000);
}

.woo-shop-layout .woo-cat-acc__item.is-current > .woo-cat-acc__row .woo-cat-acc__toggle-icon,
.woo-shop-layout .woo-cat-acc__item.is-ancestor > .woo-cat-acc__row .woo-cat-acc__toggle-icon,
.woo-shop-layout .woo-cat-acc__item.is-open.is-ancestor > .woo-cat-acc__row .woo-cat-acc__toggle-icon,
.woo-shop-layout .woo-cat-acc__item.is-open.is-current > .woo-cat-acc__row .woo-cat-acc__toggle-icon {
	border-color: var(--hdr-red, #b80000);
}

.woo-shop-layout .woo-cat-acc__children .woo-cat-acc__item.is-current > .woo-cat-acc__row .woo-cat-acc__link,
.woo-shop-layout .woo-cat-acc__children .woo-cat-acc__item.current-cat > .woo-cat-acc__row .woo-cat-acc__link {
	color: var(--hdr-navy, #003b6b);
	background: rgba(255, 255, 255, 0.85);
	box-shadow: inset 3px 0 0 var(--hdr-red, #b80000);
}

.woo-shop-layout .woo-cat-acc__children .woo-cat-acc__item.is-current > .woo-cat-acc__row .woo-cat-acc__link:hover,
.woo-shop-layout .woo-cat-acc__children .woo-cat-acc__item.current-cat > .woo-cat-acc__row .woo-cat-acc__link:hover {
	color: var(--hdr-navy, #003b6b);
	background: #fff;
}

.woo-cat-acc__toggle {
	flex: 0 0 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	border: none;
	border-left: 1px solid var(--hdr-gray-brd);
	cursor: pointer;
	color: var(--hdr-navy);
}

.woo-cat-acc__toggle:hover {
	background: rgba(0, 35, 75, 0.05);
}

.woo-cat-acc__toggle-icon {
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.25s ease;
}

.woo-cat-acc__item.is-open > .woo-cat-acc__row .woo-cat-acc__toggle-icon {
	transform: rotate(45deg);
}

.woo-cat-acc__children {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--hdr-gray-bg, #f4f6f9);
	transition: max-height 0.3s ease, opacity 0.25s ease;
}

.woo-cat-acc__children[hidden] {
	display: block;
	max-height: 0;
	opacity: 0;
	visibility: hidden;
}

.woo-cat-acc__item.is-open > .woo-cat-acc__children {
	max-height: 2000px;
	opacity: 1;
	visibility: visible;
}

.woo-cat-acc__children .woo-cat-acc__link {
	padding-left: 28px;
	font-size: 1.5rem;
	font-weight: 600;
	color: #444;
}

.woo-cat-acc__children .woo-cat-acc__children .woo-cat-acc__link {
	padding-left: 42px;
}

.woo-cat-acc__children .woo-cat-acc__children .woo-cat-acc__children .woo-cat-acc__link {
	padding-left: 56px;
}

@media (max-width: 1100px) {
	.woo-shop-sidebar-toggle {
		display: inline-flex;
		flex: 1 1 100%;
		order: -1;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.woo-shop-layout .product-category-cst-box {
		flex-direction: column;
		align-items: stretch;
	}

	/*
	 * One mobile drawer for the whole sidebar (categories + producers + widgets).
	 * Previously each .woo-cat-accordion was position:fixed, so the producers
	 * panel stacked on top and hid the category list.
	 * Home inline sidebar (.home-categories-sidebar) is excluded.
	 */
	.woo-shop-layout .product-category-cst-sidebar.woo-shop-sidebar:not(.home-categories-sidebar) {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 9999;
		display: flex;
		flex-direction: column;
		gap: 0;
		flex: none;
		width: min(320px, 88vw) !important;
		max-width: min(320px, 88vw);
		max-height: 100vh;
		max-height: 100dvh;
		margin: 0;
		padding: 0;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		background: var(--hdr-gray-bg, #f4f6f9);
		box-shadow: 4px 0 24px rgba(0, 20, 40, 0.18);
		border-radius: 0;
		transform: translateX(-105%);
		transition: transform 0.3s ease, visibility 0.3s ease;
		visibility: hidden;
		pointer-events: none;
	}

	.woo-shop-layout .product-category-cst-sidebar.woo-shop-sidebar:not(.home-categories-sidebar).is-mobile-open {
		transform: translateX(0);
		visibility: visible;
		pointer-events: auto;
	}

	/* Accordions stay in normal flow inside the single drawer */
	.woo-shop-layout .product-category-cst-sidebar.woo-shop-sidebar:not(.home-categories-sidebar) .woo-cat-accordion {
		position: static;
		top: auto;
		left: auto;
		bottom: auto;
		z-index: auto;
		width: 100%;
		max-height: none;
		overflow: visible;
		border-radius: 0;
		transform: none;
		visibility: visible;
		pointer-events: auto;
		box-shadow: none;
	}

	.woo-shop-layout .product-category-cst-sidebar.woo-shop-sidebar:not(.home-categories-sidebar) .woo-cat-accordion--producers {
		margin-top: 0;
		border-top: 1px solid var(--hdr-gray-brd, #e2e6ea);
	}

	.woo-shop-layout .product-category-cst-sidebar.woo-shop-sidebar:not(.home-categories-sidebar) > .widget {
		border-radius: 0;
		border-left: none;
		border-right: none;
	}

	.woo-cat-accordion__mobile-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	body.woo-shop-sidebar-open {
		overflow: hidden !important;
	}

	.woo-shop-skeleton__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 993px) {
	.woo-shop-layout .product-category-cst-content ul.products.product-list-box > li.product-category,
	.woo-shop-layout ul.products li.product-category {
		width: 100% !important;
		height: auto !important;
	}
}

@media (max-width: 771px) {
	.woo-shop-layout ul.products li.product-category .woo-cat-card__media {
		aspect-ratio: auto;
		height: 280px !important;
		min-height: 280px !important;
		max-height: 280px !important;
		padding: 0;
	}

	.woo-shop-layout .product-category-cst-content ul.products.product-list-box li.product-category img,
	.woo-shop-layout ul.products li.product-category .woo-cat-card__media img,
	.woo-shop-layout ul.products li.product-category img {
		width: 100% !important;
		max-width: 100% !important;
		height: 100% !important;
		max-height: 100% !important;
		object-fit: contain;
		object-position: center center;
	}
}

@media (max-width: 575px) {
	.woo-shop-skeleton__grid {
		grid-template-columns: 1fr;
	}

	.woo-shop-layout ul.products li.product-category .woo-cat-card__media {
		aspect-ratio: auto;
		height: 240px !important;
		min-height: 240px !important;
		max-height: 240px !important;
		padding: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.woo-shop-skeleton__toolbar,
	.woo-shop-skeleton__card {
		animation: none;
	}

	.woo-cat-acc__children,
	.woo-cat-acc__toggle-icon,
	.woo-shop-layout .product-category-cst-sidebar.woo-shop-sidebar:not(.home-categories-sidebar) {
		transition: none;
	}

	.woo-shop-layout ul.products li.product-category,
	.gl-product-card {
		transition: none;
	}

	.woo-shop-layout ul.products li.product-category:hover,
	.gl-product-card:hover {
		transform: none;
	}

	.woo-shop-layout ul.products li.product-category img {
		transition: none;
	}

	.woo-shop-layout ul.products li.product-category:hover img {
		transform: none;
	}
}

/* =============================================================================
   SHOP ARCHIVE — Mobile-first improvements (≤ 767 px)
   Appended separately so specificity is highest and easy to maintain.
   ============================================================================= */
@media (max-width: 767px) {

	/* ── Page shell ───────────────────────────────────────────── */
	.gl-shop-archive .woo-shop-layout,
	.woo-shop-layout {
		overflow-x: hidden;
	}

	.woo-shop-layout .wrapper {
		padding-left:  max(14px, env(safe-area-inset-left,  0px));
		padding-right: max(14px, env(safe-area-inset-right, 0px));
		box-sizing: border-box;
		max-width: 100%;
		width: 100%;
	}

	/* ── Sidebar toggle button ────────────────────────────────── */
	.woo-shop-sidebar-toggle {
		min-height: 48px;
		font-size: 1.45rem;
		padding: 0 16px;
		border-radius: 8px;
		gap: 8px;
		justify-content: flex-start;
		width: 100% !important;
		box-sizing: border-box;
	}

	/* ── Breadcrumbs ──────────────────────────────────────────── */
	.woo-shop-ajax-breadcrumb {
		margin-bottom: 10px;
	}

	.woo-shop-ajax-breadcrumb .woocommerce-breadcrumb {
		font-size: 1.25rem;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		display: block;
		width: 100%;
	}

	.woo-shop-ajax-breadcrumb .woocommerce-breadcrumb::-webkit-scrollbar {
		display: none;
	}

	/* ── Page title ───────────────────────────────────────────── */
	.woo-shop-intro .woocommerce-products-header__title.page-title {
		font-size: clamp(1.6rem, 5vw, 2.0rem);
	}

	/* ── Toolbar: filter toggle + sort on one row ─────────────── */
	.woo-shop-toolbar {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 8px;
		padding: 10px 12px;
	}

	.woo-shop-layout .woocommerce-result-count {
		order: 0;
		flex: 1 1 auto;
		font-size: 1.3rem;
	}

	.woo-shop-layout .woocommerce-ordering {
		order: 1;
		flex: 0 0 auto;
		min-width: 0;
	}

	.woo-shop-layout .woocommerce-ordering select {
		min-height: 44px;
		padding: 0 32px 0 12px;
		font-size: 1.35rem;
		max-width: 180px;
	}

	/* ── Product grid: single column on mobile ───────────────── */
	.woo-shop-layout .product-category-cst-content ul.products.product-list-box {
		grid-template-columns: 1fr !important;
		gap: clamp(10px, 3vw, 16px);
	}

	/* ── Category cards: keep 4:3 fill on smaller screens ─── */
	.woo-shop-layout .product-category-cst-content ul.products.product-list-box li.product-category img,
	.woo-shop-layout ul.products li.product-category .woo-cat-card__media img,
	.woo-shop-layout .product-list-box .product-category img,
	.woo-shop-layout ul.products li.product-category img {
		width: 100% !important;
		max-width: 100% !important;
		height: 100% !important;
		max-height: 100% !important;
		object-fit: contain !important;
		object-position: center center;
		background-size: unset !important;
	}

	.woo-shop-layout ul.products li.product-category .woo-cat-card__media {
		aspect-ratio: auto;
		height: 280px !important;
		min-height: 280px !important;
		max-height: 280px !important;
		padding: 0 !important;
		overflow: hidden;
	}

	.woo-shop-layout ul.products li.product-category:hover img {
		transform: none;
	}

	.woo-shop-layout ul.products.gl-list-view .gl-product-card__img {
		object-fit: contain !important;
		height: auto !important;
	}

	/* ── Pagination ────────────────────────────────────────────── */
	.woo-shop-layout .woocommerce-pagination ul.page-numbers {
		gap: 6px;
		flex-wrap: wrap;
	}

	.woo-shop-layout .woocommerce-pagination ul.page-numbers li a,
	.woo-shop-layout .woocommerce-pagination ul.page-numbers li span {
		min-width: 40px;
		min-height: 40px;
		font-size: 1.3rem;
	}

	/* Skeleton loader: single column on mobile */
	.woo-shop-skeleton__grid {
		grid-template-columns: 1fr !important;
		gap: 12px;
	}

}

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL WOOCOMMERCE UI POLISH
   Notices · Quantity input · WC button defaults
   Applies to all WooCommerce front-end pages
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Notices ──────────────────────────────────────────────────────────────── */

.woocommerce-notices-wrapper,
.woocommerce .woocommerce-notices-wrapper {
	margin-bottom: clamp(16px, 2.5vw, 24px);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
div.woocommerce-error,
ul.woocommerce-error {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	max-width: 100% !important;
	display: flex !important;
	align-items: flex-start;
	gap: 14px;
	/* Right padding reserves room for absolute close (×) */
	padding: 16px 48px 16px 20px !important;
	margin: 0 0 12px !important;
	border: none !important;
	border-left: 4px solid currentColor !important;
	border-radius: 0 var(--hdr-radius, 8px) var(--hdr-radius, 8px) 0 !important;
	background: #fff !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
	font-size: clamp(14px, 1.4vw, 15px) !important;
	line-height: 1.5;
	list-style: none !important;
}

/* ATC success — legacy Gastroline green bar (#6bbd6e), slim */
.woocommerce-message {
	align-items: center;
	gap: 10px;
	padding: 8px 40px 8px 16px !important;
	color: #fff !important;
	border: none !important;
	border-left: none !important;
	border-radius: 0 !important;
	background: #6bbd6e !important;
	font-size: 13px !important;
	line-height: 1.35;
	outline: none !important;
	box-shadow: none !important;
}

.woocommerce-message:focus,
.woocommerce-message:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}

.woocommerce-info {
	color: #0c3a6e !important;
	background: #f0f5fb !important;
	border-left-color: #003b6b !important;
}

.woocommerce-error,
div.woocommerce-error,
ul.woocommerce-error {
	color: #7f1010 !important;
	background: #fff5f5 !important;
	border-left-color: #c62828 !important;
	flex-direction: column;
	gap: 6px;
	font-weight: 600;
}

.woocommerce-error li,
div.woocommerce-error li,
ul.woocommerce-error li {
	color: #7f1010 !important;
}

.woocommerce-error a,
div.woocommerce-error a,
ul.woocommerce-error a {
	color: #5c0a0a !important;
	text-decoration: underline;
	font-weight: 700;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none !important; /* remove WC default icon font */
}

.woocommerce-message a.button,
.woocommerce-info a.button {
	margin-left: auto !important;
	flex-shrink: 0;
	align-self: center;
}

.woocommerce-message a.button.wc-forward,
.woocommerce-message a.wc-forward {
	margin-right: 32px !important;
}

.woocommerce-message .close-alert,
.woocommerce-message .gl-sp-notice__close {
	position: absolute !important;
	top: 50% !important;
	right: 10px !important;
	z-index: 2;
	transform: translateY(-50%);
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 24px !important;
	min-width: 24px !important;
	height: 24px !important;
	min-height: 24px !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 17px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #fff !important;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.woocommerce-message .close-alert:hover,
.woocommerce-message .gl-sp-notice__close:hover {
	color: #fff !important;
	background: transparent !important;
	opacity: 0.85;
	transform: translateY(-50%) !important;
	box-shadow: none !important;
}

.woocommerce-message .close-alert:focus,
.woocommerce-message .close-alert:focus-visible,
.woocommerce-message .gl-sp-notice__close:focus,
.woocommerce-message .gl-sp-notice__close:focus-visible {
	outline: 2px solid #fff !important;
	outline-offset: 2px;
}

/* ─── Quantity input (+/−) ─────────────────────────────────────────────────── */

.quantity.buttons_added {
	display: inline-flex !important;
	align-items: center;
	border: 2px solid var(--hdr-navy, #003b6b) !important;
	border-radius: var(--hdr-radius, 8px);
	overflow: hidden;
	background: #fff;
	transition: border-color 0.2s ease;
}

.quantity.buttons_added:focus-within {
	border-color: var(--hdr-red, #b80000) !important;
	box-shadow: 0 0 0 3px rgba(184, 0, 0, 0.12);
}

.quantity.buttons_added .minus,
.quantity.buttons_added .plus {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 40px !important;
	min-height: 44px !important;
	background: transparent !important;
	border: none !important;
	color: var(--hdr-navy, #003b6b) !important;
	font-size: 18px !important;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease;
	border-radius: 0 !important;
	padding: 0 !important;
	line-height: 1;
}

.quantity.buttons_added .minus:hover,
.quantity.buttons_added .plus:hover {
	background: var(--hdr-red, #b80000) !important;
	color: #fff !important;
}

.quantity.buttons_added input[type="number"] {
	width: 52px !important;
	min-height: 44px !important;
	padding: 0 4px !important;
	border: none !important;
	border-left: 1px solid var(--hdr-border, #e2e6ea) !important;
	border-right: 1px solid var(--hdr-border, #e2e6ea) !important;
	border-radius: 0 !important;
	text-align: center !important;
	font-size: 15px !important;
	font-weight: 600;
	color: var(--hdr-dark, #0c1c2e) !important;
	background: #fff !important;
	box-shadow: none !important;
	-moz-appearance: textfield;
}

.quantity.buttons_added input[type="number"]::-webkit-inner-spin-button,
.quantity.buttons_added input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
}

/* ─── WooCommerce global button defaults ───────────────────────────────────── */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	padding: 10px 22px !important;
	font-family: var(--hdr-font, inherit) !important;
	font-size: clamp(13px, 1.3vw, 14px) !important;
	font-weight: 700 !important;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border-radius: var(--hdr-radius, 8px) !important;
	border: none !important;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.wc-forward,
.woocommerce-Button--next {
	background: var(--hdr-red, #b80000) !important;
	color: #fff !important;
	box-shadow: 0 2px 8px rgba(184, 0, 0, 0.22);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.wc-forward:hover {
	background: #9a0000 !important;
	box-shadow: 0 6px 18px rgba(184, 0, 0, 0.35) !important;
	transform: translateY(-2px);
}

/* Notice "Se handlekurv" — navy fill (legacy); gap before close (×) */
.woocommerce-message a.button.wc-forward,
.woocommerce-message a.wc-forward {
	min-height: 0 !important;
	padding: 5px 12px !important;
	margin-right: 32px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #fff !important;
	background: #003b6b !important;
	border: none !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	transform: none !important;
}

.woocommerce-message a.button.wc-forward:hover,
.woocommerce-message a.wc-forward:hover {
	color: #003b6b !important;
	background: #fff !important;
	border: 1px solid #003b6b !important;
	box-shadow: none !important;
	transform: none !important;
}

.woocommerce a.button:not(.alt):not(.wc-forward),
.woocommerce button.button:not(.alt),
.woocommerce input.button:not(.alt) {
	background: var(--hdr-navy, #003b6b) !important;
	color: #fff !important;
}

.woocommerce a.button:not(.alt):not(.wc-forward):hover,
.woocommerce button.button:not(.alt):hover,
.woocommerce input.button:not(.alt):hover {
	background: #002a50 !important;
	transform: translateY(-1px);
}
