/* =============================================================================
   GASTROLINE — Global WooCommerce product card (B2B)
   Used on: shop archives, category/subcategory, related, upsells, best sellers.
   Depends on :root tokens from header-b2b.css
   ============================================================================= */

:root {
	/* Tall enough for portrait kitchen equipment; padding on media-wrap keeps bases clear of the clip edge */
	--gl-card-img-h: clamp(220px, 24vw, 280px);
	--gl-card-radius: 12px;
	--gl-card-pad: clamp(14px, 2vw, 20px);
	--gl-card-media-pad: clamp(10px, 1.8vw, 16px);
	--gl-card-title-lh: 1.4;
	--gl-card-notice-lh: 1.45;
	/* Tall enough for sale stack: 21px current + 14px struck (old column layout) */
	--gl-card-price-h: auto;
	--gl-card-cta-h: 44px;
	--gl-card-actions-inset: clamp(8px, 6%, 18px);
}

/* ─── Product grids (shared layout) ─────────────────────────────────────────── */
.gl-product-grid,
.woo-shop-layout .product-category-cst-content ul.products.product-list-box,
.woo-shop-best-sellers__grid,
.single-product .product > section.related.products ul.products.product-list-box,
.single-product .product > section.gl-sp-related.products ul.products,
.single-product .product > section.up-sells.products ul.products.product-list-box {
	display: grid !important;
	align-items: stretch !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
	gap: clamp(18px, 2.8vw, 28px);
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	float: none !important;
	clear: both !important;
	flex-wrap: unset !important;
	justify-content: unset !important;
}

/* Reference single product — desktop grid (mobile/tablet: single-product-reference + responsive sheets) */
@media (min-width: 1181px) {
	body.gl-sp-reference.single-product .product > section.gl-sp-related.products ul.products,
	body.gl-sp-reference .gl-sp-related ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1200px) {
	.gl-product-grid,
	.woo-shop-layout .product-category-cst-content ul.products.product-list-box {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}

.woo-shop-best-sellers__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991px) {
	.woo-shop-best-sellers__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	.woo-shop-best-sellers__grid {
		grid-template-columns: 1fr;
	}
}

.gl-product-grid::before,
.gl-product-grid::after,
.woo-shop-layout .product-category-cst-content ul.products::before,
.woo-shop-layout .product-category-cst-content ul.products::after,
.single-product .product > section.related.products ul.products::before,
.single-product .product > section.related.products ul.products::after,
.single-product .product > section.up-sells.products ul.products::before,
.single-product .product > section.up-sells.products ul.products::after {
	display: none !important;
	content: none !important;
}

ul.products.gl-product-grid > li.product,
.woo-shop-layout ul.products li.product,
.single-product ul.products li.product {
	display: flex !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	padding: 0 !important;
	list-style: none !important;
}

/* ─── Card shell ────────────────────────────────────────────────────────────── */
.gl-product-card,
.product-list-item.gl-product-card,
ul.products li.product .product-list-item {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100% !important;
	max-width: none !important;
	height: 100%;
	min-height: 100%;
	margin: 0 !important;
	padding: var(--gl-card-pad);
	padding-bottom: clamp(18px, 2.5vw, 24px);
	box-sizing: border-box;
	background: var(--hdr-white, #fff);
	border: 1px solid var(--hdr-gray-brd, #dce2ea);
	border-radius: var(--gl-card-radius);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05), 0 2px 12px rgba(0, 0, 0, 0.04);
	transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
	overflow: hidden;
}

/* Red top accent line — appears on hover */
.gl-product-card::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;
	border-radius: var(--gl-card-radius) var(--gl-card-radius) 0 0;
	z-index: 1;
}

.gl-product-card:hover::before,
ul.products li.product:hover .gl-product-card::before {
	transform: scaleX(1);
}

.gl-product-card:hover,
ul.products li.product:hover .gl-product-card {
	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.15);
}

.gl-product-card:focus-within {
	box-shadow: 0 0 0 2px var(--hdr-red, #b80000), 0 8px 28px rgba(0, 0, 0, 0.08);
	border-color: var(--hdr-red, #b80000);
}

/* ─── Image + overlay badges ────────────────────────────────────────────────── */
.gl-product-card__media-wrap {
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	padding: var(--gl-card-media-pad);
	box-sizing: border-box;
	overflow: hidden;
	border-radius: var(--hdr-radius, 8px);
	border: 1px solid var(--hdr-gray-brd, #dce2ea);
	background: #fff;
	transition: border-color 0.25s ease;
}

.gl-product-card:hover .gl-product-card__media-wrap {
	border-color: rgba(0, 59, 107, 0.22);
}

.gl-product-card__media-badges {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.gl-product-card__cta--variable .gl-product-card__qv-btn {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	background: #fff !important;
	color: var(--hdr-navy, #003b6b) !important;
	border: 2px solid var(--hdr-navy, #003b6b) !important;
	box-shadow: none !important;
}

.gl-product-card__cta--variable .gl-product-card__qv-btn:hover {
	color: #fff !important;
	background: var(--hdr-navy, #003b6b) !important;
}

.gl-product-card__qv-btn-icon {
	display: inline-block;
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	line-height: 1;
	opacity: 0.9;
	vertical-align: middle;
}

.gl-product-card__media,
.gl-product-card .product-item-pic {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--gl-card-img-h);
	min-height: var(--gl-card-img-h);
	max-height: var(--gl-card-img-h);
	margin: 0;
	border: none;
	border-radius: 0;
	background-color: #fff;
	overflow: hidden;
}

.gl-product-card__img {
	display: block;
	width: 100%;
	height: 100%;
	/* Inset via padding (beats theme img{max-width:100%!important}) so edge-flush
	   studio photos keep visible space under grill bases / stands */
	padding: 4% 5% 7%;
	box-sizing: border-box;
	object-fit: contain;
	object-position: center center;
	transform: scale(1);
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Zoom the image inside the padded frame so overflow:hidden does not clip product bases */
.gl-product-card:hover .gl-product-card__img {
	transform: scale(1.03);
}

/* Sale ribbon — hidden on frontend (sale prices still show) */
.gl-product-card__sale-ribbon,
.gl-product-card__sale-ribbon-icon,
.woocommerce span.onsale,
span.onsale,
.gl-sp-sale-badge {
	display: none !important;
	visibility: hidden !important;
}

.gl-product-card__sale-ribbon {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	font-family: var(--hdr-font, inherit);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(135deg, #d40000 0%, #b800007a 100%);
	border-radius: 999px;
	box-shadow: 0 4px 14px rgba(184, 0, 0, 0.35);
	pointer-events: none;
}

.gl-product-card__sale-ribbon-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	background: rgba(255, 255, 255, 0.22);
	border-radius: 50%;
}

/* Corner badges — top-right on image */
.gl-product-card__corner-badges {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	pointer-events: none;
}

.gl-product-card__corner-badges .gl-product-card__badge {
	position: static;
	pointer-events: auto;
}

.gl-product-card__badge.new-bar-cust,
.gl-product-card__badge.percent-bar-cust {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 5px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}

.gl-product-card__badge--bestseller.bar-special {
	min-width: auto;
	padding: 0;
	background: transparent;
	box-shadow: none;
}

.gl-product-card__badge--bestseller img {
	display: block;
	width: 48px;
	height: auto;
}

.gl-product-card__badge--new {
	background: #fecc00;
	color: #fff;
}

.gl-product-card__badge--sale-pct {
	background: #ef7e1a;
	color: #fff;
}

/* Post status — draft / private (catalog loops only) */
.gl-product-card__badge--status {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	max-width: calc(100% - 20px);
	padding: 6px 10px;
	font-family: var(--hdr-font, inherit);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 999px;
	border: 1px solid transparent;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	pointer-events: none;
}

.gl-product-card__badge--draft {
	color: #e65100;
	background: #fff3e0;
	border-color: rgba(230, 81, 0, 0.25);
}

.gl-product-card__badge--private {
	color: #374151;
	background: var(--hdr-bg, #f4f6f9);
	border-color: var(--hdr-border, #e2e6ea);
}

.gl-product-card--on-sale .gl-product-card__media-badges .gl-product-card__badge--status {
	top: 46px;
}

.product-list-item > .gl-product-card__badge--status {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 4;
}

.gl-product-card__media:focus-visible {
	outline: 2px solid var(--hdr-red, #b80000);
	outline-offset: 3px;
}

.gl-product-card__media .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ─── Body / title ──────────────────────────────────────────────────────────── */
.gl-product-card__body,
.gl-product-card .product-content-box {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	margin-top: clamp(12px, 2vw, 16px);
	gap: 0;
}

.gl-product-card__meta {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 4px;
}

/* Card titles: Open Sans 17px / 700 / #464646 — full name wraps, no ellipsis */
.gl-product-card__title,
.gl-product-card .product-item-title {
	display: block;
	overflow: visible;
	margin: 0;
	min-height: calc(2 * 1.4em); /* reserve 2-line height minimum; scales with font-size (1.7rem) */
	font-family: "Open Sans", Lato, sans-serif;
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: normal;
	color: #464646;
	text-align: left;
	text-decoration: none;
	transition: color 0.2s ease;
	overflow-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}

.gl-product-card__title:hover,
.gl-product-card .product-item-title:hover {
	color: var(--hdr-red, #b80000);
	text-decoration: none;
}

.gl-product-card__notice-slot {
	flex-shrink: 0;
	min-height: 20px; /* reserves 1-line space even when empty so footer aligns across all cards */
	margin-top: auto;
}

.gl-product-card__notice,
.gl-product-card .gm-extra-info-dostawa {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	overflow: hidden;
	margin: 0;
	font-size: clamp(12px, 1.25rem, 14px);
	line-height: var(--gl-card-notice-lh);
	color: var(--hdr-red, #b80000);
	font-weight: 600;
}

/* ─── Footer: pricing + CTA + tax (aligned across grid) ───────────────────── */
.gl-product-card__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-shrink: 0;
	gap: 6px;
	margin-top: auto;
	padding-top: 0;
	padding-right: 0;
	width: 100%;
	box-sizing: border-box;
}

.gl-product-card__cta-row,
.gl-product-card .product-item-box {
	display: flex;
	flex-direction: row;
	align-items: center !important;
	justify-content: space-between;
	flex: 0 0 var(--gl-card-cta-h);
	min-height: var(--gl-card-cta-h);
	gap: clamp(8px, 2vw, 14px);
	margin: 0;
	padding: 0;
	width: 100%;
}

.gl-product-card__cta,
.gl-product-card .mozaic-price-btn {
	display: flex;
	justify-content: flex-end;
	flex: 0 0 auto;
	width: auto;
	margin: 0;
	padding: 0;
	margin-left: auto;
}

.gl-product-card__qv-btn {
	cursor: pointer;
}

.gl-product-card__cta a.button,
.gl-product-card__cta .gl-product-card__qv-btn,
.gl-product-card .mozaic-price-btn a.button,
.gl-product-card .mozaic-price-btn .gl-product-card__qv-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 120px;
	min-height: 44px;
	padding: 10px 20px !important;
	font-family: var(--hdr-font, inherit) !important;
	font-size: clamp(13px, 1.35rem, 14px) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.03em;
	text-transform: uppercase !important;
	color: #fff !important;
	background: var(--hdr-red, #b80000) !important;
	border: none !important;
	border-radius: var(--hdr-radius, 8px) !important;
	box-shadow: 0 2px 8px rgba(184, 0, 0, 0.22);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
	width: auto !important;
	height: auto !important;
	position: relative;
}

/* Cart icon via pseudo-element */
.gl-product-card__cta a.button.add_to_cart_button::before {
	content: '';
	display: inline-block;
	width: 15px;
	height: 15px;
	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='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.2s ease;
}

.gl-product-card__cta a.button.add_to_cart_button:hover::before {
	transform: scale(1.15);
}

.gl-product-card__cta a.button:hover,
.gl-product-card__cta .gl-product-card__qv-btn:hover,
.gl-product-card .mozaic-price-btn a.button:hover,
.gl-product-card .mozaic-price-btn .gl-product-card__qv-btn:hover {
	background: #9a0000 !important;
	box-shadow: 0 6px 18px rgba(184, 0, 0, 0.38);
	transform: translateY(-2px);
}

/* Loading state — spinner replaces icon */
.gl-product-card__cta a.button.loading,
.gl-product-card .mozaic-price-btn a.button.loading {
	opacity: 0.8;
	pointer-events: none;
	cursor: wait;
}

.gl-product-card__cta a.button.loading::before,
.gl-product-card .mozaic-price-btn a.button.loading::before {
	background-image: none;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: glCardBtnSpin 0.65s linear infinite;
}

@keyframes glCardBtnSpin {
	to { transform: rotate(360deg); }
}

/* Suppress WooCommerce's native ::after loading icon so only the ::before spinner shows */
.gl-product-card__cta a.button.loading::after,
.gl-product-card .mozaic-price-btn a.button.loading::after {
	display: none !important;
	content: none !important;
}

/* Added state — success green + checkmark */
.gl-product-card__cta a.button.added,
.gl-product-card .mozaic-price-btn a.button.added {
	background: #2e7d32 !important;
	box-shadow: 0 4px 14px rgba(46, 125, 50, 0.32) !important;
	pointer-events: none;
}

.gl-product-card__cta a.button.added::before,
.gl-product-card .mozaic-price-btn a.button.added::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.gl-product-card__contact,
.gl-product-card a.no-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	font-size: clamp(13px, 1.3rem, 14px);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	color: var(--hdr-navy, #003b6b);
	background: transparent;
	border: 2px solid var(--hdr-navy, #003b6b);
	border-radius: var(--hdr-radius, 8px);
	transition: background 0.2s ease, color 0.2s ease;
}

.gl-product-card__contact:hover,
.gl-product-card a.no-price:hover {
	color: #fff;
	background: var(--hdr-navy, #003b6b);
}

/* ─── Pricing — match old .product-list-item .product-price (column stack) ─── */
.gl-product-card__pricing {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	gap: 0;
	width: 100%;
	min-height: 0;
	padding: 8px 0 0;
	margin-top: 0;
	border-top: 2px solid var(--hdr-gray-brd, #e8ecf1);
	text-align: center;
	transition: border-color 0.25s ease;
}

.gl-product-card:hover .gl-product-card__pricing {
	border-top-color: rgba(184, 0, 0, 0.2);
}

/*
 * Old theme:
 *   .product-list-item .product-price { flex-direction: column; align-items: center; margin-bottom: 20px }
 *   .product-price del { order: 1 }
 * Sale current on top, struck regular below — never clip with overflow/fixed height.
 */
.gl-product-card__price,
.gl-product-card .gl-product-card__pricing .product-price,
.gl-product-card .product-price,
.gl-product-card .product-price.prd-var2,
.gl-product-card .gl-product-card__price {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
	flex: 0 0 auto !important;
	min-height: 0 !important;
	height: auto !important;
	width: 100%;
	min-width: 0;
	margin: 0 0 8px !important; /* tighter than old 20px — CTA row sits below */
	padding: 0 !important;
	overflow: visible !important;
	font-family: "Open Sans", Lato, sans-serif;
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

/* Non-sale variable range — old .prd-var keeps a single horizontal line */
.gl-product-card .product-price.prd-var {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	gap: 0.25em !important;
}

.gl-product-card .product-price .price,
.gl-product-card .product-price .custom.price,
.gl-product-card .product-price .price .price {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: auto !important;
	margin: 0;
	padding: 0;
	text-align: center;
	font-family: "Open Sans", Lato, sans-serif;
	font-size: 2.1rem;
	font-weight: 700;
	line-height: 1.25;
	white-space: normal;
	overflow: visible !important;
	text-overflow: clip;
	color: inherit;
}

.gl-product-card .product-price.prd-var .price,
.gl-product-card .product-price.prd-var .custom.price {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
	white-space: normal;
}

.gl-product-card .product-price .price .woocommerce-Price-amount,
.gl-product-card .product-price .price > .woocommerce-Price-amount,
.gl-product-card .product-price .custom.price > .woocommerce-Price-amount,
.gl-product-card .product-price ins .woocommerce-Price-amount {
	display: inline !important;
	white-space: nowrap;
}

.gl-product-card .product-price del,
.gl-product-card .product-price ins {
	display: block !important; /* old staging computed display:block in column flex */
	width: auto;
	max-width: 100%;
	margin: 0 !important;
	padding: 0;
	text-align: center;
	white-space: nowrap;
}

.gl-product-card .product-price ins {
	order: 0;
	text-decoration: none !important;
	color: #b80000 !important;
	font-family: "Open Sans", Lato, sans-serif !important;
	font-size: 2.1rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	opacity: 1 !important;
}

/*
 * Kill WooCommerce:
 *   .woocommerce ul.products li.product .price del { opacity: 0.7; color: inherit }
 * Old: order 1 so struck sits under current even when DOM is del-then-ins.
 */
.gl-product-card .product-price del,
.woocommerce ul.products li.product .gl-product-card .price del,
.woocommerce ul.products li.product .gl-product-card .product-price del {
	order: 1;
	opacity: 1 !important;
	color: #898989 !important;
	font-family: "Open Sans", Lato, sans-serif !important;
	font-size: 1.4rem !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
}

/*
 * Current / regular amounts — do NOT select del descendants.
 * Include `.woocommerce-Price-amount.amount` (0,4,0) only under ins / direct children.
 */
.gl-product-card .product-price > .woocommerce-Price-amount,
.gl-product-card .product-price > .woocommerce-Price-amount.amount,
.gl-product-card .product-price ins .woocommerce-Price-amount,
.gl-product-card .product-price ins .woocommerce-Price-amount.amount,
.gl-product-card .product-price ins .amount,
.gl-product-card .product-price ins .woocommerce-Price-amount bdi,
.gl-product-card .product-price .price > .woocommerce-Price-amount,
.gl-product-card .product-price .price > .woocommerce-Price-amount.amount,
.gl-product-card .product-price .custom.price > .woocommerce-Price-amount,
.gl-product-card .product-price .custom.price > .woocommerce-Price-amount.amount,
.gl-product-card .product-price .custom.price > ins .woocommerce-Price-amount,
.gl-product-card .product-price .custom.price > ins .woocommerce-Price-amount.amount {
	font-family: "Open Sans", Lato, sans-serif !important;
	font-size: 2.1rem !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	color: #b80000 !important;
	text-decoration: none !important;
	opacity: 1 !important;
}

/* Struck — higher specificity than any `.woocommerce-Price-amount.amount` red rule */
.gl-product-card .product-price del .woocommerce-Price-amount,
.gl-product-card .product-price del .woocommerce-Price-amount.amount,
.gl-product-card .product-price del .amount,
.gl-product-card .product-price del bdi,
.gl-product-card .product-price del span,
.woocommerce ul.products li.product .gl-product-card .price del .woocommerce-Price-amount,
.woocommerce ul.products li.product .gl-product-card .price del .woocommerce-Price-amount.amount {
	font-family: "Open Sans", Lato, sans-serif !important;
	font-size: 1.4rem !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	color: #898989 !important;
	text-decoration: line-through !important;
	opacity: 1 !important;
}

.gl-product-card .product-price .woocommerce-price-suffix {
	display: inline;
	font-size: clamp(12px, 1.1rem, 13px);
	font-weight: 500;
	color: var(--hdr-muted, #5d6b7a);
	white-space: nowrap;
}

@media (max-width: 480px) {
	.gl-product-card .product-price,
	.gl-product-card .gl-product-card__price,
	.gl-product-card .product-price .price,
	.gl-product-card .product-price .custom.price,
	.gl-product-card .product-price ins,
	.gl-product-card .product-price ins .woocommerce-Price-amount,
	.gl-product-card .product-price ins .woocommerce-Price-amount.amount {
		font-size: 1.8rem !important;
	}

	.gl-product-card .product-price del,
	.gl-product-card .product-price del .woocommerce-Price-amount,
	.gl-product-card .product-price del .woocommerce-Price-amount.amount,
	.gl-product-card .product-price del .amount,
	.gl-product-card .product-price del bdi,
	.gl-product-card .product-price del span {
		font-size: 1.3rem !important;
	}
}

.gl-product-card__cta-row .gl-product-card__tax,
.gl-product-card__cta-row .tax-info-cust {
	position: static !important;
	right: auto !important;
	bottom: auto !important;
	display: inline-flex;
	align-self: center !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin: 0;
	margin-top: auto !important;
	margin-bottom: auto !important;
	padding: 0;
	/* Old .tax-info-cust: #7e9cb4 / 700 */
	font-family: "Open Sans", Lato, sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	color: #7e9cb4;
	background: transparent;
	border-radius: 0;
}

/* ─── Best sellers section ──────────────────────────────────────────────────── */
.woo-shop-best-sellers {
	margin-top: clamp(40px, 6vw, 64px);
	padding-top: clamp(28px, 4vw, 40px);
	border-top: 1px solid var(--hdr-gray-brd, #dce2ea);
}

.woo-shop-best-sellers__head {
	margin-bottom: clamp(20px, 3vw, 28px);
}

.woo-shop-best-sellers__title {
	margin: 0 0 8px;
	font-size: clamp(20px, 2rem, 26px);
	font-weight: 700;
	line-height: 1.2;
	color: var(--hdr-navy, #003b6b);
}

.woo-shop-best-sellers__lead {
	margin: 0;
	font-size: clamp(14px, 1.4rem, 16px);
	line-height: 1.5;
	color: var(--hdr-muted, #5d6b7a);
}

/* ─── Legacy overrides inside card scope ────────────────────────────────────── */
.gl-product-card .product-item-box .product-status {
	display: none;
}

.gl-product-card .product-list-item .product-price,
.gl-product-card .product-price {
	margin-bottom: 0 !important;
}

@media (max-width: 771px) {
	:root {
		--gl-card-actions-inset: clamp(6px, 4%, 12px);
	}
}

/* Mobile: natural image height — avoids bottom crop from fixed boxes + overflow:hidden */
@media (max-width: 767px) {
	.gl-product-card__media-wrap {
		height: auto;
		overflow: visible;
		padding: clamp(8px, 2.5vw, 14px);
		box-sizing: border-box;
	}

	.gl-product-card__media,
	.gl-product-card .product-item-pic {
		height: auto !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.gl-product-card__media img,
	.gl-product-card__img {
		display: block;
		width: 100% !important;
		height: auto !important;
		max-width: 100% !important;
		max-height: none !important;
		object-fit: contain !important;
		object-position: center center;
		transform: none !important;
	}

	.gl-product-card:hover .gl-product-card__img {
		transform: none !important;
	}
}

@media (max-width: 480px) {
	:root {
		--gl-card-actions-inset: clamp(4px, 3%, 10px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gl-product-card,
	.gl-product-card::before,
	.gl-product-card__media-wrap,
	.gl-product-card__media,
	.gl-product-card__cta a.button,
	.gl-product-card__pricing {
		transition: none;
		animation: none;
	}

	.gl-product-card:hover,
	ul.products li.product:hover .gl-product-card {
		transform: none;
	}

	.gl-product-card:hover .gl-product-card__img {
		transform: none;
	}

	.gl-product-card:hover::before {
		transform: scaleX(1); /* still show accent, just instantly */
	}

	.gl-product-card__cta a.button.loading::before {
		animation: none;
	}
}

/* ─── "Se handlekurv" (View Cart) link injected by WooCommerce after AJAX add ─ */

/* Button appearance — mirrors the main CTA button style */
.gl-product-card__cta a.added_to_cart,
.gl-product-card .mozaic-price-btn a.added_to_cart {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 120px;
	min-height: 44px;
	padding: 10px 20px !important;
	font-family: var(--hdr-font, inherit) !important;
	font-size: clamp(13px, 1.35rem, 14px) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.03em;
	text-transform: uppercase !important;
	color: #fff !important;
	background: var(--hdr-navy, #003b6b) !important;
	border: none !important;
	border-radius: var(--hdr-radius, 8px) !important;
	box-shadow: 0 2px 8px rgba(0, 59, 107, 0.22);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.18s ease;
	text-decoration: none !important;
	width: auto !important;
	height: auto !important;
	position: relative;
	cursor: pointer;
}

/* Cart icon via ::before pseudo */
.gl-product-card__cta a.added_to_cart::before,
.gl-product-card .mozaic-price-btn a.added_to_cart::before {
	content: '';
	display: inline-block;
	width: 15px;
	height: 15px;
	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='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.gl-product-card__cta a.added_to_cart:hover,
.gl-product-card .mozaic-price-btn a.added_to_cart:hover {
	background: #002a50 !important;
	box-shadow: 0 6px 18px rgba(0, 59, 107, 0.38);
	transform: translateY(-2px);
	color: #fff !important;
	text-decoration: none !important;
}

/* Hide the green "added" button when the "Se handlekurv" button is shown
   (prevents two-button overflow inside the fixed-height CTA row) */
.gl-product-card__cta a.button.added.gl-btn-replaced,
.gl-product-card .mozaic-price-btn a.button.added.gl-btn-replaced {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.gl-product-card__cta a.added_to_cart,
	.gl-product-card .mozaic-price-btn a.added_to_cart {
		transition: none;
	}
}
