/*
Theme Name: Studio Hartelust
Theme URI: https://studiohartelust.nl
Author: Studio Hartelust
Description: Vrolijk block theme voor de webshop van Studio Hartelust: wenskaarten in waterverf. Gemaakt voor WooCommerce en de Site Editor.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: studio-hartelust
Tags: block-patterns, full-site-editing, e-commerce, custom-colors, wide-blocks
*/

/* ---------- Basis ---------- */

body {
	-webkit-font-smoothing: antialiased;
}

:where(.wp-site-blocks) {
	overflow-x: clip;
}

/* Handgeschreven accent (blokstijl "Handschrift") */
.is-style-script {
	font-family: var(--wp--preset--font-family--sacramento);
	font-size: clamp(2.25rem, 4vw, 3rem);
	font-weight: 400;
	line-height: 1;
	color: var(--wp--preset--color--accent);
	margin-bottom: -0.5rem;
}

.has-contrast-background-color .is-style-script {
	color: var(--wp--preset--color--goud);
}

/* Afgeronde kaart (blokstijl "Kaart") */
.wp-block-group.is-style-card {
	border-radius: 40px;
	overflow: hidden;
}

/* Outline-knop */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
	background: transparent;
	padding: calc(0.85rem - 2px) calc(1.75rem - 2px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* ---------- Header ---------- */

.sh-announcement p {
	margin: 0;
}

.sh-header {
	gap: 1rem;
}

.sh-logo img {
	height: 72px;
	width: auto;
	display: block;
}

.sh-header-icons {
	gap: 0.5rem;
}

.sh-header .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 10px;
}

/* ---------- Hero ---------- */

.sh-hero-visual {
	position: relative;
	min-height: 520px;
}

.sh-hero-visual::before {
	content: "";
	position: absolute;
	inset: 10px 40px 30px 30px;
	background: var(--wp--preset--color--goud);
	border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
}

.sh-hero-visual .sh-hero-photo {
	position: absolute;
	top: 40px;
	left: 70px;
	width: 360px;
	max-width: calc(100% - 80px);
	margin: 0;
	transform: rotate(3deg);
}

.sh-hero-visual .sh-hero-photo img {
	width: 100%;
	height: 450px;
	object-fit: cover;
	border-radius: 28px;
	box-shadow: 0 18px 40px rgba(59, 31, 43, 0.22);
}

.sh-flower {
	position: absolute;
	margin: 0;
	pointer-events: none;
}

.sh-flower img {
	width: 100%;
	height: auto;
}

.sh-flower--top {
	top: -40px;
	right: -40px;
	width: 280px;
}

.sh-flower--bottom {
	bottom: -30px;
	left: -30px;
	width: 260px;
}

.sh-hero-visual .sh-badge {
	position: absolute;
	right: 20px;
	bottom: 50px;
	background: var(--wp--preset--color--white);
	border-radius: 20px;
	padding: 14px 18px;
	box-shadow: 0 10px 30px rgba(59, 31, 43, 0.15);
	transform: rotate(-4deg);
	gap: 2px;
}

.sh-badge p {
	margin: 0;
}

/* ---------- Categorietegels ---------- */

.sh-tile {
	border-radius: 28px;
	overflow: hidden;
	transition: transform 0.2s ease;
}

.sh-tile:hover {
	transform: translateY(-4px);
}

.sh-tile .wp-block-image {
	margin: 0;
}

.sh-tile .wp-block-image img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.sh-tile .wp-block-heading {
	margin: 0;
	padding: 18px 22px;
}

.sh-tile .wp-block-heading a {
	text-decoration: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.sh-tile .wp-block-heading a::after {
	content: "→";
	font-family: var(--wp--preset--font-family--nunito);
}

/* ---------- Producten (WooCommerce) ---------- */

.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img {
	border-radius: 28px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.wp-block-woocommerce-product-template .wp-block-post-title {
	font-family: var(--wp--preset--font-family--nunito);
	font-size: 1.0625rem;
	font-weight: 800;
	margin-top: 0.75rem;
}

.wp-block-woocommerce-product-template .wp-block-post-title a {
	text-decoration: none;
}

.woocommerce-product-gallery img,
.wc-block-components-product-image-gallery img {
	border-radius: 36px;
}

.wp-block-add-to-cart-form .quantity .qty {
	border: 2px solid var(--wp--preset--color--contrast);
	border-radius: 999px;
	height: 56px;
	width: 5rem;
	text-align: center;
	font-weight: 800;
}

.wp-block-add-to-cart-form .single_add_to_cart_button {
	border-radius: 999px;
	min-height: 56px;
	padding-inline: 2.5rem;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--white);
	font-weight: 800;
}

.wp-block-woocommerce-product-details .wc-tabs li a {
	font-family: var(--wp--preset--font-family--playfair);
	font-weight: 700;
}

/* ---------- Verhaal ---------- */

.sh-story-image img {
	border-radius: 50% 50% 28px 28px;
	width: 100%;
	height: 360px;
	object-fit: cover;
}

/* ---------- USP's ---------- */

.sh-usp h3 {
	font-family: var(--wp--preset--font-family--nunito);
	font-size: 1.0625rem;
	font-weight: 800;
	margin: 0;
}

.sh-usp h3::before {
	content: "♥";
	color: var(--wp--preset--color--accent);
	margin-right: 0.5rem;
}

.sh-usp p {
	margin-top: 0.25rem;
}

/* ---------- Footer ---------- */

.sh-footer a {
	color: inherit;
}

.sh-footer .wp-block-separator {
	border: 0;
	border-top: 1px solid rgba(255, 250, 243, 0.25);
	opacity: 1;
}

.sh-footer .wp-block-list {
	list-style: none;
	padding: 0;
}

.sh-footer .wp-block-list li {
	margin-bottom: 0.4rem;
}

/* ---------- Mobiel ---------- */

@media (max-width: 781px) {
	.sh-hero-visual {
		min-height: 440px;
	}

	.sh-hero-visual .sh-hero-photo {
		left: 50%;
		transform: translateX(-50%) rotate(3deg);
		width: 280px;
	}

	.sh-hero-visual .sh-hero-photo img {
		height: 360px;
	}

	.sh-flower--top {
		width: 180px;
		right: -20px;
	}

	.sh-flower--bottom {
		width: 170px;
		left: -20px;
	}

	.sh-hero-visual .sh-badge {
		right: 0;
		bottom: 20px;
	}

	.sh-logo img {
		height: 56px;
	}
}
