/* =========================================================================
   skin.lk — core stylesheet

   Design tokens (colours, radii, shadow offsets) are injected as custom
   properties by inc/enqueue.php, ported from the Shopify theme settings.
   The look is: 2px ink borders, hard shadows with zero blur, pill buttons,
   12px card radius.
   ========================================================================= */

/* ---------- Reset & base ------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 1.6rem;
	font-size: clamp(1.5rem, 0.4vw + 1.4rem, 1.6rem);
	line-height: 1.6;
	letter-spacing: 0.006em;
	display: flex;
	flex-direction: column;
}

html {
	font-size: 62.5%; /* 1rem = 10px, as in Dawn */
}

body {
	background-color: var(--color-background);
	color: var(--color-foreground);
}

#page {
	display: flex;
	flex-direction: column;
	flex: 1 0 auto;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
}

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

/* ---------- Typography -------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.h0, .h1, .h2, .h3, .h4, .h5 {
	font-family: var(--font-heading);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0 0 1.6rem;
	word-break: break-word;
}

.h0 { font-size: clamp(3.2rem, 4vw + 1rem, 5.6rem); }
h1, .h1 { font-size: clamp(2.8rem, 3vw + 1rem, 4.4rem); }
h2, .h2 { font-size: clamp(2.4rem, 2vw + 1rem, 3.4rem); }
h3, .h3 { font-size: clamp(2rem, 1.2vw + 1rem, 2.6rem); }
h4, .h4 { font-size: 2rem; }
h5, .h5 { font-size: 1.8rem; }

p { margin: 0 0 1.6rem; }
p:last-child { margin-bottom: 0; }

a {
	color: currentColor;
	text-decoration-thickness: 0.1rem;
	text-underline-offset: 0.3rem;
}

.link {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.15s ease;
}

.link:hover {
	border-bottom-color: currentColor;
}

.animate-arrow .icon-arrow {
	transition: transform 0.2s ease;
}

.animate-arrow:hover .icon-arrow {
	transform: translateX(0.4rem);
}

.rte > :last-child { margin-bottom: 0; }

.rte a { color: currentColor; }

.rte ul,
.rte ol { padding-left: 2rem; margin: 0 0 1.6rem; }

.rte img {
	border-radius: var(--media-radius);
	border: var(--border-width) solid var(--color-foreground);
	box-shadow: var(--shadow-media);
}

.text-center { text-align: center; }

.list-unstyled {
	margin: 0;
	padding: 0;
	list-style: none;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-to-content-link:focus {
	position: fixed !important;
	z-index: 10000;
	top: 1rem;
	left: 1rem;
	width: auto;
	height: auto;
	clip: auto;
	margin: 0;
}

/* ---------- Layout ------------------------------------------------------ */

.page-width {
	max-width: var(--page-width);
	margin: 0 auto;
	padding-inline: 1.6rem;
	width: 100%;
}

.page-width--narrow {
	max-width: 82rem;
}

/* Wider than the default 1200px for app-like pages (the account dashboard),
   but still a centred column with margins rather than edge-to-edge. */
.page-width--wide {
	max-width: 140rem;
	padding-inline: 2.4rem;
}

/* Widen the header and footer to match, so the logo lines up with the
   dashboard content instead of sitting inside a narrower column. */
.woocommerce-account .site-header__inner,
.woocommerce-account .site-footer .page-width,
.woocommerce-account .announcement-bar .page-width {
	max-width: 140rem;
	padding-inline: 2.4rem;
}

.section {
	padding-block: 3.6rem;
}

/* Per-section padding, matching the Shopify section settings. */
.featured-collection {
	padding-block: 1.6rem 6.4rem;
}

.section__heading {
	margin-bottom: 2.4rem;
}

.section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1.6rem;
	flex-wrap: wrap;
	margin-bottom: 2.4rem;
}

.section__header .section__heading { margin-bottom: 0; }

.page-header {
	padding-block: 3.2rem 2.4rem;
}

.page-header__title { margin-bottom: 0.8rem; }

/* Grid, using the Shopify spacing settings (24px / 12px). */

.grid {
	display: grid;
	gap: var(--grid-gap-y-mobile) var(--grid-gap-x-mobile);
	margin: 0;
	padding: 0;
	list-style: none;
}

.grid--1-col-mobile { grid-template-columns: 1fr; }
.grid--2-col-mobile { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media screen and (min-width: 750px) {
	.grid {
		gap: var(--grid-gap-y) var(--grid-gap-x);
	}

	.grid--3-col-desktop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid--4-col-desktop { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Buttons ----------------------------------------------------- */

.button,
button.button,
input[type="submit"],
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	min-height: 4.4rem;
	padding: 1rem 2.6rem;
	font-family: var(--font-body);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	background-color: var(--color-button);
	color: var(--color-button-text);
	border: var(--border-width) solid var(--color-foreground);
	border-radius: var(--buttons-radius);
	box-shadow: var(--shadow-button);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
	appearance: none;
}

.button:hover,
input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 0 0 var(--color-shadow);
}

.button:active,
input[type="submit"]:active {
	transform: translateY(2px);
	box-shadow: 0 0 0 0 var(--color-shadow);
}

.button--secondary {
	background-color: transparent;
	color: var(--color-secondary-button-text);
}

.button--full {
	width: 100%;
}

/* ---------- Form fields ------------------------------------------------- */

.field {
	position: relative;
	display: flex;
	align-items: stretch;
	width: 100%;
}

.field__input,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
	width: 100%;
	min-height: 4.4rem;
	padding: 1rem 1.4rem;
	font-family: var(--font-body);
	font-size: 1.6rem;
	color: var(--color-foreground);
	background-color: var(--color-background);
	border: var(--border-width) solid var(--color-foreground);
	border-radius: var(--inputs-radius);
	box-shadow: var(--shadow-input);
	appearance: none;
}

textarea { min-height: 12rem; }

.field__input:focus,
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
	outline: 2px solid var(--color-foreground);
	outline-offset: 2px;
}

.field__input::placeholder { opacity: 0.6; }

/* Trailing icon button inside a field (search, newsletter). */
.search-form__submit,
.newsletter-form__button {
	position: absolute;
	inset-block: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 4.6rem;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}

.search-form .field__input,
.newsletter-form .field__input {
	padding-right: 5rem;
}

/* ---------- Announcement bar & waves ------------------------------------ */

.announcement-bar {
	padding-block: 0.9rem;
	font-size: 1.4rem;
	font-weight: 600;
	text-align: center;
}

.announcement-bar__message { margin: 0; }

.announcement-bar__link {
	text-decoration: none;
	color: inherit;
}

.wave-strip {
	line-height: 0;
	font-size: 0;
	background-color: transparent;
}

.wave-strip .wave {
	display: block;
	width: 100%;
	height: auto;
}

.wave-strip--header .wave {
	height: 3.2rem;
}

/* ---------- Header ------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 0.1rem solid rgba(var(--color-foreground-rgb), 0.1);
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-stuck {
	border-bottom-color: rgba(var(--color-foreground-rgb), 0.18);
	box-shadow: 0 0.4rem 1.6rem rgba(var(--color-shadow-rgb), 0.1);
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.6rem;
	padding-block: 1.4rem;
}

.site-header__branding {
	justify-self: center;
	min-width: 0;
}

@media screen and (min-width: 990px) {
	.site-header__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 2.8rem;
		padding-block: 1.6rem;
	}

	.site-header__branding {
		justify-self: start;
	}
}

.site-header__branding img,
.custom-logo {
	max-height: 6rem;
	width: auto;
}

/* ---- Logo ---- */

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	text-decoration: none;
	color: inherit;
	line-height: 1;
}

.site-logo__mark {
	display: grid;
	place-items: center;
	flex: none;
	width: 3.6rem;
	height: 3.6rem;
	transition: transform 0.25s ease;
}

.site-logo__mark svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.site-logo:hover .site-logo__mark {
	transform: rotate(-8deg) scale(1.06);
}

.site-logo__text {
	font-family: var(--font-heading);
	font-size: 2.4rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.site-logo__suffix {
	opacity: 0.55;
	font-weight: 700;
}

.site-logo--footer {
	margin-bottom: 1.2rem;
}

@media screen and (max-width: 749px) {
	.site-logo__mark { width: 3.1rem; height: 3.1rem; }
	.site-logo__text { font-size: 2rem; }
}

.header__icons {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	justify-self: end;
}

.header__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 4.2rem;
	height: 4.2rem;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: inherit;
	cursor: pointer;
	text-decoration: none;
	list-style: none;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.header__icon::-webkit-details-marker { display: none; }

.header__icon:hover {
	background-color: rgba(var(--color-foreground-rgb), 0.08);
	transform: translateY(-1px);
}

.header__icon:active { transform: translateY(0); }

.cart-count-bubble {
	position: absolute;
	top: 0.2rem;
	right: 0;
	min-width: 1.9rem;
	height: 1.9rem;
	padding-inline: 0.45rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-button-text);
	background-color: var(--color-button);
	border: 1.5px solid var(--color-foreground);
	border-radius: 999px;
}

.cart-count-bubble--empty { display: none; }

/* Desktop menu */

.header__inline-menu { display: none; }

@media screen and (min-width: 990px) {
	.header__inline-menu { display: block; }
	.header__icon--menu { display: none; }
}

.list-menu--inline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.header__menu-item {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.7rem 0;
	font-size: 1.5rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	list-style: none;
}

.header__menu-item::-webkit-details-marker { display: none; }

/* Underline that grows from the centre on hover, and stays for the current page. */
.header__menu-item > span::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.2rem;
	height: 2px;
	background-color: currentColor;
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.22s ease;
}

.header__menu-item:hover > span::after,
.header__menu-details[open] .header__menu-item > span::after,
.current-menu-item > .header__menu-item > span::after,
.current-menu-ancestor > .header__menu-details > .header__menu-item > span::after,
.current-menu-parent > .header__menu-details > .header__menu-item > span::after {
	transform: scaleX(1);
}

.header__menu-details {
	position: relative;
}

.header__menu-details[open] .header__chevron {
	transform: rotate(180deg);
}

.header__chevron { transition: transform 0.2s ease; }

.header__submenu-panel {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 22rem;
	padding: 1.2rem;
	background-color: var(--color-background);
	border: var(--border-width) solid var(--color-foreground);
	border-radius: var(--popup-radius);
	box-shadow: var(--shadow-popup);
}

.header__submenu-parent-link {
	display: block;
	padding: 0.6rem 0.8rem;
	font-weight: 700;
	text-decoration: none;
	border-bottom: 1px solid rgba(var(--color-foreground-rgb), 0.15);
	margin-bottom: 0.4rem;
}

.header__submenu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.header__submenu a {
	display: block;
	padding: 0.6rem 0.8rem;
	font-size: 1.5rem;
	text-decoration: none;
	border-radius: 0.6rem;
}

.header__submenu a:hover {
	background-color: rgba(var(--color-foreground-rgb), 0.08);
}

/* Header search disclosure */

.header__search { position: static; }

.header__search-panel {
	position: absolute;
	left: 0;
	right: 0;
	z-index: 30;
	padding-block: 2rem;
	background-color: var(--color-background);
	border-block: var(--border-width) solid var(--color-foreground);
}

/* ---------- Mobile drawer ----------------------------------------------- */

.menu-drawer {
	position: fixed;
	inset-block: 0;
	left: 0;
	z-index: 200;
	width: min(36rem, 88vw);
	padding: 2rem;
	overflow-y: auto;
	background-color: var(--color-background);
	border-right: 3px solid rgba(var(--color-foreground-rgb), 0.1);
	box-shadow: var(--shadow-drawer);
	transform: translateX(-100%);
	transition: transform 0.25s ease;
}

.menu-drawer[hidden] { display: block; visibility: hidden; }
.menu-drawer.is-open { transform: translateX(0); visibility: visible; }

.menu-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.6rem;
}

.menu-drawer__title {
	font-family: var(--font-heading);
	font-size: 2rem;
	font-weight: 700;
}

.menu-drawer__menu a {
	display: block;
	padding: 1.1rem 0;
	font-size: 1.7rem;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(var(--color-foreground-rgb), 0.12);
}

.menu-drawer__menu .sub-menu {
	margin: 0 0 0 1.4rem;
	padding: 0;
	list-style: none;
}

.menu-drawer__menu .sub-menu a {
	font-size: 1.5rem;
	font-weight: 500;
}

.menu-drawer__utility {
	margin-top: 2rem;
	display: grid;
	gap: 1.6rem;
}

.drawer-overlay {
	position: fixed;
	inset: 0;
	z-index: 150;
	background-color: rgba(0, 0, 0, 0.4);
}

.drawer-overlay[hidden] { display: none; }

@media screen and (min-width: 990px) {
	.menu-drawer,
	.drawer-overlay { display: none !important; }
}

/* ---------- Slideshow --------------------------------------------------- */

.slideshow {
	position: relative;
	overflow: hidden;
}

/* Dawn's "small" slide height: 28rem on mobile, 42rem from tablet up. */
.slideshow--small .slideshow__slide {
	min-height: 28rem;
}

@media screen and (min-width: 750px) {
	.slideshow--small .slideshow__slide { min-height: 42rem; }
}

.slideshow__slide {
	position: relative;
	display: grid;
	place-items: center;
	/* Without an explicit minmax(0, …) track the centred text sizes to
	   max-content and stretches the whole document on narrow screens. */
	grid-template-columns: minmax(0, 1fr);
}

.slideshow__slide[hidden] { display: none; }

.slideshow__media {
	position: absolute;
	inset: 0;
}

.slideshow__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slideshow__overlay {
	position: absolute;
	inset: 0;
	background-color: #000;
}

.slideshow__text-wrapper {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: var(--page-width);
	margin-inline: auto;
	padding: 3.2rem 1.6rem;
	text-align: center;
}

.slideshow__text--boxed {
	display: inline-block;
	max-width: 100%;
	padding: 2.4rem;
	background-color: var(--color-background);
	border: var(--border-width) solid var(--color-foreground);
	border-radius: var(--text-boxes-radius);
	box-shadow: var(--shadow-text-box);
}

@media screen and (min-width: 750px) {
	.slideshow__text--boxed { padding: 3.2rem; }
}

.slideshow__subheading {
	max-width: 54ch;
	margin-inline: auto;
}

.slideshow__heading { margin-bottom: 1.2rem; }

.slideshow__controls {
	position: absolute;
	bottom: 1.6rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 1.2rem;
	padding: 0.6rem 1.2rem;
	background-color: var(--color-background);
	border: var(--border-width) solid var(--color-foreground);
	border-radius: 999px;
	box-shadow: var(--shadow-button);
}

.slideshow__dots {
	display: flex;
	gap: 0.8rem;
}

.slideshow__dot {
	width: 1.1rem;
	height: 1.1rem;
	padding: 0;
	background-color: transparent;
	border: 2px solid var(--color-foreground);
	border-radius: 50%;
	cursor: pointer;
}

.slideshow__dot.is-active {
	background-color: var(--color-foreground);
}

.slideshow__pause {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.2rem;
	height: 2.2rem;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	color: inherit;
}

.slideshow__pause-icon {
	width: 1rem;
	height: 1.2rem;
	border-left: 3px solid currentColor;
	border-right: 3px solid currentColor;
}

.slideshow__pause[data-state="paused"] .slideshow__pause-icon {
	width: 0;
	height: 0;
	border: 0;
	border-left: 1.1rem solid currentColor;
	border-top: 0.65rem solid transparent;
	border-bottom: 0.65rem solid transparent;
}

.slideshow--empty {
	padding-block: 4rem;
	text-align: center;
}

/* ---------- Cards ------------------------------------------------------- */

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--color-background);
	border: var(--border-width) solid var(--color-foreground);
	border-radius: var(--card-radius);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* The Shopify "3d-lift" hover animation. */
.card:hover {
	transform: translate(-2px, -4px);
	box-shadow: 2px 8px 0 0 var(--color-shadow);
}

.card__media {
	position: relative;
	overflow: hidden;
	background-color: rgba(var(--color-foreground-rgb), 0.05);
}

.card__media--square {
	aspect-ratio: 1 / 1;
}

.card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.card:hover .card__image { transform: scale(1.04); }

.card__image--placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-family: var(--font-heading);
	font-size: 5rem;
	font-weight: 800;
	opacity: 0.25;
}

.card__media-link,
.card__link,
.collection-card,
.card a {
	text-decoration: none;
	color: inherit;
}

.card__media-link,
.card__link {
	display: block;
}

/* The whole collection card is one anchor, so nothing inside it should
   inherit the default link underline. */
.collection-card {
	display: flex;
	flex-direction: column;
}

.card__content {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.4rem;
	text-align: left;
	flex: 1 0 auto;
}

.card__heading {
	margin: 0;
	font-size: 1.7rem;
	line-height: 1.3;
}

.card__title-link {
	text-decoration: none;
}

.card__title-link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.card__caption,
.card__excerpt {
	margin: 0;
	font-size: 1.4rem;
	opacity: 0.8;
}

.card__actions {
	position: relative;
	z-index: 2;
	margin-top: auto;
	padding-top: 0.8rem;
}

.card__badges {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: flex-end;
}

.badge {
	display: inline-flex;
	padding: 0.4rem 1.1rem;
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.4;
	border: var(--border-width) solid var(--color-foreground);
	border-radius: var(--badge-radius);
}

.badge--sale {
	background-color: var(--color-button);
	color: var(--color-button-text);
}

.badge--sold-out {
	background-color: var(--color-background);
	color: var(--color-foreground);
}

/* ---------- Multicolumn (skin concerns) --------------------------------- */

.multicolumn-list { margin-top: 0.8rem; }

/* The card itself carries the border, radius and hard shadow — this is Dawn's
   `.content-container` + `.background-primary` treatment, driven by the
   text-boxes settings (2px border, 12px radius, 0 6px 0 shadow). */
.multicolumn-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-align: center;
	background-color: var(--color-background);
	background-image: linear-gradient(
		rgba(var(--color-foreground-rgb), 0.04),
		rgba(var(--color-foreground-rgb), 0.04)
	);
	border: var(--border-width) solid var(--color-foreground);
	border-radius: var(--text-boxes-radius);
	box-shadow: var(--shadow-text-box);
}

/* image_ratio "adapt" insets the image from the card edges rather than
   bleeding it to them. The image gets no border of its own. */
.multicolumn-card__image-wrapper {
	position: relative;
	padding-top: 2.5rem;
	margin-inline: 2.5rem;
	overflow: visible;
}

.multicolumn-card__image {
	width: 100%;
	height: auto;
	display: block;
	/* Match the footer mascot's quiet idle motion. Long pauses between short
	   movements keep a row of mascots playful rather than distracting. */
	transform-origin: 50% 88%;
	animation: concern-catty-idle 5.8s ease-in-out infinite;
}

.multicolumn-list__item:nth-child(2) .multicolumn-card__image {
	animation-delay: -1.9s;
	animation-duration: 6.3s;
}

.multicolumn-list__item:nth-child(3) .multicolumn-card__image {
	animation-delay: -3.7s;
	animation-duration: 6.7s;
}

@keyframes concern-catty-idle {
	0%, 68%, 100% { transform: translateY(0) rotate(0deg); }
	74% { transform: translateY(-0.7rem) rotate(-1.5deg); }
	80% { transform: translateY(-0.25rem) rotate(1deg); }
	87% { transform: translateY(-0.55rem) rotate(-0.6deg); }
	94% { transform: translateY(0) rotate(0deg); }
}

/* A hovered/focused card gets one slightly clearer greeting, while the other
   cards continue their staggered idle cycle. */
.multicolumn-card:hover .multicolumn-card__image,
.multicolumn-card:focus-within .multicolumn-card__image {
	animation: concern-catty-greet 0.7s ease-in-out both;
}

@keyframes concern-catty-greet {
	0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
	45% { transform: translateY(-0.9rem) rotate(-2deg) scale(1.025); }
	70% { transform: translateY(-0.4rem) rotate(1.2deg) scale(1.015); }
}

.multicolumn-card__info {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
	padding: 2.5rem;
	flex: 1 0 auto;
}

.multicolumn-card__title {
	margin: 0;
	font-size: 2.1rem;
}

.multicolumn-card__text {
	font-size: 1.5rem;
}

.multicolumn-card__info .link {
	margin-top: auto;
	padding-top: 0.8rem;
}

/* ---------- Accordion / FAQ --------------------------------------------- */

.accordion-group {
	display: grid;
	gap: 1.2rem;
}

.accordion {
	background-color: var(--color-background);
	border: var(--border-width) solid var(--color-foreground);
	border-radius: var(--card-radius);
	box-shadow: var(--shadow-card);
	overflow: hidden;
}

.accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem;
	padding: 1.6rem;
	font-family: var(--font-heading);
	font-size: 1.7rem;
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.accordion__summary::-webkit-details-marker { display: none; }

.accordion__label {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.accordion__chevron { transition: transform 0.2s ease; flex: none; }

.accordion[open] .accordion__chevron { transform: rotate(180deg); }

.accordion__content {
	padding: 0 1.6rem 1.6rem;
	font-size: 1.5rem;
}

/* ---------- Footer ------------------------------------------------------ */

.site-footer {
	margin-top: 0;
	padding-block: 4rem 3.6rem;
	/* Dawn's hairline, not a full ink border — the wave above is the same
	   colour, so a heavy rule would cut straight through the transition. */
	border-top: 0.1rem solid rgba(var(--color-foreground-rgb), 0.08);
}

/* Newsletter sign-up: a paper card inside the blue footer, with the mascot
   waving alongside it. */
.newsletter-card {
	display: flex;
	align-items: center;
	gap: 2.4rem;
	max-width: 78rem;
	margin: 0 auto 4rem;
	padding: 2.4rem 2.8rem;
	background-color: var(--color-background);
	border: var(--border-width) solid var(--color-foreground);
	border-radius: var(--text-boxes-radius);
	box-shadow: var(--shadow-text-box);
}

.newsletter-card__mascot {
	flex: none;
	width: 12rem;
}

.newsletter-card__mascot img {
	width: 100%;
	height: auto;
	/* A gentle idle wave so the mascot feels alive without being noisy. */
	transform-origin: 60% 90%;
	animation: catty-wave 4.5s ease-in-out infinite;
}

@keyframes catty-wave {
	0%, 72%, 100% { transform: rotate(0deg); }
	78% { transform: rotate(-5deg); }
	84% { transform: rotate(4deg); }
	90% { transform: rotate(-3deg); }
}

.newsletter-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

.newsletter-card__heading {
	font-size: 2rem;
	margin-bottom: 1.4rem;
}

@media screen and (max-width: 749px) {
	.newsletter-card {
		flex-direction: column;
		gap: 1.2rem;
		padding: 2rem 1.8rem;
		text-align: center;
	}

	.newsletter-card__mascot { width: 9.5rem; }
	.newsletter-card__heading { font-size: 1.8rem; }
}

.footer-block__heading {
	font-size: 2rem;
	margin-bottom: 1.4rem;
}

.footer-block__note {
	margin-top: 1rem;
	font-size: 1.3rem;
	opacity: 0.7;
}

/* Flex rather than grid: the number of link columns varies with what the store
   has configured (a footer menu may or may not be assigned), and fixed grid
   tracks would leave an empty column behind whenever one is missing. */
.footer-blocks {
	display: flex;
	flex-wrap: wrap;
	gap: 3.2rem;
	padding-bottom: 3.2rem;
	border-bottom: 1px solid rgba(var(--color-foreground-rgb), 0.2);
}

.footer-block--about {
	flex: 1 1 26rem;
	max-width: 38rem;
}

.footer-block--menu {
	flex: 1 1 14rem;
}

@media screen and (min-width: 900px) {
	.footer-blocks { gap: 2.4rem 4rem; }
}

.footer-block__menu a {
	display: inline-block;
	padding: 0.5rem 0;
	font-size: 1.5rem;
	text-decoration: none;
}

.footer-block__menu a:hover { text-decoration: underline; }

.footer-block__text { font-size: 1.5rem; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem 2.4rem;
	padding-top: 2rem;
	font-size: 1.4rem;
}

.copyright { margin: 0; margin-right: auto; }

@media screen and (max-width: 749px) {
	.footer-bottom {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}

	.copyright { margin-right: 0; order: 3; }
}

.policy-menu,
.list-payment {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1.4rem;
}

.list-payment__item {
	padding: 0.3rem 0.9rem;
	border: 1px solid rgba(var(--color-foreground-rgb), 0.3);
	border-radius: 0.6rem;
	opacity: 0.85;
}

.social-links {
	display: flex;
	gap: 0.6rem;
	margin: 1.4rem 0 0;
	padding: 0;
	list-style: none;
}

.social-links__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	border-radius: 50%;
	color: inherit;
	text-decoration: none;
}

.social-links__link:hover {
	background-color: rgba(var(--color-foreground-rgb), 0.12);
}

/* ---------- Blog -------------------------------------------------------- */

.post-meta {
	margin: 0;
	font-size: 1.35rem;
	opacity: 0.75;
}

.page-article {
	padding-bottom: 4rem;
}

.page-article__media {
	margin: 0 0 2.4rem;
	border: var(--border-width) solid var(--color-foreground);
	border-radius: var(--media-radius);
	box-shadow: var(--shadow-media);
	overflow: hidden;
}

.page-article__footer {
	margin-top: 3.2rem;
	padding-top: 1.6rem;
	border-top: 1px solid rgba(var(--color-foreground-rgb), 0.2);
}

.post-navigation {
	display: flex;
	justify-content: space-between;
	gap: 1.6rem;
	padding-block: 2.4rem;
	font-size: 1.5rem;
}

.post-navigation a { text-decoration: none; font-weight: 600; }

.nav-label {
	display: block;
	font-size: 1.3rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.6;
}

/* ---------- Pagination -------------------------------------------------- */

.pagination {
	padding-block: 3.2rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4rem;
	height: 4rem;
	padding-inline: 1rem;
	font-weight: 600;
	text-decoration: none;
	border: var(--border-width) solid transparent;
	border-radius: 999px;
}

.pagination .page-numbers:hover {
	border-color: var(--color-foreground);
}

.pagination .page-numbers.current {
	background-color: var(--color-button);
	color: var(--color-button-text);
	border-color: var(--color-foreground);
	box-shadow: var(--shadow-button);
}

.icon--rot90 { transform: rotate(90deg); }
.icon--rot270 { transform: rotate(270deg); }

/* ---------- Empty states ------------------------------------------------ */

.empty-state {
	display: grid;
	gap: 1.6rem;
	justify-items: center;
	padding-block: 5rem;
	text-align: center;
}

.error-404 {
	padding-block: 6rem;
	display: grid;
	gap: 2rem;
	justify-items: center;
}

.error-404 .search-form { max-width: 40rem; width: 100%; }

/* ---------- Comments ---------------------------------------------------- */

.comments-area {
	padding-block: 3.2rem;
	border-top: 1px solid rgba(var(--color-foreground-rgb), 0.2);
}

.comment-list {
	margin: 0 0 3.2rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.6rem;
}

.comment-list .children {
	margin: 1.6rem 0 0 2rem;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 1.6rem;
}

.comment-body {
	padding: 1.6rem;
	background-color: var(--color-background);
	border: var(--border-width) solid var(--color-foreground);
	border-radius: var(--card-radius);
	box-shadow: var(--shadow-card);
}

.comment-form { display: grid; gap: 1.2rem; }

/* ---------- Catty Paw --------------------------------------------------- */

.catty-paw-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 110px;
	height: 110px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	z-index: 9999;
	transition: transform 0.2s ease;
	animation: catty-float 3s ease-in-out infinite;
}

.catty-paw-button:hover { transform: scale(1.1); }
.catty-paw-button:active { transform: scale(0.95); }

.catty-paw-image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.catty-click-count {
	position: absolute;
	right: 0;
	bottom: 4px;
	display: grid;
	place-items: center;
	min-width: 32px;
	height: 32px;
	padding-inline: 7px;
	font-size: 14px;
	font-weight: bold;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
	pointer-events: none;
	font-family: Arial, sans-serif;
	background: #3d081b;
	border: 2px solid #fff;
	border-radius: 999px;
}

@media screen and (max-width: 749px) {
	.catty-paw-button {
		bottom: 14px;
		right: 12px;
		width: 86px;
		height: 86px;
	}
}

@keyframes catty-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-10px); }
}

.catty-discount-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
	animation: catty-fade-in 0.3s ease;
}

.catty-discount-modal[hidden] { display: none; }

.catty-discount-modal-content {
	position: relative;
	width: 90%;
	max-width: 400px;
	padding: 40px;
	text-align: center;
	background-color: #fff;
	color: #333;
	border-radius: 15px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	animation: catty-slide-up 0.3s ease;
}

.catty-discount-close {
	position: absolute;
	top: 10px;
	right: 14px;
	padding: 6px;
	font-size: 28px;
	font-weight: bold;
	line-height: 1;
	color: #999;
	background: none;
	border: 0;
	cursor: pointer;
}

.catty-discount-close:hover { color: #000; }

.catty-discount-modal-content h2 {
	margin: 0 0 20px;
	font-size: 24px;
	color: #333;
}

.catty-discount-modal-content p {
	margin: 0 0 15px;
	font-size: 16px;
	color: #666;
}

.catty-discount-code {
	margin: 20px 0;
	padding: 15px 30px;
	font-family: monospace;
	font-size: 28px;
	font-weight: bold;
	letter-spacing: 2px;
	color: #333;
	background-color: #f5f5f5;
	border: 2px dashed #333;
	border-radius: 8px;
	word-break: break-all;
}

.catty-copy-button {
	margin-top: 15px;
	padding: 12px 30px;
	font-size: 16px;
	color: #fff;
	background-color: #333;
	border: 0;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.catty-copy-button:hover { background-color: #555; }
.catty-copy-button:active { transform: scale(0.98); }
.catty-copy-button.is-copied { background-color: #4caf50; }

@keyframes catty-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes catty-slide-up {
	from { transform: translateY(30px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
	.catty-paw-button {
		width: 50px;
		height: 50px;
		bottom: 15px;
		right: 15px;
	}

	.catty-click-count { font-size: 14px; }
	.catty-discount-modal-content { padding: 30px 20px; }
	.catty-discount-code { font-size: 24px; padding: 12px 20px; }
}

/* ---------- Motion preferences ------------------------------------------ */

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