/*
Theme Name: Swecraft Storefront
Description: Produktfokuserat child theme för Swecrafts personliga golfminnen.
Author: Swecraft
Version: 0.3.2
Template: storefront
Text Domain: swecraft-storefront
*/

:root {
	--swecraft-forest: #18392c;
	--swecraft-forest-dark: #10271e;
	--swecraft-cream: #f4efe5;
	--swecraft-paper: #fbf9f4;
	--swecraft-wood: #9a6845;
	--swecraft-gold: #c6a15b;
	--swecraft-ink: #20251f;
	--swecraft-muted: #687069;
	--swecraft-border: #d9d2c5;
}

body {
	background: var(--swecraft-paper);
	color: var(--swecraft-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, .site-branding .swecraft-wordmark {
	font-family: Georgia, "Times New Roman", serif;
	letter-spacing: -0.025em;
}

.site-header {
	background: var(--swecraft-forest-dark);
	border: 0;
	color: #fff;
	margin-bottom: 0;
	padding: 1.15rem 0 0;
}

.home .site-content > .col-full {
	margin: 0;
	max-width: none;
	padding: 0;
}
.home .site-content { padding-top: 0; }

.site-header .col-full {
	max-width: 78rem;
}

.site-branding {
	margin-bottom: 1rem;
}

.swecraft-brand {
	align-items: center;
	color: #fff !important;
	display: inline-flex;
	gap: 0;
	text-decoration: none !important;
}

.swecraft-mark {
	align-items: center;
	background: var(--swecraft-gold);
	border-radius: 50%;
	color: var(--swecraft-forest-dark);
	display: inline-flex;
	font-family: Georgia, serif;
	font-size: 1.25rem;
	font-weight: 700;
	height: 2.75rem;
	justify-content: center;
	width: 2.75rem;
}

.swecraft-wordmark {
	display: block;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1;
}

.swecraft-tagline {
	color: #cad5ce;
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	margin-top: 0.28rem;
	text-transform: uppercase;
}

.site-header-cart .cart-contents,
.main-navigation ul.menu > li > a,
.main-navigation ul.nav-menu > li > a {
	color: #fff;
}

.site-search { display: none; }

.storefront-primary-navigation {
	background: rgba(255, 255, 255, 0.045);
}

.storefront-breadcrumb {
	background: var(--swecraft-cream);
	color: var(--swecraft-muted);
	font-size: 0.85rem;
	margin: 0 0 3rem;
	padding: 0.9rem 0;
}

.storefront-breadcrumb a { color: var(--swecraft-forest); }

.single-product div.product {
	display: grid;
	gap: clamp(2rem, 5vw, 5rem);
	grid-template-areas: "gallery summary";
	grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
}

.single-product div.product::before,
.single-product div.product::after {
	display: none;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
	float: none;
	margin: 0;
	max-width: none;
	width: 100% !important;
}

.single-product div.product .woocommerce-product-gallery {
	grid-area: gallery;
	position: sticky;
	top: 1.5rem;
}

.single-product div.product .summary {
	grid-area: summary;
}

.woocommerce-product-gallery__wrapper {
	background: #e8e0d3;
	border-radius: 0.75rem;
	overflow: hidden;
}

.single-product div.product .woocommerce-product-gallery img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
	width: 100%;
}

.product_title {
	color: var(--swecraft-forest-dark);
	font-size: clamp(2.25rem, 4vw, 3.7rem);
	line-height: 1.02;
	margin-bottom: 1rem;
}

.single-product div.product p.price {
	color: var(--swecraft-wood);
	font-size: 1.35rem;
	font-weight: 700;
	margin-bottom: 1.3rem;
}

.woocommerce-product-details__short-description {
	color: var(--swecraft-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

table.variations {
	background: transparent;
	margin: 1.75rem 0 0;
}

table.variations th,
table.variations td {
	background: transparent;
	display: block;
	padding: 0 0 0.55rem;
}

table.variations label,
.swecraft-hio-fields label {
	color: var(--swecraft-ink);
	font-size: 0.9rem;
	font-weight: 650;
}

table.variations select,
.swecraft-hio-fields input[type="text"],
.swecraft-hio-fields input[type="date"],
.swecraft-hio-fields input[type="number"],
.swecraft-hio-fields textarea,
.swecraft-hio-fields input[type="file"] {
	background: #fff;
	border: 1px solid var(--swecraft-border);
	border-radius: 0.45rem;
	box-shadow: none;
	min-height: 3rem;
	padding: 0.7rem 0.8rem;
}

.swecraft-hio-fields {
	background: var(--swecraft-cream);
	border: 1px solid var(--swecraft-border);
	border-radius: 0.75rem;
	box-shadow: 0 1.25rem 3rem rgba(31, 42, 34, 0.06);
	margin: 1.5rem 0;
	padding: 1.5rem;
}

.swecraft-hio-fields legend {
	color: var(--swecraft-forest-dark);
	font-family: Georgia, serif;
	font-size: 1.35rem;
	font-weight: 700;
}

.swecraft-hio-help { color: var(--swecraft-muted); }

button.alt,
button.single_add_to_cart_button,
.button.alt,
.wc-block-components-button:not(.is-link) {
	background: var(--swecraft-forest) !important;
	border-radius: 999px !important;
	color: #fff !important;
	font-size: 1rem;
	font-weight: 700;
	padding: 1rem 1.8rem !important;
}

button.alt:hover,
button.single_add_to_cart_button:hover,
.button.alt:hover {
	background: var(--swecraft-forest-dark) !important;
}

.product_meta,
.woocommerce-tabs,
.storefront-sticky-add-to-cart {
	display: none;
}

.site-footer {
	background: var(--swecraft-forest-dark);
	color: #cbd5cf;
	margin-top: 5rem;
}

.site-footer a { color: #fff; }
.site-footer .swecraft-footer-grid a { color: #f7f3eb !important; font-size: 0.96rem; font-weight: 600; text-decoration-color: rgba(198, 161, 91, 0.7); text-underline-offset: 0.22rem; }
.site-footer .swecraft-footer-grid a:hover { color: #fff !important; text-decoration: underline; }
.post-type-archive-product .woocommerce-ordering,
.post-type-archive-product .woocommerce-result-count { display: none; }
.swecraft-footer-grid { display: grid; gap: 3rem; grid-template-columns: 1.7fr repeat(3, 1fr); padding: 1rem 0 3rem; }
.swecraft-footer-grid > div { display: flex; flex-direction: column; gap: 0.6rem; }
.swecraft-footer-grid h3 { color: var(--swecraft-gold); font-family: inherit; font-size: 0.72rem; letter-spacing: 0.13em; margin: 0 0 0.6rem; text-transform: uppercase; }
.swecraft-footer-grid p { color: #d2ddd6; line-height: 1.7; margin: 0; max-width: 24rem; }
.swecraft-footer-brand { font: 700 2rem/1 Georgia, serif; margin-bottom: 0.6rem; text-decoration: none; }
.swecraft-instagram { align-items: center; display: flex; gap: 0.6rem; }
.swecraft-instagram img { filter: invert(1); height: 1.2rem; width: 1.2rem; }
.site-info { border-top: 1px solid rgba(255, 255, 255, 0.2); color: #c2d0c8; font-size: 0.84rem; padding-top: 1.5rem; }

.swecraft-visually-hidden-select {
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	width: 1px !important;
	clip: rect(0 0 0 0) !important;
}
.swecraft-variation-cards { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.35rem; }
.swecraft-variation-card { align-items: center; background: #fff; border: 2px solid var(--swecraft-border); border-radius: 0.65rem; color: var(--swecraft-ink); display: flex; gap: 0.8rem; min-height: 5rem; padding: 0.85rem; text-align: left; width: 100%; }
.swecraft-variation-card:hover { border-color: var(--swecraft-gold); }
.swecraft-variation-card.is-selected { background: #eef3ef; border-color: var(--swecraft-forest); box-shadow: 0 0 0 1px var(--swecraft-forest); }
.swecraft-variation-card strong, .swecraft-variation-card small { display: block; }
.swecraft-variation-card strong { color: var(--swecraft-forest-dark); font-size: 0.9rem; }
.swecraft-variation-card small { color: var(--swecraft-muted); font-size: 0.75rem; line-height: 1.35; margin-top: 0.22rem; }
.swecraft-variation-dot { background: linear-gradient(135deg, #698d47 50%, #c2a77c 50%); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--swecraft-border); flex: 0 0 auto; height: 1.65rem; width: 1.65rem; }
.swecraft-variation-card.is-uncolored .swecraft-variation-dot { background: #b98b62; }
.reset_variations { display: none !important; }

.swecraft-family-members select { background: #fff; border: 1px solid var(--swecraft-border); border-radius: 0.45rem; min-height: 3rem; padding: 0.65rem 2.5rem 0.65rem 0.8rem; width: 100%; }
.swecraft-member-fields { border-top: 1px solid var(--swecraft-border); margin-top: 0.5rem; padding-top: 0.8rem; }

.swecraft-shell {
	margin: 0 auto;
	max-width: 78rem;
	padding-left: 2.6rem;
	padding-right: 2.6rem;
}

.swecraft-home { margin: 0; }
.swecraft-home .button { text-decoration: none; }

.swecraft-hero {
	background: radial-gradient(circle at 82% 22%, rgba(198, 161, 91, 0.14), transparent 30%), linear-gradient(115deg, var(--swecraft-forest-dark) 0%, var(--swecraft-forest) 58%, #315740 100%);
	color: #fff;
	overflow: hidden;
	padding: clamp(3.5rem, 8vw, 7.5rem) 0;
}

.swecraft-hero-grid {
	align-items: center;
	display: grid;
	gap: clamp(2rem, 6vw, 6rem);
	grid-template-columns: 1.05fr 0.75fr;
}

.swecraft-kicker {
	color: var(--swecraft-gold);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.14em;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.swecraft-hero h1 {
	color: #fff;
	font-size: clamp(3.2rem, 7vw, 6.3rem);
	line-height: 0.96;
	margin: 0 0 1.5rem;
	max-width: 10ch;
}

.swecraft-lead {
	font-size: clamp(1.08rem, 2vw, 1.3rem);
	line-height: 1.7;
}

.swecraft-hero .swecraft-lead { color: #d8e2dc; max-width: 38rem; }
.swecraft-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 1.3rem; margin: 2rem 0; }
.swecraft-text-link { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--swecraft-gold); text-decoration-thickness: 2px; text-underline-offset: 0.35rem; }
.swecraft-hero .swecraft-text-link { color: #fff; }
.swecraft-trust-list { color: #cad5ce; display: flex; flex-wrap: wrap; font-size: 0.86rem; gap: 0.7rem 1.5rem; list-style: none; margin: 0; }
.swecraft-trust-list li::before { color: var(--swecraft-gold); content: "✓"; margin-right: 0.45rem; }
.swecraft-hero-visual { position: relative; }
.swecraft-hero-visual::before { border: 1px solid rgba(198, 161, 91, 0.55); content: ""; inset: -1rem 1rem 1rem -1rem; position: absolute; }
.swecraft-hero-visual img { aspect-ratio: 4 / 5; box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28); display: block; object-fit: cover; position: relative; width: 100%; }
.swecraft-image-placeholder { align-items: center; aspect-ratio: 4 / 5; background: #b98c63; display: flex; flex-direction: column; font: 700 2.4rem/1.1 Georgia, serif; justify-content: center; position: relative; text-align: center; }
.swecraft-image-placeholder span { font: 400 1rem/1.5 sans-serif; margin-top: 1rem; }

.swecraft-section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.swecraft-section h2, .swecraft-page h1 { color: var(--swecraft-forest-dark); font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: 1.05; margin: 0 0 1.5rem; }
.swecraft-how { background: var(--swecraft-cream); }
.swecraft-how > div > h2 { max-width: 14ch; }
.swecraft-steps { display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; }
.swecraft-steps article { border-top: 1px solid var(--swecraft-border); padding-top: 1.5rem; }
.swecraft-steps span { align-items: center; background: var(--swecraft-forest); border-radius: 50%; color: #fff; display: flex; font-weight: 700; height: 2.3rem; justify-content: center; margin-bottom: 1.3rem; width: 2.3rem; }
.swecraft-steps h3 { color: var(--swecraft-forest-dark); font-size: 1.55rem; margin-bottom: 0.7rem; }
.swecraft-steps p, .swecraft-card p, .swecraft-section-heading > p { color: var(--swecraft-muted); line-height: 1.7; }

.swecraft-designs { background: #fff; }
.swecraft-section-heading { align-items: end; display: grid; gap: 3rem; grid-template-columns: 1fr 0.65fr; margin-bottom: 3rem; }
.swecraft-card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, 1fr); }
.swecraft-card { background: var(--swecraft-paper); border: 1px solid var(--swecraft-border); display: flex; flex-direction: column; padding: 1rem 1rem 1.7rem; }
.swecraft-card-image-link { display: block; text-decoration: none; }
.swecraft-card-art { align-items: center; aspect-ratio: 4 / 3; background: linear-gradient(145deg, #b68a63, #d6b58d); color: rgba(44, 31, 21, 0.82); display: flex; font: 700 clamp(2rem, 4vw, 3.7rem)/1 Georgia, serif; justify-content: center; letter-spacing: -0.04em; margin-bottom: 1.3rem; overflow: hidden; }
.swecraft-card-art img { height: 100%; object-fit: cover; transition: transform 500ms ease; width: 100%; }
.swecraft-card:hover .swecraft-card-art img { transform: scale(1.025); }
.swecraft-card-concept { background: linear-gradient(145deg, #d8c5a5, #a77d55); position: relative; text-align: center; }
.swecraft-card-concept::after { border: 1px solid rgba(46, 35, 24, 0.35); content: ""; inset: 1.2rem; position: absolute; }
.swecraft-card-concept span { font-size: clamp(1.8rem, 3vw, 3rem); position: relative; z-index: 1; }
.swecraft-product-cutout { background: #eee9df; padding: 1.2rem; }
.swecraft-product-cutout img { object-fit: contain; }
.swecraft-card-label { color: var(--swecraft-wood) !important; font-size: 0.7rem; font-weight: 750; letter-spacing: 0.13em; margin-bottom: 0.5rem; text-transform: uppercase; }
.swecraft-card h3 { color: var(--swecraft-forest-dark); font-size: 1.55rem; margin-bottom: 0.6rem; }
.swecraft-card h3 a { color: inherit; text-decoration: none; }
.swecraft-card > p:not(.swecraft-card-label) { flex-grow: 1; }
.swecraft-card-cta { align-self: flex-start; color: var(--swecraft-forest); font-size: 0.88rem; font-weight: 750; margin-top: 0.7rem; text-decoration: underline; text-decoration-color: var(--swecraft-gold); text-decoration-thickness: 2px; text-underline-offset: 0.3rem; }

.swecraft-product-strip { background: #e7dfd0; border-bottom: 1px solid var(--swecraft-border); border-top: 1px solid var(--swecraft-border); padding: 1.2rem 0; }
.swecraft-product-strip-inner { align-items: center; display: flex; gap: 2rem; }
.swecraft-product-strip-inner > p { color: var(--swecraft-forest-dark); font-size: 0.72rem; font-weight: 750; letter-spacing: 0.12em; margin: 0; text-transform: uppercase; white-space: nowrap; }
.swecraft-mini-products { display: flex; gap: clamp(1rem, 4vw, 3rem); overflow-x: auto; }
.swecraft-mini-products span { align-items: center; color: var(--swecraft-forest-dark); display: flex; font-size: 0.86rem; font-weight: 700; gap: 0.7rem; white-space: nowrap; }
.swecraft-mini-products img { background: #f7f3eb; border-radius: 50%; height: 3.3rem; object-fit: contain; padding: 0.35rem; width: 3.3rem; }

.swecraft-story { background: var(--swecraft-forest); color: #d8e2dc; }
.swecraft-story h2 { color: #fff; }
.swecraft-story-grid { display: grid; gap: 5rem; grid-template-columns: 0.9fr 1.1fr; }
.swecraft-story-grid p { font-size: 1.08rem; line-height: 1.8; }
.swecraft-story .swecraft-text-link { color: #fff; display: inline-block; margin-top: 1rem; }
.swecraft-business { background: var(--swecraft-cream); }
.swecraft-business-inner { align-items: center; display: grid; gap: 4rem; grid-template-columns: 1fr auto; }
.swecraft-business p { color: var(--swecraft-muted); font-size: 1.05rem; line-height: 1.75; max-width: 52rem; }

.swecraft-page { padding: clamp(4rem, 8vw, 7rem) 0; }
.swecraft-prose { max-width: 58rem; }
.swecraft-prose h2 { color: var(--swecraft-forest-dark); font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 3.5rem 0 1rem; }
.swecraft-prose p, .swecraft-prose li { color: var(--swecraft-muted); font-size: 1.05rem; line-height: 1.8; }
.swecraft-prose blockquote { border-left: 4px solid var(--swecraft-gold); color: var(--swecraft-forest); font: 700 1.7rem/1.45 Georgia, serif; margin: 3rem 0; padding: 0.5rem 0 0.5rem 1.7rem; }
.swecraft-contact-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); margin-top: 3rem; }
.swecraft-contact-grid section { background: var(--swecraft-cream); padding: 2rem; }
.swecraft-contact-grid h2 { margin-top: 0; }

@media (max-width: 768px) {
	body.home .site-header { margin-bottom: 0 !important; }
	.site-header { padding-top: 0.75rem; }
	.storefront-breadcrumb { margin-bottom: 1.5rem; }
	.single-product div.product { display: block; }
	.single-product div.product .woocommerce-product-gallery { position: static; }
	.single-product div.product .summary { margin-top: 2rem; }
	.product_title { font-size: 2.35rem; }
	.swecraft-hio-fields { padding: 1rem; }
	.swecraft-variation-cards { grid-template-columns: 1fr; }
	.swecraft-shell { padding-left: 1.25rem; padding-right: 1.25rem; }
	.swecraft-hero-grid, .swecraft-section-heading, .swecraft-story-grid, .swecraft-business-inner { grid-template-columns: 1fr; }
	.swecraft-hero { padding-top: 3rem; }
	.swecraft-hero h1 { font-size: 3.55rem; }
	.swecraft-hero-visual { margin: 1.5rem 0 0 1rem; }
	.swecraft-steps, .swecraft-card-grid { grid-template-columns: 1fr; }
	.swecraft-card-art { aspect-ratio: 4 / 3; }
	.swecraft-contact-grid { grid-template-columns: 1fr; }
	.swecraft-product-strip-inner { align-items: flex-start; flex-direction: column; gap: 0.8rem; }
	.swecraft-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
	.swecraft-tagline { font-size: 0.62rem; white-space: nowrap; }
	.swecraft-shell { padding-left: 1rem; padding-right: 1rem; }
	.swecraft-hero { padding-bottom: 3.5rem; }
	.swecraft-hero h1 { font-size: clamp(2.8rem, 15vw, 3.35rem); }
	.swecraft-hero .swecraft-lead { font-size: 1rem; }
	.swecraft-actions { align-items: stretch; flex-direction: column; }
	.swecraft-actions .button { box-sizing: border-box; text-align: center; width: 100%; }
	.swecraft-hero-visual { margin-left: 0.6rem; }
	.swecraft-section { padding: 3.8rem 0; }
	.swecraft-section h2, .swecraft-page h1 { font-size: 2.45rem; }
	.swecraft-section-heading { gap: 0.5rem; margin-bottom: 2rem; }
	.swecraft-card { padding: 0.75rem 0.75rem 1.4rem; }
	.swecraft-card h3 { font-size: 1.45rem; }
	.swecraft-card-cta { display: block; padding: 0.5rem 0; }
	.swecraft-trust-list { display: grid; }
	.swecraft-footer-grid { grid-template-columns: 1fr; }
	.single-product div.product .woocommerce-product-gallery img { aspect-ratio: 1 / 1; }
	.single-product div.product .summary { margin-top: 1.4rem; }
	.product_title { font-size: 2.15rem; }
	button.single_add_to_cart_button { box-sizing: border-box; min-height: 3.25rem; width: 100%; }
}
