/*
 * Mat-Hub — site-specific additions on top of theme.css + plugin.css.
 * Those two files are the real, responsive-tested theme engine (header, product
 * cards, badges, calculator). This file only adds the extra page furniture a
 * full multi-page site needs: hero, category tiles, cart table, checkout
 * layout, store banner — kept separate so the engine styles stay identical to
 * what ships in the actual WordPress theme.
 */

/* --------------------------------------------------------------- Preview bar */

.preview-bar {
	background: var(--c-secondary-dark);
	color: #eef5f1;
	text-align: center;
	font-size: .82rem;
	padding: .5rem 1rem;
}

.preview-bar a { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------- Breadcrumb */

.breadcrumb {
	list-style: none; display: flex; flex-wrap: wrap; gap: .4rem;
	margin: 1rem 0; padding: 0; font-size: .82rem; color: var(--c-muted);
}
.breadcrumb li:not(:last-child)::after { content: "/"; margin-inline-start: .4rem; color: var(--c-line); }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb li:last-child { color: var(--c-ink); }

/* -------------------------------------------------------------------- Hero */

.hero {
	display: grid; gap: 1.5rem;
	padding: 2.5rem 0;
	border-bottom: 1px solid var(--c-line);
}

.hero__kicker {
	display: inline-block; font-size: .78rem; font-weight: 600;
	letter-spacing: .06em; text-transform: uppercase;
	color: var(--c-accent); margin-bottom: .5rem;
}

.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.2; margin: 0 0 .75rem; }

.hero p { color: var(--c-muted); font-size: 1.05rem; max-width: 46ch; margin: 0 0 1.25rem; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: .7rem 1.4rem;
	border-radius: 8px; font-weight: 600; font-size: .95rem;
	text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--c-line); color: var(--c-ink); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------- Category tiles */

.cat-grid {
	display: grid; gap: 1rem; list-style: none; margin: 1.5rem 0; padding: 0;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.cat-tile {
	display: flex; flex-direction: column; align-items: center; gap: .6rem;
	padding: 1.2rem .75rem; border-radius: var(--radius);
	background: var(--c-surface); border: 1px solid var(--c-line);
	text-decoration: none; color: var(--c-ink);
	text-align: center; font-size: .85rem; font-weight: 500;
	min-height: 44px;
}
.cat-tile:hover { border-color: var(--c-accent); }

.cat-tile__swatch {
	width: 48px; height: 48px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.3rem;
}

/* ------------------------------------------------------------- Trust strip */

.trust-strip {
	display: grid; gap: 1rem; list-style: none; margin: 2rem 0; padding: 1.25rem 0;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.trust-strip li { display: flex; gap: .6rem; align-items: flex-start; font-size: .85rem; color: var(--c-muted); }
.trust-strip strong { display: block; color: var(--c-ink); font-size: .92rem; }

/* ------------------------------------------------------------- Section head */

.section-head {
	display: flex; align-items: baseline; justify-content: space-between;
	gap: 1rem; margin: 2.5rem 0 1rem;
}
.section-head h2 { font-size: 1.3rem; margin: 0; }
.section-head a { font-size: .85rem; color: var(--c-accent); text-decoration: none; }

/* --------------------------------------------------------------- Page title */

.page-title { margin: 1rem 0 1.5rem; }
.page-title h1 { font-size: 1.6rem; margin: 0 0 .3rem; }
.page-title p { color: var(--c-muted); margin: 0; }

/* --------------------------------------------------------- Shop page layout */

.shop-layout { display: grid; gap: 2rem; grid-template-columns: 220px 1fr; align-items: start; }

.shop-filters { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1rem; }
.shop-filters h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); margin: 0 0 .6rem; }
.shop-filters ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.shop-filters li { padding: 0; }
.shop-filters a {
	display: inline-flex; align-items: center; min-height: 38px;
	color: var(--c-ink); text-decoration: none; font-size: .88rem;
}
.shop-filters a:hover { color: var(--c-accent); }

@media (max-width: 900px) {
	.shop-layout { grid-template-columns: 1fr; }
	.shop-filters { order: 2; }
}

/* --------------------------------------------------------------- Cart table */

.cart-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.cart-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); padding: 0 0 .6rem; border-bottom: 1px solid var(--c-line); }
.cart-table td { padding: 1rem 0; border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.cart-table__product { display: flex; gap: .8rem; align-items: center; }
.cart-table__thumb { width: 64px; height: 64px; border-radius: 8px; flex-shrink: 0; }
.cart-table__name { font-weight: 500; font-size: .92rem; }
.cart-table__vendor { font-size: .78rem; color: var(--c-muted); }
.cart-table__qty { width: 4.5rem; padding: .4rem; border: 1px solid var(--c-line); border-radius: 6px; }
.cart-table__remove { background: none; border: none; color: var(--c-muted); font-size: .8rem; cursor: pointer; text-decoration: underline; padding: .4rem 0; }

@media (max-width: 700px) {
	.cart-table thead { display: none; }
	.cart-table tr { display: grid; grid-template-columns: 1fr; gap: .3rem; padding: 1rem 0; }
	.cart-table td { border: none; padding: 0; }
}

.cart-summary {
	border: 1px solid var(--c-line); border-radius: var(--radius);
	padding: 1.25rem; max-width: 360px; margin-inline-start: auto;
}
.cart-summary__row { display: flex; justify-content: space-between; font-size: .9rem; padding: .4rem 0; color: var(--c-muted); }
.cart-summary__row.total { color: var(--c-ink); font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--c-line); margin-top: .5rem; padding-top: .8rem; }

/* ---------------------------------------------------------------- Checkout */

.checkout-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }

.form-row { margin: 0 0 1rem; }
.form-row label { display: block; font-size: .85rem; font-weight: 500; margin: 0 0 .35rem; }
.form-row input, .form-row select, .form-row textarea {
	width: 100%; padding: .65rem .8rem; border: 1px solid var(--c-line);
	border-radius: 8px; font-size: .95rem; font-family: inherit; min-height: 44px;
	background: var(--c-surface); color: var(--c-ink);
}
.form-row .required { color: var(--c-error); }
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }

.pay-option {
	display: flex; align-items: center; gap: .6rem;
	border: 1px solid var(--c-line); border-radius: 8px;
	padding: .8rem 1rem; margin-bottom: .6rem; font-size: .9rem;
	min-height: 44px;
}
.pay-option input { width: auto; min-height: 0; }

.order-summary {
	border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1.25rem;
	position: sticky; top: 90px;
}
.order-summary__item { display: flex; justify-content: space-between; gap: .6rem; font-size: .85rem; padding: .5rem 0; border-bottom: 1px solid var(--c-line); }
.order-summary__item small { display: block; color: var(--c-muted); }

/* --------------------------------------------------------------- Vendor store */

.store-banner {
	background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
	border-radius: var(--radius); color: #fff; padding: 2rem 1.5rem;
	display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin: 1.5rem 0;
}
.store-banner__logo {
	width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.2);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.6rem; font-weight: 700; flex-shrink: 0;
}
.store-banner h1 { margin: 0 0 .3rem; font-size: 1.4rem; }
.store-banner .dh-verified-badge { background: rgba(255,255,255,.25); color: #fff; }
.store-banner__meta { font-size: .85rem; opacity: .9; margin-top: .3rem; }

/* ---------------------------------------------------------------- Steps */

.steps { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 2rem 0; }
.step { text-align: left; }
.step__num {
	width: 36px; height: 36px; border-radius: 50%; background: var(--dh-accent-soft, #f4efe8);
	color: var(--c-accent); font-weight: 700; display: flex; align-items: center;
	justify-content: center; margin-bottom: .75rem;
}
.step h3 { font-size: 1rem; margin: 0 0 .35rem; }
.step p { font-size: .88rem; color: var(--c-muted); margin: 0; }

/* --------------------------------------------------------------- Contact */

.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: .75rem 0; border-bottom: 1px solid var(--c-line); font-size: .92rem; }
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); margin-bottom: .2rem; }

/* --------------------------------------------------------------- Utility */

.muted { color: var(--c-muted); }
.section { padding: 1.5rem 0; }
.center { text-align: center; }

/* =========================================================================
 * Additions for the expanded catalogue (12 categories / 79 subcategories),
 * the services pages, and the large-appliance product treatment.
 * ====================================================================== */

/* ------------------------------------------------------------ Primary bar */

.primary-bar {
	display: flex; align-items: center; gap: 1rem;
	padding-bottom: .3rem;
}

/*
 * On a phone the primary links scroll sideways instead of wrapping. Wrapping
 * eight 44px-tall links onto three rows would make a sticky header eat half
 * the viewport; a single scrollable row keeps the header one line tall and is
 * the pattern shoppers already know from other marketplace apps.
 */
.primary-nav { flex: 1; min-width: 0; }
.primary-nav ul {
	flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.primary-nav ul::-webkit-scrollbar { display: none; }
.primary-nav li { flex: 0 0 auto; }
.primary-nav a { white-space: nowrap; }

@media (min-width: 1100px) {
	.primary-nav ul { flex-wrap: wrap; overflow: visible; }
}

/* -------------------------------------------------------------- Mega-menu */

.megamenu { position: relative; flex: 0 0 auto; }

.megamenu__toggle {
	display: inline-flex; align-items: center; gap: .55rem;
	min-height: 44px; padding: .5rem .9rem;
	background: var(--c-accent); color: var(--c-accent-ink);
	border: none; border-radius: 8px;
	font: inherit; font-size: .9rem; font-weight: 600;
	cursor: pointer; white-space: nowrap;
}

.megamenu__burger {
	width: 16px; height: 11px; flex-shrink: 0;
	border-top: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	position: relative;
}
.megamenu__burger::after {
	content: ""; position: absolute; inset-inline: 0; top: 50%;
	margin-top: -1px; border-top: 2px solid currentColor;
}

.megamenu__panel { display: none; }
.megamenu[data-open="true"] .megamenu__panel { display: block; }

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

.megamenu__cat-row { display: flex; align-items: center; }

.megamenu__cat-link {
	flex: 1; display: flex; align-items: center; gap: .6rem;
	min-height: 46px; padding: .5rem .9rem;
	color: var(--c-ink); text-decoration: none; font-size: .92rem;
}
.megamenu__cat-icon { width: 1.4em; text-align: center; }

.megamenu__expand {
	flex: 0 0 auto; width: 46px; min-height: 46px;
	background: none; border: none; cursor: pointer; color: var(--c-muted);
	display: flex; align-items: center; justify-content: center;
}

.megamenu__chevron {
	width: 9px; height: 9px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg); margin-top: -4px;
	transition: transform .15s ease;
}
.megamenu__cat[data-expanded="true"] .megamenu__chevron { transform: rotate(-135deg); margin-top: 3px; }

.megamenu__subs { display: none; }
.megamenu__cat[data-expanded="true"] .megamenu__subs { display: block; }

.megamenu__subs-head {
	display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
	margin: 0 0 .5rem; font-size: .78rem; text-transform: uppercase;
	letter-spacing: .05em; color: var(--c-muted);
}
.megamenu__subs-head a { text-transform: none; letter-spacing: 0; font-size: .85rem; }

.megamenu__sub-list { list-style: none; margin: 0; padding: 0; }
.megamenu__sub-list a {
	display: block; padding: .45rem .9rem .45rem 2.4rem;
	color: var(--c-muted); text-decoration: none; font-size: .88rem;
	min-height: 40px; line-height: 1.9;
}
.megamenu__sub-list a:hover { color: var(--c-accent); }

/* Mobile: full-width drawer under the header, accordion behaviour. */
@media (max-width: 899px) {
	.megamenu[data-open="true"] .megamenu__panel {
		position: absolute; inset-inline: 0; top: calc(100% + .3rem);
		z-index: 60; width: min(92vw, 420px);
		max-height: min(70vh, 560px); overflow-y: auto;
		background: var(--c-surface);
		border: 1px solid var(--c-line); border-radius: var(--radius);
		box-shadow: var(--shadow);
		padding: .4rem 0;
	}
	.megamenu__cat + .megamenu__cat { border-top: 1px solid var(--c-line); }
	.megamenu__subs { padding-bottom: .5rem; }
}

/* Desktop: two-pane panel — category rail on the left, subcategories right. */
@media (min-width: 900px) {
	.megamenu[data-open="true"] .megamenu__panel {
		position: absolute; inset-inline-start: 0; top: calc(100% + .4rem);
		z-index: 60; width: min(880px, 92vw);
		background: var(--c-surface);
		border: 1px solid var(--c-line); border-radius: var(--radius);
		box-shadow: var(--shadow);
		overflow: hidden;
	}

	.megamenu__cats { min-height: 430px; }

	.megamenu__cat-row {
		width: 260px;
		border-inline-end: 1px solid var(--c-line);
	}
	.megamenu__cat[data-active="true"] .megamenu__cat-row { background: var(--dh-accent-soft, #f4efe8); }
	.megamenu__cat[data-active="true"] .megamenu__cat-link { color: var(--c-accent); font-weight: 600; }

	.megamenu__expand { display: none; }

	/*
	 * Every category keeps its own subcategory list in the DOM; on desktop they
	 * are all stacked into the same right-hand area and only the active one is
	 * made visible. Absolute positioning rather than a grid cell, because the
	 * lists are nested inside their category <li> and so are not grid items of
	 * the panel — they can only be placed against the panel's own box.
	 */
	.megamenu__subs {
		display: block; visibility: hidden;
		position: absolute; inset-block: 0;
		inset-inline-start: 260px; inset-inline-end: 0;
		padding: 1.1rem 1.25rem; overflow-y: auto;
	}
	.megamenu__cat[data-active="true"] .megamenu__subs { visibility: visible; }

	.megamenu__sub-list {
		columns: 2; column-gap: 1.5rem;
	}
	.megamenu__sub-list li { break-inside: avoid; }
	.megamenu__sub-list a { padding: .3rem 0; min-height: 36px; line-height: 1.6; }
}

/* ------------------------------------------------------------ Cat tiles v2 */

.cat-tile__name { font-weight: 600; }
.cat-tile__count { color: var(--c-muted); font-size: .74rem; font-weight: 400; }

/* ---------------------------------------------------------------- Offers */

.offers {
	margin: 2.5rem 0; padding: 1.5rem;
	background: var(--dh-accent-soft, #f4efe8);
	border-radius: var(--radius);
}
.offers__head {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 1rem; margin-bottom: 1.25rem;
}
.offers__head h2 { margin: 0; font-size: 1.3rem; }
.offers__kicker {
	display: block; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
	text-transform: uppercase; color: var(--c-sale);
}

/* -------------------------------------------------------- Service cards */

.service-grid {
	display: grid; gap: 1rem; list-style: none; margin: 1.5rem 0 0; padding: 0;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.service-card {
	border: 1px solid var(--c-line); border-radius: var(--radius);
	padding: 1.25rem; background: var(--c-surface);
}
.service-card__icon { font-size: 1.6rem; display: block; margin-bottom: .6rem; }
.service-card h3 { font-size: 1rem; margin: 0 0 .4rem; }
.service-card h3 a { color: var(--c-ink); text-decoration: none; }
.service-card h3 a:hover { color: var(--c-accent); }
.service-card p { font-size: .87rem; color: var(--c-muted); margin: 0; }

/* -------------------------------------------------------- Shop filters v2 */

.shop-filters__cat + .shop-filters__cat { border-top: 1px solid var(--c-line); }
.shop-filters__cat-link {
	display: flex; align-items: center; gap: .5rem; width: 100%;
	font-weight: 500;
}
.shop-filters__cat-link.is-active { color: var(--c-accent); font-weight: 600; }

.shop-filters__subs { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 1.6rem; }
.shop-filters__subs a { font-size: .84rem; color: var(--c-muted); min-height: 34px; }
.shop-filters__subs a.is-active { color: var(--c-accent); font-weight: 600; }

.dh-empty-note {
	border: 1px dashed var(--c-line); border-radius: var(--radius);
	padding: 1.5rem; color: var(--c-muted); font-size: .9rem; text-align: center;
}

.dh-card__unit { color: var(--c-muted); font-weight: 400; font-size: .78rem; }
.dh-card__flag--muted { background: var(--c-muted); }

/* ------------------------------------------------------------ Product page */

.product-layout {
	display: grid; gap: 2rem; grid-template-columns: 1fr 1.1fr; align-items: start;
	margin-bottom: 2rem;
}
@media (max-width: 800px) { .product-layout { grid-template-columns: 1fr; } }

.product-media img { width: 100%; border-radius: 12px; }
.product-vendor { font-size: .85rem; color: var(--c-muted); text-decoration: none; }
.product-info h1 { font-size: 1.5rem; margin: .4rem 0; }
.product-price { font-size: 1.4rem; font-weight: 700; margin: .2rem 0 .3rem; }
.product-price del { color: var(--c-muted); font-weight: 400; font-size: .72em; margin-inline-end: .4rem; }
.product-price ins { text-decoration: none; color: var(--c-sale); }
.product-saving { color: var(--c-sale); font-size: .85rem; margin: 0 0 .8rem; font-weight: 600; }

.product-buy { display: flex; gap: .6rem; align-items: center; margin: 1.25rem 0; flex-wrap: wrap; }
.product-buy .qty {
	width: 5.5rem; padding: .65rem; border: 1px solid var(--c-line);
	border-radius: 8px; min-height: 46px; font-size: 1rem;
	background: var(--c-surface); color: var(--c-ink);
}
.product-buy button[disabled] { opacity: .55; cursor: not-allowed; }
.product-oos, .product-cat { font-size: .85rem; }

.product-logistics {
	border: 1px solid var(--c-line); border-radius: var(--radius);
	padding: 1.4rem; margin: 0 0 2rem; background: var(--c-surface);
}
.product-logistics h2 { font-size: 1.1rem; margin: 0 0 1rem; }
.product-logistics dl { margin: 0; display: grid; gap: 1rem; }
.product-logistics dt {
	font-size: .76rem; text-transform: uppercase; letter-spacing: .05em;
	color: var(--c-muted); margin-bottom: .2rem;
}
.product-logistics dd { margin: 0; font-size: .9rem; }

@media (min-width: 700px) {
	.product-logistics dl { grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; }
}

/* ------------------------------------------------------------------- Cart */

.cart-table__name a { color: var(--c-ink); text-decoration: none; }
.cart-table__tag { color: var(--c-accent); }
.cart-summary__note {
	font-size: .78rem; color: var(--c-muted); margin: .6rem 0 0;
	padding-top: .6rem; border-top: 1px dashed var(--c-line);
}

/* --------------------------------------------------------- Quote calculator */

.quote-layout { display: grid; gap: 2rem; grid-template-columns: 1fr 340px; align-items: start; }
@media (max-width: 1000px) { .quote-layout { grid-template-columns: 1fr; } }

.quote-fieldset {
	border: 1px solid var(--c-line); border-radius: var(--radius);
	padding: 1.25rem; margin: 0 0 1.25rem;
}
.quote-fieldset legend {
	font-size: .95rem; font-weight: 700; padding: 0 .5rem;
}

.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .form-grid--3 { grid-template-columns: 1fr; } }

.quote-derived { list-style: none; margin: .5rem 0 0; padding: .75rem 0 0; border-top: 1px solid var(--c-line); }
.quote-derived li { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; padding: .3rem 0; }
.quote-derived span { color: var(--c-muted); }
.quote-derived small { display: block; font-size: .76rem; }

.tier-options { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tier-option {
	display: flex; align-items: center; gap: .6rem; cursor: pointer;
	border: 1px solid var(--c-line); border-radius: 8px; padding: .75rem .9rem;
	font-size: .9rem; min-height: 52px;
}
.tier-option input { width: auto; min-height: 0; flex-shrink: 0; }
.tier-option strong { display: block; }
.tier-option small { color: var(--c-muted); font-size: .78rem; }
.tier-option:has(input:checked) { border-color: var(--c-accent); background: var(--dh-accent-soft, #f4efe8); }

.quote-table-wrap { overflow-x: auto; }
.quote-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.quote-table th {
	text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em;
	color: var(--c-muted); padding: 0 .5rem .6rem 0; border-bottom: 1px solid var(--c-line);
}
.quote-table td { padding: .5rem .5rem .5rem 0; border-bottom: 1px solid var(--c-line); font-size: .88rem; }
.quote-table tr[data-off="true"] { color: var(--c-muted); opacity: .55; }
.quote-cell-rate, .quote-cell-total { text-align: right; white-space: nowrap; }
.quote-cell-total { font-weight: 600; }
.quote-check { display: flex; align-items: center; gap: .5rem; cursor: pointer; min-height: 40px; }
.quote-check input { width: auto; min-height: 0; }
.quote-count {
	width: 4.5rem; padding: .35rem .5rem; border: 1px solid var(--c-line);
	border-radius: 6px; font-size: .88rem; min-height: 38px;
	background: var(--c-surface); color: var(--c-ink);
}
.quote-note { font-size: .82rem; margin: .9rem 0 0; }

.quote-summary {
	border: 1px solid var(--c-line); border-radius: var(--radius);
	padding: 1.25rem; background: var(--c-surface);
	position: sticky; top: 120px;
}
.quote-summary h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.quote-band {
	background: var(--dh-accent-soft, #f4efe8); border-radius: 8px;
	padding: .75rem .9rem; margin: 1rem 0 .75rem;
	display: flex; justify-content: space-between; align-items: center; gap: .75rem;
	font-size: .85rem; color: var(--c-muted);
}
.quote-band strong { color: var(--c-ink); font-size: .95rem; text-align: right; }
.quote-disclaimer { font-size: .78rem; margin: 0 0 1rem; }
.quote-actions { display: grid; gap: .6rem; }
.quote-actions__row { display: grid; gap: .6rem; grid-template-columns: 1fr 1fr; }
.quote-links-head { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin: 1.5rem 0 .6rem; }

@media (max-width: 1000px) { .quote-summary { position: static; } }

/* --------------------------------------------------------- Request pages */

.request-layout { display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr; align-items: start; }
@media (max-width: 900px) { .request-layout { grid-template-columns: 1fr; } }

.request-form__head { font-size: 1.05rem; margin: 0 0 1rem; }

.form-fieldset { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 1rem 1.25rem 1.25rem; margin: 0 0 1rem; }
.form-fieldset legend { font-size: .85rem; font-weight: 600; padding: 0 .4rem; }

.checkbox-grid { display: grid; gap: .3rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.checkbox-item {
	display: flex; align-items: center; gap: .5rem;
	font-size: .88rem; min-height: 40px; cursor: pointer;
}
.checkbox-item input { width: auto; min-height: 0; }

.field-error { color: var(--c-error); font-size: .8rem; margin: .35rem 0 0; }
[aria-invalid="true"] { border-color: var(--c-error) !important; }

.request-success {
	border: 1px solid var(--c-accent); border-radius: var(--radius);
	padding: 2rem 1.5rem; text-align: center; background: var(--dh-accent-soft, #f4efe8);
}
.request-success:focus { outline: 2px solid var(--c-accent); outline-offset: 3px; }
.request-success__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 50%;
	background: var(--c-accent); color: #fff; font-size: 1.4rem; margin-bottom: .75rem;
}
.request-success h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
.request-success p { font-size: .9rem; margin: 0 0 .75rem; }

.request-aside h2 { font-size: 1.05rem; margin: 0 0 1rem; }
.request-steps { margin: 0 0 1.75rem; padding: 0 0 0 1.2rem; }
.request-steps li { margin-bottom: .85rem; font-size: .88rem; }
.request-steps strong { display: block; }
.request-steps span { color: var(--c-muted); }

.request-callout {
	border: 1px solid var(--c-line); border-radius: var(--radius);
	padding: 1.25rem; background: var(--c-surface);
}
.request-callout h3 { font-size: .98rem; margin: 0 0 .5rem; }
.request-callout p { font-size: .87rem; color: var(--c-muted); margin: 0 0 1rem; }

/* ------------------------------------------------------------------ Gallery */

.gallery-filters { display: grid; gap: 1.25rem; margin: 0 0 1rem; }
.gallery-filters__label {
	font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
	color: var(--c-muted); margin: 0 0 .5rem;
}
.dh-filters button.dh-chip { font: inherit; font-size: .82rem; cursor: pointer; }

.gallery-grid {
	display: grid; gap: 1.25rem; list-style: none; margin: 1rem 0 0; padding: 0;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.gallery-card__btn {
	display: block; width: 100%; padding: 0; text-align: left; cursor: pointer;
	background: var(--c-surface); border: 1px solid var(--c-line);
	border-radius: var(--radius); overflow: hidden; font: inherit; color: inherit;
}
.gallery-card__btn:hover { border-color: var(--c-accent); box-shadow: var(--shadow); }
.gallery-card__btn img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }
.gallery-card__body { display: block; padding: .85rem 1rem 1rem; }
.gallery-card__title { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.gallery-card__meta { display: block; font-size: .8rem; color: var(--c-muted); }

/* ---------------------------------------------------------------- Lightbox */

.lightbox {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(35, 32, 28, .78);
	display: flex; align-items: center; justify-content: center;
	padding: 1rem; overflow-y: auto;
}
.lightbox[hidden] { display: none; }

.lightbox__inner {
	background: var(--c-surface); border-radius: var(--radius);
	max-width: 820px; width: 100%; max-height: 92vh; overflow-y: auto;
	position: relative;
}
.lightbox__inner img { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }

.lightbox__close {
	position: absolute; top: .5rem; inset-inline-end: .5rem; z-index: 2;
	width: 44px; height: 44px; border-radius: 50%;
	border: none; background: rgba(255, 255, 255, .92); color: var(--c-ink);
	font-size: 1.5rem; line-height: 1; cursor: pointer;
}

.lightbox__body { padding: 1.25rem 1.5rem 1.5rem; }
.lightbox__position { font-size: .76rem; color: var(--c-muted); margin: 0 0 .3rem; }
.lightbox__body h2 { font-size: 1.25rem; margin: 0 0 .3rem; }
.lightbox__meta { color: var(--c-muted); font-size: .88rem; margin: 0 0 .75rem; }
.lightbox__shop-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--c-muted); margin: 1.25rem 0 .5rem; }
.lightbox__nav { display: flex; gap: .6rem; margin-top: 1.25rem; }
.lightbox__nav .btn { flex: 1; }

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

.faq-group { font-size: 1rem; margin: 1.5rem 0 .75rem; }
.faq { border-top: 1px solid var(--c-line); max-width: 70ch; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
	cursor: pointer; padding: .9rem 0; font-weight: 500; font-size: .95rem;
	list-style: none; display: flex; justify-content: space-between; gap: 1rem;
	min-height: 44px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--c-accent); font-size: 1.2rem; flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 1rem; color: var(--c-muted); font-size: .9rem; }

/* ------------------------------------------------------------------- Hero */

.hero--compact { padding: 1.75rem 0; border-bottom: none; }

/* ------------------------------------------------------------------ Print */

@media print {
	.preview-bar, .site-header, .site-footer, .dh-call-fab,
	.quote-actions, .quote-links-head, #quote-links, .breadcrumb { display: none !important; }

	.quote-layout { grid-template-columns: 1fr; gap: 1rem; }
	.quote-summary { position: static; border: 2px solid #000; }
	.quote-fieldset { break-inside: avoid; }
	body { background: #fff; }
}

/* ------------------------------------------------- Responsive QA fixes */

/*
 * Grid items default to min-width:auto, so a child with a wide min-content —
 * the quote table is 480px at its narrowest — pushes its column past the
 * container and gives the whole page a horizontal scrollbar on a 360px phone.
 * Allowing these columns to shrink below their content lets the intended
 * inner scroll containers do their job instead.
 */
.quote-main, .quote-summary,
.request-layout > *, .shop-layout > *, .checkout-grid > * { min-width: 0; }

.quote-table-wrap { max-width: 100%; }

/* Finger-sized controls in the cart table and on section links. */
.cart-table__qty { min-height: 40px; padding: .5rem; }
.cart-table__remove { min-height: 40px; }
.site-brand { display: inline-flex; align-items: center; min-height: 44px; }
.section-head a { display: inline-flex; align-items: center; min-height: 40px; }

/*
 * Browsers give <fieldset> a default min-inline-size of min-content, which
 * ignores width:100% and lets the 480px-wide quote table stretch the whole
 * page on a phone. Resetting it lets the fieldset shrink so the table's own
 * scroll container handles the overflow.
 */
.quote-fieldset, .form-fieldset { min-inline-size: 0; }

/*
 * On a phone the quote table's rate column is the least useful of the four —
 * the shopper picked the finish level a moment ago and what they came for is
 * the line total. Dropping it lets item, quantity and total fit without a
 * sideways scroll, so no one has to swipe to find the number that matters.
 */
@media (max-width: 620px) {
	.quote-table { min-width: 300px; }
	.quote-table th:nth-child(3), .quote-cell-rate { display: none; }
}

/* ------------------------------------------------------- Product photos */

.product-media img { width: 100%; border-radius: 12px; aspect-ratio: 1; object-fit: cover; background: var(--c-surface); }

.product-thumbs {
	display: grid; gap: .6rem; list-style: none; margin: .7rem 0 0; padding: 0;
	grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
}
.product-thumb {
	display: block; width: 100%; padding: 0; cursor: pointer;
	background: none; border: 2px solid var(--c-line); border-radius: 8px;
	overflow: hidden; line-height: 0;
}
.product-thumb img { border-radius: 0; }
.product-thumb.is-active { border-color: var(--c-accent); }
.product-thumb:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
