/*
Theme Name: QESPRO Nordlyn
Author: QESPRO
Author URI: https://qespro.com/
Description: Skandinavisches Möbelshop-Theme für WooCommerce mit startfertigem Demokatalog und eigenen Produktbildern.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: qespro-nordlyn
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, custom-logo, custom-menu, featured-images, translation-ready
*/

:root {
	--ink: #24231f;
	--heading: #201d19;
	--muted: #5e5952;
	--line: #e3dfd7;
	--paper: #fff;
	--wash: #f8f7f4;
	--sand: #eeeae3;
	--accent: #9b4328;
	--serif: Georgia, 'Times New Roman', serif;
	--sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--icon-bg: #fff;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 12px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 15px/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; vertical-align: middle; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { color: var(--heading); font-family: var(--serif); font-weight: 400; line-height: 1.06; }
h1 { font-size: clamp(35px, 4.4vw, 61px); letter-spacing: -.038em; }
h2 { font-size: clamp(28px, 3.1vw, 38px); letter-spacing: -.025em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(90%, 1320px); margin-inline: auto; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.screen-reader-text:focus {
	z-index: 20;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	clip-path: none;
	padding: 9px 14px;
	background: var(--paper);
}

.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-block-components-button:not(.is-link) {
	display: inline-flex;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 9px 17px;
	border: 1px solid #282724;
	border-radius: 3px;
	background: #282724;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease;
}
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce input.button:hover, .woocommerce #respond input#submit:hover,
.wc-block-components-button:not(.is-link):hover {
	border-color: #4a423a;
	background: #4a423a;
	color: #fff;
}
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
	border-color: #282724;
	background: #282724;
	color: #fff;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
	border-color: #4a423a;
	background: #4a423a;
}
.button-light { border-color: #ded9cf; background: #fff; color: #282724; }
.button-light:hover { border-color: #b3a996; background: #f6f2eb; color: #282724; }
.icon-button {
	display: inline-grid;
	width: 39px;
	height: 39px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 3px;
	color: inherit;
	background: transparent;
	text-decoration: none;
	cursor: pointer;
}
.icon-button:hover { background: #f2efe9; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }

.nordlyn-demo-banner { padding: 5px 12px; background: #302b25; color: #fff; font-size: 12px; font-weight: 600; text-align: center; }
.service-bar { --icon-bg: var(--sand); background: var(--sand); font-size: 12px; }
.service-inner { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 14px; min-height: 32px; }
.service-inner a { display: flex; align-items: center; gap: 7px; text-decoration: none; }
.service-inner a:hover { text-decoration: underline; }
.header-main { display: grid; position: relative; grid-template-columns: minmax(150px, 1fr) auto minmax(155px, 1fr); min-height: 77px; align-items: center; gap: 20px; }
.brand { display: inline-flex; width: fit-content; flex-direction: column; color: var(--heading); text-decoration: none; }
.wordmark { font: 400 clamp(32px, 3.1vw, 43px)/.94 var(--serif); letter-spacing: -.055em; }
.wordmark-caption { margin-top: 7px; color: var(--muted); font-size: 8px; letter-spacing: .16em; text-transform: uppercase; }
.custom-logo-link { display: inline-flex; width: fit-content; }
.custom-logo-link img { width: auto; max-width: 180px; max-height: 63px; object-fit: contain; }
.primary-nav ul, .site-footer ul { padding: 0; list-style: none; }
.primary-nav > ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px clamp(11px, 1.5vw, 26px); margin: 0; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 10px 0; font-size: 13px; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { text-decoration: underline; }
.primary-nav .nav-offers { color: var(--accent); }
.primary-nav .sub-menu {
	position: absolute;
	z-index: 10;
	display: none;
	top: 100%;
	left: 0;
	min-width: 165px;
	padding: 8px 14px;
	margin: 0;
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: 0 10px 24px #251b1114;
}
.primary-nav .sub-menu .sub-menu { top: 0; left: 100%; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.header-actions { display: flex; justify-self: end; align-items: center; gap: 3px; }
.cart-button { position: relative; }
.nordlyn-cart-count {
	position: absolute;
	display: grid;
	min-width: 16px;
	height: 16px;
	padding-inline: 3px;
	top: 3px;
	right: 0;
	place-items: center;
	border-radius: 12px;
	background: var(--ink);
	color: var(--paper);
	font-size: 9px;
	line-height: 1;
}
.mobile-menu, .shop-search { display: none; }
.shop-search:target { display: block; background: var(--wash); border-top: 1px solid var(--line); }
.shop-search-form { display: flex; align-items: center; padding-block: 12px; gap: 10px; }
.shop-search input[type="search"] { min-width: 0; flex: 1; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; }

.hero { isolation: isolate; position: relative; display: grid; min-height: clamp(360px, 31.5vw, 540px); align-items: center; overflow: hidden; background: #ded1bd; }
.hero-photo, .hero picture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { position: absolute; z-index: 0; inset: 0; content: ''; pointer-events: none; background: linear-gradient(90deg, #f7efe4db 0%, #f7efe477 32%, transparent 54%); }
.hero-inner { z-index: 1; position: relative; padding-block: 42px; }
.hero-copy { max-width: 645px; padding-left: clamp(0px, 1.4vw, 22px); }
.hero-copy p { max-width: 415px; margin-top: 14px; color: #2e2b24; font-size: clamp(15px, 1.55vw, 21px); line-height: 1.48; }
.hero-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-links .button { min-height: 43px; padding-inline: 16px; }

.category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; padding-block: 30px 26px; }
.category-grid a { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; }
.category-grid img { width: clamp(70px, 8.5vw, 124px); aspect-ratio: 1; border-radius: 50%; background: var(--wash); transition: transform .2s; }
.category-grid a:hover img { transform: translateY(-3px); }
.category-grid strong { margin-top: 7px; font-size: 13px; font-weight: 650; }
.category-grid span { margin-top: 1px; color: var(--muted); font-size: 11px; }
.category-grid a:hover span { text-decoration: underline; }

.featured-section { padding-block: 28px 32px; background: var(--wash); }
.section-head { display: flex; gap: 12px 24px; align-items: end; justify-content: space-between; margin-bottom: 16px; }
.section-head p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.section-head .text-link { margin-bottom: 4px; }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 21px); }
.product-card { display: flex; min-width: 0; flex-direction: column; }
.product-photo { position: relative; isolation: isolate; overflow: hidden; border-radius: 4px; background: #e9e7e2; }
.product-photo a { display: block; }
.product-photo img { display: block; width: 100%; aspect-ratio: 1.15; object-fit: cover; transition: transform .25s; }
.product-photo a:hover img { transform: scale(1.035); }
.product-tag {
	position: absolute;
	top: 9px;
	left: 9px;
	border-radius: 20px;
	padding: 3px 8px;
	color: white;
	background: var(--accent);
	font-size: 10px;
	font-weight: 650;
	pointer-events: none;
}
.wishlist-toggle {
	position: absolute;
	z-index: 2;
	top: 8px;
	right: 8px;
	width: 33px;
	height: 33px;
	border-radius: 50%;
	background: #fff;
}
.wishlist-toggle[aria-pressed="true"] { color: var(--accent); }
.wishlist-toggle[aria-pressed="true"] svg { fill: currentColor; }
.product-body { display: flex; flex: 1; flex-direction: column; align-items: start; gap: 4px; padding-top: 8px; }
.product-body h3 { font-size: 14px; line-height: 1.4; }
.product-body h3 a { text-decoration: none; }
.product-body h3 a:hover { text-decoration: underline; }
.product-note { color: var(--muted); font-size: 12px; line-height: 1.35; }
.product-rating { font-size: 12px; color: #8e5818; }
.product-price { margin-top: auto; padding-top: 4px; font-size: 16px; font-weight: 700; }
.product-price del { margin-right: 4px; color: var(--muted); font-size: .83em; font-weight: 400; }
.product-price ins { color: var(--accent); text-decoration: none; }
.product-body .button { width: 100%; margin-top: 3px; }
.product-body .added_to_cart { font-size: 12px; }

.benefit-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding-block: 23px; }
.benefit-grid a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.benefit-grid a:hover strong { text-decoration: underline; }
.benefit-grid svg { flex-shrink: 0; }
.benefit-grid strong, .benefit-grid small { display: block; font-size: 12px; }
.benefit-grid small { color: var(--muted); font-size: 11px; }

.collection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 1700px; margin-inline: auto; }
.collection-card { position: relative; isolation: isolate; display: flex; min-height: clamp(205px, 19vw, 310px); align-items: center; overflow: hidden; background: var(--sand); }
.collection-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 61%; }
.collection-card::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, #f5ede0ee, #f5ede0aa 42%, transparent 78%); }
.collection-copy { z-index: 1; padding: 23px 0 23px 7%; width: min(64%, 415px); }
.collection-living .collection-copy { padding-left: 7%; }
.collection-copy h2 { font-size: clamp(25px, 3vw, 42px); }
.collection-copy p { margin-top: 7px; max-width: 230px; font-size: 13px; line-height: 1.4; }
.collection-copy .button { margin-top: 12px; min-height: 38px; }

.inspiration { padding-block: 27px 20px; }
.idea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.idea-card { display: grid; grid-template-columns: minmax(78px, 33%) 1fr; align-items: center; gap: 13px; padding: 12px; border-radius: 4px; background: var(--wash); text-decoration: none; }
.idea-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 74% center; border-radius: 3px; }
.idea-card h3 { font-size: 14px; line-height: 1.3; }
.idea-card:hover h3 { text-decoration: underline; }
.idea-card p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.faq-section { padding-block: 9px 27px; }
.faq-grid { display: grid; grid-template-columns: 1.7fr 1fr; align-items: start; gap: 21px; }
.faq-grid details { margin-bottom: 5px; border: 1px solid var(--line); border-radius: 3px; font-size: 13px; }
.faq-grid summary { position: relative; display: block; padding: 10px 35px 10px 12px; cursor: pointer; list-style: none; font-weight: 600; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { position: absolute; top: 13px; right: 17px; width: 7px; height: 7px; content: ''; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.faq-grid details[open] summary::after { top: 16px; transform: rotate(225deg); }
.faq-grid details p { padding: 0 12px 12px; color: var(--muted); }
.contact-card { display: grid; grid-template-columns: 42% 1fr; overflow: hidden; border-radius: 4px; background: var(--sand); }
.contact-card img { width: 100%; height: 100%; min-height: 167px; object-fit: cover; object-position: 55% center; }
.contact-card > div { align-self: center; padding: 14px 13px; }
.contact-card h3 { font: 400 24px/1.08 var(--serif); }
.contact-card p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.contact-card a { margin-top: 8px; }

.site-footer { padding-top: 22px; background: var(--wash); }
.footer-grid { display: grid; grid-template-columns: 1.55fr repeat(4, 1fr); gap: 22px; padding-bottom: 20px; }
.footer-grid h2 { font: 650 13px/1.3 var(--sans); letter-spacing: 0; }
.footer-grid p { max-width: 230px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.footer-grid ul { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.site-footer li + li { margin-top: 2px; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-qespro { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-block: 14px; border-top: 1px solid var(--line); }
.footer-qespro .button svg { flex-shrink: 0; }
.footer-qespro-link { font-size: 13px; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding-block: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-bottom small { font-size: inherit; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.footer-bottom li + li { margin-top: 0; }

.wishlist-panel {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(100%, 430px);
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 20px;
	border: 0;
	box-shadow: 0 0 34px #241b1950;
	color: var(--ink);
	background: var(--paper);
}
.wishlist-panel::backdrop { background: #241b1977; }
.wishlist-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.wishlist-head h2 { font-size: 29px; }
.wishlist-items { padding: 0; margin: 0; list-style: none; }
.wishlist-items li { display: grid; grid-template-columns: 52px 1fr auto; min-height: 65px; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); }
.wishlist-items img { width: 49px; height: 49px; border-radius: 4px; object-fit: cover; }
.wishlist-items button { border: 0; background: transparent; color: var(--accent); font-size: 12px; cursor: pointer; }
.wishlist-message { color: var(--muted); font-size: 14px; }

.content-page, .shop-content { min-height: 55vh; padding-block: 32px 55px; }
.content-page article + article { margin-top: 18px; }
.content-page article h1, .shop-content .woocommerce-products-header__title { margin-bottom: 17px; }
.content-page article p + p { margin-top: 12px; }
.content-page article > :where(h2, h3, ul, ol, blockquote) { margin-block: 16px 8px; }
.comments-area { margin-top: 24px; }
.woocommerce .woocommerce-breadcrumb { margin-bottom: 15px; }
.woocommerce .woocommerce-ordering select { padding: 6px 8px; color: var(--ink); background: #fff; border: 1px solid var(--line); }
.woocommerce ul.products li.product { position: relative; }
.woocommerce ul.products li.product a img { border-radius: 4px; background: var(--wash); }
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { text-decoration: underline; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--ink); font: 650 15px/1.35 var(--sans); letter-spacing: 0; }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-weight: 650; }
.woocommerce ul.products li.product .price ins, .woocommerce div.product p.price ins { color: var(--accent); text-decoration: none; }
.woocommerce ul.products li.product .onsale { top: 3px; right: auto; left: 3px; }
.woocommerce span.onsale { min-width: 0; min-height: 0; margin: 0; padding: 4px 9px; border-radius: 20px; background: var(--accent); line-height: 1.4; }
.woocommerce div.product .product_title { margin-bottom: 12px; font-size: clamp(37px, 4.8vw, 58px); }
.woocommerce div.product .woocommerce-product-details__short-description { margin-block: 11px 17px; }
.woocommerce .quantity .qty { width: 58px; min-height: 42px; border: 1px solid var(--line); }
.woocommerce div.product .woocommerce-product-gallery__image img { border-radius: 4px; background: var(--wash); }
.woocommerce .single-wishlist { margin: 6px 0 12px; }
.single-wishlist .wishlist-toggle { position: static; border: 1px solid var(--line); }
.woocommerce .related h2, .woocommerce-tabs h2 { margin-bottom: 12px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { padding: 9px; border: 1px solid var(--line); }
.woocommerce-MyAccount-navigation ul { margin-top: 0; padding-left: 16px; }
.woocommerce-MyAccount-navigation li + li { margin-top: 5px; }
.woocommerce-MyAccount-navigation .is-active a { font-weight: 700; }
.woocommerce-message, .woocommerce-info { border-top-color: #514e3d; }
.woocommerce-message::before, .woocommerce-info::before { color: #514e3d; }

@media (max-width: 1060px) {
	.header-main { gap: 12px; grid-template-columns: minmax(130px, 1fr) auto minmax(140px, 1fr); }
	.primary-nav > ul { column-gap: 13px; }
	.primary-nav a { font-size: 12px; }
	.header-actions { gap: 0; }
	.header-actions .icon-button { width: 34px; }
	.collection-copy { padding-left: 7%; }
}

@media (max-width: 890px) {
	.header-main { min-height: 66px; grid-template-columns: auto 1fr auto; gap: 9px; }
	.mobile-menu { display: inline-grid; }
	.primary-nav { grid-column: 1 / -1; grid-row: 2; }
	.has-mobile-menu .primary-nav { display: none; position: absolute; z-index: 8; top: 100%; left: -5.55%; right: -5.55%; padding: 10px 6%; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 12px 20px #18141018; }
	.has-mobile-menu .primary-nav.is-open { display: block; }
	.primary-nav > ul { display: block; }
	.primary-nav a { font-size: 15px; }
	.primary-nav .sub-menu, .primary-nav .sub-menu .sub-menu { position: static; display: block; padding: 0 0 0 14px; border: 0; box-shadow: none; }
	.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.idea-card { grid-template-columns: 1fr; }
	.idea-card img { aspect-ratio: 1.8; }
}

@media (max-width: 700px) {
	.wrap { width: min(92%, 1320px); }
	.service-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 7px; font-size: 10px; }
	.service-inner a:nth-child(2), .service-inner a:nth-child(3) { display: none; }
	.service-inner a:last-child { justify-self: end; }
	.header-main { min-height: 60px; }
	.header-actions .icon-button { width: 35px; }
	.wordmark-caption { font-size: 7px; }
	.custom-logo-link img { max-width: min(30vw, 145px); max-height: 43px; }
	.has-mobile-menu .primary-nav { left: -4.35%; right: -4.35%; }
	.hero { display: block; min-height: 0; }
	.hero picture { display: block; }
	.hero picture, .hero-photo { position: relative; height: auto; }
	.hero-photo { display: block; width: 100%; aspect-ratio: 1.85; object-fit: cover; object-position: 85% 54%; }
	.hero::after { content: none; }
	.hero-inner { width: 100%; padding: 21px 5% 25px; background: #eee3d4; }
	.hero-copy h1 { font-size: clamp(32px, 8.65vw, 48px); }
	.hero-copy p { margin-top: 8px; }
	.hero-links { margin-top: 16px; }
	.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px 6px; padding-block: 19px; }
	.category-grid img { width: min(100%, 87px); }
	.category-grid span { display: none; }
	.featured-section { padding-block: 20px 22px; }
	.section-head { align-items: start; flex-direction: column; gap: 5px; }
	.section-head .text-link { margin-bottom: 0; }
	.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
	.benefit-grid a { gap: 6px; }
	.benefit-grid svg { width: 23px; height: 23px; }
	.collection-grid { grid-template-columns: 1fr; gap: 9px; }
	.collection-copy, .collection-living .collection-copy { padding-left: 5%; }
	.idea-grid { grid-template-columns: 1fr; gap: 8px; }
	.idea-card { grid-template-columns: 85px 1fr; }
	.idea-card img { aspect-ratio: 1.16; }
	.faq-grid { grid-template-columns: 1fr; gap: 12px; }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
	.footer-grid > div:first-child { grid-column: 1 / -1; }
	.woocommerce ul.products li.product .button { width: 100%; }
}

@media (max-width: 365px) {
	.header-main { gap: 3px; }
	.header-actions .icon-button { width: 31px; }
	.wordmark-caption { letter-spacing: .1em; }
	.button, .product-body .button { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
