/*
Theme Name: Pinocha
Description: A quiet, colorful storefront for hand-crafted pins.
Author: Pinocha
Version: 0.1.0
Template: twentytwentyfive
Text Domain: pinocha
*/

:root {
	--pinocha-ink: #20332d;
	--pinocha-paper: #fffaf0;
	--pinocha-tea: #9eb875;
	--pinocha-coral: #ef806f;
	--pinocha-sun: #f5c65b;
	--pinocha-lilac: #b7a5d8;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--pinocha-paper);
}

a {
	text-underline-offset: 0.2em;
}

.pinocha-development-ribbon {
	background: var(--pinocha-ink);
	color: #fffaf0;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	padding: 0.55rem 1rem;
	text-align: center;
	text-transform: uppercase;
}

.pinocha-header {
	border-bottom: 1px solid rgba(32, 51, 45, 0.16);
}

.pinocha-wordmark a {
	text-decoration: none;
}

.pinocha-hero {
	min-height: min(74vh, 760px);
	overflow: hidden;
	position: relative;
}

.pinocha-hero::before,
.pinocha-hero::after {
	border-radius: 999px;
	content: "";
	filter: blur(1px);
	position: absolute;
	z-index: 0;
}

.pinocha-hero::before {
	background: var(--pinocha-coral);
	height: 17rem;
	right: -5rem;
	top: -5rem;
	width: 17rem;
}

.pinocha-hero::after {
	background: var(--pinocha-tea);
	bottom: -8rem;
	height: 21rem;
	left: -7rem;
	width: 21rem;
}

.pinocha-hero > * {
	position: relative;
	z-index: 1;
}

.pinocha-kicker {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.pinocha-origami {
	filter: drop-shadow(0 25px 30px rgba(32, 51, 45, 0.16));
	height: 18rem;
	margin: 2rem auto;
	position: relative;
	transform: rotate(4deg);
	width: 18rem;
}

.pinocha-origami span {
	clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
	position: absolute;
}

.pinocha-origami span:nth-child(1) {
	background: var(--pinocha-coral);
	inset: 0;
}

.pinocha-origami span:nth-child(2) {
	background: var(--pinocha-sun);
	inset: 18% 0 0 18%;
}

.pinocha-origami span:nth-child(3) {
	background: var(--pinocha-lilac);
	inset: 38% 18% 0 0;
}

.pinocha-section {
	padding-bottom: clamp(4rem, 9vw, 8rem);
	padding-top: clamp(4rem, 9vw, 8rem);
}

.pinocha-product-grid ul.products {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pinocha-product-grid > .woocommerce {
	max-width: 1240px !important;
	width: 100%;
}

.pinocha-product-grid ul.products::before,
.pinocha-product-grid ul.products::after {
	display: none;
}

.pinocha-product-grid ul.products li.product {
	background: #fff;
	border-radius: 1.25rem;
	box-sizing: border-box;
	clear: none;
	float: none;
	margin: 0;
	overflow: hidden;
	padding: 0 0 1.4rem;
	width: 100% !important;
}

.pinocha-product-grid ul.products li.product img {
	margin: 0 0 1.2rem;
}

.pinocha-product-grid .woocommerce-loop-product__title,
.pinocha-product-grid .price,
.pinocha-product-grid .button {
	margin-left: 1.25rem !important;
	margin-right: 1.25rem !important;
}

.woocommerce a.button,
.woocommerce button.button,
.wp-element-button {
	border-radius: 999px !important;
}

.pinocha-lucky {
	border-radius: 2rem;
}

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

@media (max-width: 600px) {
	.pinocha-hero {
		min-height: auto;
	}

	.pinocha-product-grid ul.products {
		grid-template-columns: 1fr;
	}

	.pinocha-origami {
		height: 13rem;
		width: 13rem;
	}
}
