/**
 * ASAP Multisite Template
 *
 * Contents
 *   1.  Tokens
 *   2.  Base
 *   3.  Layout
 *   4.  Buttons
 *   5.  Header
 *   6.  Hero (plain and mural)
 *   7.  Category navigation
 *   8.  Category sections
 *   9.  Product grid and card
 *   10. Custom option fields
 *   11. Quick order modal
 *   12. Single product
 *   13. WooCommerce overrides (cart, checkout, notices)
 *   14. Entries and pagination
 *   15. Footer and contact card
 *   16. Password gate
 *   17. Utilities
 *
 * The accent colour is injected per site from the Customizer — see
 * asap_inline_palette() — so --asap-accent is always defined by the time this
 * file is applied. The fallbacks here keep the stylesheet usable on its own.
 */

/* -------------------------------------------------------------- 1. Tokens */

:root {
	--asap-accent: #1f5fbf;
	--asap-accent-dark: #1a4e9c;
	--asap-accent-soft: #eef3fc;
	--asap-accent-contrast: #ffffff;

	--asap-ink: #14181f;
	--asap-ink-soft: #545c69;
	--asap-ink-faint: #838b98;

	--asap-surface: #ffffff;
	--asap-canvas: #f5f6f8;
	--asap-line: #e2e5ea;
	--asap-line-strong: #cdd2da;

	--asap-danger: #b3261e;
	--asap-success: #146c43;

	--asap-radius: 10px;
	--asap-radius-lg: 16px;

	--asap-shadow-sm: 0 1px 2px rgba(20, 24, 31, 0.06);
	--asap-shadow-md: 0 4px 16px rgba(20, 24, 31, 0.08);
	--asap-shadow-lg: 0 24px 60px rgba(20, 24, 31, 0.22);

	--asap-gap: 24px;
	--asap-header-height: 72px;

	/* Headlines are Mundial Narrow Variable via Adobe Fonts, body text is Inter.
	   Both stacks fall back to a matching system face, so a site with no kit
	   configured still reads correctly - see inc/fonts.php. */
	--asap-font-heading: "mundial-narrow-variable", "Mundial Narrow", "Mundial", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--asap-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------- 2. Base */

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

body {
	margin: 0;
	background: var(--asap-canvas);
	color: var(--asap-ink);
	font-family: var(--asap-font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--asap-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover {
	color: var(--asap-accent-dark);
}

h1, h2, h3, h4,
.asap-page-title,
.asap-hero__title,
.asap-category__title,
.asap-card__title,
.asap-quick__title,
.asap-entry__title,
.asap-contact__name,
.asap-header__title,
.woocommerce div.product .product_title,
.woocommerce-products-header__title {
	font-family: var(--asap-font-heading);
	/* Mundial Narrow is a variable face, so a heavier weight renders as a real
	   cut rather than a synthesised one. The negative tracking a wide face
	   wants would close a narrow one up too far. */
	font-weight: 700;
	letter-spacing: 0;
}

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	line-height: 1.2;
}

:focus-visible {
	outline: 2px solid var(--asap-accent);
	outline-offset: 2px;
	border-radius: 4px;
}

input,
select,
textarea {
	font: inherit;
	color: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--asap-line-strong);
	border-radius: var(--asap-radius);
	background: var(--asap-surface);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
	border-color: var(--asap-accent);
	box-shadow: 0 0 0 3px var(--asap-accent-soft);
	outline: none;
}

/* -------------------------------------------------------------- 3. Layout */

.asap-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.asap-container {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
}

.asap-container--narrow {
	max-width: 780px;
}

.asap-main {
	flex: 1 0 auto;
	padding-bottom: 64px;
}

.asap-main--catalog {
	padding-bottom: 80px;
}

.asap-page-title {
	font-size: clamp(28px, 4vw, 38px);
}

/* ------------------------------------------------------------- 4. Buttons */

.asap-button,
.woocommerce .asap-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: var(--asap-radius);
	background: var(--asap-accent);
	color: var(--asap-accent-contrast);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.asap-button:hover,
.asap-button:focus {
	background: var(--asap-accent-dark);
	color: var(--asap-accent-contrast);
}

.asap-button:active {
	transform: translateY(1px);
}

.asap-button[disabled],
.asap-button[aria-busy="true"] {
	opacity: 0.6;
	cursor: progress;
}

.asap-button--large {
	padding: 14px 26px;
	font-size: 16px;
}

.asap-button--ghost {
	background: transparent;
	border-color: var(--asap-line-strong);
	color: var(--asap-ink);
}

.asap-button--ghost:hover,
.asap-button--ghost:focus {
	background: var(--asap-canvas);
	border-color: var(--asap-ink-faint);
	color: var(--asap-ink);
}

.asap-quick-order.is-loading {
	opacity: 0.7;
	cursor: progress;
}

/* -------------------------------------------------------------- 5. Header */

.asap-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--asap-surface);
	border-bottom: 1px solid var(--asap-line);
}

.asap-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--asap-header-height);
}

.asap-header__brand {
	display: flex;
	align-items: center;
	margin-right: auto;
}

.asap-header__brand img,
.asap-header__brand .custom-logo {
	max-height: 48px;
	width: auto;
}

.asap-header__title {
	font-size: 22px;
	color: var(--asap-ink);
	text-decoration: none;
}

.asap-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.asap-nav__list a {
	display: block;
	padding: 8px 12px;
	border-radius: var(--asap-radius);
	color: var(--asap-ink-soft);
	font-size: 15px;
	font-weight: 550;
	text-decoration: none;
}

.asap-nav__list a:hover,
.asap-nav__list .current-menu-item > a {
	background: var(--asap-canvas);
	color: var(--asap-ink);
}

.asap-nav__list .sub-menu {
	display: none;
}

.asap-nav-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid var(--asap-line);
	border-radius: var(--asap-radius);
	background: var(--asap-surface);
	cursor: pointer;
}

.asap-nav-toggle__bars,
.asap-nav-toggle__bars::before,
.asap-nav-toggle__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	margin: 0 auto;
	background: var(--asap-ink);
	border-radius: 2px;
	content: "";
}

.asap-nav-toggle__bars::before {
	transform: translateY(-6px);
}

.asap-nav-toggle__bars::after {
	transform: translateY(4px);
}

.asap-cart-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid var(--asap-line-strong);
	border-radius: var(--asap-radius);
	color: var(--asap-ink);
	text-decoration: none;
	font-weight: 600;
}

.asap-cart-link:hover {
	border-color: var(--asap-accent);
	color: var(--asap-accent);
}

.asap-cart-count {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--asap-accent);
	color: var(--asap-accent-contrast);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.asap-cart-count.is-empty {
	background: var(--asap-line);
	color: var(--asap-ink-faint);
}

/* ---------------------------------------------------------------- 6. Hero */

.asap-hero {
	padding: 48px 0 32px;
	background: var(--asap-surface);
	border-bottom: 1px solid var(--asap-line);
}

.asap-hero__title {
	margin: 0;
	font-size: clamp(30px, 4.5vw, 44px);
}

.asap-hero__intro {
	max-width: 62ch;
	margin: 12px 0 0;
	color: var(--asap-ink-soft);
	font-size: 17px;
}

.asap-hero__intro p:last-child {
	margin-bottom: 0;
}

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

.asap-hero--mural {
	position: relative;
	display: flex;
	align-items: center;
	padding: 64px 0;
	overflow: hidden;
	border-bottom: 0;
	/* Painted behind the photo so the headline is legible before it decodes. */
	background: #12161d;
}

.asap-hero--compact { min-height: 320px; }
.asap-hero--standard { min-height: 460px; }
.asap-hero--tall { min-height: 620px; }

.asap-hero--no-image {
	background: linear-gradient(135deg, var(--asap-accent), var(--asap-accent-dark));
}

.asap-hero__media {
	position: absolute;
	inset: 0;
}

.asap-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* The scrim is a flat wash at the client's chosen strength, plus a directional
   gradient that deepens under the text so the headline holds up over a busy
   photo without flattening the whole mural. */
.asap-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to right, rgba(10, 13, 18, 0.8), rgba(10, 13, 18, 0) 68%),
		rgba(10, 13, 18, var(--asap-hero-overlay, 0.45));
}

.asap-hero--center .asap-hero__scrim {
	background:
		linear-gradient(to top, rgba(10, 13, 18, 0.7), rgba(10, 13, 18, 0) 75%),
		rgba(10, 13, 18, var(--asap-hero-overlay, 0.45));
}

.asap-hero--right .asap-hero__scrim {
	background:
		linear-gradient(to left, rgba(10, 13, 18, 0.8), rgba(10, 13, 18, 0) 68%),
		rgba(10, 13, 18, var(--asap-hero-overlay, 0.45));
}

.asap-hero--dark-text .asap-hero__scrim {
	background:
		linear-gradient(to right, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 68%),
		rgba(255, 255, 255, var(--asap-hero-overlay, 0.45));
}

.asap-hero--dark-text.asap-hero--center .asap-hero__scrim {
	background:
		linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0) 75%),
		rgba(255, 255, 255, var(--asap-hero-overlay, 0.45));
}

.asap-hero--dark-text.asap-hero--right .asap-hero__scrim {
	background:
		linear-gradient(to left, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 68%),
		rgba(255, 255, 255, var(--asap-hero-overlay, 0.45));
}

.asap-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.asap-hero__content {
	max-width: 620px;
}

.asap-hero--center .asap-hero__content {
	margin: 0 auto;
	text-align: center;
}

.asap-hero--right .asap-hero__content {
	margin-left: auto;
	text-align: right;
}

.asap-hero--mural .asap-hero__title {
	font-size: clamp(34px, 6vw, 60px);
	line-height: 1.05;
}

.asap-hero--mural .asap-hero__intro {
	margin-top: 14px;
	font-size: clamp(16px, 1.6vw, 19px);
}

.asap-hero--light-text,
.asap-hero--no-image {
	color: #fff;
}

.asap-hero--light-text .asap-hero__title,
.asap-hero--no-image .asap-hero__title {
	color: #fff;
}

.asap-hero--light-text .asap-hero__intro,
.asap-hero--no-image .asap-hero__intro {
	color: rgba(255, 255, 255, 0.9);
}

.asap-hero--dark-text {
	color: var(--asap-ink);
}

.asap-hero--dark-text .asap-hero__title {
	color: var(--asap-ink);
}

.asap-hero--dark-text .asap-hero__intro {
	color: var(--asap-ink-soft);
}

.asap-hero__actions {
	margin: 24px 0 0;
}

.asap-hero--light-text .asap-hero__actions .asap-button--primary,
.asap-hero--no-image .asap-hero__actions .asap-button--primary {
	background: #fff;
	color: #12161d;
}

.asap-hero--light-text .asap-hero__actions .asap-button--primary:hover,
.asap-hero--no-image .asap-hero__actions .asap-button--primary:hover {
	background: rgba(255, 255, 255, 0.88);
	color: #12161d;
}

/* ----------------------------------------------- 7. Category navigation */

.asap-catnav {
	position: sticky;
	top: var(--asap-header-height);
	z-index: 30;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--asap-line);
}

.asap-catnav__list {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 10px 0;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.asap-catnav__link {
	display: block;
	padding: 7px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--asap-ink-soft);
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
}

.asap-catnav__link:hover {
	background: var(--asap-canvas);
	color: var(--asap-ink);
}

.asap-catnav__link.is-active {
	background: var(--asap-accent-soft);
	border-color: var(--asap-accent);
	color: var(--asap-accent-dark);
}

/* --------------------------------------------------- 8. Category sections */

.asap-category {
	padding: 48px 0 8px;
	scroll-margin-top: calc(var(--asap-header-height) + 60px);
}

.asap-category + .asap-category {
	border-top: 1px solid var(--asap-line);
}

.asap-category__header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 24px;
}

.asap-category__icon img {
	display: block;
	width: 56px;
	height: 56px;
	border-radius: var(--asap-radius);
	object-fit: cover;
}

.asap-category__heading {
	flex: 1 1 auto;
	min-width: 0;
}

.asap-category__title {
	margin: 0;
	font-size: clamp(22px, 2.6vw, 28px);
}

.asap-category__title a {
	color: var(--asap-ink);
	text-decoration: none;
}

.asap-category__title a:hover {
	color: var(--asap-accent);
}

.asap-category__description {
	max-width: 70ch;
	margin-top: 4px;
	color: var(--asap-ink-soft);
	font-size: 15px;
}

.asap-category__description p {
	margin: 0;
}

.asap-category__all {
	flex: 0 0 auto;
	align-self: center;
	padding: 8px 14px;
	border: 1px solid var(--asap-line-strong);
	border-radius: var(--asap-radius);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.asap-category__all:hover {
	border-color: var(--asap-accent);
}

/* ------------------------------------------------ 9. Product grid and card */

.woocommerce ul.products,
ul.products {
	display: grid;
	grid-template-columns: repeat(var(--asap-columns, 4), minmax(0, 1fr));
	gap: var(--asap-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.products::before,
ul.products::after {
	content: none;
}

ul.products.columns-2 { --asap-columns: 2; }
ul.products.columns-3 { --asap-columns: 3; }
ul.products.columns-4 { --asap-columns: 4; }
ul.products.columns-5 { --asap-columns: 5; }
ul.products.columns-6 { --asap-columns: 6; }

/* WooCommerce's own stylesheet floats these; the grid owns layout instead. */
.woocommerce ul.products li.product,
ul.products li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

.asap-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--asap-surface);
	border: 1px solid var(--asap-line);
	border-radius: var(--asap-radius-lg);
	box-shadow: var(--asap-shadow-sm);
	transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.asap-card:hover {
	border-color: var(--asap-line-strong);
	box-shadow: var(--asap-shadow-md);
	transform: translateY(-2px);
}

.asap-card__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--asap-canvas);
	overflow: hidden;
}

.asap-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.asap-card:hover .asap-card__media img {
	transform: scale(1.03);
}

.asap-card__badge {
	position: absolute;
	left: 10px;
	bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(20, 24, 31, 0.82);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.woocommerce span.onsale,
.asap-card .onsale {
	position: absolute;
	top: 10px;
	left: 10px;
	right: auto;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--asap-accent);
	color: var(--asap-accent-contrast);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
	text-transform: uppercase;
}

.asap-card__body {
	flex: 1 1 auto;
	padding: 16px 16px 8px;
}

.asap-card__title {
	margin: 0 0 6px;
	font-size: 16px;
	line-height: 1.35;
}

.asap-card__title a {
	color: var(--asap-ink);
	text-decoration: none;
}

.asap-card__title a:hover {
	color: var(--asap-accent);
}

.asap-card__excerpt {
	margin: 0 0 10px;
	color: var(--asap-ink-soft);
	font-size: 14px;
	line-height: 1.5;
}

.asap-card__price,
.woocommerce .asap-card__price .price {
	color: var(--asap-ink);
	font-size: 16px;
	font-weight: 700;
}

.asap-card__price del {
	margin-right: 6px;
	color: var(--asap-ink-faint);
	font-weight: 500;
}

.asap-card__price .woocommerce-Price-amount {
	color: inherit;
}

.asap-card__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px 16px;
}

.asap-card__actions .asap-button,
.asap-card__actions .button {
	flex: 1 1 auto;
}

.asap-card__more {
	flex: 0 0 auto;
	color: var(--asap-ink-soft);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.asap-card__more:hover {
	color: var(--asap-accent);
	text-decoration: underline;
}

/* Hide WooCommerce's own "added" tick link inside the card footer. */
.asap-card__actions .added_to_cart {
	display: none;
}

/* -------------------------------------------------- 10. Custom option fields */

.asap-options {
	display: grid;
	gap: 16px;
	margin: 0 0 20px;
	padding: 16px;
	background: var(--asap-canvas);
	border: 1px solid var(--asap-line);
	border-radius: var(--asap-radius);
}

.asap-options__heading {
	margin: 20px 0 8px;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--asap-ink-faint);
}

.asap-option {
	display: grid;
	gap: 6px;
}

.asap-option__label {
	font-size: 14px;
	font-weight: 650;
}

.asap-option__label abbr.required {
	border: 0;
	color: var(--asap-danger);
	text-decoration: none;
}

.asap-option__price {
	color: var(--asap-ink-soft);
	font-weight: 600;
}

.asap-option__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}

.asap-option__choice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	cursor: pointer;
}

.asap-option__help,
.asap-option__hint {
	color: var(--asap-ink-faint);
	font-size: 13px;
}

.asap-option__file {
	padding: 8px;
	background: var(--asap-surface);
}

.asap-po-field {
	margin-top: 4px;
}

.asap-po-field .form-row {
	padding: 0;
}

.asap-cart-option-price {
	color: var(--asap-ink-faint);
	font-size: 0.9em;
}

/* ---------------------------------------------------- 11. Quick order modal */

body.asap-modal-open {
	overflow: hidden;
}

.asap-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

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

.asap-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 20, 26, 0.55);
	opacity: 0;
	transition: opacity 0.18s ease;
}

.asap-modal.is-open .asap-modal__backdrop {
	opacity: 1;
}

.asap-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 880px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: var(--asap-surface);
	border-radius: var(--asap-radius-lg);
	box-shadow: var(--asap-shadow-lg);
	opacity: 0;
	transform: translateY(12px) scale(0.99);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.asap-modal.is-open .asap-modal__dialog {
	opacity: 1;
	transform: none;
}

.asap-modal__dialog:focus {
	outline: none;
}

.asap-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--asap-line);
	border-radius: 50%;
	background: var(--asap-surface);
	color: var(--asap-ink-soft);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.asap-modal__close:hover {
	background: var(--asap-canvas);
	color: var(--asap-ink);
}

.asap-modal__loading,
.asap-modal__error {
	margin: 0;
	padding: 64px 24px;
	text-align: center;
	color: var(--asap-ink-soft);
}

.asap-modal__error {
	color: var(--asap-danger);
}

.asap-quick {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.asap-quick__media {
	background: var(--asap-canvas);
}

.asap-quick__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 520px;
	object-fit: cover;
}

.asap-quick__summary {
	padding: 28px 28px 28px;
}

.asap-quick__title {
	margin: 0 0 6px;
	padding-right: 32px;
	font-size: 24px;
}

.asap-quick__price {
	margin-bottom: 12px;
	font-size: 20px;
	font-weight: 700;
}

.asap-quick__price del {
	margin-right: 6px;
	color: var(--asap-ink-faint);
	font-weight: 500;
}

.asap-quick__excerpt {
	color: var(--asap-ink-soft);
	font-size: 15px;
}

.asap-quick__excerpt p:last-child {
	margin-bottom: 0;
}

.asap-quick__messages:empty {
	display: none;
}

.asap-quick__messages {
	margin: 16px 0;
	padding: 12px 14px;
	border-radius: var(--asap-radius);
	font-size: 14px;
}

.asap-quick__messages p {
	margin: 0 0 6px;
}

.asap-quick__messages p:last-child {
	margin-bottom: 0;
}

.asap-quick__messages.is-error {
	background: #fdeceb;
	color: var(--asap-danger);
}

.asap-quick__messages.is-success {
	background: #e8f5ee;
	color: var(--asap-success);
}

.asap-quick__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px !important;
}

.asap-quick__form {
	margin-top: 16px;
}

.asap-quick__form form.cart.is-busy {
	opacity: 0.7;
	pointer-events: none;
}

.asap-quick__link {
	margin: 16px 0 0;
	font-size: 14px;
}

.asap-quick__unavailable {
	padding: 12px 14px;
	border-radius: var(--asap-radius);
	background: var(--asap-canvas);
	color: var(--asap-ink-soft);
	font-size: 14px;
}

/* ------------------------------------------------------ 12. Single product */

.woocommerce div.product .product_title {
	font-size: clamp(26px, 3.4vw, 34px);
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--asap-ink);
	font-size: 22px;
	font-weight: 700;
}

.woocommerce div.product form.cart {
	margin-bottom: 24px;
}

.woocommerce div.product form.cart .variations {
	margin-bottom: 16px;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
	padding: 6px 0;
	vertical-align: middle;
}

.woocommerce div.product form.cart .variations label {
	font-weight: 650;
}

.woocommerce div.product form.cart div.quantity {
	float: none;
	display: inline-flex;
	margin: 0 12px 0 0;
	vertical-align: middle;
}

.woocommerce .quantity .qty {
	width: 84px;
	padding: 11px 8px;
	text-align: center;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	padding-left: 0;
}

/* ----------------------------------------- 13. WooCommerce overrides */

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	padding: 11px 18px;
	border-radius: var(--asap-radius);
	background: var(--asap-accent);
	color: var(--asap-accent-contrast);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color 0.15s ease;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
	background: var(--asap-accent-dark);
	color: var(--asap-accent-contrast);
}

.woocommerce a.button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button:disabled[disabled] {
	opacity: 0.5;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top-color: var(--asap-accent);
	border-radius: var(--asap-radius);
	background: var(--asap-surface);
	box-shadow: var(--asap-shadow-sm);
}

.woocommerce-message::before,
.woocommerce-info::before {
	color: var(--asap-accent);
}

.woocommerce-error {
	border-top-color: var(--asap-danger);
}

.woocommerce table.shop_table {
	border-radius: var(--asap-radius-lg);
	border-color: var(--asap-line);
	background: var(--asap-surface);
}

.woocommerce table.shop_table th {
	font-weight: 650;
}

.woocommerce .cart_totals h2,
.woocommerce-checkout h3 {
	font-size: 20px;
}

.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce-checkout #payment {
	border-radius: var(--asap-radius-lg);
	border-color: var(--asap-line);
	background: var(--asap-surface);
}

.woocommerce-checkout #payment {
	background: var(--asap-surface);
	border: 1px solid var(--asap-line);
}

.woocommerce .woocommerce-breadcrumb {
	margin-bottom: 20px;
	color: var(--asap-ink-faint);
	font-size: 14px;
}

.woocommerce-cart-form .product-name dl.variation,
.woocommerce-checkout-review-order dl.variation,
.woocommerce-mini-cart dl.variation {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--asap-ink-soft);
}

.woocommerce-cart-form .product-name dl.variation dt,
.woocommerce-checkout-review-order dl.variation dt {
	float: none;
	clear: both;
	font-weight: 650;
}

.woocommerce-cart-form .product-name dl.variation dd,
.woocommerce-checkout-review-order dl.variation dd {
	margin: 0 0 4px;
	padding: 0;
}

.asap-main--shop .woocommerce-products-header {
	padding-top: 32px;
}

.asap-main--shop .woocommerce-products-header__title {
	font-size: clamp(28px, 4vw, 38px);
}

.woocommerce .woocommerce-ordering,
.asap-main--shop .products {
	margin-top: 24px;
}

/* ----------------------------------------- 14. Entries and pagination */

.asap-entry {
	padding: 32px 0;
}

.asap-entry--summary + .asap-entry--summary {
	border-top: 1px solid var(--asap-line);
}

.asap-entry__title {
	font-size: 22px;
}

.asap-entry__title a {
	color: var(--asap-ink);
	text-decoration: none;
}

.asap-entry__meta {
	margin: 0 0 12px;
	color: var(--asap-ink-faint);
	font-size: 14px;
}

.asap-entry__content > *:first-child {
	margin-top: 0;
}

.asap-archive-header,
.asap-empty {
	padding-top: 40px;
}

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

.asap-search {
	display: flex;
	gap: 8px;
	max-width: 460px;
	margin: 16px auto 0;
}

.navigation.pagination {
	padding: 24px 0;
}

.navigation.pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	border-radius: var(--asap-radius);
	text-decoration: none;
}

.navigation.pagination .page-numbers.current {
	background: var(--asap-accent);
	color: var(--asap-accent-contrast);
}

/* -------------------------------------------------------------- 15. Footer */

.asap-footer {
	flex: 0 0 auto;
	margin-top: auto;
	padding: 40px 0 32px;
	background: var(--asap-surface);
	border-top: 1px solid var(--asap-line);
	color: var(--asap-ink-soft);
	font-size: 14px;
}

.asap-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	margin-bottom: 32px;
}

.asap-footer__widget-title {
	margin-bottom: 8px;
	font-size: 15px;
	color: var(--asap-ink);
}

.asap-contact {
	margin-bottom: 28px;
	padding: 20px 22px;
	background: var(--asap-canvas);
	border: 1px solid var(--asap-line);
	border-radius: var(--asap-radius-lg);
}

.asap-contact__heading {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--asap-ink-faint);
}

.asap-contact__card {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.asap-contact__photo {
	flex: 0 0 auto;
}

.asap-contact__image {
	display: block;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--asap-line);
}

.asap-contact__details {
	min-width: 0;
}

.asap-contact__name {
	margin: 0;
	font-size: 19px;
	color: var(--asap-ink);
}

.asap-contact__role {
	margin: 2px 0 10px;
	color: var(--asap-ink-soft);
}

.asap-contact__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0 0 6px;
}

.asap-contact__link {
	font-weight: 600;
	text-decoration: none;
}

.asap-contact__link:hover {
	text-decoration: underline;
}

.asap-contact__hours {
	margin: 0;
	color: var(--asap-ink-soft);
}

.asap-contact__note {
	margin-top: 10px;
	color: var(--asap-ink-soft);
}

.asap-contact__note p:last-child {
	margin-bottom: 0;
}

.asap-footer__note {
	margin-bottom: 24px;
}

.asap-footer__note p:last-child {
	margin-bottom: 0;
}

.asap-footer__bottom {
	padding-top: 20px;
	border-top: 1px solid var(--asap-line);
}

.asap-footer__copyright {
	margin: 0;
}

/* --------------------------------------------------------- 16. Password gate */

/* The gate is served as a standalone document: nothing of the site should be
   visible before the visitor is through, not even the navigation. */

.asap-gate {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 40px 20px;
}

.asap-gate__panel {
	width: 100%;
	max-width: 420px;
	padding: 36px 32px;
	background: var(--asap-surface);
	border: 1px solid var(--asap-line);
	border-radius: var(--asap-radius-lg);
	box-shadow: var(--asap-shadow-md);
	text-align: center;
}

.asap-gate__brand {
	margin-bottom: 18px;
}

.asap-gate__brand img {
	display: block;
	width: auto;
	max-height: 56px;
	margin: 0 auto;
}

.asap-gate__sitename {
	font-family: var(--asap-font-heading);
	font-size: 22px;
	font-weight: 700;
	color: var(--asap-ink);
}

.asap-gate__title {
	margin: 0 0 8px;
	font-size: 26px;
}

.asap-gate__message {
	color: var(--asap-ink-soft);
	font-size: 15px;
}

.asap-gate__message p:last-child {
	margin-bottom: 0;
}

.asap-gate__error {
	margin: 18px 0 0;
	padding: 10px 14px;
	border-radius: var(--asap-radius);
	background: #fdeceb;
	color: var(--asap-danger);
	font-size: 14px;
}

.asap-gate__form {
	display: grid;
	gap: 8px;
	margin-top: 22px;
	text-align: left;
}

.asap-gate__label {
	font-size: 14px;
	font-weight: 650;
}

.asap-gate__submit {
	width: 100%;
	margin-top: 6px;
}

.asap-gate__help {
	margin: 22px 0 0;
	color: var(--asap-ink-faint);
	font-size: 13px;
}

/* ----------------------------------------------------------- 17. Utilities */

.screen-reader-text {
	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-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	z-index: 200;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip: auto;
	background: var(--asap-surface);
	border-radius: var(--asap-radius);
	box-shadow: var(--asap-shadow-md);
	font-weight: 600;
}

/* ------------------------------------------------------------ Breakpoints */

@media (max-width: 1024px) {
	ul.products.columns-5 { --asap-columns: 4; }
	ul.products.columns-6 { --asap-columns: 4; }
}

@media (max-width: 860px) {
	ul.products.columns-4,
	ul.products.columns-5,
	ul.products.columns-6 { --asap-columns: 3; }

	.asap-quick {
		grid-template-columns: 1fr;
	}

	.asap-quick__media img {
		max-height: 260px;
	}

	.asap-quick__summary {
		padding: 24px 20px;
	}
}

@media (max-width: 782px) {
	.asap-nav-toggle {
		display: block;
		order: 2;
	}

	.asap-header__actions {
		order: 3;
	}

	.asap-nav {
		order: 4;
		display: none;
		width: 100%;
		padding-bottom: 12px;
	}

	.asap-nav.is-open {
		display: block;
	}

	.asap-nav__list {
		flex-direction: column;
		align-items: stretch;
	}

	.asap-header__inner {
		flex-wrap: wrap;
	}
}

@media (max-width: 640px) {
	:root {
		--asap-gap: 16px;
	}

	.asap-hero--mural {
		padding: 48px 0;
	}

	.asap-hero--compact { min-height: 260px; }
	.asap-hero--standard { min-height: 340px; }
	.asap-hero--tall { min-height: 420px; }

	/* A side gradient does nothing at this width - wash the whole photo. */
	.asap-hero--mural .asap-hero__scrim {
		background:
			linear-gradient(to top, rgba(10, 13, 18, 0.72), rgba(10, 13, 18, 0.1)),
			rgba(10, 13, 18, var(--asap-hero-overlay, 0.45));
	}

	.asap-hero--dark-text .asap-hero__scrim {
		background:
			linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2)),
			rgba(255, 255, 255, var(--asap-hero-overlay, 0.45));
	}

	.asap-hero--right .asap-hero__content {
		margin-left: 0;
		text-align: left;
	}

	.asap-contact__card {
		gap: 14px;
	}

	.asap-contact__image {
		width: 54px;
		height: 54px;
	}

	ul.products,
	ul.products.columns-3,
	ul.products.columns-4,
	ul.products.columns-5,
	ul.products.columns-6 { --asap-columns: 2; }

	.asap-hero {
		padding: 32px 0 24px;
	}

	.asap-category {
		padding-top: 36px;
	}

	.asap-category__header {
		flex-wrap: wrap;
	}

	.asap-category__all {
		align-self: flex-start;
	}

	.asap-card__actions {
		flex-wrap: wrap;
	}

	.asap-card__title {
		font-size: 15px;
	}

	.asap-modal {
		padding: 0;
	}

	.asap-modal__dialog {
		max-width: none;
		max-height: 100vh;
		height: 100%;
		border-radius: 0;
	}
}

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

	.asap-card:hover {
		transform: none;
	}
}
