/*
Theme Name: Milksy Standalone
Theme URI: https://milksy.nl/
Author: Milksy
Description: Zelfstandig WordPress- en WooCommerce-theme voor Milksy.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: milksy
*/

:root {
	--milksy-blue: #4f80e7;
	--milksy-ink: #181818;
	--milksy-paper: #fbf8ee;
	--milksy-white: #fff;
	--milksy-border: #e5e0d3;
	--milksy-content-width: 1180px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	max-width: 100%;
	overflow-x: hidden;
	overflow-x: clip;
	scroll-behavior: smooth;
}

body {
	max-width: 100%;
	overflow-x: hidden;
	overflow-x: clip;
	margin: 0;
	background: var(--milksy-paper);
	color: var(--milksy-ink);
	font-family: Jost, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
}

body.admin-bar {
	--wp-admin--admin-bar--height: 32px;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.16em;
}

.msh a,
.mhh a,
.milksy-home-middle a,
.milksy-home-benefits a,
.milksy-how-it-works a,
.milksy-home-video a,
.milksy-home-blog a,
.msf a {
	text-decoration: none;
}

.milksy-home-video {
	padding: clamp(92px, 15vw, 180px) 24px;
	background: #393c37 url("assets/images/shopify/milksy-own-beach.webp") center 42% / cover no-repeat;
	color: #fff;
	text-align: center;
}

.mhv-shell {
	width: min(780px, 100%);
	margin-inline: auto;
}

.mhv-play {
	display: inline-grid;
	width: 68px;
	height: 68px;
	place-items: center;
	margin-bottom: 34px;
	color: #fff;
}

.mhv-play svg {
	width: 64px;
	height: 64px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.mhv-play path {
	fill: currentColor;
	stroke: none;
}

.milksy-home-video h2 {
	margin: 0 0 28px;
	font-family: Lora, Georgia, serif;
	font-size: clamp(34px, 4vw, 54px);
	line-height: 1.15;
}

.mhv-button,
.mhblog-all {
	display: inline-flex;
	min-height: 48px;
	padding: 12px 24px;
	align-items: center;
	justify-content: center;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-weight: 700;
}

.milksy-home-blog {
	padding: clamp(70px, 9vw, 118px) 24px;
	background: #fff;
}

.mhblog-shell {
	width: min(1180px, 100%);
	margin-inline: auto;
	text-align: center;
}

.mhblog-shell > header {
	margin-bottom: 38px;
}

.mhblog-shell h2 {
	margin: 0;
	color: #8cbce3;
	font-family: Lora, Georgia, serif;
	font-size: clamp(32px, 4vw, 48px);
}

.mhblog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-bottom: 36px;
	text-align: left;
}

.mhblog-grid .mb-card {
	height: 100%;
}

.mhblog-grid .mb-card__meta {
	display: none;
}

.mhblog-all {
	gap: 12px;
	border-color: #4f80e7;
	background: #4f80e7;
	color: #fff;
}

button,
input,
select,
textarea {
	font: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--milksy-white);
	color: var(--milksy-ink);
	font-weight: 700;
}

.milksy-site-main,
.milksy-content-shell {
	width: min(var(--milksy-content-width), calc(100% - 48px));
	margin-inline: auto;
}

.milksy-site-main {
	min-height: 38vh;
	padding-block: 72px 104px;
}

.home .milksy-site-main,
.milksy-full-width {
	width: 100%;
	max-width: none;
	padding: 0;
}

.milksy-entry,
.milksy-listing-card,
.milksy-empty-state {
	padding: clamp(24px, 4vw, 44px);
	border: 1px solid var(--milksy-border);
	border-radius: 24px;
	background: var(--milksy-white);
}

.milksy-entry__header,
.milksy-archive-header {
	margin-bottom: 36px;
}

.milksy-entry__title,
.milksy-archive-title {
	margin: 0;
	font-family: Lora, Georgia, serif;
	font-size: clamp(38px, 5vw, 64px);
	line-height: 1.08;
	letter-spacing: -0.035em;
}

.milksy-entry__meta {
	margin: 12px 0 0;
	color: #6f6b63;
}

.milksy-entry__content > *:first-child {
	margin-top: 0;
}

.milksy-entry__content > *:last-child {
	margin-bottom: 0;
}

.milksy-entry__content a,
.milksy-listing-card a {
	color: #315faa;
}

.milksy-listing-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.milksy-listing-card__image {
	display: block;
	margin: -20px -20px 24px;
	overflow: hidden;
	border-radius: 18px;
}

.milksy-listing-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.milksy-listing-card h2 {
	margin: 0 0 12px;
	font-family: Lora, Georgia, serif;
	font-size: clamp(25px, 2.4vw, 34px);
	line-height: 1.15;
}

.milksy-pagination {
	margin-top: 40px;
}

.milksy-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.milksy-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	min-height: 42px;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border: 1px solid var(--milksy-border);
	border-radius: 999px;
	background: var(--milksy-white);
	text-decoration: none;
}

.milksy-pagination .current {
	border-color: var(--milksy-blue);
	background: var(--milksy-blue);
	color: var(--milksy-white);
}

.milksy-404-search .search-form {
	display: flex;
	max-width: 560px;
	gap: 10px;
	margin-top: 24px;
}

.milksy-404-search .search-field {
	min-width: 0;
	flex: 1;
	padding: 13px 16px;
	border: 1px solid var(--milksy-border);
	border-radius: 999px;
}

.milksy-404-search .search-submit {
	padding: 13px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--milksy-blue);
	color: var(--milksy-white);
	font-weight: 700;
	cursor: pointer;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button {
	border-radius: 999px;
}

.milksy-freeze-dry-product .milksy-woocommerce-main > .woocommerce {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

.milksy-freeze-dry-product .product.type-product {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
	gap: 46px 64px;
	align-items: start;
}

.milksy-freeze-dry-product .woocommerce-product-gallery,
.milksy-freeze-dry-product .summary {
	width: 100% !important;
	float: none !important;
	margin: 0 !important;
}

.milksy-freeze-dry-product .woocommerce-product-gallery {
	padding: 24px;
	border-radius: 28px;
	background: #fff;
	opacity: 1 !important;
}

/* WooCommerce hides galleries until its slider has initialised. Playground can
 * finish that JavaScript late, so keep the first product image available as a
 * dependable fallback and let FlexSlider restore the full gallery when ready. */
.milksy-freeze-dry-product .woocommerce-product-gallery:not(.flexslider) .woocommerce-product-gallery__image:not(:first-child) {
	display: none;
}

.milksy-freeze-dry-product .woocommerce-product-gallery__image img {
	border-radius: 20px;
}

.milksy-freeze-dry-product .summary {
	padding: 18px 0;
}

.milksy-freeze-dry-product .woocommerce-tabs,
.milksy-freeze-dry-product .related.products {
	grid-column: 1 / -1;
}

.milksy-freeze-dry-product .related.products ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.milksy-freeze-dry-product .related.products ul.products::before,
.milksy-freeze-dry-product .related.products ul.products::after {
	display: none;
}

.milksy-freeze-dry-product .related.products li.product {
	width: auto !important;
	margin: 0 !important;
}

@media (max-width: 900px) {
	.milksy-listing-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.milksy-freeze-dry-product .product.type-product {
		grid-template-columns: minmax(0, 1fr);
	}

	.milksy-freeze-dry-product .product.type-product > * {
		min-width: 0;
	}

	.milksy-freeze-dry-product .woocommerce-tabs,
	.milksy-freeze-dry-product .related.products {
		grid-column: 1;
	}
}

@media (max-width: 640px) {
	body.admin-bar {
		--wp-admin--admin-bar--height: 46px;
	}

	.milksy-site-main,
	.milksy-content-shell {
		width: min(100% - 30px, var(--milksy-content-width));
	}

	.milksy-site-main {
		padding-block: 48px 72px;
	}

	.milksy-listing-grid {
		grid-template-columns: 1fr;
	}

	.mhblog-grid {
		grid-template-columns: 1fr;
	}

	.milksy-404-search .search-form {
		align-items: stretch;
		flex-direction: column;
	}
}
