/* Flower Hero - shop styles
   One accent colour (freesia yellow) on a deep leaf-green ground.
   Everything else stays quiet so the bouquets carry the colour. */

:root {
	--ink: #16261c;
	--moss: #35573b;
	--paper: #fafaf8;
	--line: #e2e0d8;
	--freesia: #f2b705;
	--muted: #6b6f68;
	--radius: 2px;
	--measure: 62ch;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: Inter, system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	font-feature-settings: "cv05", "ss01";
}

h1, h2, h3 {
	font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0 0 .4em;
	text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
h3 { font-size: 1.1rem; }

p { max-width: var(--measure); }

a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ----------------------------------------------------------- site header */

.masthead {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--line);
	position: sticky;
	top: 0;
	background: var(--paper);
	z-index: 10;
}

.wordmark {
	font-family: "Bricolage Grotesque", sans-serif;
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.03em;
	text-decoration: none;
}

.cart-link {
	text-decoration: none;
	font-weight: 500;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	padding: 7px 14px;
}
.cart-link[data-filled="1"] { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------ hero */

.hero {
	background: var(--ink);
	color: var(--paper);
	padding: clamp(32px, 7vw, 72px) 0;
}
.hero .wrap { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 860px) {
	.hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; }
}
.hero p { color: #cfd6cd; }

/* The availability check is the hero element: it answers the first
   question a customer actually has. */
.checker {
	background: var(--paper);
	color: var(--ink);
	padding: 22px;
	border-radius: var(--radius);
	border-top: 4px solid var(--freesia);
}
.checker label { display: block; font-weight: 500; margin-bottom: 6px; }
.checker .row { display: flex; gap: 8px; }
.checker input { flex: 1; }

/* ---------------------------------------------------------------- inputs */

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 10px 12px;
	width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible {
	outline: 2px solid var(--freesia);
	outline-offset: 2px;
}

.btn {
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid var(--ink);
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--paper);
	padding: 10px 18px;
}
.btn--ghost { background: transparent; color: inherit; }
.btn--small { padding: 4px 10px; font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* -------------------------------------------------------------- feedback */

.verdict { margin-top: 14px; font-weight: 500; }
.verdict--yes { color: var(--moss); }
.verdict--no { color: #a3301f; }
.verdict small { display: block; font-weight: 400; color: var(--muted); }

/* --------------------------------------------------------------- catalog */

.navline {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	padding: 18px 0;
	border-bottom: 1px solid var(--line);
	margin-bottom: 28px;
}
.navline a { text-decoration: none; color: var(--muted); }
.navline a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.grid {
	display: grid;
	gap: 28px 20px;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	padding-bottom: 56px;
}

.card { text-decoration: none; display: block; }
.card figure { margin: 0 0 10px; aspect-ratio: 4 / 5; overflow: hidden; background: #ece9e0; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card h3 { margin-bottom: 2px; }
.card .price { color: var(--muted); }

/* ------------------------------------------------------------ product page */

.product { display: grid; gap: 32px; padding: 28px 0 64px; }
@media (min-width: 860px) { .product { grid-template-columns: 1fr 1fr; gap: 48px; } }
.product figure { margin: 0; aspect-ratio: 4 / 5; background: #ece9e0; overflow: hidden; }
.product figure img { width: 100%; height: 100%; object-fit: cover; }

fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { font-weight: 500; padding: 0 0 8px; }

.choice {
	display: flex;
	align-items: baseline;
	gap: 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 11px 14px;
	margin-bottom: 8px;
	cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice .name { flex: 1; }
.choice .amount { font-variant-numeric: tabular-nums; }

.price-large { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ cart */

.lines { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.lines th {
	text-align: left;
	font-weight: 500;
	font-size: .85rem;
	color: var(--muted);
	border-bottom: 1px solid var(--line);
	padding: 0 0 8px;
}
.lines td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines .amount { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines .extras { color: var(--muted); font-size: .9rem; }

.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper .count { min-width: 2ch; text-align: center; font-variant-numeric: tabular-nums; }

.totals { margin-left: auto; max-width: 320px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .sum { border-top: 1px solid var(--ink); font-weight: 600; font-size: 1.15rem; margin-top: 6px; padding-top: 10px; }

.empty { padding: 64px 0; text-align: center; color: var(--muted); }

/* ---------------------------------------------------------------- footer */

.foot {
	border-top: 1px solid var(--line);
	padding: 28px 0 48px;
	color: var(--muted);
	font-size: .9rem;
}
.foot a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* -------------------------------------------------------------- checkout */

.checkout { display: grid; gap: 40px; padding: 28px 0 64px; }
@media (min-width: 900px) {
	.checkout { grid-template-columns: 1.4fr .8fr; gap: 56px; align-items: start; }
	.checkout__summary { position: sticky; top: 84px; }
}

.checkout fieldset { margin-bottom: 30px; }
.checkout legend {
	font-family: "Bricolage Grotesque", sans-serif;
	font-size: 1.15rem;
	font-weight: 600;
	border-bottom: 1px solid var(--line);
	width: 100%;
	padding-bottom: 6px;
	margin-bottom: 14px;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 4px; }
.pair { display: grid; gap: 14px; grid-template-columns: 1fr 2fr; }

/* Time windows are the one place where scanning speed matters: people pick
   a date first and a window second. */
.slots { max-height: 320px; overflow-y: auto; padding-right: 4px; }

.consent {
	display: flex;
	gap: 10px;
	align-items: start;
	margin-bottom: 10px;
	font-size: .92rem;
	line-height: 1.45;
}
.consent input { margin-top: 3px; flex: none; }

.checkout__summary { background: #fff; border: 1px solid var(--line); padding: 20px; }
.checkout__summary .lines td { padding: 10px 0; }

.thanks { max-width: 640px; padding: 40px 0 72px; }
.thanks .lines th { width: 9rem; padding: 10px 0; vertical-align: top; }
.thanks .lines td { padding: 10px 0; }

.card-preview {
	border: 2px dashed var(--ink);
	padding: 18px 20px;
	margin: 24px 0;
}
.card-preview h2 { font-size: 1rem; margin-bottom: 4px; }

/* ----------------------------------------------------------- static pages */

.page { max-width: 68ch; padding: 36px 0 72px; }
.page h2 { font-size: 1.35rem; margin-top: 1.8em; }
.page h3 { margin-top: 1.4em; }
.page ul, .page ol { padding-left: 1.2em; }
.page li { margin-bottom: .3em; }
.page table { border-collapse: collapse; margin: 1.2em 0; }
.page th, .page td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }

.foot__nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }