/* ==========================================================================
   De Corbie — modern layer  (staging: new.decorbie.be)
   Loaded after the Almaira parent theme. Purely additive: typography, colour,
   spacing, and component polish. No structural layout is rewritten, so the
   theme's templates and page builder content keep working.

   TO SWAP THE TYPE PAIRING: change --dc-display / --dc-body below. The rest of
   the sheet references only those two variables.
   ========================================================================== */

:root {
	/* --- brand palette (extended from the existing #151515 / #dd9933 / #9e9d89) --- */
	--dc-ink:        #151515;
	--dc-ink-2:      #2b2b29;
	--dc-muted:      #6d6d66;
	--dc-gold:       #dd9933;
	--dc-gold-deep:  #b8781f;
	--dc-sage:       #9e9d89;
	--dc-cream:      #faf8f5;
	--dc-paper:      #ffffff;
	--dc-line:       rgba(21, 21, 21, 0.10);
	--dc-line-soft:  rgba(21, 21, 21, 0.06);

	/* --- type --- */
	--dc-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
	--dc-body:    'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* fluid scale: comfortable on phones, generous on desktop */
	--dc-h1: clamp(2.15rem, 1.30rem + 3.6vw, 4.25rem);
	--dc-h2: clamp(1.70rem, 1.15rem + 2.3vw, 2.90rem);
	--dc-h3: clamp(1.30rem, 1.05rem + 1.1vw, 1.90rem);
	--dc-h4: clamp(1.10rem, 1.00rem + 0.5vw, 1.35rem);

	/* --- rhythm --- */
	--dc-radius:    14px;
	--dc-radius-sm: 10px;
	--dc-shadow:      0 1px 2px rgba(21,21,21,.04), 0 8px 24px rgba(21,21,21,.06);
	--dc-shadow-lift: 0 2px 6px rgba(21,21,21,.06), 0 18px 44px rgba(21,21,21,.13);
	--dc-ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   1. Foundations
   -------------------------------------------------------------------------- */

body,
button, input, select, textarea,
.woocommerce, .woocommerce-page {
	font-family: var(--dc-body);
	color: var(--dc-ink-2);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: 'kern' 1, 'liga' 1;
}

body {
	font-size: 1.0625rem;      /* 17px — Lato at 14/15px was the main "cheap" tell */
	line-height: 1.65;
	letter-spacing: .002em;
	background: var(--dc-cream);
}

::selection { background: var(--dc-gold); color: #fff; }

/* Keyboard focus that is visible but not ugly. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.button:focus-visible {
	outline: 2px solid var(--dc-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

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

/* --------------------------------------------------------------------------
   2. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.entry-title, .product_title,
.th-slider-bigheading, .category-side-title,
.widget-title, .woocommerce-loop-product__title {
	font-family: var(--dc-display);
	color: var(--dc-ink);
	font-weight: 600;
	/* Fraunces is an optical-size variable face; "soft" + a touch of wonk gives
	   it warmth without tipping into novelty. */
	font-variation-settings: 'SOFT' 24, 'WONK' 0;
	letter-spacing: -0.015em;
	line-height: 1.12;
	text-wrap: balance;
}

h1, .entry-title, .product_title { font-size: var(--dc-h1); font-weight: 700; }
h2 { font-size: var(--dc-h2); }
h3 { font-size: var(--dc-h3); }
h4 { font-size: var(--dc-h4); }

h1 + p, h2 + p, h3 + p { margin-top: .6em; }
p { max-width: 72ch; }             /* readable measure */

/* Section headings on the front page get a small gold rule instead of the
   default flat text — cheap way to make the page feel composed. */
.th-slider-bigheading,
.category-side-title,
.thunk-frontpage-wrapper h2.heading {
	position: relative;
	padding-bottom: .5em;
	margin-bottom: 1.1em;
}
.th-slider-bigheading::after,
.category-side-title::after,
.thunk-frontpage-wrapper h2.heading::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	width: 64px; height: 3px;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--dc-gold), var(--dc-sage));
}
.thunk-frontpage-wrapper .text-center .th-slider-bigheading::after,
.thunk-frontpage-wrapper h2.heading.text-center::after { left: 50%; transform: translateX(-50%); }

/* Sidebar/footer widget titles: small, spaced caps read as "designed". */
.widget-title {
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	font-family: var(--dc-body);
	color: var(--dc-ink);
}

a { color: var(--dc-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--dc-gold-deep); }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */

.button,
a.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
	font-family: var(--dc-body);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .10em;
	text-transform: uppercase;
	line-height: 1;
	padding: 1.05em 1.9em;
	border: 1px solid var(--dc-ink);
	border-radius: 999px;
	background: var(--dc-ink);
	color: #fff;
	box-shadow: none;
	transition: background .28s var(--dc-ease), color .28s var(--dc-ease),
	            border-color .28s var(--dc-ease), transform .28s var(--dc-ease);
}

.button:hover,
a.button:hover,
button.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
	background: var(--dc-gold);
	border-color: var(--dc-gold);
	color: #fff;
	transform: translateY(-2px);
}

/* Secondary / outline treatment */
.woocommerce a.button.alt.wc-forward,
.woocommerce .widget_shopping_cart a.button:not(.checkout) {
	background: transparent;
	color: var(--dc-ink);
}
.woocommerce a.button.alt.wc-forward:hover,
.woocommerce .widget_shopping_cart a.button:not(.checkout):hover {
	background: var(--dc-ink);
	color: #fff;
}

/* --------------------------------------------------------------------------
   4. Product cards  — the single biggest visual upgrade on a shop
   -------------------------------------------------------------------------- */

/* The card is ALWAYS li.product — on the shop archive and on the front page's
   isotope grid alike. The inner .thunk-product is only a layout column (see
   §4b); drawing chrome on both is what produced nested boxes. */
li.product {
	background: var(--dc-paper);
	border: 1px solid var(--dc-line-soft);
	border-radius: var(--dc-radius);
	padding: 14px 14px 18px;
	box-shadow: 0 1px 2px rgba(21,21,21,.03);
	display: flex;
	flex-direction: column;
	transition: transform .35s var(--dc-ease), box-shadow .35s var(--dc-ease),
	            border-color .35s var(--dc-ease);
}

li.product:hover {
	transform: translateY(-6px);
	box-shadow: var(--dc-shadow-lift);
	border-color: transparent;
}

/* Widget/cart product lists are not cards. */
.widget li.product,
.widget_shopping_cart li.product,
.woocommerce .widget li.product {
	background: none;
	border: 0;
	box-shadow: none;
	border-radius: 0;
	padding: 0;
	display: block;
	transform: none;
}

/* Product photography is mixed (white-background JPGs and cut-out PNGs), so
   contain rather than crop, on a neutral tile of fixed ratio. */
.woocommerce ul.products li.product a img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	width: 100%;
	height: auto;
	margin-bottom: 1em;
	border-radius: var(--dc-radius-sm);
	background: var(--dc-cream);
	transition: transform .5s var(--dc-ease);
}
.woocommerce ul.products li.product:hover a img { transform: scale(1.045); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--dc-display);
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--dc-ink);
	padding: 0;
	margin: 0 0 .35em;
}

/* Push price + button to the bottom so cards in a row line up. */
.woocommerce ul.products li.product .price { margin-top: auto; }

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-family: var(--dc-body);
	font-weight: 700;
	font-size: 1.06rem;
	color: var(--dc-ink);
	font-variant-numeric: tabular-nums;
}
.woocommerce ul.products li.product .price del { color: var(--dc-muted); font-weight: 500; opacity: 1; }
.woocommerce ul.products li.product .price ins { color: var(--dc-gold-deep); text-decoration: none; }

/* Sale flash as a modern pill */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	background: var(--dc-gold);
	color: #fff;
	font-family: var(--dc-body);
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	min-height: 0;
	min-width: 0;
	line-height: 1;
	padding: .62em 1em;
	border-radius: 999px;
	top: 18px; left: 18px;
	right: auto; margin: 0;
}

/* Card add-to-cart: compact, full width, secondary until hover. */
.woocommerce ul.products li.product .button {
	display: block;
	width: 100%;
	margin-top: 1em;
	padding: .95em 1em;
	background: transparent;
	color: var(--dc-ink);
	border-color: var(--dc-line);
}
.woocommerce ul.products li.product:hover .button {
	background: var(--dc-ink);
	border-color: var(--dc-ink);
	color: #fff;
}
.woocommerce ul.products li.product .button:hover {
	background: var(--dc-gold) !important;
	border-color: var(--dc-gold) !important;
	transform: none;
}

/* Star ratings in brand gold rather than the WooCommerce default. */
.woocommerce .star-rating span::before,
.woocommerce p.stars a::before { color: var(--dc-gold); }

/* --------------------------------------------------------------------------
   4b. The theme's own product tiles (front page, "featured" isotope grids,
       swiper carousels). These are NOT inside ul.products and their <li> is
       positioned by isotope, so the card is drawn on the inner .thunk-product
       wrapper — isotope's measured element is left untouched.
   -------------------------------------------------------------------------- */

/* Layout column only — no background/border/padding. The card chrome lives on
   li.product (§4). flex:1 makes it fill the stretched grid item, which is what
   stops a short card from leaving dead space under its price. */
.thunk-product {
	background: none;
	border: 0;
	padding: 0;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.thunk-product-image {
	border-radius: var(--dc-radius-sm);
	overflow: hidden;
	background: var(--dc-cream);
}
.thunk-product-image img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	width: 100%;
	height: auto;
	transition: transform .5s var(--dc-ease);
}
.thunk-product:hover .thunk-product-image img { transform: scale(1.045); }

.thunk-product-content {
	padding-top: .9em;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}
/* ---- Title clamp -------------------------------------------------------
   The parent theme ships a broken clamp on this element:

       width: 70%;  max-height: 20px;  -webkit-line-clamp: 1;

   ...with no `display:-webkit-box` and no `overflow:hidden`, so line-clamp
   never engages and the box is capped at 20px while the text keeps painting
   downwards — straight over the price underneath. Any title longer than one
   line collided. Restated here as a real two-line clamp; the selector
   deliberately mirrors the theme's own so source order settles it.        */
.woocommerce ul.products li.product .thunk-product .woocommerce-loop-product__title,
.thunk-product .woocommerce-loop-product__title,
.thunk-product .woocommerce-loop-product__title a,
.thunk-product-content h2,
.thunk-product-content h3 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-height: none;
	width: 100%;
	font-family: var(--dc-display);
	font-size: 1.02rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.01em;
	margin: 0 0 .4em;
	/* Reserve both lines so every card in a row breaks at the same place. */
	min-height: calc(2 * 1.3em);
}
.thunk-product .woocommerce-loop-product__title a {
	min-height: 0;
	margin: 0;
	display: inline;
}
.thunk-product-content .price {
	margin-top: auto;
	font-family: var(--dc-body);
	font-weight: 700;
	color: var(--dc-ink);
	font-variant-numeric: tabular-nums;
}
.thunk-product-content .price del { color: var(--dc-muted); font-weight: 500; opacity: 1; }
.thunk-product-content .price ins { color: var(--dc-gold-deep); text-decoration: none; }

/* --------------------------------------------------------------------------
   5. Single product
   -------------------------------------------------------------------------- */

.woocommerce div.product .product_title {
	margin-bottom: .25em;
}
.woocommerce div.product .woocommerce-product-rating { margin-bottom: 1.2em; }

.woocommerce div.product div.images img {
	border-radius: var(--dc-radius);
	background: var(--dc-paper);
}

.woocommerce div.product .summary > * + * { margin-top: 1.1em; }

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	font-size: 1.85rem;
	color: var(--dc-ink);
	letter-spacing: -.02em;
}

.woocommerce div.product form.cart div.quantity input.qty,
.woocommerce .quantity input.qty {
	border: 1px solid var(--dc-line);
	border-radius: 999px;
	padding: .85em .6em;
	background: var(--dc-paper);
	font-weight: 600;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	border-bottom: 1px solid var(--dc-line);
	padding: 0;
	margin-bottom: 1.6em;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0 1.8em 0 0;
	padding: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	font-family: var(--dc-body);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dc-muted);
	padding: .9em 0;
	display: block;
	border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--dc-ink);
	border-bottom-color: var(--dc-gold);
}

/* --------------------------------------------------------------------------
   6. Forms, notices, breadcrumbs
   -------------------------------------------------------------------------- */

input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="search"], input[type="number"],
select, textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	border: 1px solid var(--dc-line);
	border-radius: var(--dc-radius-sm);
	padding: .85em 1em;
	background: var(--dc-paper);
	color: var(--dc-ink);
	font-family: var(--dc-body);
	font-size: 1rem;
	transition: border-color .2s var(--dc-ease), box-shadow .2s var(--dc-ease);
}
input:focus, select:focus, textarea:focus {
	border-color: var(--dc-gold);
	box-shadow: 0 0 0 3px rgba(221, 153, 51, .16);
	outline: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-top: 0;
	border-left: 3px solid var(--dc-gold);
	border-radius: var(--dc-radius-sm);
	background: var(--dc-paper);
	box-shadow: var(--dc-shadow);
	color: var(--dc-ink-2);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--dc-gold); }
.woocommerce-error { border-left-color: #c0392b; }

.woocommerce .woocommerce-breadcrumb,
.trail-items, .breadcrumbs {
	font-size: .84rem;
	color: var(--dc-muted);
	letter-spacing: .02em;
	margin-bottom: 1.6em;
}
.woocommerce .woocommerce-breadcrumb a { color: var(--dc-muted); }
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--dc-gold-deep); }

/* --------------------------------------------------------------------------
   7. Navigation polish — animated underline instead of a flat hover colour
   -------------------------------------------------------------------------- */

.main-navigation a,
.thunk-menu a,
nav.navbar a {
	font-family: var(--dc-body);
	font-weight: 600;
	letter-spacing: .04em;
	position: relative;
}
.main-navigation li > a::after,
.thunk-menu li > a::after {
	content: '';
	position: absolute;
	left: 0; bottom: -.35em;
	width: 100%; height: 2px;
	background: var(--dc-gold);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .32s var(--dc-ease);
}
.main-navigation li > a:hover::after,
.main-navigation li.current-menu-item > a::after,
.thunk-menu li > a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* --------------------------------------------------------------------------
   8. Grid rhythm + mobile
   -------------------------------------------------------------------------- */

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 26px;
	margin: 0 0 2.5em;
}
/* Neutralise the theme's float/percentage widths now that this is a grid. */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important;
	float: none !important;
	margin: 0 !important;
	clear: none !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content: none !important; }

@media (max-width: 640px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
		gap: 14px;
	}
	.woocommerce ul.products li.product { padding: 10px 10px 16px; }
	.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: .92rem; }
	body { font-size: 1rem; }
}

/* Footer: let it breathe and sit on ink rather than mid-grey. */
.site-footer, footer.thunk-footer, .thunk-footer-wrapper, .thunk-footer {
	background: var(--dc-ink);
	color: rgba(255, 255, 255, .74);
}
.site-footer a, footer.thunk-footer a, .thunk-footer-wrapper a, .thunk-footer a { color: rgba(255,255,255,.74); }
.site-footer a:hover, footer.thunk-footer a:hover, .thunk-footer-wrapper a:hover, .thunk-footer a:hover { color: var(--dc-gold); }
.site-footer .widget-title, footer.thunk-footer .widget-title, .thunk-footer .widget-title { color: #fff; }

/* ==========================================================================
   9. THE FRONT PAGE — hero, categories, brands, USP bar
   The Almaira front page is assembled from `thunk-*` sections. Everything
   below targets those by name. Note that .thunk-category-wrapper and
   .thunk-brands-wrapper are owl-carousels: style the *items*, never put
   layout (grid/float/width) on the wrapper or the carousel breaks.
   ========================================================================== */

/* --- 9.1 Hero -------------------------------------------------------------
   Editorial treatment: a dark scrim so white type always passes contrast, an
   oversized Fraunces headline, a letterspaced gold eyebrow, and a very slow
   zoom on the background so the section feels alive while still.            */

.thunk-slider-section { position: relative; overflow: hidden; }

.th-slide-bgimg {
	min-height: clamp(420px, 68vh, 760px);
	background-size: cover;
	background-position: center;
	position: relative;
	animation: dc-kenburns 22s ease-out both;
}
@keyframes dc-kenburns {
	from { transform: scale(1.0); }
	to   { transform: scale(1.075); }
}
@media (prefers-reduced-motion: reduce) {
	.th-slide-bgimg { animation: none; }
}

/* Scrim. The caption is vertically centred, and these hero photos are bright
   salon interiors, so a purely bottom-weighted gradient left the headline
   washed out mid-frame. A flat base tint guarantees contrast wherever the
   caption lands, with gradients on top for depth. */
.th-slide-bgimg::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(21,21,21,.72) 0%, rgba(21,21,21,.30) 55%, rgba(21,21,21,.18) 100%),
		linear-gradient(to right, rgba(21,21,21,.42) 0%, rgba(21,21,21,.10) 65%),
		rgba(21, 21, 21, .30);
	pointer-events: none;
}

.th-slider-caption { position: relative; z-index: 2; }

.th-slider-content { max-width: 46rem; }

.th-slider-smallheading {
	font-family: var(--dc-body);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--dc-gold);
	margin-bottom: 1.1em;
	display: inline-flex;
	align-items: center;
	gap: .9em;
}
/* Small gold rule leading into the eyebrow. */
.th-slider-smallheading::before {
	content: '';
	width: 42px; height: 2px;
	background: var(--dc-gold);
	display: inline-block;
	flex: none;
}

.th-slider-bigheading {
	font-family: var(--dc-display);
	font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.6rem);
	font-weight: 700;
	font-variation-settings: 'SOFT' 30, 'WONK' 1;
	line-height: 1.02;
	letter-spacing: -.028em;
	color: #fff;
	text-wrap: balance;
	margin-bottom: .38em;
	text-shadow: 0 2px 30px rgba(0,0,0,.28);
}
/* Kill the generic gold underline from §2 — the hero has its own eyebrow. */
.th-slider-bigheading::after { content: none; }

.th-slider-caption p { color: rgba(255,255,255,.86); font-size: 1.1rem; max-width: 40rem; }

.th-slider-button.th-button,
.th-slider-button {
	background: var(--dc-gold);
	border-color: var(--dc-gold);
	color: #fff;
	padding: 1.15em 2.5em;
	margin-top: 1.5em;
}
.th-slider-button.th-button:hover,
.th-slider-button:hover {
	background: #fff;
	border-color: #fff;
	color: var(--dc-ink);
	transform: translateY(-2px);
}

/* --- 9.2 Shared button (146 instances of .th-button on the front page) ---- */

.th-button {
	font-family: var(--dc-body);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .11em;
	text-transform: uppercase;
	line-height: 1;
	border-radius: 999px;
	border: 1px solid var(--dc-ink);
	background: var(--dc-ink);
	color: #fff;
	transition: background .28s var(--dc-ease), color .28s var(--dc-ease),
	            border-color .28s var(--dc-ease), transform .28s var(--dc-ease);
}
.th-button:hover {
	background: var(--dc-gold);
	border-color: var(--dc-gold);
	color: #fff;
}

/* --- 9.3 Section rhythm ---------------------------------------------------
   Generous, consistent vertical space is most of what separates a "template"
   from a designed page. Alternating paper/cream gives the page a cadence.   */

.thunk-slider-section,
.thunk-category-section,
.thunk-products-section,
.thunk-brands-section,
.thunk-shipping,
.thunk-cust-sect-wrapper {
	position: relative;
}

.thunk-category-section,
.thunk-products-section,
.thunk-brands-section,
.thunk-cust-sect-wrapper {
	padding-block: clamp(3.5rem, 2rem + 5vw, 7rem);
}

.thunk-category-section { background: var(--dc-paper); }
.thunk-products-section { background: var(--dc-cream); }
.thunk-brands-section   { background: var(--dc-paper); }

/* --- 9.4 USP / ribbon bar -------------------------------------------------
   Small, spaced, uppercase, gold icons, hairline dividers.                  */

/* NB: .thunk-ribbon-wrapper is NOT a thin strip — it is the full "Hi there!"
   welcome block. The theme paints it with a customizer background image and
   sets dark text (#242424) on top. That background is currently unset on this
   site, so giving the wrapper an ink background produced dark-on-dark,
   unreadable copy. Leave its background alone; only touch typography. */
.thunk-ribbon .heading {
	font-family: var(--dc-display);
	letter-spacing: -.02em;
	line-height: 1.1;
}
.thunk-ribbon .rbn-desc,
#th-ribbon .rbn-desc { font-size: 1.03rem; }

/* The shipping/USP strip: a light bordered band, gold icon. Kept light for the
   same reason — its text colour is theme-controlled and may be dark. */
.thunk-shipping {
	border-top: 1px solid var(--dc-line-soft);
	border-bottom: 1px solid var(--dc-line-soft);
	background: var(--dc-paper);
}
.thunk-shipping-post {
	font-family: var(--dc-body);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
}
.thunk-shipping-post i,
.thunk-shipping-post .th-icon { color: var(--dc-gold); }

/* --- 9.5 Category tiles ---------------------------------------------------
   Image, dark gradient, name over the top, zoom + gold rule on hover.       */

.thunk-category {
	position: relative;
	overflow: hidden;
	border-radius: var(--dc-radius);
	isolation: isolate;
}
.thunk-category img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	transition: transform .7s var(--dc-ease);
}
.thunk-category:hover img { transform: scale(1.07); }

.thunk-category::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(21,21,21,.82) 0%, rgba(21,21,21,.22) 48%, transparent 78%);
	transition: opacity .4s var(--dc-ease);
	z-index: 1;
	pointer-events: none;
}
.thunk-category:hover::after { opacity: .92; }

.thunk-category h2,
.thunk-category h3,
.thunk-category h4,
.thunk-category .thunk-category-list,
.thunk-category a {
	position: relative;
	z-index: 2;
	color: #fff;
}
.thunk-category h2,
.thunk-category h3,
.thunk-category h4 {
	font-family: var(--dc-display);
	font-weight: 600;
	letter-spacing: -.015em;
}
/* Gold rule that draws in under the category name on hover. */
.thunk-category h2::after,
.thunk-category h3::after,
.thunk-category h4::after {
	content: '';
	display: block;
	width: 46px; height: 2px;
	margin-top: .6em;
	background: var(--dc-gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .42s var(--dc-ease);
}
.thunk-category:hover h2::after,
.thunk-category:hover h3::after,
.thunk-category:hover h4::after { transform: scaleX(1); }

/* --- 9.6 Brand strip ------------------------------------------------------
   Logos sit quiet until hovered, so they read as a set rather than noise.   */

.thunk-brands img {
	filter: grayscale(1);
	opacity: .55;
	transition: filter .35s var(--dc-ease), opacity .35s var(--dc-ease), transform .35s var(--dc-ease);
	max-width: 100%;
	height: auto;
}
.thunk-brands:hover img {
	filter: grayscale(0);
	opacity: 1;
	transform: scale(1.04);
}

/* --- 9.7 Quick-view / hover actions on tiles ------------------------------ */

.thunk-quik,
.thunk-quickview {
	background: rgba(255,255,255,.94);
	color: var(--dc-ink);
	border-radius: 999px;
	box-shadow: var(--dc-shadow);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s var(--dc-ease), transform .3s var(--dc-ease),
	            background .3s var(--dc-ease), color .3s var(--dc-ease);
}
.thunk-product:hover .thunk-quik,
.thunk-product:hover .thunk-quickview,
li.product:hover .thunk-quik,
li.product:hover .thunk-quickview {
	opacity: 1;
	transform: translateY(0);
}
.thunk-quik:hover,
.thunk-quickview:hover { background: var(--dc-gold); color: #fff; }

/* Touch devices have no hover — never hide the action there. */
@media (hover: none) {
	.thunk-quik, .thunk-quickview { opacity: 1; transform: none; }
}

/* --- 9.8 Load more -------------------------------------------------------- */

.thunk-load-more-wrap { text-align: center; margin-top: 2.5rem; }
.thunk-load-more-wrap .th-button,
.thunk-load-more-wrap a {
	background: transparent;
	color: var(--dc-ink);
	border: 1px solid var(--dc-ink);
	padding: 1.05em 2.6em;
	border-radius: 999px;
	display: inline-block;
}
.thunk-load-more-wrap .th-button:hover,
.thunk-load-more-wrap a:hover { background: var(--dc-ink); color: #fff; }

/* ==========================================================================
   10. Header
   Sticky + blurred, desktop only: on phones a sticky header eats too much of
   a small viewport, and overlap bugs are hardest to see there.
   ========================================================================== */

@media (min-width: 992px) {
	.main-header-bar {
		position: sticky;
		top: 0;
		z-index: 500;
		background: rgba(250, 248, 245, .86);
		-webkit-backdrop-filter: saturate(180%) blur(14px);
		backdrop-filter: saturate(180%) blur(14px);
		border-bottom: 1px solid var(--dc-line-soft);
		transition: box-shadow .3s var(--dc-ease);
	}
	.main-header-bar:hover { box-shadow: 0 6px 24px rgba(21,21,21,.06); }
}

.almaira-menu a,
.almaira-menu-link {
	font-family: var(--dc-body);
	font-size: .84rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--dc-ink);
}
.almaira-menu > li > a { position: relative; }
.almaira-menu > li > a::after {
	content: '';
	position: absolute;
	left: 0; bottom: -.3em;
	width: 100%; height: 2px;
	background: var(--dc-gold);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .32s var(--dc-ease);
}
.almaira-menu > li > a:hover::after,
.almaira-menu > li.current-menu-item > a::after {
	transform: scaleX(1);
	transform-origin: left;
}

.header-icon a, .header-icon i { color: var(--dc-ink); transition: color .25s var(--dc-ease); }
.header-icon a:hover, .header-icon a:hover i { color: var(--dc-gold); }

.thunk-logo img { transition: opacity .25s var(--dc-ease); }
.thunk-logo a:hover img { opacity: .82; }

/* ==========================================================================
   11. Finishing touches
   ========================================================================== */

/* Anchor targets clear the sticky header. */
:target { scroll-margin-top: 6rem; }

/* Images never overflow their column. */
img { max-width: 100%; height: auto; }

/* ==========================================================================
   12. Shop archive
   The grid was reading as white cards on a white page — nothing separated a
   product from the background. Cream page + white cards is what makes the
   grid legible, and it costs nothing.
   ========================================================================== */

.site-content,
.site-main,
.woocommerce-page .site-content {
	background: var(--dc-cream);
}

/* --- duplicated archive title -------------------------------------------
   Category pages print the term name twice: once as <h2 class="thunk-page-top-
   title"> over the banner image, and again as the <h1 class="page-title">
   below it — plus a second, always-empty .thunk-page-top-title. The banner
   heading is the one that reads as designed, so the H1 is kept for structure
   but taken out of the visual flow, and the empty node is removed.        */
.thunk-page-top-title:empty { display: none; }

/* Only collapse the H1 when a non-empty banner title is actually on the page —
   otherwise (e.g. an archive with no banner) the page would lose its only
   visible heading. Browsers without :has() simply keep both, as before. */
body:has(.thunk-page-top-title:not(:empty)) h1.page-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Banner title picks up the display face at hero scale. */
.thunk-page-top-title {
	font-family: var(--dc-display);
	font-size: clamp(2.2rem, 1.2rem + 4vw, 4.6rem);
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.05;
	color: #fff;
	text-shadow: 0 2px 26px rgba(0,0,0,.32);
}

/* --- archive header --- */
.woocommerce-products-header,
.woocommerce-page .page-title,
.woocommerce-products-header__title {
	font-family: var(--dc-display);
}
.woocommerce-products-header__title,
.woocommerce-page h1.page-title {
	font-size: var(--dc-h1);
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.05;
	margin-bottom: .3em;
}
.term-description {
	max-width: 62ch;
	color: var(--dc-muted);
	font-size: 1.03rem;
}

/* --- result count + ordering row --- */
.woocommerce .woocommerce-result-count {
	font-family: var(--dc-body);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--dc-muted);
	margin: 0;
	padding-top: .9em;
}

.woocommerce .woocommerce-ordering { margin-bottom: 1.6em; }

.woocommerce .woocommerce-ordering select,
.woocommerce-page .woocommerce-ordering select {
	font-family: var(--dc-body);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .06em;
	color: var(--dc-ink);
	background-color: var(--dc-paper);
	border: 1px solid var(--dc-line);
	border-radius: 999px;
	padding: .85em 3em .85em 1.4em;
	max-width: 20rem;
	width: auto;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	/* chevron drawn inline so there is no extra request */
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23151515' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.3em center;
}
.woocommerce .woocommerce-ordering select:hover { border-color: var(--dc-gold); }

/* --- pagination as circles --- */
.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
	margin: 0;
	overflow: visible;
}
.woocommerce nav.woocommerce-pagination ul { gap: .5rem; display: flex; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	font-family: var(--dc-body);
	font-weight: 700;
	font-size: .9rem;
	min-width: 44px;
	height: 44px;
	line-height: 44px;
	padding: 0 .5em;
	border-radius: 999px;
	background: var(--dc-paper);
	border: 1px solid var(--dc-line);
	color: var(--dc-ink);
	transition: background .25s var(--dc-ease), color .25s var(--dc-ease),
	            border-color .25s var(--dc-ease);
}
.woocommerce nav.woocommerce-pagination ul li a:hover {
	background: var(--dc-ink);
	border-color: var(--dc-ink);
	color: #fff;
}
.woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--dc-gold);
	border-color: var(--dc-gold);
	color: #fff;
}

/* --- sale price emphasis in the grid --- */
li.product .price ins,
li.product .price ins .amount { color: var(--dc-gold-deep); font-weight: 800; }
li.product .price del { font-size: .92em; }
.woocommerce-price-suffix {
	font-size: .74rem;
	font-weight: 500;
	color: var(--dc-muted);
	letter-spacing: .04em;
	margin-left: .35em;
}

/* Hairline gold divider utility, for section seams. */
.dc-rule {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--dc-gold), transparent);
	opacity: .45;
	margin: 0;
}
