/* Elderberrie Blue: colours and type taken from Joe & Becca's own cards and inserts.
   Paper cream, cornflower ink, and the stripe, gingham and scallop patterns they paint. */

@font-face { font-family: "Lora"; src: url(../fonts/lora-latin-wght-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(../fonts/nunito-latin-wght-normal.woff2) format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "Amatic SC"; src: url(../fonts/amatic-sc-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url(../fonts/caveat-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
	--paper: #f8f3ea;
	--paper-2: #f1e8d9;
	--card: #fffdf9;
	--ink: #1f2c57;
	--ink-soft: #4a5579;
	--blue: #335ab2;
	--blue-deep: #263f86;
	--sky: #cfdef1;
	--sage: #c4ceb9;
	--sage-ink: #4f6146;
	--blush: #f7d6df;
	--berry: #a8304a;
	--sun: #f2b632;
	--line: rgba(31, 44, 87, 0.14);
	--shadow: 0 18px 40px -22px rgba(84, 66, 48, 0.45), 0 2px 6px -2px rgba(84, 66, 48, 0.18);
	--f-display: "Lora", Georgia, serif;
	--f-body: "Nunito", ui-rounded, system-ui, sans-serif;
	--f-hand: "Amatic SC", "Nunito", sans-serif;
	--f-script: "Caveat", "Lora", cursive;
	--wrap: 1240px;
	--gut: clamp(16px, 4vw, 40px);
	--r: 14px;
	--fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);
	--fs-h2: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
	margin: 0; color: var(--ink); background: var(--paper); font: 400 1.0625rem/1.6 var(--f-body);
	/* faint watercolour-paper grain */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }

/* ---------- type ---------- */
.display { font: italic 600 var(--fs-display)/1.02 var(--f-display); letter-spacing: -0.01em; color: var(--ink); margin-bottom: .3em; text-wrap: balance; }
.display em { color: var(--blue); font-style: italic; }
.display--sm { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem); }
.section-title, .page-head__title { font: italic 600 var(--fs-h2)/1.08 var(--f-display); text-wrap: balance; }
.eyebrow { font: 700 1.45rem/1 var(--f-hand); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: .55em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lede { font-size: clamp(1.08rem, 1rem + .35vw, 1.28rem); color: var(--ink-soft); max-width: 34ch; }
.signoff { font: 500 1.9rem/1 var(--f-script); color: var(--blue); margin-top: .6em; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; color: var(--blue); }
.link-arrow .eb-icon { width: 20px; height: 20px; transition: transform .2s; }
.link-arrow:hover .eb-icon { transform: translateX(3px); }

/* ---------- buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.5em;
	border: 2px solid var(--blue); border-radius: 999px; background: var(--blue); color: #fff; font-weight: 800; letter-spacing: .01em;
	text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; box-shadow: 0 3px 0 var(--blue-deep);
}
.btn:hover { background: var(--blue-deep); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--blue-deep); }
.btn--ghost { background: transparent; color: var(--blue); box-shadow: none; }
.btn--ghost:hover { background: var(--sky); color: var(--blue-deep); }
.btn--lg { min-height: 56px; padding-inline: 2em; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn .eb-icon { width: 20px; height: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; color: var(--ink); position: relative; }
.icon-btn:hover { background: rgba(51, 90, 178, .08); color: var(--blue); }

/* ---------- ribbon + header ---------- */
.ribbon {
	background: var(--sky); color: var(--blue-deep); text-align: center; font: 700 1.2rem/1 var(--f-hand); letter-spacing: .1em;
	/* painted blue stripes, like the edges of their cards */
	background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 9px, transparent 9px 22px);
}
.ribbon p { margin: 0; padding: 9px var(--gut); }
.ribbon span { color: var(--blue); margin-inline: .5em; }
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(248, 243, 234, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); margin-right: auto; }
.brand__logo { width: 46px; height: auto; }
.brand__name { font: 700 1.9rem/0.9 var(--f-hand); letter-spacing: .08em; text-transform: uppercase; }
.brand__name span { display: inline; }
.site-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 10px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; }
.site-nav__list a:hover, .site-nav__list a[aria-current] { background: rgba(51, 90, 178, .08); color: var(--blue); }
.site-nav__all a { color: var(--blue); }
.site-nav__more, .site-nav__close, .nav-toggle { display: none; }
.head-actions { display: flex; gap: 2px; }
.basket-btn__count {
	position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
	background: var(--berry); color: #fff; font: 800 .75rem/20px var(--f-body); text-align: center;
}
.basket-btn.is-bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95); } }

@media (max-width: 899px) {
	.nav-toggle { display: inline-grid; margin-left: -8px; }
	.brand { margin-right: auto; }
	.brand__name { font-size: 1.6rem; }
	.brand__logo { width: 38px; }
	.site-nav {
		position: fixed; inset: 0 auto 0 0; width: min(86vw, 360px); background: var(--paper); z-index: 60; padding: 72px 24px 24px;
		transform: translateX(-102%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow); overflow-y: auto;
		visibility: hidden;
	}
	.site-nav.is-open { transform: none; visibility: visible; }
	.site-nav__close { display: inline-grid; position: absolute; top: 14px; right: 14px; }
	.site-nav__list { flex-direction: column; }
	.site-nav__list a { font-size: 1.15rem; padding: 12px 6px; border-radius: 8px; border-bottom: 1px dashed var(--line); }
	.site-nav__more { display: block; list-style: none; padding: 16px 0 0; margin: 0; }
	.site-nav__more a { display: block; padding: 10px 6px; color: var(--ink-soft); text-decoration: none; }
	body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(31,44,87,.35); z-index: 50; }
}

/* ---------- homepage: the card stack ---------- */
.stack { position: relative; }
.stack__sticky {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(16px, 4vw, 64px);
	width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; padding-block: clamp(28px, 5vw, 64px);
}
.stack__text { position: relative; display: grid; }
.stack__panel { grid-area: 1 / 1; }
.stack__panel:not(.stack__panel--intro) { display: none; }
.stack__card-link { margin-top: 22px; font-size: .95rem; color: var(--ink-soft); }
.stack__stage { position: relative; display: grid; justify-items: center; }
.stack__player { position: relative; width: min(100%, 560px); aspect-ratio: 3 / 4; }
.stack__poster { position: absolute; left: 8.33%; top: 6.4%; width: 83.33%; height: auto; border-radius: 7px; box-shadow: var(--shadow); transform: rotate(-2.2deg); }
.stack__dots, .stack__hint { display: none; }

/* once home.js has taken over (motion allowed), the section becomes a tall scroll with a pinned stage */
.stack.is-live { height: 420vh; }
.stack.is-live .stack__sticky { position: sticky; top: 72px; height: calc(100vh - 72px); height: calc(100svh - 72px); padding-block: 12px; }
.stack.is-live .stack__panel { display: block; opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.stack.is-live .stack__panel.is-on { opacity: 1; transform: none; pointer-events: auto; }
.stack.is-live .stack__sticky { align-items: stretch; }
.stack.is-live .stack__text { align-content: center; }
.stack.is-live .stack__stage { height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr) auto auto; align-content: stretch; gap: 8px; padding-bottom: 8px; }
.stack.is-live .stack__player { height: 100%; max-height: 82vh; width: auto; max-width: 100%; align-self: center; }
.stack.is-live .stack__dots { display: flex; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; }
.stack__dots li { width: 9px; height: 9px; border-radius: 50%; background: var(--sky); transition: background .3s, transform .3s; }
.stack__dots li.is-on { background: var(--blue); transform: scale(1.25); }
.stack.is-live .stack__hint { display: block; margin: 0; font: 700 1.2rem/1 var(--f-hand); letter-spacing: .1em; color: var(--ink-soft); transition: opacity .4s; }
.stack__hint.is-gone { opacity: 0; }
.stack__player [data-remotion-mount], .stack__player > div { position: absolute; inset: 0; }

@media (max-width: 899px) {
	.stack__sticky { grid-template-columns: 1fr; gap: 8px; padding-top: 18px; }
	.stack__stage { order: -1; }
	.stack__player { width: min(100%, 420px); }
	.stack .lede { font-size: 1.05rem; }
	.hide-sm { display: none; }
	.stack.is-live .stack__sticky { grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; gap: 0; }
	.stack.is-live .stack__stage { min-height: 0; }
	.stack.is-live .stack__stage { padding-bottom: 0; }
	.stack.is-live .stack__player { height: 100%; max-height: 58vh; }
	.stack.is-live .stack__text { min-height: 15.5rem; align-content: start; }
	.stack.is-live .display { font-size: clamp(2.1rem, 9vw, 2.7rem); }
	.stack.is-live .stack__hint { display: none; }
	.stack__card-link { display: none; }
	.stack.is-live .stack__player { max-height: 44vh; max-height: 44svh; }
	.stack .eyebrow { font-size: 1.15rem; }
	.stack .lede { margin-bottom: .8em; }
	.stack .actions { flex-wrap: nowrap; gap: 8px; }
	.stack .actions .btn { min-height: 46px; padding: .55em 1.1em; font-size: .98rem; }
	.occasions__list li { width: 100px; }
	.occasion__blob { width: 92px; }
	.occasion__label { font-size: .92rem; }
}
@media (max-width: 899px) { .ribbon .hide-sm { display: none; } .ribbon { font-size: 1.05rem; } .ribbon p { padding-block: 7px; } }

/* ---------- occasions ---------- */
.occasions { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 48px); }
.occasions__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 14px; list-style: none; margin: 1.2em 0 0; padding: 0; }
.occasions__list li { width: 122px; }
.occasion { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.occasion__blob {
	display: grid; place-items: center; width: 118px; aspect-ratio: 1; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
	background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.75), rgba(255,255,255,0) 58%), var(--sky);
	transition: transform .3s cubic-bezier(.2,.8,.2,1), border-radius .6s;
}
.occasion__blob img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(84,66,48,.15)); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.occasion:hover .occasion__blob { transform: translateY(-4px); border-radius: 55% 45% 45% 55% / 45% 55% 45% 55%; }
.occasion:hover .occasion__blob img { transform: rotate(-6deg) scale(1.06); }
.occasion__label { font-weight: 800; text-align: center; line-height: 1.2; }
.occasion__blob--birthday { background-color: #fbe6b4; }
.occasion__blob--childrens-birthday { background-color: var(--blush); }
.occasion__blob--new-baby { background-color: #dfe8f5; }
.occasion__blob--christmas { background-color: #dfe6d5; }
.occasion__blob--thank-you { background-color: #e5ebdf; }
.occasion__blob--teacher-thank-you { background-color: #e8eee2; }
.occasion__blob--baptism { background-color: #cfe0f4; }
.occasion__blob--love-weddings { background-color: #f6dadd; }
.occasion__blob--fathers-day { background-color: #f3e2cf; }

/* ---------- product tiles ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head .section-title { margin: 0; }
.favourites, .related { padding-block: clamp(32px, 5vw, 72px); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.2vw, 28px); }
@media (max-width: 1099px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 699px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; } }
.tile { position: relative; display: flex; flex-direction: column; }
.tile__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: 0 1px 2px rgba(84,66,48,.12); }
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s, transform .6s cubic-bezier(.2,.8,.2,1); }
.tile__img--hover { opacity: 0; }
@media (hover: hover) {
	.tile:hover .tile__img--hover { opacity: 1; }
	.tile:hover .tile__img { transform: scale(1.03); }
}
.tile__body { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 10px 2px 0; align-items: start; }
.tile__title { grid-column: 1; font: 700 1rem/1.3 var(--f-body); margin: 0; }
.tile__title a { color: var(--ink); text-decoration: none; }
.tile__title a::after { content: ""; position: absolute; inset: 0; } /* whole tile clickable */
.tile__meta { grid-column: 1; margin: 0; display: flex; gap: 8px; align-items: baseline; font-size: .95rem; }
.tile__price { font-weight: 800; color: var(--blue); }
.tile__fmt { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.tile__add {
	grid-column: 2; grid-row: 1 / span 2; position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
	border: 1.5px solid var(--blue); background: var(--card); color: var(--blue); border-radius: 999px; padding: 7px 12px 7px 9px; font-weight: 800; font-size: .9rem;
	transition: background .2s, color .2s;
}
.tile__add .eb-icon { width: 18px; height: 18px; }
.tile__add:hover { background: var(--blue); color: #fff; }
.tile__add.is-done { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.tile__soon { grid-column: 2; grid-row: 1 / span 2; align-self: start; font: 700 1.2rem/1 var(--f-hand); letter-spacing: .08em; color: var(--berry); padding-top: 6px; }
@media (max-width: 699px) { .tile__soon { grid-column: 1; grid-row: auto; } }
@media (max-width: 699px) {
	.tile__body { grid-template-columns: 1fr; }
	.tile__add { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; padding: 6px 12px 6px 8px; }
	.tile__title { font-size: .95rem; }
}

/* ---------- how it works ---------- */
.how {
	--r: 16px;
	margin-block: clamp(24px, 4vw, 48px); padding-block: calc(var(--r) + clamp(40px, 6vw, 80px));
	background-color: #eef1e7;
	/* sage gingham, like their Christmas card */
	background-image: linear-gradient(90deg, rgba(196,206,185,.45) 50%, transparent 50%), linear-gradient(rgba(196,206,185,.45) 50%, transparent 50%);
	background-size: 34px 34px;
	/* scalloped top and bottom edges */
	-webkit-mask: radial-gradient(var(--r) at 50% var(--r), #000 99%, #0000 101%) 50% 0 / calc(2 * var(--r)) calc(2 * var(--r)) repeat-x,
		linear-gradient(#000 0 0) 0 var(--r) / 100% calc(100% - 2 * var(--r)) no-repeat,
		radial-gradient(var(--r) at 50% calc(100% - var(--r)), #000 99%, #0000 101%) 50% 100% / calc(2 * var(--r)) calc(2 * var(--r)) repeat-x;
	mask: radial-gradient(var(--r) at 50% var(--r), #000 99%, #0000 101%) 50% 0 / calc(2 * var(--r)) calc(2 * var(--r)) repeat-x,
		linear-gradient(#000 0 0) 0 var(--r) / 100% calc(100% - 2 * var(--r)) no-repeat,
		radial-gradient(var(--r) at 50% calc(100% - var(--r)), #000 99%, #0000 101%) 50% 100% / calc(2 * var(--r)) calc(2 * var(--r)) repeat-x;
}
.how .eyebrow { color: var(--sage-ink); }
.how__steps { list-style: none; padding: 0; margin: 1.4em 0 1em; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.how__steps li { background: var(--card); border-radius: var(--r); padding: 26px 22px 20px; box-shadow: var(--shadow); position: relative; }
.how__n { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 3px dotted var(--sage-ink); font: italic 700 1.6rem/1 var(--f-display); color: var(--sage-ink); margin-bottom: 12px; }
.how__steps h3 { font: italic 600 1.45rem/1.15 var(--f-display); }
.how__steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 899px) { .how__steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how__steps { grid-template-columns: 1fr; } }

/* ---------- story ---------- */
.story { padding-block: clamp(48px, 8vw, 110px); overflow: hidden; }
.story__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.story__art { position: relative; margin: 0; justify-self: center; width: min(100%, 400px); }
.story__card { width: 100%; border-radius: 8px; box-shadow: var(--shadow); transform: rotate(2deg); }
.story__berry { position: absolute; width: 22%; will-change: transform; filter: drop-shadow(0 8px 8px rgba(84,66,48,.2)); }
.story__berry--a { left: -14%; top: 8%; }
.story__berry--b { right: -12%; top: 26%; width: 18%; }
.story__berry--c { left: -6%; bottom: 10%; width: 17%; }
.story__berry--d { right: -8%; bottom: -4%; }
.story__text p { font-size: 1.1rem; max-width: 46ch; }
@media (max-width: 799px) { .story__in { grid-template-columns: 1fr; } .story__art { width: min(78%, 340px); } }

/* ---------- kind words ---------- */
.kind-words { padding-block: clamp(24px, 4vw, 56px); }
.quotes { list-style: none; padding: 0; margin: 1em 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quotes li { background: var(--card); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); border-top: 6px solid var(--sky); }
.quotes li:nth-child(2) { border-top-color: var(--blush); }
.quotes li:nth-child(3) { border-top-color: var(--sage); }
.quotes blockquote { margin: 0; font: italic 500 1.2rem/1.45 var(--f-display); }
.quotes__who { margin: 12px 0 0; font-weight: 800; }
.quotes__who span { font-weight: 400; color: var(--ink-soft); }
@media (max-width: 799px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- join the family ---------- */
.family { padding-block: clamp(48px, 7vw, 96px); text-align: center; }
.family__in { display: grid; justify-items: center; max-width: 640px; }
.family__logo { width: 78px; margin-bottom: 10px; }

/* ---------- shop pages ---------- */
.shop, .product-page { padding-block: 20px 64px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .9rem; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.shop-head { max-width: 760px; margin-bottom: 20px; }
.shop-head__intro { color: var(--ink-soft); font-size: 1.08rem; }
.shop-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; max-width: 100%; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.search { display: flex; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; padding-left: 16px; min-width: min(100%, 320px); }
.search input { flex: 1; border: 0; background: none; font: inherit; padding: 10px 0; min-width: 0; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--blue); }
.subcats { margin: -4px 0 16px; color: var(--ink-soft); }
.subcats a { margin-left: 8px; font-weight: 700; }
.shop-count { color: var(--ink-soft); font-size: .95rem; margin: 0 0 12px; }
.woocommerce-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 32px 0 0; justify-content: center; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 999px; text-decoration: none; font-weight: 800; }
.woocommerce-pagination span.current { background: var(--blue); color: #fff; }
.empty { padding: 40px 0; font-size: 1.1rem; }

/* ---------- product page ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.pp__gallery { position: sticky; top: 92px; }
.pp__main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.pp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .35s; }
.pp__img.is-on { opacity: 1; }
.pp__main .pp__img:first-child { object-fit: cover; }
.pp__thumbs { display: flex; gap: 10px; list-style: none; padding: 0; margin: 12px 0 0; }
.pp__thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--paper-2); width: 72px; }
.pp__thumbs button[aria-current="true"] { border-color: var(--blue); }
.pp__title { font: italic 600 clamp(2rem, 1.5rem + 2vw, 3rem)/1.06 var(--f-display); text-wrap: balance; }
.pp__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: 1.6rem; font-weight: 800; color: var(--blue); margin-bottom: .6em; }
.pp__fmt { font-size: .95rem; font-weight: 600; color: var(--ink-soft); }
.pp__short { font-size: 1.12rem; color: var(--ink-soft); }
.pp__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 22px 0 18px; }
.pp__checkout { font-weight: 700; }
.pp__soon { padding: 14px 18px; background: var(--blush); border-radius: var(--r); font-weight: 700; }
.pp__facts { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; }
.pp__facts li { padding-left: 30px; position: relative; }
.pp__facts li::before { content: ""; position: absolute; left: 0; top: .25em; width: 18px; height: 18px; border-radius: 50%; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23335ab2' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pp__more { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); margin-top: clamp(32px, 5vw, 64px); }
.pp__desc h2, .panel__title { font: italic 600 1.7rem/1.1 var(--f-display); }
.panel { background: var(--card); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel--print { background: #eef1e7; box-shadow: none; }
.ticks, .steps-mini { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.panel__note { margin: 14px 0 0; font-size: .95rem; }
@media (max-width: 899px) {
	.pp, .pp__more { grid-template-columns: 1fr; }
	.pp__gallery { position: static; }
}

/* ---------- plain pages ---------- */
.prose-page, .flow-page { padding-block: 32px 72px; }
.page-head { margin-bottom: 18px; }
.prose { max-width: 70ch; font-size: 1.08rem; }
.prose h2 { font: italic 600 1.8rem/1.15 var(--f-display); margin-top: 1.4em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.lost { text-align: center; max-width: 640px; }

/* ---------- footer ---------- */
.site-foot { background: var(--blue-deep); color: #e8ecf7; margin-top: 40px; padding-top: 56px; }
.site-foot a { color: #fff; }
.site-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.brand--foot { color: var(--paper); margin-bottom: 14px; }
.site-foot__brand p { max-width: 38ch; color: #cfd6ea; }
.site-foot__social { display: flex; flex-wrap: wrap; gap: 16px; }
.site-foot__social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; }
.site-foot__col h2 { font: 700 1.5rem/1 var(--f-hand); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.site-foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot__col a { text-decoration: none; color: #e8ecf7; }
.site-foot__col a:hover { color: #fff; text-decoration: underline; }
.site-foot__small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-block: 18px; font-size: .88rem; color: #b8c2df; }
.site-foot__small p { margin: 0; }
.site-foot__small a { color: #dfe5f5; }
@media (max-width: 799px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } .site-foot__brand { grid-column: 1 / -1; } }

/* ---------- basket drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(31,44,87,.38); animation: fade .25s; }
.drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); display: flex; flex-direction: column;
	box-shadow: var(--shadow); animation: slide .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font: italic 600 1.6rem/1 var(--f-display); margin: 0; }
.drawer__items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.line img { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.line__name { font-weight: 700; line-height: 1.25; margin: 0 0 4px; }
.line__name a { color: var(--ink); text-decoration: none; }
.line__price { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.line__remove { border: 0; background: none; color: var(--ink-soft); text-decoration: underline; font-size: .85rem; padding: 4px; }
.drawer__empty { padding: 40px 0; text-align: center; color: var(--ink-soft); }
.drawer__foot { padding: 16px 20px 22px; border-top: 1px solid var(--line); background: var(--card); }
.drawer__total { display: flex; justify-content: space-between; font-size: 1.15rem; margin-bottom: 12px; }
.drawer__small { margin: 10px 0 0; text-align: center; font-size: .88rem; color: var(--ink-soft); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; z-index: 90; font-weight: 700; box-shadow: var(--shadow); animation: fade .2s; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
