/* ==========================================================================
   Novido Firenze — base layer: tokens, typography, header, footer, shared UI
   ========================================================================== */

:root {
	/* Content width, matching the reference layout: 1840px inside 48px gutters. */
	--container: 1840px;
	--gutter: 48px;
	--grid-gap: 20px;

	/* --- Brand primary -------------------------------------------------
	   Deep oxblood. 700 is the brand value; the rest of the ramp is the
	   same hue opened up for tints and closed down for hover states, so
	   every lighter tone on the site stays on-brand instead of drifting
	   to an unrelated grey or green.

	   Contrast against white: 700 = 11.8:1, 500 = 6.6:1 (both pass AA for
	   body text). 400 and lighter are surface tones only — never put
	   normal-size text on them. */
	--c-primary-900: #380c0b;
	--c-primary-800: #501310;
	--c-primary-700: #6c1817;
	--c-primary-600: #822926;
	--c-primary-500: #9b403b;
	--c-primary-400: #b86661;
	--c-primary-300: #cc9994;
	--c-primary-200: #e2c8c5;
	--c-primary-100: #f4e8e6;
	--c-primary-50:  #fbf5f4;

	--c-primary: var(--c-primary-700);
	--c-primary-hover: var(--c-primary-800);

	/* --- Semantic tokens ------------------------------------------------
	   Neutrals are warmed off the brand hue: the old ramp was blue-grey,
	   which reads cold beside oxblood. */
	--c-ink: #1a1413;
	--c-body: #574c4b;
	/* 4.75:1 on white. The old muted grey sat at 3.3:1, under AA for the
	   struck-through prices and result counts that use it. */
	--c-muted: #7a7170;
	--c-line: #ece6e5;
	--c-soft: #f6f1f0;
	/* Product-image ground. Sampled from the catalogue photography itself —
	   11 of 14 shots sit on a #e7e4dd studio backdrop, so matching it means a
	   letterboxed or transparent product blends into the frame with no seam. */
	--c-media: #e7e4dd;
	--c-sage: var(--c-primary);
	/* Footer / provenance band. A warm stone rather than a tint of the brand
	   red — primary-100 reads as blush pink at this size, which undercuts the
	   leather palette. Kept a touch deeper than --c-soft so the band still
	   separates from the product-card backgrounds. */
	--c-panel: #f1ebe9;
	--c-green: var(--c-primary);
	--c-dark: var(--c-primary);
	--c-sale: var(--c-primary-500);

	--font-sans: 'Inter Tight', 'Inter', 'Segoe UI', system-ui, sans-serif;
	--font-serif: 'Bodoni Moda', 'Didot', 'Iowan Old Style', Georgia, serif;

	--header-h: 79px;
	--nav-h: 67px;
}

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

body {
	margin: 0;
	background: #fff;
	color: var(--c-body);
	font-family: var(--font-sans);
	font-size: 17px;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;

}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-ink); }

h1, h2, h3, h4 {
	margin: 0;
	color: var(--c-ink);
	font-weight: 600;
	line-height: 1.2;
}

p { margin: 0; }

/* Form controls do not inherit typography by default — without this, inputs
   and selects fall back to the browser's Arial/13px, which is why WooCommerce
   fields looked different from the rest of the site. */
button,
input,
select,
textarea,
optgroup {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

button { cursor: pointer; }

.container {
	width: 100%;
	/* --container is the content width; gutters sit outside it. */
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

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

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

.btn {
	display: inline-block;
	padding: 12px 28px;
	font-size: 12px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn--solid {
	background: var(--c-dark);
	color: #fff;
	border: 1px solid var(--c-dark);
}
.btn--solid:hover { background: var(--c-primary-hover); color: #fff; }

.btn--ghost {
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .55);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* --- Top bar ------------------------------------------------------------ */

.topbar {
	background: var(--c-primary);
	color: #fff;
	/* Utility bar sits a step below body text so it reads as secondary. */
	font-size: 15px;
}

.topbar__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 20px;
	min-height: 37px;
	padding-top: 6px;
	padding-bottom: 6px;
}

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: #fff;
}
.topbar__item:hover { color: #fff; opacity: .8; }

.topbar__item--center { justify-self: center; text-align: center; }
.topbar__item--center strong { font-weight: 600; text-decoration: underline; }
.topbar__item--right { justify-self: end; }

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

.site-header { background: #fff; }

/* Single row: brand left, nav centred, actions right. */
.header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
	border-bottom: 1px solid var(--c-line);
}

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

.site-title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: .01em;
	text-transform: uppercase;
	color: var(--c-ink);
	line-height: 1;
}

.custom-logo { max-height: 40px; width: auto; }

.header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 22px;
	color: var(--c-ink);
}

.action-btn {
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-ink);
	line-height: 0;
	transition: opacity .2s ease;
}
.action-btn:hover { opacity: .55; color: var(--c-ink); }

/* --- Search panel -------------------------------------------------------- */

.search-panel {
	display: none;
	background: #fff;
	border-bottom: 1px solid var(--c-line);
}
.search-panel[data-open="true"] { display: block; }

.search-panel__form {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 0;
	color: var(--c-muted);
}

.search-panel__form input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 22px;
	color: var(--c-ink);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.search-panel__form input::placeholder { color: var(--c-muted); }
.search-panel__form input::-webkit-search-cancel-button { display: none; }

.search-panel__close {
	flex: none;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-ink);
	font-size: 28px;
	line-height: 1;
	transition: opacity .2s ease;
}
.search-panel__close:hover { opacity: .55; }

.search-results { padding-bottom: 18px; }

.search-result {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 0;
	border-top: 1px solid var(--c-line);
}
.search-result:hover { background: var(--c-primary-50); }

.search-result img,
.search-result__ph {
	flex: none;
	width: 56px;
	height: 42px;
	object-fit: cover;
	background: var(--c-soft);
}

.search-result__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-result__title { font-size: 17px; color: var(--c-ink); }
.search-result__price { font-size: 15px; color: var(--c-muted); }

.search-results__more,
.search-results__empty {
	display: block;
	padding: 14px 0 4px;
	border-top: 1px solid var(--c-line);
	font-size: 16px;
	color: var(--c-muted);
}
.search-results__more { color: var(--c-ink); text-decoration: underline; }

/* Mobile menu trigger — replaces the nav row below the tablet breakpoint. */
.burger {
	display: none;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-left: -6px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-ink);
}

.burger span {
	position: relative;
	display: block;
	width: 20px;
	height: 1.5px;
	background: currentColor;
	transition: transform .25s ease, opacity .2s ease;
}
.burger span::before,
.burger span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 20px;
	height: 1.5px;
	background: currentColor;
	transition: transform .25s ease;
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.header-cart { position: relative; }

.header-cart__count {
	position: absolute;
	top: -6px;
	right: -8px;
	min-width: 15px;
	height: 15px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--c-green);
	color: #fff;
	font-size: 10px;
	line-height: 15px;
	text-align: center;
}

/* --- Primary navigation -------------------------------------------------- */

.primary-navigation { justify-self: center; }

.primary-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu a {
	display: block;
	padding: 8px 11px;
	font-size: 17px;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--c-ink);
	transition: opacity .2s ease;
}

.primary-menu a:hover { opacity: .6; }

.primary-menu .sub-menu { display: none; }

/* --- Mobile navigation panel --------------------------------------------- */

.mobile-nav {
	display: none;
	border-bottom: 1px solid var(--c-line);
	background: #fff;
}

.mobile-nav[data-open="true"] { display: block; }

.mobile-nav .primary-menu {
	flex-direction: column;
	align-items: stretch;
	padding: 8px 0 16px;
}

.mobile-nav .primary-menu a {
	padding: 13px 0;
	border-bottom: 1px solid var(--c-line);
	font-size: 17px;
}

.mobile-nav .primary-menu li:last-child a { border-bottom: 0; }

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

.site-footer { margin-top: 40px; }

.footer-panel {
	background: var(--c-panel);
	padding-top: 34px;
	overflow: hidden;
}

.footer-wordmark {
	display: block;
	/* 40% of the content width; the floor keeps it legible on phones. */
	width: 40%;
	min-width: 200px;
	height: auto;
	margin-inline: 0;
	user-select: none;
}

.footer-wordmark text {
	font-family: var(--font-sans);
	font-size: 168px;
	font-weight: 600;
	fill: #fff;
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr) 1.5fr;
	gap: 30px;
	padding: 34px 0 38px;
}

.footer-col__title,
.footer-col .widget-title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--c-ink);
}

.footer-list,
.footer-col .widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-list li,
.footer-col .widget li { margin: 0 0 8px; }

.footer-list a,
.footer-col .widget a {
	font-size: 14.5px;
	color: var(--c-body);
}
.footer-list a:hover { color: var(--c-ink); }

/* --c-muted clears AA on white but only reaches 4.0:1 on the panel, which sits
   a step darker — so text inside the panel uses --c-body instead. */
.footer-note {
	margin-bottom: 14px;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--c-body);
	max-width: 34ch;
}

.newsletter__row { display: flex; }

.newsletter-consent {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--c-body);
	cursor: pointer;
}

.newsletter-consent input {
	flex: none;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	accent-color: var(--c-ink);
}

.newsletter-consent a { color: var(--c-ink); text-decoration: underline; }

.newsletter input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--c-line);
	border-right: 0;
	background: #fff;
	font: inherit;
	font-size: 14.5px;
	color: var(--c-ink);
	outline: none;
}

.newsletter button {
	padding: 10px 22px;
	border: 1px solid var(--c-dark);
	background: var(--c-dark);
	color: #fff;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .14em;
}
.newsletter button:hover { background: var(--c-primary-hover); }

.footer-bottom {
	background: #fff;
	border-top: 1px solid var(--c-line);
	padding: 16px 0;
}

.footer-bottom__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px 28px;
	flex-wrap: wrap;
}

.footer-bottom__right {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}
.footer-menu {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}

.site-info {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 13px;
	line-height: 1.6;
	color: var(--c-muted);
}

.socials { display: flex; gap: 12px; color: var(--c-ink); }

/* --- Inner pages --------------------------------------------------------- */

.site-main {
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 30px var(--gutter);
}

.site-main--home { max-width: none; padding: 0; }

.entry-title { font-family: var(--font-serif); }

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1280px) {
	:root { --gutter: 32px; }
	.primary-menu a { padding: 8px 8px; }
	.header-actions { gap: 18px; }
}

/* Tablet and below: topbar and the standalone nav row collapse into a burger,
   mirroring the reference's single-row mobile header. */
@media (max-width: 980px) {
	:root { --gutter: 24px; --grid-gap: 14px; --header-h: 73px; }

	.topbar { display: none; }
	.primary-navigation { display: none; }
	.burger { display: grid; }
	.mobile-nav { display: none; }
	.mobile-nav[data-open="true"] { display: block; }

	.header__inner {
		grid-template-columns: auto 1fr auto;
		gap: 14px;
	}

	.header-actions { gap: 18px; }
	.search-panel__form input[type="search"] { font-size: 17px; }
	.footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	:root { --grid-gap: 12px; }
	.site-title { font-size: 22px; }
	.footer-cols { grid-template-columns: 1fr; gap: 24px; }
	.footer-bottom__inner { justify-content: center; text-align: center; }
}

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

/* The panel spans the full header width, so it positions against .site-header
   rather than the <li> it lives in. */
.site-header { position: relative; }
.primary-navigation,
.primary-menu,
.primary-menu > li { position: static; }

.mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 60;
	background: #fff;
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
	box-shadow: 0 18px 40px rgba(26, 20, 19, .07);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.primary-menu > li.has-mega:hover > .mega,
.primary-menu > li.has-mega:focus-within > .mega,
.primary-menu > li.has-mega[data-open="true"] > .mega {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.mega__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(240px, 19vw, 300px);
	gap: clamp(40px, 5vw, 88px);
	align-items: start;
	padding-top: 28px;
	padding-bottom: 34px;
}

/* Up to three columns share one row; the section label spans the top. */
.mega__cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: 0 clamp(24px, 3vw, 56px);
}

/* Section label above the columns. Plain text, never a link. */
.mega__heading {
	grid-column: 1 / -1;
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .16em;
	color: var(--c-muted);
}

/* Flat list of links (one per row) when children have no children of their own. */
.primary-menu a.mega-link {
	grid-column: 1 / -1;
	padding: 4px 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: none;
	letter-spacing: normal;
	color: var(--c-body);
	transition: color .18s ease;
}
.primary-menu a.mega-link:hover { color: var(--c-ink); opacity: 1; }

/* A child that has its own children becomes a titled column. */
.mega-col { min-width: 0; }

.primary-menu a.mega-col__title {
	display: block;
	margin-bottom: 8px;
	padding: 0 0 10px;
	border-bottom: 1px solid var(--c-line);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--c-ink);
}

.mega-col__list { margin: 0; padding: 0; list-style: none; }
.mega-col__list li { margin: 0; }
.primary-menu .mega-col__list a {
	padding: 4px 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	text-transform: none;
	letter-spacing: normal;
	color: var(--c-body);
}
.primary-menu .mega-col__list a:hover {
	color: var(--c-ink);
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* --- Promo panels ---------------------------------------------------------- */

/* One compact promo card on the right, as tall as the link columns. */
.mega__promos { display: grid; align-self: start; }

.mega-promo {
	position: relative;
	display: grid;
	align-items: end;
	justify-items: center;
	aspect-ratio: 4 / 4.8;
	overflow: hidden;
	background: var(--c-soft);
	color: #fff;
	text-align: center;
}

.mega-promo__media { position: absolute; inset: 0; }
.mega-promo__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }

/* A soft shade at the foot keeps the text readable on any photo. */
.mega-promo__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(26, 20, 19, .72) 0%, rgba(26, 20, 19, 0) 58%);
}

.mega-promo__body {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 0 16px 20px;
}

.mega-promo__kicker {
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .24em;
}

.primary-menu .mega-promo__title {
	font-family: var(--font-serif);
	font-style: italic;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	font-size: clamp(20px, 1.5vw, 26px);
	line-height: 1.1;
}

.primary-menu a.mega-promo__cta {
	margin-top: 8px;
	padding: 10px 20px;
	background: var(--c-primary);
	color: #fff;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .14em;
}

/* Image-only panel (no subtitle set) keeps the same card size. */
.mega-promo--bare { min-height: 0; }

/* --- Mobile: mega panels collapse away ------------------------------------- */

@media (max-width: 980px) {
	.mega { display: none; }
}

/* Child links inside the mobile burger panel. */
.mobile-nav .mobile-sub {
	margin: 0 0 6px;
	padding: 2px 0 8px 16px;
	list-style: none;
	border-left: 1px solid var(--c-line);
}

.mobile-nav .mobile-sub li { margin: 0; }

.mobile-nav .mobile-sub a {
	display: block;
	padding: 9px 0;
	border: 0;
	font-size: 15px;
	text-transform: none;
	letter-spacing: normal;
	color: var(--c-body);
}
.mobile-nav .mobile-sub a:hover { color: var(--c-ink); }

/* --- Search panel: refined UK-brand look ---------------------------------- */
.search-panel { box-shadow: 0 18px 40px rgba(26, 10, 10, .08); border-bottom: 0; }
.search-panel > .container { max-width: 860px; padding-top: 36px; padding-bottom: 36px; }
.search-panel__form {
	position: relative; padding: 0 0 0 18px; gap: 12px;
	border: 1px solid #d9d0ce; border-radius: 3px; background: #fff;
	transition: border-color .2s, box-shadow .2s;
}
.search-panel__form:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-100); }
.search-panel__icon { display: inline-flex; color: var(--c-muted); }
.search-panel__form input[type="search"] { font-size: 18px; height: 60px; letter-spacing: .01em; }
.search-panel__form input::placeholder { color: #9a8f8d; font-style: normal; }
.search-panel__submit {
	flex: none; height: 60px; padding: 0 30px; border: 0; border-radius: 0 2px 2px 0;
	background: var(--c-primary); color: #fff; font: inherit; font-size: 12px; font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: background .2s;
}
.search-panel__submit:hover { background: var(--c-primary-hover); }
.search-panel__close { position: absolute; top: -26px; right: 0; width: 28px; height: 28px; font-size: 24px; color: var(--c-muted); }
.search-panel__suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 0; font-size: 14px; }
.search-panel__suggest span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; margin-right: 6px; }
.search-panel__suggest a { padding: 7px 16px; border: 1px solid var(--c-line); border-radius: 999px; color: var(--c-ink); text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.search-panel__suggest a:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-50); }
.search-results { padding-bottom: 0; margin-top: 12px; }
.search-result { padding: 12px 8px; border-top: 1px solid var(--c-line); }
.search-result img, .search-result__ph { width: 60px; height: 60px; border-radius: 2px; }
.search-result__title { font-size: 16px; font-weight: 500; }
.search-result__price { font-size: 14px; color: var(--c-primary); font-weight: 600; }
.search-results__more { display: block; text-align: center; padding: 18px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; font-weight: 600; color: var(--c-primary); }
@media (max-width: 600px) {
	.search-panel > .container { padding-top: 40px; padding-bottom: 24px; }
	.search-panel__submit { padding: 0 16px; }
	.search-panel__form input[type="search"] { font-size: 16px; }
}

/* Footer legal line: one continuous line (wraps only when the screen is narrow) */
.site-info { display: block; margin: 0; }
.site-info > span { display: inline; }
.site-info > span + span::before { content: " "; }
@media (min-width: 1100px) { .site-info { white-space: nowrap; } }
