/*
Theme Name: Filosofando.shop
Theme URI: https://filosofando.shop
Description: Custom WooCommerce storefront theme for Filosofando.shop, created by Eduardo Mendez.
Author: Eduardo Mendez
Author URI: https://eduardomendez.com
Version: 2.3.0
Text Domain: filosofando-shop
License: Commercial License - © Eduardo Mendez. All rights reserved. Distribution, modification or commercial use without explicit authorization is prohibited.
License URI: https://filosofando.shop/license
Tags: WooCommerce, shop, custom, business, minimal
Requires PHP: 7.4
Requires at least: 6.0
Tested up to: 6.5
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	/* Palette — warm, editorial neutrals drawn from the brand mark */
	--color-ink: #2a2420;
	--color-ink-soft: #564c42;
	--color-espresso: #5c5346;
	--color-espresso-dark: #463f35;
	--color-plum: #4a3639;
	--color-tan: #c7ae87;
	--color-tan-dark: #ab8c60;
	--color-cream: #f7eee0;
	--color-sand: #ead9be;
	--color-mist: #d6cfc2;
	--color-paper: #ffffff;
	--color-line: #e7dfd1;
	--color-focus: #2f6fed;

	/* Type */
	--font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

	/* Layout */
	--container-width: 1240px;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--radius-sm: 6px;
	--radius-md: 12px;
	--radius-lg: 20px;
	--shadow-card: 0 10px 30px rgba(42, 36, 32, 0.08);
	--shadow-card-hover: 0 18px 40px rgba(42, 36, 32, 0.14);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a {
	color: inherit;
	text-decoration: none;
}

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 0.6em;
	color: var(--color-ink);
}

p { margin: 0 0 1em; }

button { font-family: inherit; cursor: pointer; }

input, textarea, select {
	font-family: inherit;
	font-size: 1rem;
}

:focus-visible {
	outline: 3px solid var(--color-focus);
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 10000;
	background: var(--color-ink);
	color: var(--color-paper);
	padding: 0.75rem 1.25rem;
	border-radius: var(--radius-sm);
	transition: top 0.2s var(--ease);
}

.skip-link:focus {
	top: 1rem;
}

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

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.section {
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--alt {
	background: var(--color-cream);
}

.section--sand {
	background: var(--color-sand);
}

.section-heading {
	text-align: center;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading h2 {
	font-size: clamp(1.5rem, 2.4vw, 2.1rem);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.section-heading h2 em {
	font-style: normal;
	color: var(--color-tan-dark);
}

.section-heading p {
	color: var(--color-ink-soft);
	max-width: 46ch;
	margin-inline: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	background: var(--color-tan);
	color: var(--color-plum);
	padding: 0.9rem 2.2rem;
	border-radius: 50px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: none;
	transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:hover,
.btn:focus-visible {
	background: var(--color-tan-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-card);
}

.btn--outline {
	background: transparent;
	color: var(--color-paper);
	border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	color: var(--color-paper);
}

.btn--block { width: 100%; }

/* ==========================================================================
   Site header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-espresso);
	color: var(--color-paper);
	padding-block: 1.1rem;
	transition: box-shadow 0.3s var(--ease), padding-block 0.3s var(--ease);
}

.site-header.is-scrolled {
	padding-block: 0.65rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.site-branding {
	display: flex;
	align-items: center;
}

.site-branding a {
	display: block;
	color: var(--color-paper);
}

.site-branding svg,
.site-branding img {
	height: 2.4rem;
	width: auto;
	color: var(--color-paper);
}

.custom-logo-link img {
	height: 2.4rem;
	width: auto;
}

.site-header__nav-cluster {
	display: flex;
	align-items: center;
	gap: 2.25rem;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 2rem;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 500;
}

.nav-menu a {
	position: relative;
	padding-block: 0.35rem;
	opacity: 0.85;
	transition: opacity 0.2s var(--ease);
}

.nav-menu a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 2px;
	background: var(--color-tan);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s var(--ease);
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu .current-menu-item > a {
	opacity: 1;
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu .current-menu-item > a::after {
	transform: scaleX(1);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.header-icon-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	color: var(--color-paper);
}

.header-icon-link svg {
	width: 1.3rem;
	height: 1.3rem;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
}

.site-header__cart-count {
	position: absolute;
	top: -0.3rem;
	right: -0.3rem;
	min-width: 1.1rem;
	height: 1.1rem;
	padding: 0 0.2rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--color-tan);
	color: var(--color-plum);
	font-size: 0.65rem;
	font-weight: 700;
	border-radius: 999px;
	line-height: 1;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--color-paper);
	width: 2.75rem;
	height: 2.75rem;
	align-items: center;
	justify-content: center;
}

.menu-toggle svg { width: 1.5rem; height: 1.5rem; stroke: currentColor; fill: none; stroke-width: 1.6; }

@media (max-width: 900px) {
	.menu-toggle { display: inline-flex; }

	.site-header__nav-cluster {
		position: fixed;
		inset: 0 0 0 30%;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 2.5rem;
		background: var(--color-espresso);
		padding: 6rem 2rem 2rem;
		transform: translateX(100%);
		transition: transform 0.35s var(--ease);
	}

	.site-header.is-nav-open .site-header__nav-cluster {
		transform: translateX(0);
	}

	.nav-menu {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
		font-size: 1rem;
	}
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: clamp(26rem, 60vw, 38rem);
	padding-block: clamp(2.5rem, 8vw, 5rem);
	overflow: hidden;
	background: var(--color-ink);
	isolation: isolate;
}

.hero__banner {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.hero__banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}

.hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(20, 16, 14, 0.92) 0%, rgba(20, 16, 14, 0.55) 45%, rgba(20, 16, 14, 0.15) 75%),
		linear-gradient(to right, rgba(20, 16, 14, 0.55) 0%, rgba(20, 16, 14, 0) 60%);
}

.hero .container {
	position: relative;
}

.hero__copy {
	max-width: 42rem;
}

.hero__eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--color-tan);
	margin-bottom: 1rem;
}

.hero__copy h1 {
	font-size: clamp(2.2rem, 4.5vw, 3.6rem);
	max-width: 14ch;
	color: var(--color-paper);
}

.hero__copy p {
	font-size: 1.1rem;
	color: var(--color-sand);
	max-width: 46ch;
}

.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ==========================================================================
   Category tiles
   ========================================================================== */
.category-tiles {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.75rem;
}

.category-tile {
	position: relative;
	border-radius: var(--radius-lg);
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--color-mist);
	display: block;
}

.category-tile img,
.category-tile .product-card__fallback {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.category-tile img {
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.category-tile:hover img,
.category-tile:focus-visible img {
	transform: scale(1.06);
}

.category-tile::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(42, 36, 32, 0.75), rgba(42, 36, 32, 0) 55%);
}

.category-tile__label {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	color: var(--color-paper);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-size: 0.85rem;
	background: rgba(42, 36, 32, 0.35);
	backdrop-filter: blur(2px);
}

@media (max-width: 760px) {
	.category-tiles { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Product grid & card
   ========================================================================== */
.product-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.product-card {
	background: var(--color-paper);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
	display: flex;
	flex-direction: column;
}

.product-card:hover,
.product-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
}

.product-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: var(--color-cream);
	overflow: hidden;
}

.product-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.product-card:hover .product-card__media img { transform: scale(1.05); }

.product-card__media .product-card__fallback {
	width: 100%;
	height: 100%;
}

/* Shared placeholder treatment for any missing/unavailable product image —
   the homepage product grids and the shop archive loop both use it. */
.product-card__fallback {
	display: grid;
	place-items: center;
	background: var(--color-sand);
}

.product-card__fallback svg {
	width: 2.5rem;
	height: 2.5rem;
	color: var(--color-plum);
	opacity: 0.8;
}

.product-card__badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background: var(--color-ink);
	color: var(--color-paper);
	font-size: 0.65rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.3rem 0.6rem;
	border-radius: 999px;
}

.product-card__quick-add {
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.75rem;
	transform: translateY(130%);
	opacity: 0;
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
	text-align: center;
	font-size: 0.8rem;
	padding: 0.65rem 1rem;
}

.product-card:hover .product-card__quick-add,
.product-card:focus-within .product-card__quick-add {
	transform: translateY(0);
	opacity: 1;
}

.product-card__body {
	padding: 1.1rem 1.1rem 1.3rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
}

.product-card__title {
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	margin: 0;
}

.product-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.product-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
}

.product-card .price {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--color-plum);
}

.product-card .price del { opacity: 0.5; font-weight: 400; margin-right: 0.4em; }
.product-card .price ins { text-decoration: none; }

.product-card__wishlist {
	width: 1.9rem;
	height: 1.9rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--color-line);
	color: var(--color-ink-soft);
	background: transparent;
	position: relative;
	z-index: 1;
}

.product-card__wishlist svg { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 1.6; }

.products-footer {
	text-align: center;
	margin-top: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 960px) {
	.product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
	.product-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Blog grid & card
   ========================================================================== */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.25rem, 2.5vw, 2rem);
}

.blog-card {
	background: var(--color-paper);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
	display: flex;
	flex-direction: column;
}

.blog-card:hover,
.blog-card:focus-within {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
}

.blog-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: var(--color-cream);
	overflow: hidden;
}

.blog-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--ease);
}

.blog-card:hover .blog-card__media img { transform: scale(1.05); }

.blog-card__fallback {
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background: var(--color-sand);
}

.blog-card__fallback svg {
	width: 2.75rem;
	height: 2.75rem;
	color: var(--color-plum);
	opacity: 0.8;
}

.blog-card__body {
	padding: 1.1rem 1.1rem 1.3rem;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	flex: 1;
}

.blog-card__date {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.75rem;
	color: var(--color-tan-dark);
	font-weight: 600;
}

.blog-card__title {
	font-family: var(--font-body);
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0;
}

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

.blog-card__title a::after {
	content: '';
	position: absolute;
	inset: 0;
}

.blog-card { position: relative; }

.blog-card__excerpt {
	color: var(--color-ink-soft);
	font-size: 0.9rem;
}

.blog-pagination { margin-top: clamp(2rem, 4vw, 3rem); }

.blog-pagination .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding-inline: 0.5rem;
	border-radius: 50%;
	color: var(--color-ink-soft);
	text-decoration: none;
	font-weight: 600;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers:focus-visible {
	background: var(--color-tan);
	color: var(--color-plum);
}

@media (max-width: 960px) {
	.blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.blog-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--color-espresso);
	color: rgba(255, 255, 255, 0.85);
}

.site-footer a { color: inherit; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--color-tan); }

.footer-main {
	padding-block: clamp(3rem, 6vw, 4.5rem);
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: clamp(2rem, 4vw, 3rem);
}

.footer-brand .site-branding svg { color: var(--color-paper); }

.footer-brand p { margin-top: 1rem; max-width: 36ch; opacity: 0.8; }

.footer-brand .social-links {
	display: flex;
	flex-direction: row;
	gap: 0.75rem;
	margin-top: 1.25rem;
}

.social-icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.social-icon-link:hover,
.social-icon-link:focus-visible {
	border-color: var(--color-tan);
}

.social-icon-link svg {
	width: 1.1rem;
	height: 1.1rem;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.6;
}

.footer-column h4 {
	color: var(--color-paper);
	font-family: var(--font-body);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 1.25rem;
}

.footer-column ul { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-block: 1.25rem;
}

.footer-bar .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.8rem;
	opacity: 0.75;
}

.footer-bar ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

@media (max-width: 760px) {
	.footer-main { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WooCommerce baseline (shop / category / single product)
   ========================================================================== */
.shop-wrap { padding-block: clamp(2.5rem, 5vw, 4rem); }

.product-gallery__fallback-wrap {
	width: 100%;
	aspect-ratio: 1 / 1;
}

.product-gallery__fallback-wrap .product-card__fallback {
	width: 100%;
	height: 100%;
}

.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.25rem, 2.5vw, 2rem);
	list-style: none;
	padding: 0;
}

/* WooCommerce's float-layout clearfix (`content:" "`) generates real boxes
   that would otherwise land in the grid as two phantom items. */
.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none;
}

.woocommerce ul.products li.product {
	background: var(--color-paper);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	/* Neutralize WooCommerce core's float-based grid (woocommerce-layout.css)
	   now that the parent uses CSS Grid; same selector specificity means our
	   later stylesheet only wins the properties we explicitly set here. */
	float: none;
	width: auto;
	margin: 0;
	/* CSS Grid stretches items to the row's tallest card by default; turn
	   that into a real column layout so every card in a row matches height
	   regardless of how many lines the title wraps to. */
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* woocommerce_template_loop_product_link_open/_close wrap the image, title
   and price in one <a>; stretch it to fill the card and let the price sink
   to the bottom so the "Add to cart" button below it lines up across cards. */
.woocommerce ul.products li.product > a.woocommerce-loop-product__link {
	display: flex;
	flex-direction: column;
	flex: 1;
	color: inherit;
}

.woocommerce ul.products li.product img,
.woocommerce ul.products li.product .product-card__fallback {
	aspect-ratio: 1 / 1;
	width: 100%;
	flex-shrink: 0;
}

.woocommerce ul.products li.product img { object-fit: cover; }

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
	padding-inline: 1.1rem;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	margin-top: 0.9rem;
}

.woocommerce ul.products li.product .price {
	margin-top: auto;
	padding-top: 0.35rem;
	padding-bottom: 1.1rem;
}

.woocommerce ul.products li.product > a.add_to_cart_button {
	align-self: flex-start;
	margin: 0 1.1rem 1.1rem;
}

.woocommerce .price { color: var(--color-plum); font-weight: 700; }

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related.products { margin-top: 3rem; }

.woocommerce .woocommerce-breadcrumb {
	font-size: 0.85rem;
	color: var(--color-ink-soft);
	margin-bottom: 1.5rem;
}

.woocommerce .quantity .qty {
	border: 1px solid var(--color-line);
	border-radius: var(--radius-sm);
	padding: 0.65rem 0.75rem;
	width: 4.5rem;
	min-height: 2.75rem;
}

.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background: var(--color-tan);
	color: var(--color-plum);
	border-radius: 50px;
	padding: 0.85rem 1.8rem;
	font-weight: 600;
	border: none;
	min-height: 2.75rem;
}

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

.woocommerce span.onsale {
	background: var(--color-ink);
	border-radius: 999px;
}

@media (max-width: 960px) {
	.woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
	.woocommerce ul.products { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WooCommerce Blocks (Cart & Checkout) — touch targets
   The block library's own quantity stepper and remove-item control render
   well under the 44px minimum (30×26px and 24×24px respectively); bump them
   without touching the block markup itself.
   ========================================================================== */
.wc-block-components-quantity-selector,
.wc-block-components-quantity-selector__button,
.wc-block-components-quantity-selector__input {
	min-height: 2.75rem;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
	min-width: 2.75rem;
}

.wc-block-cart-item__remove-link {
	min-width: 2.75rem;
	min-height: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Cart/checkout line-item thumbnails render client-side via the Store API,
   so a missing file can't be caught server-side the way the shop loop and
   single-product gallery are. theme.js listens for the <img> error event and
   adds this class instead of swapping in markup, keeping the same brand-mark-
   on-sand placeholder look without duplicating the inline SVG in JS. */
.wc-block-cart-item__image.has-image-fallback,
.wc-block-components-order-summary-item__image.has-image-fallback {
	background-color: var(--color-sand);
	position: relative;
}

.wc-block-cart-item__image.has-image-fallback::before,
.wc-block-components-order-summary-item__image.has-image-fallback::before {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 55%;
	height: 55%;
	background-color: var(--color-plum);
	opacity: 0.8;
	-webkit-mask: url('assets/images/logo-mark.svg') center / contain no-repeat;
	mask: url('assets/images/logo-mark.svg') center / contain no-repeat;
}

/* ==========================================================================
   Single post
   ========================================================================== */
.post-header {
	position: relative;
	display: grid;
	align-items: end;
	min-height: clamp(16rem, 32vw, 22rem);
	padding-block: clamp(2rem, 5vw, 3.5rem);
	overflow: hidden;
	background: var(--color-ink);
	isolation: isolate;
}

.post-header__banner {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.post-header__banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-header__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 16, 14, 0.88) 0%, rgba(20, 16, 14, 0.45) 55%, rgba(20, 16, 14, 0.1) 85%);
}

.post-header .container {
	position: relative;
}

.post-header__copy {
	max-width: 56rem;
}

.post-header__meta {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--color-tan);
	margin-bottom: 0.75rem;
}

.post-header h1 {
	font-size: clamp(1.9rem, 4vw, 3rem);
	color: var(--color-paper);
	max-width: 20ch;
	margin: 0;
}

.post-header--fallback {
	background: var(--color-sand);
}

.post-header--fallback .post-header__fallback-icon {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	z-index: -1;
}

.post-header--fallback .post-header__fallback-icon svg {
	width: 4rem;
	height: 4rem;
	color: var(--color-plum);
	opacity: 0.4;
}

.post-header--fallback .post-header__meta {
	color: var(--color-plum);
}

.post-header--fallback h1 {
	color: var(--color-ink);
}

.post-content {
	max-width: 70ch;
	margin-inline: auto;
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

.post-content > :first-child { margin-top: 0; }

.post-content h2 {
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	margin-top: 2em;
}

.post-content h3 {
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	margin-top: 1.75em;
}

.post-content p,
.post-content ul,
.post-content ol {
	color: var(--color-ink-soft);
}

.post-content ul,
.post-content ol {
	padding-left: 1.4em;
	margin: 0 0 1em;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li { margin-bottom: 0.4em; }

.post-content a {
	color: var(--color-plum);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.post-content blockquote {
	margin: 1.75em 0;
	padding-left: 1.25rem;
	border-left: 3px solid var(--color-tan);
	font-style: italic;
	color: var(--color-ink-soft);
}

.post-content img {
	border-radius: var(--radius-md);
	margin-block: 1.5em;
}

/* ==========================================================================
   Misc
   ========================================================================== */
.alert {
	background: var(--color-cream);
	border: 1px dashed var(--color-line);
	border-radius: var(--radius-md);
	padding: 1.5rem;
	text-align: center;
	color: var(--color-ink-soft);
}
