/*
Theme Name: Cadeira
Theme URI: https://cadeira.nl
Description: Cadeira child theme for Frost. Wholesale terrace chairs: white cards on a pale grey page, amber call to action, Inter and Roboto Slab.
Author: Rinke Trading BV
Template: frost
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: cadeira
*/

/* ---------------------------------------------------------------------------
   Design system. Ported from storefront src/styles/main.css and tailwind.config.mjs.
   Colours, fonts and sizes come from theme.json (--wp--preset--*); the few extra
   tokens below are layout measures with no preset.
--------------------------------------------------------------------------- */
:root {
	--cd-header-h: 4rem;
	--cd-radius-sm: 0.5rem;
	--cd-radius-md: 1rem;
	--cd-radius-lg: 1.5rem;
	--cd-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--cd-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	--cd-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	--cd-ease: 300ms;
	--cd-serif: var(--wp--preset--font-family--title);
	--cd-sans: var(--wp--preset--font-family--primary);
	--c-text: #000;
	--c-muted: var(--wp--preset--color--gray-600);
	--c-border: var(--wp--preset--color--gray-100);
	--c-accent: var(--wp--preset--color--secondary-500);
	--c-accent-hover: var(--wp--preset--color--secondary-700);
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */
html {
	scroll-padding-top: calc(var(--cd-header-h) + 1.5rem);
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	overflow-x: clip;
}

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

picture {
	display: contents;
}

/* Class rules with a display value would otherwise beat the UA's [hidden]. */
[hidden] {
	display: none !important;
}

/* Headings in the serif face with the storefront's bottom margin. */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--cd-serif);
	margin-top: 0;
	margin-bottom: 2rem;
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

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

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

/* Core's skip link, styled like the storefront's. */
.skip-link.screen-reader-text:focus {
	position: fixed;
	left: 1rem;
	top: 1rem;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
	padding: 0.5rem 1rem;
	border-radius: var(--cd-radius-sm);
	background: var(--c-accent);
	color: #000;
	font-weight: 600;
	text-decoration: none;
}

.icon {
	display: inline-block;
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
}
.icon--xs { width: 0.875rem; height: 0.875rem; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--md { width: 1.25rem; height: 1.25rem; }
.icon--lg { width: 1.5rem; height: 1.5rem; }

.muted { font-weight: 400; color: var(--wp--preset--color--gray-500); }

/* Content measure: container used by every section. max-w-7xl with px-4 sm:px-8. */
.wrap {
	width: 100%;
	max-width: 80rem;
	margin-inline: auto;
	padding-inline: 1rem;
}
@media (min-width: 640px) {
	.wrap { padding-inline: 2rem; }
}

main.site-content {
	padding-top: var(--cd-header-h);
	min-height: 60vh;
}

/* ---------------------------------------------------------------------------
   Header: fixed, white at 80 % with a blur.
--------------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	background: rgb(255 255 255 / 0.8);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

.header__bar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--cd-header-h);
	padding-block: 0.75rem;
}
@media (min-width: 1024px) {
	.header__bar { justify-content: flex-start; }
}

.header__logo {
	display: flex;
	align-items: center;
	margin-right: 0.5rem;
}
@media (min-width: 1024px) {
	.header__logo { margin-right: 2rem; }
}
.header__logo a { display: block; line-height: 0; }
.header__logo-img { height: 2.5rem; width: auto; }

/* Everything right of the logo in one flex row, so nav, switcher, cart and CTA share a baseline. */
.header__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
@media (min-width: 640px) { .header__actions { gap: 0.5rem; } }
@media (min-width: 1024px) { .header__actions { gap: 1.5rem; } }

.header-nav { color: rgb(0 0 0 / 0.6); }

.mobile-menu {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	border: 0;
	border-radius: var(--cd-radius-sm);
	background: transparent;
	color: #000;
	cursor: pointer;
	transition: color var(--cd-ease);
}
.mobile-menu:hover { color: var(--c-accent-hover); }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* Dropdown below the bar on small screens, inline list from lg. */
.header-nav__panel {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	width: 100%;
}
.header-nav__panel.is-open { display: block; }
@media (min-width: 1024px) {
	.header-nav__panel,
	.header-nav__panel.is-open {
		display: block;
		position: static;
		width: auto;
	}
}

.header-nav__menu {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin: 0;
	padding: 1.5rem;
	list-style: none;
	font-weight: 500;
	border-top: 1px solid var(--c-border);
	background: #fff;
	box-shadow: var(--cd-shadow-lg);
}
@media (min-width: 1024px) {
	.header-nav__menu {
		flex-direction: row;
		padding: 0;
		border: 0;
		background: transparent;
		box-shadow: none;
	}
}

.menu-item-link {
	display: block;
	padding-block: 0.5rem;
	border-radius: 0.25rem;
	white-space: nowrap;
	color: inherit;
	text-decoration: none;
	transition: color var(--cd-ease);
}
.menu-item-link:hover { color: var(--c-accent-hover); }
@media (min-width: 1024px) {
	.menu-item-link { padding: 0; color: #000; }
}
/* -900, not -700: the amber at -700 is 2.4:1 on white and fails AA as text. */
.menu-item-link.active {
	font-weight: 600;
	color: var(--wp--preset--color--secondary-900);
}

.language-switcher ul {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	font-weight: 600;
}
.language-switcher a {
	display: block;
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	color: rgb(0 0 0 / 0.5);
	text-transform: uppercase;
	text-decoration: none;
	transition: color var(--cd-ease);
}
.language-switcher a:hover { color: var(--c-accent-hover); }
.language-switcher a.is-current {
	background: var(--c-accent);
	color: #000;
}

.header__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	border-radius: var(--cd-radius-sm);
	color: #000;
	text-decoration: none;
	transition: color var(--cd-ease);
}
.header__cart:hover { color: var(--c-accent-hover); }

/* Only once there is room: below xl the nav's own Contact link does the job. */
.header__cta.btn { display: none; white-space: nowrap; }
@media (min-width: 1280px) {
	.header__cta.btn { display: inline-flex; }
}

/* ---------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	padding: 0.5rem 2rem;
	border: 1px solid transparent;
	border-radius: var(--cd-radius-sm);
	background: transparent;
	color: #000;
	font: inherit;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--cd-ease), color var(--cd-ease), border-color var(--cd-ease);
}
@media (min-width: 768px) { .btn { width: auto; } }
.btn:hover { background: var(--c-accent); color: #000; }
.btn:focus-visible,
.stepper button:focus-visible,
.unit-btn:focus-visible,
.swatch:focus-visible,
.colour-card:focus-visible {
	outline: 2px solid var(--wp--preset--color--secondary-600);
	outline-offset: 2px;
}

.btn--secondary { background: var(--c-accent); }
.btn--secondary:hover { background: rgb(255 197 110 / 0.8); }
.btn--outline { border-color: #000; background: #fff; }
.btn--outline:hover { background: #000; color: #fff; }
.btn--black { background: #000; color: #fff; }
.btn--link { padding-inline: 1rem; }
.btn--block { width: 100%; }
.btn[disabled],
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.inline-link { display: inline-block; padding-block: 0.625rem; font-weight: 600; }
.inline-link:hover { color: var(--wp--preset--color--secondary-900); }

/* ---------------------------------------------------------------------------
   Forms (shared by the contact form, the quote form and the checkout)
--------------------------------------------------------------------------- */
.label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--wp--preset--color--gray-700);
}
input.input,
select.input,
textarea.input,
.input {
	display: block;
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.5rem;
	border: 1px solid var(--wp--preset--color--gray-300);
	border-radius: var(--cd-radius-sm);
	background: #fff;
	color: #000;
	font: inherit;
	font-size: 0.875rem;
	box-shadow: var(--cd-shadow-sm);
}
@media (min-width: 640px) {
	.input { font-size: 0.875rem; }
}
.input:focus {
	border-color: var(--c-accent-hover);
	outline: none;
	box-shadow: 0 0 0 1px var(--c-accent-hover);
}
.input:disabled { cursor: not-allowed; background: var(--wp--preset--color--gray-50); color: rgb(0 0 0 / 0.5); }
.field-error { margin-top: 0.5rem; font-size: 0.875rem; color: var(--wp--preset--color--red-600); }

/* ---------------------------------------------------------------------------
   Breadcrumbs, page titles, badge group, spinner
--------------------------------------------------------------------------- */
.breadcrumbs { font-size: 0.875rem; color: rgb(0 0 0 / 0.6); }
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumbs a { text-decoration: none; transition: color 150ms; }
.breadcrumbs a:hover { color: var(--c-accent-hover); }
.breadcrumbs [aria-current="page"] { color: rgb(0 0 0 / 0.8); }

.page-title {
	margin: 0 0 1rem;
	font-weight: 600;
	line-height: 1.2;
}
.page-title--heavy { font-size: 2.25rem; }
.page-title--default { font-size: 1.875rem; }
.page-title--smaller { font-size: 1.5rem; }
.page-title--center { text-align: center; }
@media (min-width: 1024px) {
	.page-title--heavy { font-size: 3.75rem; line-height: 1; }
	.page-title--default { font-size: 3rem; line-height: 1; }
	.page-title--smaller { font-size: 1.875rem; line-height: 2.25rem; }
}

.badge-group { display: flex; justify-content: center; width: 100%; }
.badge-group__container {
	display: inline-flex;
	align-items: center;
	margin-bottom: 2rem;
	padding: 2px 4px;
	border: 1px solid var(--wp--preset--color--badge-text);
	border-color: #d4d4d4;
	border-radius: 9999px;
	background: #fff;
	color: var(--wp--preset--color--badge-text);
	font-size: 0.875rem;
	font-weight: 500;
}
.badge-group__message { padding-inline: 0.5rem; }
.badge-group__icon { width: 1.25rem; height: 1.25rem; margin-right: 0.5rem; }
.section-head--left .badge-group { justify-content: flex-start; }

.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
}
.pill--black { background: #000; color: #fff; }
.pill--light {
	border: 1px solid var(--wp--preset--color--gray-200);
	background: rgb(255 255 255 / 0.9);
	color: var(--wp--preset--color--gray-800);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.pill--saving {
	padding: 0.125rem 0.5rem;
	background: var(--wp--preset--color--secondary-200);
	color: #000;
}

.spin { animation: cd-spin 1s linear infinite; }
@keyframes cd-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
   Sections (home, listings)
--------------------------------------------------------------------------- */
.section { padding-block: 2rem; }
@media (min-width: 640px) { .section { padding-block: 5rem; } }
.section:first-child { padding-top: 2rem; }

.section-head { text-align: center; }
.section-head--left { text-align: left; }
.section-head .page-title { max-width: 42rem; margin-inline: auto; }
.section-head--left .page-title { margin-inline: 0; }
.section-head__intro {
	max-width: 48rem;
	margin: 1rem auto 0;
	font-size: 1.25rem;
	line-height: 1.75rem;
	color: rgb(0 0 0 / 0.6);
}
.section-head--left .section-head__intro { margin-inline: 0; }
.section-head__intro--center { text-align: center; }
.section__cta { display: flex; justify-content: center; margin-top: 2rem; }

.home-hero { padding-block: 2rem 1rem; }
.home-hero__inner { text-align: center; }
.home-hero__inner .page-title { max-width: 48rem; margin-inline: auto; }
.home-hero__body {
	max-width: 48rem;
	margin: 1rem auto 0;
	font-size: 1.25rem;
	line-height: 1.75rem;
	color: rgb(0 0 0 / 0.6);
}
.home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	margin: 1.5rem 0 4rem;
}
/* The box is sized before the image arrives, so nothing below it moves. */
.home-hero__image {
	width: 100%;
	max-width: 550px;
	aspect-ratio: 1 / 1;
	margin-inline: auto;
}
.home-hero__img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: var(--cd-radius-sm);
	object-fit: cover;
}

.feature-rows { display: grid; gap: 4rem; margin-top: 4rem; }
.feature-row { display: grid; gap: 2rem; }
@media (min-width: 768px) {
	.feature-row { grid-template-columns: 1fr 1fr; align-items: center; }
	.feature-row--flip .feature-row__media { order: 2; }
	.feature-row__text { padding-left: 4rem; }
	.feature-row--flip .feature-row__text { padding-left: 0; padding-right: 4rem; }
}
@media (min-width: 1024px) {
	.feature-row__text { padding-left: 6rem; }
	.feature-row--flip .feature-row__text { padding-right: 6rem; }
}
.feature-row__img {
	display: block;
	width: 100%;
	border-radius: var(--cd-radius-sm);
	object-fit: cover;
	filter: drop-shadow(0 20px 13px rgb(0 0 0 / 0.03)) drop-shadow(0 8px 5px rgb(0 0 0 / 0.08));
}
.feature-row__text { color: rgb(0 0 0 / 0.6); }
.feature-row__text h3 { margin-bottom: 1.5rem; font-size: 1.5rem; font-weight: 600; color: #000; }
.feature-row__text p { font-family: var(--cd-serif); }

.rating-summary {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 2rem;
	padding: 1.5rem;
	border: 1px solid var(--c-border);
	border-radius: var(--cd-radius-md);
	background: #fff;
	box-shadow: var(--cd-shadow-sm);
}
@media (min-width: 768px) {
	.rating-summary { flex-direction: row; align-items: center; justify-content: space-between; }
}
.rating-summary__line {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
}
.rating-summary__stars,
.testimonial__stars,
.rating-line__stars { display: inline-flex; color: var(--c-accent); }
.rating-summary .btn { flex-shrink: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.tag-list li {
	padding: 0.25rem 0.5rem;
	border-radius: 0.5rem;
	font-size: 0.75rem;
	box-shadow: 0 1px 2px 0 var(--c-accent);
}
.tag-list--stacked li { margin-left: 0.25rem; }

.testimonials { display: grid; gap: 4rem 2rem; margin-top: 4rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials { grid-template-columns: repeat(4, 1fr); } }
.testimonial { margin: 0; color: #595959; }
.testimonial figcaption { margin-bottom: 0.5rem; font-size: 1.25rem; font-weight: 500; color: #000; }
.testimonial__stars { gap: 0.25rem; margin-bottom: 0.5rem; }

/* FAQ: core/details inside a group with class cadeira-faq. Native <details>: answers stay in the DOM. */
.cadeira-faq,
.wp-block-group.cadeira-faq {
	max-width: 48rem;
	margin: 3rem auto;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	border-radius: 0.5rem;
	background: #fff;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
}
.cadeira-faq > * + * { border-top: 1px solid #e5e5e5; }
.cadeira-faq details,
.cadeira-faq .wp-block-details { margin: 0; padding: 0; }
.cadeira-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	list-style: none;
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	color: #262626;
	cursor: pointer;
	transition: background-color 150ms;
}
.cadeira-faq summary::-webkit-details-marker { display: none; }
.cadeira-faq summary::marker { content: ""; }
.cadeira-faq summary:hover { background: #fafafa; }
.cadeira-faq summary::after {
	content: "+";
	flex-shrink: 0;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--c-accent-hover);
	transition: transform 200ms;
}
.cadeira-faq details[open] > summary::after { transform: rotate(45deg); }
.cadeira-faq details > :not(summary) {
	margin: 0;
	padding: 0 1.25rem 1.25rem;
	font-family: var(--cd-serif);
	color: rgb(0 0 0 / 0.7);
}
.cadeira-faq details > :not(summary):not(:last-child) { padding-bottom: 0.75rem; }

/* ---------------------------------------------------------------------------
   Cards and listings
--------------------------------------------------------------------------- */
.card {
	border: 1px solid var(--c-border);
	border-radius: var(--cd-radius-lg);
	background: #fff;
	box-shadow: var(--cd-shadow-sm);
}
.card--pad { padding: 2rem; }
@media (min-width: 768px) { .card--roomy { padding: 3rem; } }
.card--black { border-color: var(--c-border); background: #000; color: #fff; padding: 2rem; }
.card--column { display: flex; flex-direction: column; }
.card__title { margin: 0 0 1rem; font-size: 1.25rem; font-weight: 700; color: #000; }
.card__title--white { color: #fff; }
.card__title--spaced { margin-bottom: 1.5rem; }
.card__accent { color: var(--c-accent); }
.card__text { margin: 0 0 1rem; font-family: var(--cd-serif); font-size: 0.875rem; line-height: 1.625; color: rgb(255 255 255 / 0.7); }
.card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--c-accent);
	text-decoration: none;
}
.card__link:hover { color: var(--wp--preset--color--secondary-400); }

.listing { padding-block: 2rem 4rem; }
@media (min-width: 768px) { .listing { padding-block: 3rem 6rem; } }
.listing__inner > * + * { margin-top: 3rem; }
.listing__head { max-width: 48rem; margin-inline: auto; text-align: center; }
.listing__head .page-title { margin-bottom: 1rem; }
.listing__intro {
	margin: 0;
	font-family: var(--cd-serif);
	font-size: 1rem;
	color: var(--wp--preset--color--gray-700);
}
@media (min-width: 768px) { .listing__intro { font-size: 1.125rem; } }
.listing__section > * + * { margin-top: 1.5rem; }
/* .grid-cards resets its margin, which would otherwise beat the rhythm of .listing__inner. */
.listing__inner > .grid-cards { margin-top: 3rem; }
.listing__h2 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.listing__h2--center { text-align: center; }
.listing__empty { color: var(--c-muted); }
.listing__empty--center { max-width: 42rem; margin-inline: auto; text-align: center; font-family: var(--cd-serif); color: var(--wp--preset--color--gray-700); }
.listing__cta { display: flex; justify-content: center; padding-top: 1rem; }
.listing__cta--pair { flex-wrap: wrap; gap: 1rem; }
.listing__summary {
	display: flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	gap: 0.5rem;
	margin: 0 auto;
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	background: #fff;
	box-shadow: var(--cd-shadow-sm);
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--gray-800);
}

.grid-cards {
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }
.grid-cards--featured { max-width: 72rem; margin: 4rem auto 0; }
@media (min-width: 1024px) { .grid-cards--featured { grid-template-columns: repeat(4, 1fr); } }

.category-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 640px) { .category-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .category-cards { grid-template-columns: repeat(3, 1fr); } }
.category-card {
	display: block;
	height: 100%;
	padding: 1.5rem;
	border: 1px solid rgb(229 231 235 / 0.8);
	border-radius: var(--cd-radius-md);
	background: #fff;
	box-shadow: var(--cd-shadow-sm);
	text-decoration: none;
	transition: transform 300ms, border-color 300ms;
}
.category-card:hover { transform: translateY(-0.25rem); border-color: var(--c-accent-hover); }
.category-card__name { display: block; font-size: 1.125rem; font-weight: 700; color: #000; }
.category-card__count { display: block; font-size: 0.875rem; color: var(--wp--preset--color--gray-500); }

.product-card,
.stock-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgb(229 231 235 / 0.8);
	border-radius: var(--cd-radius-md);
	background: #fff;
	box-shadow: var(--cd-shadow-sm);
	color: #000;
	text-decoration: none;
	transition: transform 300ms, box-shadow 300ms;
}
.product-card:hover,
.stock-card:hover { transform: translateY(-0.25rem); }
.product-card__badge {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	padding: 0.25rem 0.75rem;
	border: 1px solid var(--wp--preset--color--gray-700);
	border-radius: 0.375rem;
	background: var(--wp--preset--color--gray-900);
	box-shadow: var(--cd-shadow-sm);
	font-size: 0.75rem;
	font-weight: 600;
	color: #fff;
}
.product-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem;
}
.product-card__main { display: flex; flex-direction: column; gap: 1rem; }
.product-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 14rem;
	padding: 1rem;
	border-radius: 0.75rem;
	background: var(--wp--preset--color--gray-50);
}
.product-card__img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	margin-inline: auto;
	object-fit: contain;
	transition: transform 300ms;
}
.product-card:hover .product-card__img,
.stock-card:hover .product-card__img { transform: scale(1.05); }
.product-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.75rem;
	transition: color 150ms;
}
.product-card:hover .product-card__title,
.stock-card:hover .stock-card__title { color: var(--c-accent-hover); }
.product-card__text {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
	font-family: var(--cd-serif);
	font-size: 0.75rem;
	line-height: 1.625;
	color: var(--c-muted);
}
.product-card__foot,
.stock-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--c-border);
	font-family: var(--cd-sans);
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--wp--preset--color--secondary-900);
}
.product-card__foot .muted { font-weight: 400; }

.stock-card { padding: 1.5rem; gap: 1rem; }
.stock-card__main { display: flex; flex-direction: column; gap: 1rem; }
.stock-card__title { margin: 0; font-size: 1.125rem; font-weight: 700; transition: color 150ms; }
.stock-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--wp--preset--color--gray-800);
}
.stock-card__onhand { display: inline-flex; align-items: center; gap: 0.375rem; }
.stock-card__pallets { color: var(--c-muted); }
.stock-card__foot { align-items: baseline; color: #000; }
.stock-card__price { font-size: 1.125rem; }
.stock-card__unit { font-size: 0.75rem; font-weight: 400; color: var(--c-muted); }

.dot {
	display: inline-block;
	flex-shrink: 0;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 9999px;
}
.dot--in-stock { background: var(--wp--preset--color--green-600); }
.dot--partial { background: var(--wp--preset--color--secondary-600); }
.dot--backorder { background: var(--wp--preset--color--gray-400); }
.dot--unknown { display: none; }

.not-found { padding-block: 4rem 6rem; }
.not-found__inner > * + * { margin-top: 3rem; }
.not-found__head { max-width: 42rem; margin-inline: auto; text-align: center; }
.not-found__code { margin: 0; font-family: var(--cd-serif); font-size: 3.75rem; font-weight: 700; color: var(--c-accent-hover); }
.not-found__body { font-size: 1.25rem; color: rgb(0 0 0 / 0.6); }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; padding-top: 1rem; }
.not-found__suggest { max-width: 72rem; margin-inline: auto; }
.not-found__suggest .grid-cards { margin-top: 2rem; }

.search-form { display: flex; flex-wrap: wrap; gap: 0.5rem; max-width: 32rem; margin: 1.5rem auto 0; }
.search-form .input { flex: 1; min-width: 0; margin-top: 0; }
.search-pages { max-width: 48rem; margin-inline: auto; padding-left: 1.25rem; }

.order-notice {
	padding: 1.25rem;
	border: 1px solid #fde68a;
	border-radius: var(--cd-radius-md);
	background: #fffbeb;
}
.order-notice > * + * { margin-top: 0.75rem; }
.order-notice__title { margin: 0; font-weight: 700; color: var(--wp--preset--color--gray-900); }
.order-notice__body { margin: 0; font-size: 0.875rem; color: var(--wp--preset--color--gray-700); }
.order-notice__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------------------------------------------------------------------------
   Pages with editable content (contact, quote, terms, ...)
--------------------------------------------------------------------------- */
/* main.site-content (above) has the header offset; these must outrank it, or the breadcrumbs sit against the header. */
main.site-content.page-shell { padding-block: calc(var(--cd-header-h) + 2rem) 4rem; }
@media (min-width: 768px) { main.site-content.page-shell { padding-block: calc(var(--cd-header-h) + 3rem) 6rem; } }
.page-shell > .wrap > * + * { margin-top: 2rem; }
.page-shell .page-title { max-width: 48rem; }

.entry-content > * + * { margin-top: 1.5rem; }
/* Shortcode sections bring their own container and spacing. */
.entry-content > .section,
.entry-content > .home-hero,
.entry-content > .listing,
.entry-content > .not-found { margin-top: 0; }
.wrap .wrap { max-width: none; padding-inline: 0; }
/* main is also .site-content, so the fixed header's offset has to survive this. */
main.site-content.page-shell:has(.home-hero) { padding-top: var(--cd-header-h); }
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4 { max-width: 48rem; }
.entry-content > p { font-family: var(--cd-serif); color: var(--wp--preset--color--gray-700); }
.entry-content > h2 { margin-bottom: 0.5rem; font-size: 1.5rem; font-weight: 600; }
.entry-content > h3 { margin-bottom: 0.5rem; font-size: 1.25rem; font-weight: 600; }
/* Pages that carry their own <h1> get no [cadeira_page_title], so it takes .page-title--default's place. */
.entry-content > h1 { max-width: 48rem; margin: 0 0 1rem; font-size: 1.875rem; font-weight: 600; line-height: 1.2; }
@media (min-width: 1024px) { .entry-content > h1 { font-size: 3rem; line-height: 1; } }
.entry-content > ol,
.entry-content > ul { padding-left: 1.5rem; font-family: var(--cd-serif); color: var(--wp--preset--color--gray-700); }
.entry-content > ol > li + li,
.entry-content > ul > li + li { margin-top: 0.5rem; }
.entry-content > p a,
.entry-content > ul a,
.entry-content > ol a { color: inherit; }
.entry-content > p a:hover,
.entry-content > ul a:hover,
.entry-content > ol a:hover { color: var(--c-accent-hover); }
.entry-content .wp-block-group.has-background { border-radius: var(--cd-radius-md); }

.company-details {
	display: grid;
	gap: 1.5rem;
	color: rgb(0 0 0 / 0.8);
}
.company-details h2 { margin: 0 0 0.5rem; font-size: 1.25rem; font-weight: 600; color: #000; }
.company-details address { font-style: normal; }
.company-details p { margin: 0; }
.company-details a:hover { color: var(--c-accent-hover); text-decoration: underline; }
.company-details__note { margin-top: 0.5rem !important; font-size: 0.875rem; color: rgb(0 0 0 / 0.6); }
.company-details > div + div { margin-top: 0.5rem; }

.quote-callout {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.5rem;
	border: 1px solid var(--c-border);
	border-radius: var(--cd-radius-lg);
	background: #fff;
	box-shadow: var(--cd-shadow-sm);
}
@media (min-width: 640px) {
	.quote-callout { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 768px) { .quote-callout { padding: 2rem; } }
.quote-callout__text { display: flex; align-items: flex-start; gap: 1rem; }
.quote-callout__icon { margin-top: 0.125rem; color: var(--c-accent-hover); }
.quote-callout h2 { margin: 0 0 0.25rem; font-size: 1.125rem; font-weight: 700; }
.quote-callout p { margin: 0; font-family: var(--cd-serif); font-size: 0.875rem; color: var(--wp--preset--color--gray-700); }
.quote-callout .btn { flex-shrink: 0; align-self: flex-start; }
@media (min-width: 640px) { .quote-callout .btn { align-self: center; } }

/* ---------------------------------------------------------------------------
   Footer
--------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--c-border); background: #fff; }
.footer__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 3rem 2rem;
	padding-block: 4rem;
}
/* Below lg the brand block and the long model list span both columns. */
.footer__brand,
.footer__models { grid-column: span 2; }
.footer__col { grid-column: span 1; }
@media (min-width: 1024px) {
	.footer__grid {
		grid-template-columns: repeat(12, 1fr);
		column-gap: 2.5rem;
		padding-block: 5rem;
	}
	.footer__brand { grid-column: span 4; padding-right: 1.5rem; }
	.footer__col { grid-column: span 2; }
	.footer__models { grid-column: span 4; }
}
.footer__logo { display: inline-block; line-height: 0; }
.footer__logo img { height: 2.75rem; width: auto; }
.footer__heading {
	margin: 0 0 1rem;
	font-family: var(--cd-sans);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgb(0 0 0 / 0.6);
}
.footer__heading--spaced { margin-top: 2rem; }
.footer__address { font-style: normal; font-size: 0.875rem; line-height: 1.625; color: rgb(0 0 0 / 0.7); }
.footer__address p { margin: 0; }
.footer__trade { font-weight: 600; color: #000; }
.footer__street { margin-top: 1rem !important; }
.footer__contact { display: flex; flex-direction: column; margin-top: 0.5rem !important; }
.footer__contact a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	font-weight: 500;
	color: rgb(0 0 0 / 0.8);
	text-decoration: none;
}
.footer__contact a:hover { color: var(--wp--preset--color--secondary-900); }
.footer__reg { margin-top: 1rem !important; color: rgb(0 0 0 / 0.7); }
.footer__socials { display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.footer__socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border: 1px solid var(--wp--preset--color--gray-200);
	border-radius: 9999px;
	color: #000;
	text-decoration: none;
	transition: color var(--cd-ease), border-color var(--cd-ease), background-color var(--cd-ease);
}
.footer__socials a:hover {
	border-color: var(--c-accent);
	background: var(--wp--preset--color--secondary-50);
	color: var(--c-accent-hover);
}
.footer__list { margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
.footer__list li + li { margin-top: 0.625rem; }
.footer__list a {
	display: block;
	width: auto;
	font-weight: 500;
	color: rgb(0 0 0 / 0.8);
	text-decoration: none;
	transition: color var(--cd-ease);
}
.footer__list a:hover { color: var(--c-accent-hover); }
/* Two columns at every width, filled column by column so the range reads in order. */
.footer__list--models {
	display: grid;
	grid-auto-flow: column;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.625rem 1.5rem;
}
.footer__list--models li + li { margin-top: 0; }
.footer__legal { border-top: 1px solid var(--c-border); }
.footer__legal-inner {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-block: 1.5rem;
	font-size: 0.875rem;
	color: rgb(0 0 0 / 0.6);
}
@media (min-width: 640px) {
	.footer__legal-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.footer__legal p { margin: 0; }
.footer__legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1rem; }
.footer__legal a { text-decoration: none; transition: color var(--cd-ease); }
.footer__legal a:hover { color: var(--c-accent-hover); }

/* ---------------------------------------------------------------------------
   Quantity stepper (product panel, sticky bar)
--------------------------------------------------------------------------- */
.stepper {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--gray-400);
	border-color: #787878;
	border-radius: var(--cd-radius-sm);
}
.stepper button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #000;
	font: inherit;
	cursor: pointer;
	transition: background-color var(--cd-ease);
}
.stepper button:hover:not(:disabled) { background: var(--c-accent); }
.stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
/* The native spinners would be a second, differently styled set of the same control. */
.stepper__input,
input.stepper__input {
	width: 3.5rem;
	height: 2.25rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-inline: 1px solid #787878;
	border-radius: 0;
	background: transparent;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--wp--preset--color--secondary-600); }

/* ---------------------------------------------------------------------------
   Toast (added to cart)
--------------------------------------------------------------------------- */
.toast {
	position: fixed;
	left: 50%;
	bottom: 1.25rem;
	z-index: 60;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem 0.75rem;
	max-width: calc(100vw - 2rem);
	padding: 0.75rem 1.25rem;
	border-radius: var(--cd-radius-sm);
	background: var(--wp--preset--color--gray-900);
	box-shadow: var(--cd-shadow-lg);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	transform: translate(-50%, 1rem);
	opacity: 0;
	pointer-events: none;
	transition: opacity 200ms, transform 200ms;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast.has-sticky { bottom: 5.5rem; }
.toast--error { background: var(--wp--preset--color--red-700); }
.toast a { color: var(--c-accent); }

/* ---------------------------------------------------------------------------
   WooCommerce notices outside the cart and checkout blocks
--------------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--gray-200);
	border-left-width: 4px;
	border-radius: var(--cd-radius-sm);
	background: #fff;
	list-style: none;
}
.woocommerce-message { border-left-color: var(--wp--preset--color--green-600); }
.woocommerce-error { border-left-color: var(--wp--preset--color--red-600); }
.woocommerce-info { border-left-color: var(--c-accent); }

/* ---------------------------------------------------------------------------
   Reduced motion
--------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.product-card:hover,
	.stock-card:hover,
	.category-card:hover,
	.related-card:hover { transform: none; }
}

/* Contact page: the Gutenberg columns have no gap (blockGap is 0) and the group adds global padding. */
.cadeira-contact { padding-inline: 0; }
.cadeira-contact .wp-block-columns { gap: 2rem; }
@media (min-width: 782px) { .cadeira-contact .wp-block-columns { gap: 4rem; } }
.cadeira-contact .wp-block-heading { margin: 0 0 1rem; }
.cadeira-contact .wp-block-column > * + .wp-block-heading { margin-top: 2rem; }
