/* ADGG store — placeholder palette borrowed from onotw/'s (navy/teal/orange/
   cream) until real Girl Guides branding assets are supplied; everything
   below reads these custom properties, so retheming is a one-place edit. */

:root {
	--deep: #093e52;
	--teal: #007178;
	--orange: #f89c23;
	--orange-dark: #d97f0e;
	--cream: #f5f3ea;
	--paper: #e4d9c3;
	--sky: #4a98b7;
	--ink: #23333b;
	--card: #fdfbf5;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: 'Nunito', system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	/* sticky footer: short pages (an almost-empty cart) still pin it down */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
main.shell { flex: 1 0 auto; width: 100%; }
.site-footer { flex-shrink: 0; }

h1, h2, h3, .display {
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-weight: 400;
	letter-spacing: .035em;
	color: var(--deep);
	margin: 0 0 .35em;
}
h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }

a { color: var(--teal); }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.c { text-align: center; }

/* ---- header */

.site-header {
	background: var(--deep);
	border-bottom: 4px solid var(--orange);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 4px 14px rgba(9, 62, 82, .25);
}
.header-row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-top: 10px;
	padding-bottom: 10px;
}
.badge-link img { display: block; height: 92px; width: auto; }
/* placeholder for the real logo: a trefoil/shamrock glyph nodding to the
   Girl Guides trefoil, until real branding assets are supplied */
.wordmark-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--orange);
	color: var(--deep);
	font-size: 38px;
	line-height: 1;
}
.header-title { display: flex; flex-direction: column; line-height: 1.15; }
.header-title .kicker {
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--sky);
}
.header-title .wordmark {
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-size: 34px;
	color: var(--cream);
	letter-spacing: .04em;
	white-space: nowrap;
}
.header-title .sub { font-size: 13px; font-weight: 700; color: rgba(245, 243, 234, .65); }

.header-nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.header-nav a, .header-nav .cart-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-size: 24px;
	letter-spacing: .05em;
	text-decoration: none;
	color: var(--cream);
	/* asymmetric: Bebas Neue rides high in its box, so more top, less bottom */
	padding: 10px 16px 6px;
	border-radius: 999px;
	white-space: nowrap;
}
.header-nav a:hover { background: rgba(245, 243, 234, .12); }
.header-nav a.current { background: var(--orange); color: var(--deep); }
.header-nav a.current .cart-count { background: var(--deep); color: var(--cream); }
.cart-link.disabled { opacity: .45; cursor: not-allowed; }

.zw-link { margin-left: 16px; }
.zw-link img { display: block; height: 55px; width: auto; }
.cart-count {
	min-width: 22px;
	text-align: center;
	background: var(--orange);
	color: var(--deep);
	border-radius: 999px;
	font-size: 14px;
	line-height: 1;
	padding: 4px 6px;
	font-family: 'Nunito', sans-serif;
	font-weight: 900;
	/* counter the pill's asymmetric padding to sit on the text's optical centre */
	transform: translateY(-1px);
}

/* ---- hero */

.hero { margin: 22px 0 0; }

.hero-strip {
	background: var(--orange);
	color: var(--deep);
	border-radius: 10px;
	margin: 14px 0 0;
	padding: 10px 18px;
	display: flex;
	flex-wrap: wrap;
	/* one row on a wide screen; once it wraps, the row gap is what separates
	   one paragraph from the next */
	gap: 11px 26px;
	align-items: center;
	justify-content: center;
	font-weight: 800;
}
/* each line of the strip is its own paragraph: a phrase that has to break
   stays tight against its own second line, well inside the gap to its
   neighbours */
.hero-strip p {
	margin: 0;
	line-height: 1.2;
	text-align: center;
}
/* a paragraph that keeps a row to itself however wide the screen is */
.hero-strip p.own-line { flex-basis: 100%; }
.hero-strip .big {
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-size: 24px;
	letter-spacing: .05em;
}
.nb { white-space: nowrap; }

/* ---- sections & cards */

section.panel {
	background: var(--card);
	border-radius: 14px;
	padding: 26px 30px;
	margin: 26px 0;
	box-shadow: 0 6px 18px rgba(9, 62, 82, .10);
}
.lede { font-size: 18px; }

.section-head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin: 34px 0 16px;
	position: relative;
	padding-bottom: 2px;
}
/* the line runs the full width, under the title too */
.section-head::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 6px;
	height: 4px;
	background: var(--deep);
	border-radius: 2px;
	opacity: .85;
}
.section-head h2 { margin: 0; font-size: 34px; }
/* trees only grow to the right of the title, feet on the line below */
.section-head .rule {
	flex: 1;
	align-self: flex-end;
	height: 38px;
	margin-bottom: 10px;
	background: url(/assets/treeline.png) repeat-x left bottom;
	pointer-events: none;
}

.grid {
	display: grid;
	/* 240px min lands exactly 4 across inside the 1180px shell, and steps
	   down to 3 / 2 / 1 on its own as the viewport narrows */
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
	margin-bottom: 34px;
}
/* a card that starts its own row, however many columns the grid has -
   home.php puts this on the first hat so the shelves stay grouped */
.grid .row-break { grid-column-start: 1; }
/* the Zone West plug: one design, two grid slots, one shown per width.
   4-across (>= 1054px, where the shell's 1140px content first fits
   4 x 240px columns + gaps): .ad-mid, tall in the tee row's 2 empty
   slots. 3-across (796-1053px): .ad-mid as a full-row half-height
   banner between the tees and the hats. 2- and 1-across (< 796px):
   .ad-end, the same banner closing the grid after the water bottles. */
.grid .ad-card {
	display: none;
	background: var(--deep);
	align-items: center;
	justify-content: center;
	text-align: center;
}
/* the half-height banner: everything on one wrapping line */
.ad-card .ad-body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 26px;
	padding: 18px 24px;
}
.ad-card img { width: 120px; }
.ad-card .ad-head {
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-size: 30px;
	letter-spacing: .035em;
	line-height: 1;
	color: var(--orange);
}
.ad-card .ad-copy { color: var(--cream); font-size: 15px; max-width: 340px; }
@media (max-width: 795.98px) {
	.grid .ad-end { display: flex; grid-column: 1 / -1; }
}
@media (min-width: 796px) {
	.grid .ad-mid { display: flex; grid-column: 1 / -1; }
}
@media (min-width: 796px) and (max-width: 1053.98px) {
	/* the headline sits just above the copy (user's call), so the copy
	   gets the whole middle column instead of fighting the headline for
	   space on the line - the button can never drop below this way */
	.ad-mid .ad-body {
		display: grid;
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "logo head btn" "logo copy btn";
		column-gap: 26px;
		row-gap: 6px;
		align-items: center;
	}
	.ad-mid img { grid-area: logo; }
	.ad-mid .ad-head { grid-area: head; align-self: end; text-align: left; }
	.ad-mid .ad-copy { grid-area: copy; align-self: start; justify-self: start; text-align: left; max-width: 460px; }
	.ad-mid .btn { grid-area: btn; }
}
@media (min-width: 1054px) {
	.grid .ad-mid { grid-column: span 2; }
	/* the tall 2-wide version stacks like a product card */
	.ad-mid .ad-body { flex-direction: column; gap: 12px; padding: 26px 40px; }
	.ad-mid img { width: 170px; }
	.ad-mid .ad-head { font-size: 36px; }
	.ad-mid .ad-copy { max-width: 400px; }
}
.card {
	background: var(--card);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: var(--ink);
	box-shadow: 0 4px 14px rgba(9, 62, 82, .12);
	transition: transform .12s ease, box-shadow .12s ease;
	display: flex;
	flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(9, 62, 82, .2); }
.card .pic {
	aspect-ratio: 1 / 1;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.card .pic img { max-width: 92%; max-height: 92%; object-fit: contain; }
.card .meta { padding: 12px 15px 15px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card .name { font-size: 15px; font-weight: 800; color: var(--deep); line-height: 1.25; }
.card .price {
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-size: 22px;
	color: var(--teal);
	margin-top: auto;
}
.swatches { display: flex; gap: 5px; }
.swatch {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	/* strong enough that a white swatch still reads as white on light
	   backgrounds (selected-chip tint, card face) */
	border: 2px solid rgba(9, 62, 82, .55);
	display: inline-block;
}
.ribbon {
	position: absolute;
	top: 10px;
	left: -34px;
	transform: rotate(-35deg);
	background: #c0392b;
	color: #fff;
	font-weight: 900;
	font-size: 13px;
	padding: 3px 40px;
}

/* ---- buttons & forms */

.btn {
	display: inline-block;
	background: var(--orange);
	color: var(--deep);
	border: none;
	border-radius: 999px;
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-size: 22px;
	letter-spacing: .06em;
	padding: 9px 30px 7px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 3px 0 var(--orange-dark);
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(2px); box-shadow: none; }
.btn.teal { background: var(--teal); color: var(--cream); box-shadow: 0 3px 0 #00565c; }
.btn.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

label { font-weight: 800; color: var(--deep); display: block; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
	font: inherit;
	width: 100%;
	padding: 9px 12px;
	border: 2px solid #cdbfa2;
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); }

.flash {
	margin: 18px 0 0;
	padding: 12px 18px;
	border-radius: 10px;
	font-weight: 800;
}
.flash.ok { background: #d9ead5; color: #2c5e2e; }
.flash.err { background: #f6d7d2; color: #8c2f23; }

/* ---- product page */

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 26px; }
.gallery .main {
	background: #fff;
	border-radius: 14px;
	padding: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 420px;
	box-shadow: 0 6px 18px rgba(9, 62, 82, .10);
}
.gallery .main img { max-width: 100%; max-height: 560px; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs img {
	width: 76px;
	height: 76px;
	object-fit: contain;
	background: #fff;
	border-radius: 8px;
	border: 2px solid transparent;
	cursor: pointer;
	padding: 3px;
}
.thumbs img.selected { border-color: var(--orange); }

.buy { background: var(--card); border-radius: 14px; padding: 24px 26px; box-shadow: 0 6px 18px rgba(9, 62, 82, .10); align-self: start; }
.buy h1 { font-size: 34px; }
.buy .price {
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-size: 34px;
	color: var(--teal);
}
/* prices are shown tax in, so every price needs to say so */
.tax-note {
	font-family: 'Nunito', sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #6c7a80;
	letter-spacing: 0;
	white-space: nowrap;
}
p.tax-note { margin: -18px 0 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 2px solid #cdbfa2;
	border-radius: 999px;
	background: #fff;
	padding: 5px 13px;
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
	color: var(--ink);
	text-decoration: none;
}
.chip .swatch { width: 14px; height: 14px; }
/* light tint + deep border: swatches stay visible and orange stays the
   size-selection colour */
.chip.selected { border-color: var(--deep); background: #dcebee; color: var(--deep); }
.chip.soldout { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
	min-width: 52px;
	text-align: center;
	border: 2px solid #cdbfa2;
	border-radius: 8px;
	background: #fff;
	padding: 7px 10px;
	font-weight: 800;
	cursor: pointer;
}
.size.selected { border-color: var(--orange); background: var(--orange); color: var(--deep); }
.size.soldout { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.size-head { display: flex; align-items: baseline; justify-content: space-between; }
.sizing-link { font-size: 14px; font-weight: 800; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.qty-row input { width: 84px; text-align: center; }
.desc { margin-top: 20px; }
.desc ul { padding-left: 20px; }
.stock-note { font-size: 14px; font-weight: 800; color: #a4611c; }
.size-hint { font-size: 15px; font-weight: 800; color: #c0392b; margin: 8px 0 0; }
.ship-note { font-size: 13px; font-weight: 700; color: #7c6f52; margin: 2px 0 4px 26px; }
.field-warn { font-size: 13px; font-weight: 800; color: #c0392b; margin-top: 4px; }
.checkout-totals { margin-top: 14px; }
.tot-row { display: flex; justify-content: space-between; font-weight: 700; padding: 3px 0; }
.tot-total {
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-size: 26px;
	letter-spacing: .04em;
	color: var(--deep);
	border-top: 3px solid var(--deep);
	margin-top: 8px;
	padding-top: 8px;
}
.map-link { color: inherit; text-decoration: none; }
.map-link:hover { text-decoration: underline; }
.map-link svg { color: var(--orange); vertical-align: -1px; margin-right: 4px; }
.sizes.attention { animation: size-nudge .5s ease; }
.sizes.attention .size { border-color: #c0392b; }
@keyframes size-nudge {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

/* ---- cart & checkout */

table.cart { width: 100%; border-collapse: collapse; }
table.cart th {
	text-align: left;
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-size: 19px;
	letter-spacing: .05em;
	color: var(--deep);
	border-bottom: 3px solid var(--deep);
	padding: 8px 10px 2px;
}
table.cart td { padding: 12px 10px; border-bottom: 1px solid #d8ccb2; vertical-align: middle; }
table.cart .thumb img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; }
/* Bebas Neue rides high in its box — same asymmetric-padding trick as the
   nav pills; the compact x is Nunito, which centres honestly */
table.cart .remove-btn { font-size: 15px; padding: 6px 14px 4px; }
table.cart .rm-short { display: none; font-family: 'Nunito', sans-serif; font-weight: 800; line-height: 1; }
@media (max-width: 640px) {
	table.cart .remove-btn { font-size: 16px; padding: 6px 8px 4px; line-height: 1; }
	table.cart .rm-long { display: none; }
	table.cart .rm-short { display: inline-block; transform: translateY(-1px); }
}
table.cart .money { text-align: right; white-space: nowrap; }
table.cart input.qty { width: 70px; text-align: center; }
.cart-total {
	text-align: right;
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-size: 28px;
	color: var(--deep);
	margin: 16px 0;
}
.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }

/* ---- event info */

.event-info { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; }
.event-info .btn { padding: 12px 30px 6px; }
.event-blurb { font-size: 14px; }
.event-blurb p { margin: 0; }
.event-blurb p + p { margin-top: 12px; }
.event-info img { width: 100%; border-radius: 12px; box-shadow: 0 6px 18px rgba(9, 62, 82, .15); }

/* ---- lightbox */

[data-lightbox] { cursor: zoom-in; }
/* freeze the page behind any open dialog (covers Esc-close too, no JS) */
body:has(dialog[open]) { overflow: hidden; }
dialog { overscroll-behavior: contain; }
#lightbox {
	border: none;
	border-radius: 12px;
	padding: 6px;
	background: var(--card);
	max-width: 94vw;
	max-height: 92vh;
	cursor: zoom-out;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
#lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 12px); }
#lightbox::backdrop { background: rgba(9, 62, 82, .78); }

dialog.modal {
	border: none;
	border-radius: 14px;
	padding: 24px 28px;
	background: var(--card);
	max-width: min(94vw, 680px);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
dialog.modal::backdrop { background: rgba(9, 62, 82, .78); }
dialog.modal .note { font-size: 13px; color: #7c6f52; }
table.sizing { border-collapse: collapse; width: 100%; margin-top: 8px; }
table.sizing thead th {
	font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
	font-size: 19px;
	letter-spacing: .05em;
	background: var(--deep);
	color: var(--cream);
	padding: 6px 12px;
}
table.sizing thead th:first-child { background: transparent; }
table.sizing tbody th { text-align: left; padding: 8px 12px; font-size: 14px; color: var(--deep); }
table.sizing td { text-align: center; padding: 8px 12px; background: #fff; }
table.sizing tbody tr:nth-child(even) td { background: #f4efe2; }

/* ---- footer */

.site-footer {
	margin-top: 50px;
	background: var(--deep);
	color: var(--cream);
}
.footer-row {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
	padding-top: 26px;
	padding-bottom: 30px;
	font-size: 14px;
}
.site-footer a { color: var(--orange); }
.site-footer a.addr { color: inherit; text-decoration: none; }
.site-footer a.addr:hover { text-decoration: underline; }
.site-footer a.addr svg { color: var(--orange); vertical-align: -2px; margin-right: 4px; }

@media (max-width: 860px) {
	.header-title .kicker, .header-title .sub { display: none; }
	.header-row { flex-wrap: wrap; gap: 8px 12px; padding-top: 8px; padding-bottom: 8px; }
	.badge-link img { height: 52px; }
	.wordmark-badge { width: 48px; height: 48px; font-size: 26px; }
	.header-title .wordmark { font-size: 22px; white-space: nowrap; }
	.header-nav {
		order: 3;
		flex-basis: 100%;
		margin-left: 0;
		justify-content: center;
		gap: 4px;
		border-top: 1px solid rgba(245, 243, 234, .22);
		padding-top: 7px;
	}
	.header-nav a { font-size: 18px; padding: 6px 12px 2px; white-space: nowrap; }
	.zw-link { margin-left: auto; }
	.zw-link img { height: 30px; }
	.product, .event-info, .two-col { grid-template-columns: 1fr; }
	h1 { font-size: 32px; }
}

@media (max-width: 640px) {
	.buy { padding: 18px 16px; }
	.buy h1 { font-size: 23px; }
	.buy .price { font-size: 26px; }
	.sizes { gap: 6px; }
	.size { min-width: 40px; padding: 6px 5px; font-size: 14px; }

	section.panel { padding: 18px 14px; }
	table.cart .price-col { display: none; }
	table.cart .thumb img { width: 44px; height: 44px; }
	table.cart th { font-size: 16px; padding: 6px 5px 0; }
	table.cart td { font-size: 14px; padding: 9px 4px; }
	table.cart input.qty { width: 52px; padding: 6px 4px; }
	.cart-total { font-size: 22px; }
	.cart-actions { justify-content: center; }
	.cart-actions .btn { font-size: 18px; padding: 8px 18px 5px; }
	.event-info .btn { font-size: 17px; padding: 8px 18px 5px; }
}

@media (max-width: 380px) {
	/* last resort on the narrowest phones: let the held-together phrases
	   break rather than push out of the orange strip */
	.hero-strip .nb { white-space: normal; }
	.header-title .wordmark { font-size: 19px; }
	.badge-link img { height: 44px; }
	.wordmark-badge { width: 40px; height: 40px; font-size: 22px; }
}
