/* ==========================================================================
   NOVIDO: content pages, forms, wishlist and shared polish.
   Uses the tokens defined in main.css.
   ========================================================================== */

/* --- Section headings: one display voice across the site ---------------- */

.section__title {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(26px, 2.2vw, 40px);
	letter-spacing: -.005em;
	line-height: 1.1;
}

.section__head { align-items: flex-end; margin-bottom: 24px; }

/* Row head: "View all" + arrows on one line (also on the homepage, where
   product.css is not loaded). */
.cat-row__actions {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-left: auto;
}
.cat-row__all {
	padding-bottom: 2px;
	border-bottom: 1px solid var(--c-ink);
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--c-ink);
	white-space: nowrap;
	transition: opacity .2s ease;
}
.cat-row__all:hover { opacity: .6; }

/* --- Promo banners: a visible call to action ----------------------------- */

.promo__cta {
	display: inline-block;
	margin-top: 14px;
	padding-bottom: 3px;
	border-bottom: 1px solid currentColor;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #fff;
	transition: opacity .2s ease;
}
.promo:hover .promo__cta { opacity: .75; }

/* --- Inner pages: editorial reading column ------------------------------ */

/* Not on basket / checkout / account, which need the full width. */
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .site-main .content-area {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 64px) 0 clamp(40px, 6vw, 96px);
}

.site-main .entry-header {
	margin-bottom: clamp(28px, 4vw, 48px);
	padding-bottom: clamp(20px, 3vw, 32px);
	border-bottom: 1px solid var(--c-line);
	text-align: center;
}

.site-main .entry-title {
	margin: 0;
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(34px, 4.2vw, 58px);
	line-height: 1.05;
	letter-spacing: -.01em;
	color: var(--c-ink);
}

.entry-content {
	font-size: 16px;
	line-height: 1.75;
	color: var(--c-body);
}

.entry-content > * + * { margin-top: 1em; }

.entry-content h2 {
	margin: 2.2em 0 .6em;
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(22px, 2vw, 28px);
	line-height: 1.2;
	color: var(--c-ink);
}

.entry-content h3 {
	margin: 1.8em 0 .4em;
	font-size: 16px;
	font-weight: 600;
	color: var(--c-ink);
}

.entry-content h2:first-child,
.entry-content h3:first-child { margin-top: 0; }

.entry-content p,
.entry-content ul,
.entry-content ol { margin-bottom: 0; }

.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .45em; }
.entry-content li::marker { color: var(--c-primary); }

.entry-content a {
	color: var(--c-ink);
	text-decoration: underline;
	text-decoration-color: var(--c-primary-300);
	text-underline-offset: 3px;
	transition: text-decoration-color .2s ease;
}
.entry-content a:hover { text-decoration-color: var(--c-primary); }

.entry-content strong { color: var(--c-ink); font-weight: 600; }
.entry-content em { color: var(--c-muted); }

.entry-content code {
	padding: 1px 6px;
	border-radius: 3px;
	background: var(--c-soft);
	font-size: .88em;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.entry-content th,
.entry-content td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--c-line);
	text-align: left;
}
.entry-content thead th {
	background: var(--c-soft);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-ink);
}
.entry-content .wp-block-table { margin: 1.4em 0; overflow-x: auto; }

/* Wishlist and other full-width tools inside a page. */
body .site-main .content-area:has(.wishlist) { max-width: var(--container); }

/* --- Forms ----------------------------------------------------------------*/

/* Honeypot: invisible to people, still in the DOM for bots. */
.form-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-left: 3px solid var(--c-primary);
	background: var(--c-primary-50);
	font-size: 14px;
	line-height: 1.5;
	color: var(--c-ink);
}
.form-notice--error { border-color: #b3261e; background: #fdf1f0; }

.contact-form {
	margin: 2em 0;
	padding: clamp(20px, 3vw, 36px);
	border: 1px solid var(--c-line);
	background: #fff;
}

.contact-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

.contact-form .contact-form__field { margin: 0 0 18px; }

.contact-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--c-ink);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #d9d1cf;
	border-radius: 0;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: var(--c-ink);
	transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--c-ink);
	box-shadow: 0 0 0 3px var(--c-primary-100);
}

.contact-form__note {
	margin: 0 0 20px;
	font-size: 13px;
	color: var(--c-muted);
}

.contact-form .btn { min-width: 200px; }

.newsletter .form-notice { margin-bottom: 12px; }

@media (max-width: 640px) {
	.contact-form__row { grid-template-columns: 1fr; }
	.contact-form .btn { width: 100%; }
}

/* --- WooCommerce order tracking form on the Order status page ------------ */

.entry-content .woocommerce-form-track-order .form-row { margin: 0 0 16px; }
.entry-content .woocommerce-form-track-order input.input-text {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #d9d1cf;
	font-size: 16px;
}
.entry-content .woocommerce-form-track-order .button {
	padding: 14px 32px;
	border: 0;
	background: var(--c-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}
.entry-content .woocommerce-form-track-order .button:hover { background: var(--c-primary-hover); }

/* --- Wishlist ------------------------------------------------------------ */

.wish-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	background: transparent;
	color: var(--c-ink);
	cursor: pointer;
	transition: color .2s ease, transform .2s ease, background .2s ease;
}
.wish-btn:active { transform: scale(.92); }
.wish-btn.is-on { color: var(--c-primary); }
.wish-btn.is-on .ico path { fill: currentColor; }

/* On cards: a round button in the top-left of the image. */
.wish-btn--card {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 1px 4px rgba(26, 20, 19, .12);
	opacity: 0;
}
.card:hover .wish-btn--card,
.wish-btn--card:focus-visible,
.wish-btn--card.is-on { opacity: 1; }
@media (hover: none) {
	.wish-btn--card { opacity: 1; }
}

/* On the product page: a full-width secondary action under "Add to basket". */
.wish-btn--pdp {
	width: 100%;
	margin-top: 10px;
	padding: 15px 20px;
	border: 1px solid var(--c-line);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.wish-btn--pdp:hover { border-color: var(--c-ink); }

.wishlist__loading { color: var(--c-muted); text-align: center; }
.wishlist__empty { padding: 40px 0; text-align: center; }
.wishlist__empty p { margin: 0 0 20px; font-size: 17px; }
.wishlist__grid:empty { display: none; }

/* --- 404 ----------------------------------------------------------------- */

.error-404 {
	padding: clamp(40px, 8vw, 120px) 0;
	text-align: center;
}
.error-404__code {
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(80px, 14vw, 180px);
	line-height: 1;
	color: var(--c-primary-200);
}
.error-404 h1 {
	margin: 10px 0 12px;
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(30px, 3.4vw, 46px);
}
.error-404 p { max-width: 520px; margin: 0 auto 28px; color: var(--c-body); }
.error-404__search {
	display: flex;
	max-width: 480px;
	margin: 0 auto 26px;
	border: 1px solid #d9d1cf;
}
.error-404__search input {
	flex: 1;
	min-width: 0;
	padding: 14px 16px;
	border: 0;
	font-size: 16px;
}
.error-404__search button {
	padding: 0 22px;
	border: 0;
	background: var(--c-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	cursor: pointer;
}
.error-404__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* --- Mobile menu: utility links + service note --------------------------- */

.mobile-nav__utility {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	margin: 18px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--c-line);
	list-style: none;
}
.mobile-nav__utility a {
	display: block;
	padding: 10px 0;
	font-size: 14px;
	color: var(--c-body);
}
.mobile-nav__note {
	margin: 14px 0 22px;
	padding: 12px 14px;
	background: var(--c-soft);
	font-size: 12px;
	letter-spacing: .04em;
	color: var(--c-ink);
	text-align: center;
}

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

.pdp-notices:empty { display: none; }
.pdp-notices .woocommerce-message,
.pdp-notices .woocommerce-error,
.pdp-notices .woocommerce-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	margin: 20px 0 0;
	padding: 14px 18px;
	border: 0;
	border-left: 3px solid var(--c-primary);
	background: var(--c-primary-50);
	list-style: none;
	font-size: 14px;
	color: var(--c-ink);
}
.pdp-notices .woocommerce-error { border-left-color: #b3261e; background: #fdf1f0; }
.pdp-notices .woocommerce-message::before,
.pdp-notices .woocommerce-error::before,
.pdp-notices .woocommerce-info::before { display: none; }
.pdp-notices .woocommerce-message .button {
	order: 2;
	padding: 10px 18px;
	background: var(--c-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

/* --- Basket & checkout (WooCommerce blocks) ------------------------------
   The block buttons inherited a dark grey fill with link-blue underlined
   text, so "Proceed to checkout" and "Place order" were barely readable. */

.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
	min-height: 54px;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--c-primary) !important;
	color: #fff !important;
	font-family: var(--font-sans);
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background .2s ease;
}
.wc-block-components-button:not(.is-link):hover,
.wc-block-components-button:not(.is-link):focus-visible {
	background: var(--c-primary-hover) !important;
	color: #fff !important;
}
.wc-block-components-button:not(.is-link) .wc-block-components-button__text {
	color: inherit;
	text-decoration: none;
}
.wc-block-components-button:not(.is-link):focus-visible {
	outline: 2px solid var(--c-ink);
	outline-offset: 2px;
}

.wc-block-cart,
.wc-block-checkout { color: var(--c-body); }

.wc-block-cart .wc-block-components-product-name,
.wc-block-checkout .wc-block-components-product-name {
	color: var(--c-ink);
	font-weight: 500;
	text-decoration: none;
}

.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: 22px;
	color: var(--c-ink);
}

.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-form .wc-block-components-text-input input,
.wc-blocks-components-select .wc-blocks-components-select__select {
	border-radius: 0 !important;
	border-color: #d9d1cf !important;
}
.wc-block-components-text-input.is-active input:focus,
.wc-block-components-text-input input:focus {
	border-color: var(--c-ink) !important;
	box-shadow: 0 0 0 1px var(--c-ink) !important;
}

/* Reassurance under the basket / checkout totals. */
.novido-trust {
	margin: 18px 0 0;
	padding: 16px 18px;
	background: var(--c-soft);
	list-style: none;
	font-size: 13px;
	line-height: 1.5;
	color: var(--c-ink);
}
.novido-trust li { display: flex; align-items: center; gap: 10px; }
.novido-trust li + li { margin-top: 10px; }
.novido-trust .ico { flex: none; color: var(--c-primary); }
.novido-trust--row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 40px;
	margin: 40px 0 10px;
	padding: 18px 20px;
}
.novido-trust--row li + li { margin-top: 0; }
.novido-trust a { color: inherit; text-decoration: none; }
.novido-trust a:hover { text-decoration: underline; }

/* WooCommerce's clearfix pseudo-elements become flex items inside the
   add-to-basket row and steal ~16px, so the button stopped short of the edge. */
.pdp form.cart::before,
.pdp form.cart::after { display: none !important; content: none !important; }

/* --- Card colour swatches: a few dots, then "+N" -------------------------- */

.swatches { align-items: center; gap: 6px; }

.swatch-more {
	display: inline-flex;
	align-items: center;
	height: 14px;
	padding: 0 2px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .02em;
	color: var(--c-muted);
	transition: color .2s ease;
}
.swatch-more:hover,
.swatch-more:focus-visible { color: var(--c-ink); }

/* Empty basket: heading, then the same cards as the rest of the shop. */
.wp-block-woocommerce-empty-cart-block { padding-bottom: 20px; }
.wp-block-woocommerce-empty-cart-block h2,
.wp-block-woocommerce-empty-cart-block .wp-block-heading {
	margin: 0 0 24px;
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: clamp(26px, 2.2vw, 36px);
}
.wp-block-woocommerce-empty-cart-block .product-grid { margin-top: 8px; text-align: left; }
.wp-block-woocommerce-empty-cart-block .wp-block-separator { margin: 28px auto; }
.wp-block-woocommerce-empty-cart-block a { color: var(--c-ink); }
.wp-block-woocommerce-empty-cart-block .card a,
.wp-block-woocommerce-empty-cart-block .card a:hover { text-decoration: none; box-shadow: none; background-image: none; }
.wp-block-woocommerce-empty-cart-block .card__title a { color: var(--c-ink); }

/* Footer legal line: company name is a quiet link. */
.site-info a { color: inherit; text-decoration: underline; text-decoration-color: var(--c-primary-300); text-underline-offset: 3px; }
.site-info a:hover { color: var(--c-ink); text-decoration-color: var(--c-primary); }


/* --- Pagination -------------------------------------------------------------
   WooCommerce's own stylesheet draws a lilac frame round the list and joins
   the numbers into one strip. These selectors match its specificity so the
   theme's version wins: separate, evenly spaced buttons in the brand colours. */

.woocommerce nav.woocommerce-pagination,
nav.woocommerce-pagination {
	margin: 56px 0 24px;
	text-align: center;
}

.woocommerce nav.woocommerce-pagination ul,
nav.woocommerce-pagination ul.page-numbers {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	list-style: none;
	white-space: normal;
}

.woocommerce nav.woocommerce-pagination ul li,
nav.woocommerce-pagination ul.page-numbers li {
	display: block;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: visible;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
nav.woocommerce-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--c-line);
	border-radius: 0;
	background: #fff;
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .02em;
	color: var(--c-ink);
	text-decoration: none;
	transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li a:focus-visible {
	border-color: var(--c-ink);
	background: #fff;
	color: var(--c-ink);
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a.current {
	border-color: var(--c-primary);
	background: var(--c-primary);
	color: #fff;
}

/* The "…" gap and the prev / next arrows. */
.woocommerce nav.woocommerce-pagination ul li span.dots {
	min-width: 28px;
	padding: 0;
	border-color: transparent;
	background: transparent;
	color: var(--c-muted);
}
.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce nav.woocommerce-pagination ul li a.next {
	font-size: 18px;
	padding: 0 16px;
}

@media (max-width: 640px) {
	.woocommerce nav.woocommerce-pagination ul { gap: 6px; }
	.woocommerce nav.woocommerce-pagination ul li a,
	.woocommerce nav.woocommerce-pagination ul li span { min-width: 40px; height: 40px; padding: 0 10px; font-size: 13px; }
}
