/*
 * Pixel-matched refinements based on the shared Lovable preview.
 */
:root {
	--dark: #74371f;
	--sienna: #a94f28;
	--copper: #cf6f27;
	--cream: #fbf7f1;
	--secondary: #e8c07a;
	--border: rgba(116, 55, 31, .12);
	--shell: min(100% - 10rem, 80rem);
}

body {
	background: var(--cream);
	color: var(--dark);
	font-size: 16px;
}

h1, h2, h3, h4, h5, h6 { color: var(--dark); }

.site-header { border-bottom: 1px solid rgba(116, 55, 31, .07); }
.site-header__inner {
	grid-template-columns: 8rem 1fr 8rem;
	width: var(--shell);
	min-height: 8rem;
}
.site-logo { width: 6rem; height: 6rem; }
.site-title-wordmark {
	font-family: var(--display);
	font-size: 1.35rem;
}
.primary-navigation a {
	color: var(--dark);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .32em;
}
.primary-navigation .is-current { color: var(--copper); }
.header-actions { gap: 1.35rem; }
.header-action { width: 1.25rem; height: 1.25rem; }
.header-cart__count {
	top: -.65rem;
	right: -.72rem;
	background: #d27a24;
}
body:not(.home) .site-header__inner {
	display: flex;
	justify-content: space-between;
	min-height: 6.5rem;
}
body:not(.home) .site-logo { width: 3.6rem; height: 3.6rem; }
body:not(.home) .primary-navigation { margin-left: auto; }

.hero {
	min-height: 43.5rem;
	border-radius: 0 0 1.9rem 1.9rem;
}
.hero__content {
	min-height: 43.5rem;
	padding-block: 5rem;
}
.hero__overlay {
	background:
		linear-gradient(90deg, rgba(251,247,241,.97) 0%, rgba(251,247,241,.83) 30%, rgba(251,247,241,.23) 56%, transparent 78%),
		linear-gradient(0deg, rgba(251,247,241,.14), rgba(251,247,241,.14));
}
.hero h1 {
	max-width: 33rem;
	margin-bottom: 1.6rem;
	font-size: clamp(4rem, 5.5vw, 5rem);
	line-height: .98;
}
.hero__lead {
	max-width: 31rem;
	margin-bottom: .85rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.65;
}
.hero__quote {
	max-width: 30rem;
	margin-bottom: 2.1rem;
	color: #aa4d2a;
	font-size: 1.13rem;
}
.button,
button.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	min-height: 3rem;
	padding: .85rem 2rem;
	background: #aa5029;
	font-size: .68rem;
	letter-spacing: .27em;
}
.button--outline,
a.button--outline {
	border-color: var(--dark) !important;
	background: transparent !important;
	color: var(--dark) !important;
}
.button--outline:hover,
a.button--outline:hover {
	background: var(--dark) !important;
	color: var(--cream) !important;
}

.home-products { padding: 3rem 0 5.2rem; }
.woocommerce ul.products,
ul.products.treogro-product-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 3.1rem 3rem;
	list-style: none;
}
.woocommerce ul.products li.product.treogro-product-card,
ul.products.treogro-product-grid li.product.treogro-product-card {
	width: auto !important;
	margin: 0 !important;
}
.treogro-product-card__image {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 1.9rem;
	background: #f5e5c9;
}
.woocommerce ul.products .treogro-product-card__image img,
ul.products.treogro-product-grid .treogro-product-card__image img {
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	transform: none;
	transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.treogro-product-card:hover .treogro-product-card__image img { transform: scale(1.025); }
.treogro-product-card__details {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.3rem;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products.treogro-product-grid li.product .woocommerce-loop-product__title {
	margin: 0;
	padding: 0;
	font-size: 1.2rem;
	line-height: 1.25;
}
.woocommerce ul.products li.product .price,
ul.products.treogro-product-grid li.product .price {
	display: block;
	margin: .35rem 0 0;
	color: rgba(116,55,31,.72);
	font-size: .78rem;
}
.treogro-product-card__arrow {
	color: rgba(116,55,31,.46);
	font-family: var(--sans);
	font-size: 1.35rem;
	font-weight: 300;
}
.section-action { margin-top: 3rem; }

.split-showcase { padding-bottom: 6.1rem; }
.split-showcase__inner {
	grid-template-columns: 1fr 2fr;
	min-height: 37.5rem;
}
.split-showcase__copy {
	justify-content: center;
	padding: 3.5rem;
	background: #f7e6c8;
}
.split-showcase__copy h2 { font-size: 2.8rem; }
.course-grid {
	align-content: start;
	grid-template-columns: repeat(3, 1fr);
	background: var(--cream);
}
.course-grid__item { aspect-ratio: 1; }
.editorial-split {
	min-height: 40rem;
	margin-bottom: 6.1rem;
	background: #f7e6c8;
}
.editorial-split__copy { padding: 4.5rem; }
.editorial-split__copy h2 { font-size: 3.2rem; }
.editorial-split__media { min-height: 40rem; }
.instagram-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 1rem 0 6.2rem;
	text-align: center;
}
.instagram-section .eyebrow { margin-bottom: .55rem; }
.instagram-section .eyebrow::before { display: none; }
.instagram-section p:not(.eyebrow) {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .35em;
	text-transform: uppercase;
}
.instagram-section a { text-decoration: underline; text-underline-offset: .35em; }
.instagram-grid {
	display: grid;
	width: var(--shell);
	margin-top: 2.7rem;
	overflow: hidden;
	border-radius: 1.4rem;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}
.instagram-grid a {
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
}
.instagram-grid img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.values { padding: 3.6rem 0; }
.values__inner { width: var(--shell); gap: 3rem; }
.value h3 { font-family: var(--display); }

.contact-section { padding: 5.3rem 0; background: #f7e6c8; }
.contact-section__inner { width: min(100% - 26rem, 64rem); gap: 5rem; }
.contact-section h2 { font-size: 3.2rem; }
.site-footer__inner { width: var(--shell); }

/* Store archive */
.shop-shell {
	width: var(--shell);
	padding: 3rem 0 6rem;
}
.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering { display: none; }
.woocommerce-products-header { margin: 1.2rem 0 3.2rem; text-align: center; }
.woocommerce-products-header::before {
	display: block;
	margin-bottom: .55rem;
	color: var(--copper);
	font-size: .62rem;
	font-weight: 800;
	letter-spacing: .4em;
	text-transform: uppercase;
	content: "Nettbutikk";
}
.woocommerce-products-header::after {
	display: block;
	margin-top: .8rem;
	color: rgba(116,55,31,.65);
	font-size: .9rem;
	content: "Hvert produkt er unikt – laget for hånd i Oslo.";
}
.woocommerce-products-header__title {
	margin: 0;
	font-size: 3.4rem;
}
.woocommerce-products-header .term-description { display: none; }

/* Single product */
.shop-shell:has(.treogro-single-product) {
	width: min(100% - 15rem, 72rem);
	padding-top: 4.5rem;
}
.treogro-single-product .back-to-shop {
	display: inline-block;
	margin-bottom: 2.2rem;
	color: rgba(116,55,31,.62);
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .29em;
	text-transform: uppercase;
}
.treogro-single-product__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
}
.treogro-single-product__gallery .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}
.woocommerce div.product.treogro-single-product div.images img {
	border-radius: 1.9rem;
}
.woocommerce div.product.treogro-single-product div.images .flex-control-thumbs {
	grid-template-columns: repeat(5, 1fr);
	gap: .55rem;
}
.woocommerce div.product.treogro-single-product div.images .flex-control-thumbs img {
	border-radius: 1.3rem;
}
.treogro-single-product__summary { padding-top: .15rem; }
.product-category {
	margin-bottom: .8rem;
	color: var(--copper);
	font-size: .62rem;
	font-weight: 800;
	letter-spacing: .38em;
	text-transform: uppercase;
}
.product-category a { pointer-events: none; }
.woocommerce div.product.treogro-single-product .product_title {
	margin-bottom: 1.1rem;
	font-size: clamp(2.8rem, 4vw, 3.7rem);
	line-height: .98;
}
.woocommerce div.product.treogro-single-product p.price {
	margin-bottom: 2.3rem;
	color: var(--dark);
	font-family: var(--sans);
	font-size: 1.35rem;
}
.treogro-single-product__summary .woocommerce-product-details__short-description,
.treogro-product-description {
	margin: 0;
	color: rgba(116,55,31,.82);
	font-size: .95rem;
	line-height: 1.55;
}
.treogro-single-product__summary .woocommerce-product-details__short-description p,
.treogro-product-description p { margin: 0 0 .55rem; }
.treogro-single-product__summary form.cart { margin-top: 2.1rem; }
.treogro-single-product__summary .quantity { display: none; }

/* Course */
.course-page .course-hero,
.course-page .course-hero__content { min-height: 31.5rem; }
.course-hero__overlay {
	background: linear-gradient(90deg, rgba(251,247,241,.97), rgba(251,247,241,.64) 48%, rgba(251,247,241,.1));
}
.course-hero h1 {
	max-width: 43rem;
	font-size: 4.3rem;
	line-height: .98;
}
.course-calendar {
	width: min(100% - 18rem, 72rem);
	transform: translateY(0);
}
.course-panel {
	margin-top: -2.2rem;
	padding: 2.5rem;
	background: #f7e6c8;
}
.course-panel h2 { font-size: 2.55rem; }
.course-calendar__grid { margin-top: 1.6rem; }
.course-date {
	border-top-width: 1px;
	background: var(--cream);
}
.course-tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: .75rem;
	width: min(100% - 18rem, 72rem);
	padding: 5rem 0 3rem;
}
.course-tabs a {
	display: flex;
	min-height: 4.2rem;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #8d4028;
	color: var(--cream);
	font-size: .66rem;
	letter-spacing: .18em;
	text-align: center;
	text-transform: uppercase;
}
.course-tabs strong, .course-tabs span { display: block; }
.course-intro, .course-learning { display: none; }
.course-signup { padding: 5.2rem 0; }
.course-signup__inner { width: min(100% - 34rem, 56rem); }
.course-signup h2 { font-size: 3.3rem; }
.course-gallery { margin-top: 3rem; }
.course-gallery > div { border-radius: .5rem; }
.course-terms { padding: 4.5rem 0; background: #f7e6c8; }
.course-terms .section-inner { width: min(100% - 34rem, 56rem); }
.course-terms h2 { font-size: 2.7rem; }
.course-terms .entry-content h2,
.course-terms .entry-content h3 {
	margin: 1.8rem 0 .4rem;
	font-size: 1.25rem;
}

@media (max-width: 1100px) {
	:root { --shell: min(100% - 4rem, 80rem); }
	.contact-section__inner,
	.course-signup__inner,
	.course-terms .section-inner { width: min(100% - 4rem, 56rem); }
	.shop-shell:has(.treogro-single-product) { width: min(100% - 4rem, 72rem); }
}

@media (max-width: 960px) {
	body:not(.home) .site-header__inner { display: grid; }
	.woocommerce ul.products,
	ul.products.treogro-product-grid { gap: 2.5rem 1.5rem; }
	.contact-section__inner { width: min(100% - 4rem, 64rem); }
}

@media (max-width: 700px) {
	:root { --shell: min(100% - 2rem, 80rem); }
	.site-header__inner { min-height: 6rem; }
	.site-logo { width: 4.5rem; height: 4.5rem; }
	.hero, .hero__content { min-height: 37rem; }
	.hero h1 { font-size: 3.6rem; }
	.home-products { padding-top: 2rem; }
	.woocommerce ul.products,
	ul.products.treogro-product-grid { grid-template-columns: 1fr; }
	.split-showcase__inner { min-height: auto; }
	.course-grid { grid-template-columns: repeat(3, 1fr); }
	.editorial-split__copy { padding: 2.2rem; }
	.instagram-section { padding-bottom: 3rem; }
	.instagram-grid {
		overflow-x: auto;
		grid-template-columns: repeat(7, minmax(9rem, 1fr));
	}
	.treogro-single-product__grid { grid-template-columns: 1fr; }
	.shop-shell:has(.treogro-single-product) { width: calc(100% - 2rem); }
	.course-calendar,
	.course-tabs { width: calc(100% - 2rem); }
	.course-tabs { grid-template-columns: 1fr 1fr; padding-top: 3rem; }
	.course-page .course-hero,
	.course-page .course-hero__content { min-height: 26rem; }
	.course-hero h1 { font-size: 3.2rem; }
	.course-signup__inner,
	.course-terms .section-inner { width: calc(100% - 2rem); }
}


.norwegian-made-banner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2rem;
	text-align: center;
	border-radius: 0.5rem;
	padding: 2.5rem;
	background-color: var(--amber);
}
.norwegian-made-banner img {
	width: 9rem;
	height: 9rem;
	border-radius: 9999px;
	object-fit: cover;
	flex-shrink: 0;
}
@media (min-width: 768px) {
	.norwegian-made-banner {
		flex-direction: row;
		text-align: left;
		gap: 3.5rem;
		padding: 3.5rem;
	}
	.norwegian-made-banner img {
		width: 11rem;
		height: 11rem;
	}
}
