/*
Theme Name: Doris DIY
Template: twentytwentyfive
Description: Child theme of Twenty Twenty-Five for the Doris DIY WooCommerce store.
Version: 0.1.0
Text Domain: dorisdiy
*/

/* Sections sit flush against each other (no gap above header/footer) */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* ---------- Header ---------- */
.doris-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.doris-header .wp-block-site-title a {
	text-decoration: none;
}
.doris-announce {
	letter-spacing: .04em;
}

/* ---------- Buttons ---------- */
.wp-element-button,
.wp-block-button__link {
	transition: transform .15s ease, background-color .15s ease;
}
.wp-element-button:hover,
.wp-block-button__link:hover {
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 2px solid var(--wp--preset--color--contrast);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	color: #fff;
}

/* ---------- Hero ---------- */
.doris-hero {
	position: relative;
	overflow: hidden;
	/* playing cards, blind bag and lucky box illustrations + soft color glows */
	background-image:
		url("assets/images/hero-left.svg"),
		url("assets/images/hero-right.svg"),
		radial-gradient(circle at 12% 30%, rgba(240, 185, 196, .45), transparent 32%),
		radial-gradient(circle at 88% 70%, rgba(185, 169, 217, .35), transparent 30%),
		radial-gradient(circle at 50% 110%, rgba(227, 166, 59, .14), transparent 45%);
	background-repeat: no-repeat;
	background-position:
		left max(0px, calc(50% - 640px)) center,
		right max(0px, calc(50% - 640px)) center,
		0 0, 0 0, 0 0;
	background-size:
		clamp(220px, 24vw, 340px) auto,
		clamp(220px, 24vw, 340px) auto,
		100% 100%, 100% 100%, 100% 100%;
}
.doris-hero > * {
	position: relative;
	z-index: 1;
}
@media (max-width: 1100px) {
	/* narrower screens: illustrations peek in from the corners, away from the text */
	.doris-hero {
		background-position:
			left -30px top -6px,
			right -26px bottom -24px,
			0 0, 0 0, 0 0;
		background-size: 170px auto, 170px auto, 100% 100%, 100% 100%, 100% 100%;
		padding-top: 150px !important;
		padding-bottom: 170px !important;
	}
}
@media (max-width: 600px) {
	.doris-hero {
		background-position:
			left -42px top -4px,
			right -34px bottom -24px,
			0 0, 0 0, 0 0;
		background-size: 136px auto, 136px auto, 100% 100%, 100% 100%, 100% 100%;
		padding-top: 112px !important;
		padding-bottom: 128px !important;
	}
}
.doris-hero::after {
	/* stitched border, like a sewing line */
	content: "";
	position: absolute;
	inset: 14px;
	border: 2px dashed color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent);
	border-radius: 18px;
	pointer-events: none;
}

/* ---------- Cards ---------- */
.doris-card {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 16px;
	background: var(--wp--preset--color--base);
	height: 100%;
}
.doris-step-number {
	display: inline-grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-soft);
	color: var(--wp--preset--color--accent);
	font-weight: 700;
}

/* ---------- Products ---------- */
.wc-block-product .wc-block-components-product-image img,
.wp-block-woocommerce-product-image img {
	border-radius: 12px;
}

/* Long option names (e.g. Card Game quantities) must not push the page wider */
.variations_form table.variations,
.variations_form table.variations tbody,
.variations_form table.variations tr,
.variations_form table.variations td {
	display: block;
	width: 100%;
	max-width: 100%;
}
.variations_form table.variations th.label {
	display: block;
	padding: 0 0 4px;
	text-align: left;
}
.variations_form table.variations select {
	width: 100%;
	max-width: 100%;
	text-overflow: ellipsis;
}
.variations_form table.variations tr {
	margin-bottom: 14px;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
	.doris-hero::after {
		inset: 8px;
	}
}
