/**
 * Elegant ytterdörrar in the shop: product page ([kf_elegant_product]) and loop tiles.
 * Same palette and type as the configurator page.
 */

.kf-eshop,
.kf-eshop-stock {
	--kf-navy: #132d45;
	--kf-navy-soft: #2a455e;
	--kf-navy-head: #193a56;
	--kf-navy-fg: #f6f9fb;
	--kf-gold: #f2cf24;
	--kf-kicker: #9a7b00;
	--kf-muted: #62748e;
	--kf-line: #dadee3;
	--kf-sand: #f6f5f1;
	--kf-render: #032840;
	--kf-radius: 4px;
	--kf-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--kf-display: "Poppins", var(--kf-body);
}

/* ==========================================================================
   Loop tiles
   ========================================================================== */

.kf-eshop-stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--kf-navy-soft);
}

.kf-eshop-stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3c9a5f;
}

.kf-eshop-stock.is-queue::before {
	background: #d08a1e;
}

.product-grid-item .kf-eshop-stock {
	display: flex;
}

/* ==========================================================================
   Product page
   ========================================================================== */

.kf-eshop {
	max-width: 1400px;
	margin: 0 auto 60px;
	font-family: var(--kf-body);
	color: var(--kf-navy);
}

.kf-eshop .wd-breadcrumbs,
.kf-eshop .woocommerce-breadcrumb {
	margin: 0 0 14px;
	font-size: 12px;
}

.kf-eshop h2,
.kf-eshop h3 {
	font-family: var(--kf-display);
	color: var(--kf-navy-head);
	text-transform: none;
	letter-spacing: 0;
}

.kf-eshop-eyebrow {
	margin: 0 !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--kf-kicker);
	line-height: 1.4;
}

/* ── Head ── */

.kf-eshop-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 32px;
	margin: 0 0 24px;
}

.kf-eshop-identity {
	min-width: 0;
	flex: 1 1 360px;
}

.kf-eshop-head h1.product_title {
	margin: 8px 0 6px !important;
	font-family: var(--kf-display) !important;
	font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem) !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.01em !important;
	text-transform: none !important;
	color: var(--kf-navy-head) !important;
}

.kf-eshop-meta {
	margin: 0 !important;
	font-size: 12px;
	color: var(--kf-muted);
}

.kf-eshop-meta a {
	color: var(--kf-navy-soft);
	text-decoration: underline;
	text-decoration-color: var(--kf-line);
	text-underline-offset: 3px;
}

.kf-eshop-head-price {
	margin: 0 !important;
	text-align: right;
	font-family: var(--kf-display);
	font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem);
	font-weight: 600;
	color: var(--kf-navy-head);
	line-height: 1.2;
	white-space: nowrap;
}

.kf-eshop-head-price .price,
.kf-eshop-head-price .amount {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}

.kf-eshop-head-price-label {
	margin-right: 6px;
}

.kf-eshop-head-price small {
	display: block;
	font-family: var(--kf-body);
	font-size: 12px;
	font-weight: 400;
	color: var(--kf-muted);
}

/* ── Two columns ── */

.kf-eshop-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	margin-bottom: 48px;
}

.kf-eshop-grid > * {
	min-width: 0;
}

@media (min-width: 992px) {
	.kf-eshop-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
		gap: 40px;
		align-items: start;
	}

	.kf-eshop-media {
		position: sticky;
		top: 90px;
	}
}

.kf-eshop-media .woocommerce-product-gallery {
	margin: 0 !important;
}

.kf-eshop-media .woocommerce-product-gallery__image img,
.kf-eshop-media .wd-carousel-item img {
	border-radius: var(--kf-radius);
}

.kf-eshop-side {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ── Intro and facts ── */

.kf-eshop-intro p {
	margin: 0 0 10px !important;
	font-size: 15px;
	line-height: 1.65;
	color: var(--kf-muted);
}

.kf-eshop-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 4px 0 0 !important;
	padding: 0 !important;
	list-style: none;
}

.kf-eshop-chips li {
	margin: 0 !important;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--kf-navy-soft);
	background: var(--kf-sand);
	border: 1px solid var(--kf-line);
	border-radius: 999px;
}

.kf-eshop-facts {
	margin: 0 !important;
	padding: 4px 16px;
	background: #fff;
	border: 1px solid var(--kf-line);
	border-radius: var(--kf-radius);
}

.kf-eshop-facts > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
	border-top: 1px solid var(--kf-line);
	font-size: 13.5px;
}

.kf-eshop-facts > div:first-child {
	border-top: 0;
}

.kf-eshop-facts dt {
	margin: 0 !important;
	font-weight: 400;
	color: var(--kf-muted);
}

.kf-eshop-facts dd {
	margin: 0 !important;
	text-align: right;
	font-weight: 700;
	color: var(--kf-navy);
}

/* ── Purchase card ── */

.kf-eshop-buy {
	padding: 16px;
	background: var(--kf-navy);
	border-radius: var(--kf-radius);
	color: var(--kf-navy-fg);
}

@media (min-width: 992px) {
	.kf-eshop-buy {
		padding: 20px;
	}
}

.kf-eshop-buy-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(246, 249, 251, 0.7);
}

.kf-eshop-buy-eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 12px;
	height: 8px;
	border-left: 2px solid var(--kf-gold);
	border-bottom: 2px solid var(--kf-gold);
	transform: rotate(-45deg) translateY(-2px);
}

.kf-eshop-hang-hint {
	margin: 0 0 12px !important;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(246, 249, 251, 0.75);
}

.kf-eshop-buy .wd-single-add-cart {
	margin: 0 !important;
}

.kf-eshop-buy form.cart {
	margin: 0 !important;
}

.kf-eshop-buy table.variations {
	margin: 0 0 12px !important;
	border: 0 !important;
}

.kf-eshop-buy table.variations tr,
.kf-eshop-buy table.variations th,
.kf-eshop-buy table.variations td {
	display: block;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	text-align: left !important;
}

.kf-eshop-buy table.variations th.label,
.kf-eshop-buy table.variations td.label {
	margin-bottom: 8px;
}

.kf-eshop-buy table.variations label {
	font-size: 13px !important;
	font-weight: 700 !important;
	color: var(--kf-navy-fg) !important;
}

.kf-eshop-buy .reset_variations {
	display: none !important;
}

/* Hängning as two buttons (Woocommerce Variation Swatches or the plain select). */
.kf-eshop-buy .variable-items-wrapper {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0 !important;
	padding: 0 !important;
}

.kf-eshop-buy .variable-items-wrapper .variable-item {
	width: auto !important;
	height: auto !important;
	min-height: 46px;
	margin: 0 !important;
	padding: 10px 12px !important;
	background: rgba(246, 249, 251, 0.08) !important;
	border: 1px solid rgba(246, 249, 251, 0.35) !important;
	border-radius: var(--kf-radius) !important;
	box-shadow: none !important;
	color: var(--kf-navy-fg) !important;
	cursor: pointer;
}

.kf-eshop-buy .variable-items-wrapper .variable-item .variable-item-span {
	font-size: 14px;
	font-weight: 700;
	color: var(--kf-navy-fg) !important;
	white-space: normal;
}

.kf-eshop-buy .variable-items-wrapper .variable-item:hover {
	border-color: var(--kf-navy-fg) !important;
}

.kf-eshop-buy .variable-items-wrapper .variable-item.selected {
	background: var(--kf-navy-fg) !important;
	border-color: var(--kf-gold) !important;
	box-shadow: 0 0 0 1px var(--kf-gold) !important;
}

.kf-eshop-buy .variable-items-wrapper .variable-item.selected .variable-item-span {
	color: var(--kf-navy) !important;
}

.kf-eshop-buy table.variations select {
	width: 100%;
	min-height: 46px;
	color: var(--kf-navy);
	background-color: #fff;
	border-radius: var(--kf-radius);
}

/* style.css hides the variation block site-wide (configurator products show their own price). */
body.kf-eshop-page .kf-eshop-buy .woocommerce-variation.single_variation:not([style*="none"]) {
	display: flex !important;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 12px;
}

.kf-eshop-buy .single_variation > div:empty {
	display: none;
}

.kf-eshop-buy .woocommerce-variation-availability {
	order: -1;
}

.kf-eshop-buy .woocommerce-variation-price {
	display: none;
}

.kf-eshop-buy .woocommerce-variation-availability p.stock,
.kf-eshop-buy .woocommerce-variation-availability .stock {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 !important;
	padding: 10px 12px;
	font-size: 13.5px !important;
	font-weight: 600;
	line-height: 1.5;
	color: var(--kf-navy-fg) !important;
	background: rgba(60, 154, 95, 0.18);
	border-left: 3px solid #3c9a5f;
	border-radius: var(--kf-radius);
}

.kf-eshop-buy .woocommerce-variation-availability p.stock.available-on-backorder,
.kf-eshop-buy .woocommerce-variation-availability p.stock.out-of-stock {
	background: rgba(208, 138, 30, 0.18);
	border-left-color: #d08a1e;
}

.kf-eshop-buy .woocommerce-variation-availability .stock::before {
	display: none !important;
}

.kf-eshop-buy .woo-selected-variation-item-name {
	display: none !important;
}

.kf-eshop-buy .woocommerce-variation-description p {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 13px;
	color: rgba(246, 249, 251, 0.75);
}

/* White total panel: price, quantity and the button. */
.kf-eshop-buy .woocommerce-variation-add-to-cart {
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: #fff;
	border-radius: var(--kf-radius);
}

.kf-eshop-total {
	grid-column: 1 / -1;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
	font-weight: 500;
	color: var(--kf-muted);
}

.kf-eshop-total-figures {
	text-align: right;
}

.kf-eshop-total .price,
.kf-eshop-total .amount {
	margin: 0 !important;
	font-family: var(--kf-display) !important;
	font-size: 28px !important;
	font-weight: 600 !important;
	line-height: 1.05 !important;
	color: var(--kf-navy) !important;
}

.kf-eshop-total-unit {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--kf-muted);
}

.kf-eshop-split {
	grid-column: 1 / -1;
	margin: 0 !important;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--kf-navy);
	background: rgba(208, 138, 30, 0.16);
	border-left: 3px solid #d08a1e;
	border-radius: var(--kf-radius);
}

/* style.css and an inline rule hide the WooCommerce button and quantity on every product page,
   because configurator products buy through their own button. Elegant uses the standard ones. */
body.kf-eshop-page .kf-eshop-buy form.cart .single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	visibility: visible !important;
	height: auto !important;
	overflow: visible !important;
	pointer-events: auto !important;
}

body.kf-eshop-page .kf-eshop-buy form.cart div.quantity {
	display: inline-flex !important;
	visibility: visible !important;
	height: auto !important;
	overflow: visible !important;
}

.kf-eshop-buy .woocommerce-variation-add-to-cart .quantity {
	margin: 0 !important;
}

.kf-eshop-buy .woocommerce-variation-add-to-cart .quantity input.qty {
	color: var(--kf-navy);
}

body.kf-eshop-page .kf-eshop-buy form.cart .single_add_to_cart_button {
	width: 100%;
	min-height: 50px !important;
	margin: 0 !important;
	padding: 12px 20px !important;
	background: var(--kf-gold) !important;
	color: var(--kf-navy) !important;
	border: 0 !important;
	border-radius: var(--kf-radius) !important;
	font-family: var(--kf-body) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em !important;
	text-transform: uppercase !important;
}

body.kf-eshop-page .kf-eshop-buy form.cart .single_add_to_cart_button:hover,
body.kf-eshop-page .kf-eshop-buy form.cart .single_add_to_cart_button:focus-visible {
	background: #e3c115 !important;
}

body.kf-eshop-page .kf-eshop-buy form.cart .single_add_to_cart_button.disabled {
	opacity: 0.55;
}

.kf-eshop-qty-hint {
	grid-column: 1 / -1;
	margin: 0 !important;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--kf-muted);
}

.kf-eshop-qty-hint a {
	color: var(--kf-navy);
	font-weight: 700;
}

.kf-eshop-buy-foot {
	margin: 12px 0 0 !important;
	font-size: 11.5px;
	line-height: 1.5;
	color: rgba(246, 249, 251, 0.7);
	text-align: center;
}

/* ── Delivery times ── */

.kf-eshop-times {
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--kf-line);
	border-radius: var(--kf-radius);
}

.kf-eshop-times h2 {
	margin: 0 0 8px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
}

.kf-eshop-times ul {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

.kf-eshop-times li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0 !important;
	padding: 8px 0 8px 12px;
	border-top: 1px solid var(--kf-line);
	border-left: 3px solid transparent;
	font-size: 13.5px;
	color: var(--kf-muted);
}

.kf-eshop-times li:first-child {
	border-top: 0;
}

.kf-eshop-times li strong {
	font-weight: 600;
	color: var(--kf-navy-soft);
}

.kf-eshop-times li span {
	flex: 0 0 auto;
	font-weight: 700;
	color: var(--kf-navy);
}

.kf-eshop[data-state="stock"] .kf-eshop-times .is-stock,
.kf-eshop[data-state="queue"] .kf-eshop-times .is-queue,
.kf-eshop[data-state="mixed"] .kf-eshop-times .is-stock,
.kf-eshop[data-state="mixed"] .kf-eshop-times .is-queue {
	border-left-color: var(--kf-gold);
	background: #fffbea;
}

/* ── 5+ and help ── */

.kf-eshop-bulk,
.kf-eshop-help {
	padding: 14px 16px;
	background: var(--kf-sand);
	border: 1px solid var(--kf-line);
	border-radius: var(--kf-radius);
}

.kf-eshop-bulk h2 {
	margin: 0 0 4px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
}

.kf-eshop-bulk p {
	margin: 0 0 12px !important;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--kf-muted);
}

.kf-eshop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: var(--kf-radius);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none !important;
}

.kf-eshop-btn.is-line {
	color: var(--kf-navy) !important;
	border: 2px solid var(--kf-navy);
	background: transparent;
}

.kf-eshop-btn.is-line:hover,
.kf-eshop-btn.is-line:focus-visible {
	color: #fff !important;
	background: var(--kf-navy);
}

.kf-eshop-help-title {
	margin: 0 !important;
	font-family: var(--kf-display);
	font-size: 14px;
	font-weight: 600;
	color: var(--kf-navy);
}

.kf-eshop-help-text {
	margin: 4px 0 8px !important;
	font-size: 12.5px;
	color: var(--kf-muted);
}

.kf-eshop-help-text:last-child {
	margin-bottom: 0 !important;
}

.kf-eshop-help-text a {
	color: var(--kf-navy);
	font-weight: 700;
}

.kf-eshop-help-link,
.kf-eshop-textlink {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: var(--kf-navy) !important;
	border-bottom: 2px solid var(--kf-gold);
	text-decoration: none !important;
}

/* ── Information tabs ── */

.kf-eshop-info {
	margin: 0 0 56px;
	background: #fff;
	border: 1px solid var(--kf-line);
	border-radius: var(--kf-radius);
}

.kf-eshop-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	padding: 0 16px;
	border-bottom: 1px solid var(--kf-line);
}

.kf-eshop-tabs button {
	margin: 0 0 -1px;
	padding: 14px 8px 12px;
	background: none !important;
	border: 0;
	border-bottom: 3px solid transparent;
	border-radius: 0;
	box-shadow: none !important;
	font-family: var(--kf-body);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kf-muted);
	cursor: pointer;
}

.kf-eshop-tabs button[aria-selected="true"] {
	color: var(--kf-navy);
	border-bottom-color: var(--kf-gold);
}

.kf-eshop-pane {
	padding: 20px 16px 24px;
}

@media (min-width: 768px) {
	.kf-eshop-pane {
		padding: 24px 28px 28px;
	}
}

body.kf-eshop-page .kf-eshop-pane table.shop_attributes {
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: none !important;
	overflow: visible !important;
}

body.kf-eshop-page .kf-eshop-pane table.shop_attributes tr th,
body.kf-eshop-page .kf-eshop-pane table.shop_attributes tr td {
	display: block !important;
	width: auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	vertical-align: top;
}

.kf-eshop-pane table.shop_attributes tbody {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: 32px;
}

@media (min-width: 992px) {
	.kf-eshop-pane table.shop_attributes tbody {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.kf-eshop-pane table.shop_attributes tr {
	display: grid;
	grid-template-columns: minmax(120px, 38%) minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--kf-line);
	background: none !important;
}

.kf-eshop-pane table.shop_attributes th,
.kf-eshop-pane table.shop_attributes td {
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	font-size: 13.5px;
	line-height: 1.5;
	text-align: left;
}

.kf-eshop-pane table.shop_attributes th {
	font-weight: 400;
	color: var(--kf-muted);
	text-transform: none;
	letter-spacing: 0;
}

.kf-eshop-pane table.shop_attributes td {
	font-weight: 600;
	color: var(--kf-navy);
}

.kf-eshop-pane table.shop_attributes td p {
	margin: 0 !important;
	padding: 0 !important;
}

.kf-eshop-prose {
	max-width: 760px;
}

.kf-eshop-prose h3 {
	margin: 20px 0 6px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
}

.kf-eshop-prose h3:first-child {
	margin-top: 0 !important;
}

.kf-eshop-prose p,
.kf-eshop-prose li {
	font-size: 15px;
	line-height: 1.7;
	color: var(--kf-navy-soft);
}

.kf-eshop-prose ul {
	margin: 0 0 14px 1.1em;
	padding: 0;
}

/* ── Other doors in the series ── */

.kf-eshop-others h2 {
	margin: 6px 0 20px !important;
	font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem) !important;
	font-weight: 600 !important;
}

.kf-eshop-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}

@media (min-width: 768px) {
	.kf-eshop-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1200px) {
	.kf-eshop-cards {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.kf-eshop-cards li {
	margin: 0 !important;
}

.kf-eshop-cards a {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--kf-line);
	border-radius: var(--kf-radius);
	color: inherit;
	text-decoration: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kf-eshop-cards a:hover,
.kf-eshop-cards a:focus-visible {
	border-color: var(--kf-navy-soft);
	box-shadow: 0 6px 18px rgba(19, 45, 69, 0.12);
}

.kf-eshop-door {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	background: var(--kf-render);
}

.kf-eshop-door img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kf-eshop-door img.is-open {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.kf-eshop-cards a:hover .is-open,
.kf-eshop-cards a:focus-visible .is-open {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.kf-eshop-door img.is-open {
		transition: none;
	}
}

.kf-eshop-card-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px 14px;
}

.kf-eshop-card-body strong {
	font-family: var(--kf-display);
	font-size: 15px;
	font-weight: 600;
	color: var(--kf-navy-head);
}

.kf-eshop-card-body > span {
	font-size: 12.5px;
	color: var(--kf-muted);
}

.kf-eshop-card-body .kf-eshop-card-price,
.kf-eshop-card-body .kf-eshop-card-price .amount {
	margin-top: 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--kf-navy) !important;
}

.kf-eshop-others-more {
	margin: 18px 0 0 !important;
}
