/* ==========================================================================
   House of Pazh — main stylesheet
   RTL-first, logical properties throughout. Mobile-first breakpoints:
   640px (large phone / small tablet), 1024px (desktop), 1280px (wide).
   ========================================================================== */

/* ---------- Fonts: IRANSans FaNum, two weights only (Regular + Bold), digits render in Persian ---------- */
@font-face { font-family: "IRANSans"; src: url("../fonts/iransans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IRANSans"; src: url("../fonts/iransans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
	--wine: #6b0f1a;
	--wine-700: #540b14;
	--wine-900: #3b070e;
	--wine-50: #f7ebe7;
	--cream: #f6f1e8;
	--sand: #ebdfcc;
	--paper: #fffcf7;
	--ink: #231c19;
	--ink-2: #4a403a;
	--muted: #7b6f66;
	--line: #e1d4c1;
	--mustard: #c48f35;
	--olive: #5b6340;
	--success: #3f6b3a;
	--danger: #a32020;

	--font: "IRANSans", Tahoma, "Segoe UI", sans-serif;
	--mono: ui-monospace, Consolas, monospace;

	--radius: 6px;
	--radius-sm: 6px;
	--radius-media: 0;
	--btn-radius: 8px;
	--pill: 999px;
	--shadow-sm: 0 1px 2px rgb(35 28 25 / 6%);
	--shadow: 0 1px 2px rgb(35 28 25 / 5%), 0 10px 30px rgb(35 28 25 / 8%);

	--container: 1280px;
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 64px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 1024px) {
	:root { --header-h: 76px; }
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

@media (min-width: 1024px) { body { font-size: 16px; } }

body.has-overlay { overflow: hidden; }

img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }

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

h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; font-weight: 700; line-height: 1.45; color: var(--ink); }
h1 { font-size: clamp(26px, 3.4vw, 38px); }
h2 { font-size: clamp(21px, 2.4vw, 28px); }
h3 { font-size: clamp(18px, 1.8vw, 22px); }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
code, kbd, pre { font-family: var(--mono); direction: ltr; text-align: left; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--wine); color: #fff; }

:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 4px; }

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

.skip-link:focus {
	position: fixed !important;
	inset-block-start: 8px; inset-inline-start: 8px;
	z-index: 1000;
	width: auto; height: auto;
	padding: 10px 16px;
	clip: auto;
	background: var(--ink); color: #fff;
	border-radius: var(--radius-sm);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow { max-width: 820px; }

.icon { flex: none; }

/* ---------- Buttons ---------- */
.btn,
.button,
button.button,
input[type="submit"],
.wp-element-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 26px;
	border: 1.5px solid var(--ink);
	border-radius: var(--btn-radius);
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
	-webkit-tap-highlight-color: transparent;
}

.btn:hover,
.button:hover,
input[type="submit"]:hover,
.wp-element-button:hover { background: var(--wine); border-color: var(--wine); color: #fff; }

.btn:active, .button:active { transform: scale(.98); }

.btn--primary,
.button.alt,
.single_add_to_cart_button,
.checkout-button,
#place_order { background: var(--wine); border-color: var(--wine); color: #fff; }

.btn--primary:hover,
.button.alt:hover,
.single_add_to_cart_button:hover,
.checkout-button:hover,
#place_order:hover { background: var(--wine-700); border-color: var(--wine-700); }

.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }

.btn--sm { min-height: 40px; padding: 6px 16px; font-size: 14px; font-weight: 400; }
.btn--block { display: flex; width: 100%; }

.button:disabled,
.button.disabled,
.button[disabled] { opacity: .45; cursor: not-allowed; }

.icon-btn {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ink);
	transition: background-color .2s var(--ease);
}

.icon-btn:hover { background: rgb(35 28 25 / 6%); color: var(--ink); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"], input[type="date"],
select, textarea {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink);
	line-height: 1.5;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
	appearance: none;
}

textarea { min-height: 120px; resize: vertical; }

input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--wine);
	box-shadow: 0 0 0 3px rgb(107 15 26 / 12%);
}

select {
	padding-inline-end: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23231c19' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 14px center;
}

input[type="checkbox"], input[type="radio"] { accent-color: var(--wine); width: 18px; height: 18px; vertical-align: middle; }

label { font-weight: 400; font-size: 14px; }

::placeholder { color: var(--muted); opacity: 1; }

/* ---------- Announcement bar ---------- */
.announcement {
	display: block;
	background: var(--wine);
	color: var(--cream);
	font-size: 13px;
	font-weight: 400;
	text-align: center;
}

a.announcement:hover { color: #fff; }

.announcement-inner {
	position: relative;
	display: grid;
	min-height: 38px;
	align-items: center;
}

.announcement-item {
	grid-area: 1 / 1;
	padding-block: 8px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .5s var(--ease), transform .5s var(--ease);
	pointer-events: none;
}

.announcement-item.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 50;
	background: rgb(246 241 232 / 94%);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
	backdrop-filter: saturate(160%) blur(12px);
	border-block-end: 1px solid transparent;
	transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.admin-bar .site-header { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { inset-block-start: 0; } }

.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "start logo actions";
	align-items: center;
	min-height: var(--header-h);
	gap: 8px;
}

.header-start { grid-area: start; display: flex; align-items: center; }
.header-logo { grid-area: logo; }
.primary-nav { grid-area: nav; display: none; }
.header-actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

.site-logo, .custom-logo-link { display: block; color: var(--wine); }
.site-logo:hover { color: var(--wine-700); }
.logo-svg { width: 132px; height: auto; }
.custom-logo { width: auto; max-height: 48px; }

.header-account { display: none; }

.cart-count {
	position: absolute;
	inset-block-start: 4px;
	inset-inline-end: 2px;
	min-width: 19px;
	height: 19px;
	padding-inline: 5px;
	border-radius: var(--pill);
	background: var(--wine);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
	box-shadow: 0 0 0 2px var(--cream);
}

.cart-count.is-empty { display: none; }

@media (min-width: 1024px) {
	/* Two-row header like a shop sign: centred logo, menu underneath. */
	.site-header { position: relative; background: var(--cream); }
	.admin-bar .site-header { inset-block-start: 0; }

	.header-inner {
		grid-template-columns: 1fr auto 1fr;
		grid-template-areas:
			"start logo actions"
			"nav nav nav";
		row-gap: 4px;
		padding-block: 18px 6px;
	}

	.menu-toggle { display: none; }
	.primary-nav { display: block; }
	.header-account { display: inline-grid; }
	.logo-svg { width: 190px; }
}

/* Desktop navigation */
.primary-menu {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
}

.primary-menu > li { position: relative; }

.primary-menu a {
	display: block;
	padding: 10px 16px;
	font-weight: 700;
	font-size: 15px;
	white-space: nowrap;
}

.primary-menu > li > a { position: relative; }

.primary-menu > li > a::before {
	content: "";
	position: absolute;
	inset-inline: 16px;
	inset-block-end: 6px;
	height: 1.5px;
	background: currentColor;
	transform: scaleX(0);
	transition: transform .25s var(--ease);
}

.primary-menu > li > a:hover::before,
.primary-menu > .current-menu-item > a::before,
.primary-menu > .current-menu-ancestor > a::before { transform: scaleX(1); }

.primary-menu > li > a:hover { color: var(--ink); }

.primary-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-inline-start: 8px;
	border-inline-end: 1.5px solid currentColor;
	border-block-end: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

.primary-menu .sub-menu {
	position: absolute;
	inset-block-start: 100%;
	inset-inline-start: 0;
	z-index: 10;
	min-width: 220px;
	padding: 8px;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.primary-menu .sub-menu .sub-menu { inset-block-start: -8px; inset-inline-start: 100%; }

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.primary-menu .sub-menu a { border-radius: var(--radius-sm); font-size: 14px; }
.primary-menu .sub-menu a:hover { background: var(--cream); }

/* ---------- Overlays: drawer + search ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; }
.overlay[hidden] { display: none; }

.drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgb(35 28 25 / 45%);
	opacity: 0;
	transition: opacity .3s var(--ease);
}

.overlay.is-open .drawer-backdrop { opacity: 1; }

.drawer-panel {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	display: flex;
	flex-direction: column;
	width: min(88vw, 380px);
	background: var(--cream);
	box-shadow: var(--shadow);
	transform: translateX(100%);
	transition: transform .32s var(--ease);
}

[dir="ltr"] .drawer-panel { transform: translateX(-100%); }
.overlay.is-open .drawer-panel { transform: none; }

.drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: var(--header-h);
	padding-inline: 20px 12px;
	border-block-end: 1px solid var(--line);
}

.drawer-head .logo-svg { width: 116px; }

.drawer-body { flex: 1; overflow-y: auto; padding: 12px 20px; overscroll-behavior: contain; }

.drawer-menu { list-style: none; }
.drawer-menu li { position: relative; border-block-end: 1px solid var(--line); }
.drawer-menu a { display: block; padding: 14px 0; padding-inline-end: 48px; font-weight: 400; font-size: 16px; }
.drawer-menu .sub-menu { display: none; padding-inline-start: 14px; padding-block-end: 8px; list-style: none; }
.drawer-menu .sub-menu li { border: 0; }
.drawer-menu .sub-menu a { padding-block: 9px; font-size: 15px; color: var(--ink-2); }
.drawer-menu .is-expanded > .sub-menu { display: block; }

.submenu-toggle {
	position: absolute;
	inset-block-start: 6px;
	inset-inline-end: -8px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	color: var(--ink);
	transition: transform .2s var(--ease);
}

.is-expanded > .submenu-toggle { transform: rotate(180deg); }

.drawer-foot { display: grid; gap: 16px; padding: 20px; border-block-start: 1px solid var(--line); }

.search-sheet {
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	padding-block: 18px;
	background: var(--cream);
	box-shadow: var(--shadow);
	transform: translateY(-100%);
	transition: transform .32s var(--ease);
}

.admin-bar .search-sheet { padding-block-start: 50px; }
.overlay.is-open .search-sheet { transform: none; }

.search-form { position: relative; display: flex; align-items: center; gap: 8px; }
.search-form input[type="search"] { flex: 1; }

.search-form--lg { gap: 12px; }
.search-form--lg > .icon { color: var(--muted); }
.search-form--lg input[type="search"] {
	min-height: 56px;
	border: 0;
	border-block-end: 2px solid var(--ink);
	border-radius: 0;
	background: transparent;
	font-size: 18px;
	box-shadow: none;
}

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }

.chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 6px 18px;
	border: 1px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
	font-size: 14px;
	font-weight: 400;
	transition: background-color .2s var(--ease), border-color .2s var(--ease);
}

.chip:hover { border-color: var(--ink); color: var(--ink); }

.chip--lg {
	display: flex;
	justify-content: center;
	min-height: 48px;
	border-radius: var(--radius-sm);
	background: var(--sand);
	border-color: transparent;
	font-weight: 700;
}

.chips--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.chip-row { margin-block-end: 20px; overflow-x: auto; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .chips { flex-wrap: nowrap; }
.chip-row .chip { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: clamp(460px, 74svh, 760px);
	overflow: hidden;
	background: var(--wine);
	color: #fff;
	isolation: isolate;
}

.hero-media, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; }

.hero:not(.hero--plain)::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(to top, rgb(35 28 25 / 72%) 0%, rgb(35 28 25 / 20%) 45%, transparent 70%);
}

.hero--plain {
	align-items: center;
	background:
		radial-gradient(120% 80% at 50% 0%, rgb(255 255 255 / 9%), transparent 60%),
		radial-gradient(80% 60% at 0% 100%, rgb(196 143 53 / 22%), transparent 60%),
		var(--wine);
}

.hero-art {
	position: absolute;
	inset-inline: -10%;
	inset-block-start: 8%;
	z-index: 0;
	color: rgb(246 239 228 / 9%);
	pointer-events: none;
}

.hero-art .logo-svg { width: 100%; }

.hero-content {
	position: relative;
	z-index: 1;
	max-width: 760px;
	padding-block: 56px;
	text-align: center;
}

.eyebrow {
	margin-block-end: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .32em;
	text-transform: uppercase;
	opacity: .85;
}

.hero-title {
	margin-block-end: 14px;
	color: inherit;
	font-weight: 700;
	font-size: clamp(34px, 6.4vw, 72px);
	line-height: 1.25;
	text-wrap: balance;
}

.hero-text {
	max-width: 520px;
	margin-inline: auto;
	margin-block-end: 28px;
	font-size: clamp(15px, 1.6vw, 18px);
	opacity: .92;
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-actions .btn { min-width: 150px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(40px, 6vw, 80px); }
.section + .section { padding-block-start: 0; }

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-block-end: 22px;
}

.section-title { margin: 0; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; }

.section-tools { display: flex; align-items: center; gap: 8px; }

.link-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--wine);
	white-space: nowrap;
}

.link-more:hover { color: var(--wine-700); }

.rail-btn {
	display: none;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	transition: background-color .2s var(--ease), opacity .2s var(--ease);
}

.rail-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail-btn:disabled { opacity: .35; cursor: default; }

@media (min-width: 1024px) {
	.rail-btn { display: grid; }
	.rail.is-static .rail-btn { display: none; }
}

/* ---------- Product grid & cards ---------- */
ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 640px) { ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; } }
@media (min-width: 1024px) { ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; } }

ul.products::before, ul.products::after { display: none; }

ul.products li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	margin: 0;
	text-align: start;
}

ul.products li.product > a { display: flex; flex-direction: column; flex: 1; color: var(--ink); }

.card-media {
	position: relative;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: var(--radius-media);
	background: var(--sand);
}

.card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .45s var(--ease), transform .7s var(--ease);
}

.card-img--secondary { opacity: 0; }

@media (hover: hover) {
	li.product:hover .card-img--secondary { opacity: 1; }
	li.product:hover .card-img--primary { transform: scale(1.04); }
}

.card-badges {
	position: absolute;
	inset-block-start: 10px;
	inset-inline-start: 10px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
}

.badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 2px;
	background: var(--paper);
	color: var(--ink);
	font-size: 11px;
	font-weight: 400;
	line-height: 1.7;
}

.badge--sale, .onsale { background: var(--wine); color: #fff; }
.badge--muted { background: rgb(35 28 25 / 70%); color: #fff; }

.woocommerce-loop-product__title,
.woocommerce-loop-category__title {
	display: -webkit-box;
	margin: 12px 0 2px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.7;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

@media (min-width: 1024px) {
	.woocommerce-loop-product__title { font-size: 15px; }
}

.price { color: var(--ink-2); font-weight: 400; font-size: 14px; }
.price del { margin-inline-end: 6px; color: var(--muted); font-size: .86em; font-weight: 400; opacity: 1; }
.price ins { text-decoration: none; color: var(--wine); }
.woocommerce-Price-currencySymbol { font-size: .8em; font-weight: 400; }

li.product .price { margin-top: auto; }

/* Category cards inside the shop loop */
li.product-category a { display: block; }
li.product-category img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-media); background: var(--sand); }
li.product-category .count { background: none; color: var(--muted); font-weight: 400; }

/* Rail variant */
.rail-track {
	grid-template-columns: none !important;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 12px) / 2.25);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-block-end: 4px;
}

.rail-track::-webkit-scrollbar { display: none; }
.rail-track > li { scroll-snap-align: start; }

@media (min-width: 640px) { .rail-track { grid-auto-columns: calc((100% - 2 * 18px) / 3.3); } }
@media (min-width: 1024px) { .rail-track { grid-auto-columns: calc((100% - 3 * 24px) / 4); } }

/* ---------- Vitrine (home category window) ---------- */
/*
 * Layout is tuned for five tiles (the default):
 * phones 1 wide + 2×2, tablets 2 + 3, desktop one row of five.
 * Other counts still fill their rows; --cols comes from the template (max 5).
 */
.vitrine-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
}

/* `:first-child:nth-last-child(odd)` = the first tile when the total count is odd. */
@media (max-width: 639px) {
	.vitrine-item:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
	.vitrine-item:first-child:nth-last-child(odd) .vitrine-tile { aspect-ratio: 16 / 10; }
}

@media (min-width: 640px) and (max-width: 1023px) {
	.vitrine-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.vitrine-item { grid-column: span 2; }

	/* 5 tiles: two wide, then three. 4 or 2 tiles: two per row. 1 tile: full width. */
	.vitrine-item:first-child:nth-last-child(5),
	.vitrine-item:first-child:nth-last-child(5) + .vitrine-item,
	.vitrine-item:first-child:nth-last-child(4),
	.vitrine-item:first-child:nth-last-child(4) ~ .vitrine-item,
	.vitrine-item:first-child:nth-last-child(2),
	.vitrine-item:first-child:nth-last-child(2) ~ .vitrine-item { grid-column: span 3; }
	.vitrine-item:only-child { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
	.vitrine-grid { grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); }
}

.vitrine-tile {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 8 / 11;
	overflow: hidden;
	background: linear-gradient(160deg, #d8c3a0, #b99a6b);
	color: #fff;
	isolation: isolate;
}

.vitrine-tile:hover { color: #fff; }

.vitrine-img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--ease);
}

.vitrine-tile::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgb(35 28 25 / 8%);
	transition: background-color .4s var(--ease);
}

.vitrine-label {
	padding: 6px 14px;
	font-size: clamp(15px, 1.5vw, 19px);
	font-weight: 700;
	text-align: center;
	text-shadow: 0 1px 12px rgb(0 0 0 / 35%), 0 0 2px rgb(0 0 0 / 25%);
}

@media (hover: hover) {
	.vitrine-tile:hover .vitrine-img { transform: scale(1.045); }
	.vitrine-tile:hover::after { background: rgb(35 28 25 / 22%); }
}

/* ---------- Story ---------- */
.story-grid {
	display: grid;
	gap: 24px;
	align-items: center;
}

@media (min-width: 1024px) {
	.story-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

.story-media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-media);
	background: var(--sand);
}

.story-media img { width: 100%; height: 100%; object-fit: cover; }

.story-media--art {
	display: grid;
	place-items: center;
	padding: 12%;
	background:
		radial-gradient(90% 70% at 30% 20%, rgb(255 255 255 / 50%), transparent 70%),
		var(--sand);
	color: var(--wine);
}

.story-media--art .logo-svg { width: 100%; }

.story-body { max-width: 520px; }
.story-body .eyebrow { color: var(--wine); }
.story-title { font-size: clamp(26px, 3.4vw, 42px); font-weight: 700; }
.story-body p { color: var(--ink-2); font-size: 16px; }
.story-body .btn { margin-block-start: 8px; }

/* ---------- Footer (light, centred emblem) ---------- */
.site-footer {
	margin-block-start: clamp(32px, 6vw, 72px);
	border-block-start: 1px solid var(--line);
	background: var(--cream);
	color: var(--ink-2);
	font-size: 14px;
}

.site-footer a:hover { color: var(--wine); }

.footer-emblem { display: grid; place-items: center; padding-block: 48px 28px; }
.footer-emblem a { color: var(--wine); }
.footer-emblem .logo-svg { width: 180px; }

.footer-taglines {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 16px;
	padding-block-end: 32px;
	border-block-end: 1px solid var(--line);
	list-style: none;
	text-align: center;
	font-size: 13px;
	line-height: 1.8;
}

.footer-taglines li:last-child:nth-child(odd) { grid-column: 1 / -1; }

@media (min-width: 1024px) {
	.footer-taglines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.footer-taglines li:last-child:nth-child(odd) { grid-column: auto; }
}

.footer-taglines li { display: grid; justify-items: center; gap: 2px; }
.footer-taglines strong { color: var(--ink); font-size: 14px; }

.footer-grid {
	display: grid;
	gap: 28px;
	padding-block: 36px 24px;
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }
@media (min-width: 1024px) { .footer-grid { gap: 64px; padding-block: 48px 32px; } }

.footer-about p { max-width: 380px; line-height: 2; }

.footer-title { margin-block-end: 12px; color: var(--ink); font-size: 15px; }

.footer-menu { display: grid; gap: 6px; list-style: none; }

.contact-list { display: grid; gap: 8px; list-style: none; }
.contact-list span { color: var(--ink); font-weight: 700; }

.social-list { display: flex; justify-content: center; gap: 10px; list-style: none; }
.social-list a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--sand);
	color: var(--ink);
	transition: background-color .2s var(--ease), color .2s var(--ease);
}
.social-list a:hover { background: var(--ink); color: #fff; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 16px; }
.trust-badges img { max-height: 96px; width: auto; border-radius: var(--radius-sm); background: #fff; }

.footer-bottom { display: grid; justify-items: center; gap: 16px; padding-block: 24px 36px; border-block-start: 1px solid var(--line); font-size: 13px; text-align: center; }
.footer-bottom p { margin: 0; }

/* ---------- Pages & posts ---------- */
.site-main { min-height: 50vh; }

.page-header { padding-block: clamp(24px, 4vw, 48px) 16px; }
.page-title { margin: 0; font-weight: 700; }

.entry-content { padding-block-end: 64px; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content blockquote { margin-inline: 0; padding: 4px 20px; border-inline-start: 3px solid var(--wine); color: var(--ink-2); }

.entry-cover { margin: 0 0 32px; }
.entry-cover img { width: 100%; border-radius: var(--radius); }

.post-meta { color: var(--muted); font-size: 13px; }

.post-grid {
	display: grid;
	gap: 28px;
	padding-block-end: 48px;
}

@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.post-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding-block-start: 14px; }
.post-card-title { margin-block: 4px 8px; font-size: 18px; }
.post-card-body p { color: var(--ink-2); font-size: 14px; }

.empty-state { padding-block: 48px 72px; text-align: center; }
.empty-state .search-form { max-width: 440px; margin: 24px auto; }
.empty-state--404 .page-title { margin-block-end: 12px; }

.navigation.pagination,
.woocommerce-pagination { margin-block: 40px 16px; }

.nav-links,
.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	list-style: none;
	border: 0;
}

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 12px;
	border: 1px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
	font-weight: 400;
}

.page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.woocommerce-pagination ul.page-numbers li { border: 0; }

.post-navigation .nav-links { justify-content: space-between; margin-block: 32px; }
.post-navigation .nav-label { display: block; color: var(--muted); font-size: 12px; }

.comments { padding-block: 0 64px; }
.comment-list { list-style: none; display: grid; gap: 20px; margin-block-end: 32px; }
.comment-body { padding: 18px; border-radius: var(--radius); background: var(--paper); }
.comment-author img { float: inline-start; margin-inline-end: 12px; border-radius: 50%; }
.comment-metadata { font-size: 12px; color: var(--muted); }

/* ==========================================================================
   WooCommerce
   ========================================================================== */

.shop-main { padding-block: 8px 64px; }

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding-block: 16px 4px;
	color: var(--muted);
	font-size: 13px;
}

.breadcrumb a:hover { color: var(--wine); }
.breadcrumb .sep { opacity: .5; }

.woocommerce-products-header { padding-block: 12px 18px; }
.woocommerce-products-header__title { margin: 0; font-weight: 700; }
.term-description { max-width: 720px; color: var(--ink-2); }

.shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-block-end: 24px;
}

.woocommerce-result-count { margin: 0; color: var(--muted); font-size: 13px; }
.woocommerce-ordering { margin: 0; margin-inline-start: auto; }
.woocommerce-ordering select { min-height: 40px; width: auto; padding-block: 6px; border-radius: var(--pill); font-size: 14px; }

/* Filters drawer */
.drawer--filters .drawer-panel { width: min(92vw, 400px); }
.drawer--filters .widget { padding-block: 16px; border-block-end: 1px solid var(--line); }
.widget-title { font-size: 15px; margin-block-end: 12px; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	padding: 14px 18px;
	list-style: none;
	border: 1px solid var(--line);
	border-inline-start: 4px solid var(--success);
	border-radius: var(--radius-sm);
	background: var(--paper);
	font-size: 14px;
}

.woocommerce-info { border-inline-start-color: var(--mustard); }
.woocommerce-error, .wc-block-components-notice-banner.is-error { border-inline-start-color: var(--danger); }
.woocommerce-error li { width: 100%; }

.woocommerce-message .button,
.woocommerce-info .button { order: 2; min-height: 38px; padding: 6px 16px; margin-inline-start: auto; font-size: 13px; }

.woocommerce-store-notice, p.demo_store {
	position: fixed;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 60;
	margin: 0;
	padding: 12px var(--gutter);
	background: var(--ink);
	color: #fff;
	font-size: 13px;
	text-align: center;
}

.woocommerce-store-notice__dismiss-link { margin-inline-start: 12px; color: #fff; text-decoration: underline; }

/* Star rating (WooCommerce's icon font is not loaded) */
.star-rating {
	position: relative;
	display: inline-block;
	width: 5em;
	height: 1em;
	overflow: hidden;
	font-size: 14px;
	line-height: 1;
	vertical-align: middle;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e1d4c1' d='m12 2 3 6.6 7.2.7-5.4 4.8 1.6 7.1L12 17.6 5.6 21.2l1.6-7.1L1.8 9.3 9 8.6z'/%3E%3C/svg%3E") repeat-x right center / 1em 1em;
}

.star-rating span {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	overflow: hidden;
	font-size: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c48f35' d='m12 2 3 6.6 7.2.7-5.4 4.8 1.6 7.1L12 17.6 5.6 21.2l1.6-7.1L1.8 9.3 9 8.6z'/%3E%3C/svg%3E") repeat-x right center / 1em 1em;
}

[dir="ltr"] .star-rating, [dir="ltr"] .star-rating span { background-position: left center; }

p.stars { display: inline-flex; gap: 2px; margin: 4px 0 12px; }
p.stars span { display: inline-flex; gap: 2px; }
p.stars a { position: relative; width: 28px; height: 28px; font-size: 0; }
p.stars a::before { content: "★"; position: absolute; inset: 0; font-size: 26px; line-height: 28px; color: var(--line); }
p.stars:hover a::before,
p.stars.selected a::before { color: var(--mustard); }
p.stars:hover a:hover ~ a::before,
p.stars.selected a.active ~ a::before { color: var(--line); }
p.stars.selected:hover a::before { color: var(--mustard); }

/* ---------- Single product ---------- */
.product-hero {
	display: grid;
	gap: 24px;
	padding-block-start: 12px;
}

@media (min-width: 1024px) {
	.product-hero {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: 56px;
		align-items: start;
	}

	.product-hero .summary { position: sticky; inset-block-start: 24px; }
	.admin-bar .product-hero .summary { inset-block-start: 56px; }
}

.product-hero > .onsale { display: none; }

.woocommerce-product-gallery { position: relative; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image { overflow: hidden; border-radius: var(--radius-media); background: var(--sand); }
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery .flex-viewport { border-radius: var(--radius-media); }

.woocommerce-product-gallery .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 8px;
	margin-block-start: 10px;
	list-style: none;
}

/* Desktop: thumbnails in a vertical strip on the outer edge of the gallery. */
@media (min-width: 1024px) {
	.woocommerce-product-gallery:has(.flex-control-thumbs) {
		display: grid;
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 12px;
		align-items: start;
	}

	.woocommerce-product-gallery:has(.flex-control-thumbs) .flex-viewport { grid-column: 2; grid-row: 1; }

	.woocommerce-product-gallery .flex-control-thumbs {
		grid-column: 1;
		grid-row: 1;
		grid-template-columns: 1fr;
		margin: 0;
	}
}

.flex-control-thumbs img { border-radius: var(--radius-media); opacity: .55; cursor: pointer; transition: opacity .2s var(--ease); aspect-ratio: 3 / 4; object-fit: cover; }
.flex-control-thumbs img:hover, .flex-control-thumbs .flex-active { opacity: 1; }

.woocommerce-product-gallery__trigger {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-end: 14px;
	z-index: 5;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23231c19' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") no-repeat center;
	box-shadow: var(--shadow-sm);
	font-size: 0;
}

.woocommerce-product-gallery__trigger img { display: none !important; }

.summary .product_title { margin-block-end: 8px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; }
.summary .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin-block-end: 8px; font-size: 13px; }
.summary .woocommerce-review-link { color: var(--muted); }
.summary > .price { display: block; margin-block-end: 16px; font-size: 22px; }
.woocommerce-product-details__short-description { color: var(--ink-2); }

.summary form.cart { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 20px; }
.summary form.cart:not(.variations_form) .single_add_to_cart_button,
.summary .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1; min-width: 180px; }

.variations_form { flex-direction: column; }

table.variations { margin-block-end: 8px; }
table.variations tr { display: grid; gap: 6px; margin-block-end: 14px; }
table.variations th, table.variations td { padding: 0; text-align: start; }
table.variations th label { font-size: 14px; font-weight: 700; }
table.variations select { max-width: 360px; }
.reset_variations { display: inline-block; margin-block-start: 6px; color: var(--muted); font-size: 13px; text-decoration: underline; }

.woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; }
.woocommerce-variation-price .price { font-size: 20px; }
.woocommerce-variation-availability, .stock { font-size: 13px; color: var(--success); }
.stock.out-of-stock { color: var(--danger); }

/* Quantity */
.quantity {
	display: inline-flex;
	align-items: center;
	height: 48px;
	border: 1.5px solid var(--line);
	border-radius: var(--pill);
	background: var(--paper);
	overflow: hidden;
}

.quantity input.qty {
	width: 52px;
	min-height: 0;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font-weight: 700;
	box-shadow: none;
	-moz-appearance: textfield;
}

.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.qty-btn {
	width: 42px;
	height: 100%;
	border: 0;
	background: transparent;
	font-size: 20px;
	line-height: 1;
}

.qty-btn:hover { background: var(--cream); }

.product-assurances {
	display: grid;
	gap: 10px;
	margin-block: 20px;
	padding-block: 16px;
	border-block: 1px solid var(--line);
	list-style: none;
	font-size: 13px;
	color: var(--muted);
}

.product-assurances li { display: flex; align-items: center; gap: 10px; }
.product-assurances .icon { color: var(--ink-2); }
.product-assurances strong { color: var(--ink); font-weight: 700; }

.product_meta { display: grid; gap: 4px; padding-block-start: 16px; border-block-start: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.product_meta a { color: var(--ink-2); }
.product_meta a:hover { color: var(--wine); }

/* Tabs */
.woocommerce-tabs { margin-block-start: 24px; }

.woocommerce-tabs ul.tabs {
	display: flex;
	gap: 6px;
	margin-block-end: 20px;
	overflow-x: auto;
	list-style: none;
	border-block-end: 1px solid var(--line);
	scrollbar-width: none;
}

.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12px 16px;
	border-block-end: 2px solid transparent;
	color: var(--muted);
	font-weight: 700;
	white-space: nowrap;
}

.woocommerce-tabs ul.tabs li.active a { border-color: var(--wine); color: var(--ink); }
.woocommerce-Tabs-panel { max-width: 860px; }
.woocommerce-Tabs-panel > h2:first-child { font-size: 18px; }

table.shop_attributes th, table.shop_attributes td { padding: 10px 12px; border-block-end: 1px solid var(--line); text-align: start; }
table.shop_attributes th { width: 160px; font-weight: 700; }
table.shop_attributes p { margin: 0; }

#reviews .commentlist { list-style: none; display: grid; gap: 16px; margin-block-end: 24px; }
#reviews .comment_container { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--paper); }
#reviews .comment_container img { width: 44px; height: 44px; border-radius: 50%; }
#reviews .comment-text { flex: 1; }
#reviews .meta { font-size: 13px; color: var(--muted); }
#review_form .comment-reply-title { font-size: 17px; font-weight: 700; }
.comment-form p { margin-block-end: 14px; }

.related, .upsells, .cross-sells { margin-block-start: 48px; }
.related > h2, .upsells > h2, .cross-sells > h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; margin-block-end: 20px; }

/* ---------- Cart & checkout (classic shortcode pages) ---------- */
.commerce-page .entry-content { padding-block-end: 64px; }

table.shop_table {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background: var(--paper);
	font-size: 14px;
}

table.shop_table th, table.shop_table td { padding: 14px 16px; border-block-end: 1px solid var(--line); text-align: start; vertical-align: middle; }
table.shop_table tr:last-child > * { border-block-end: 0; }
table.shop_table thead th { background: var(--cream); font-weight: 700; }
table.shop_table img { width: 64px; border-radius: var(--radius-sm); }

.shop_table .product-remove a {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--cream);
	color: var(--danger) !important;
	font-size: 18px;
}

.shop_table td.actions { padding: 16px; }
.shop_table td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 12px; }
.shop_table td.actions .coupon input { flex: 1; min-width: 160px; width: auto; }

@media (max-width: 767px) {
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; border-block-end: 1px solid var(--line); }
	table.shop_table_responsive tr td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 8px 16px; }
	table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 700; }
	table.shop_table_responsive tr td.product-remove::before,
	table.shop_table_responsive tr td.product-thumbnail::before,
	table.shop_table_responsive tr td.actions::before { display: none; }
	table.shop_table_responsive tr td.actions { display: block; }
}

.cart-collaterals { margin-block-start: 32px; }
.cart_totals { max-width: 480px; margin-inline-start: auto; }
.cart_totals h2 { font-size: 20px; }
.wc-proceed-to-checkout { margin-block-start: 16px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; font-size: 16px; }

.woocommerce-checkout { display: grid; gap: 32px; }

@media (min-width: 1024px) {
	form.woocommerce-checkout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
	form.woocommerce-checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
	#order_review_heading { grid-column: 2; grid-row: 1; margin: 0; }
	#customer_details { grid-column: 1; grid-row: 1 / span 2; }
	#order_review { grid-column: 2; grid-row: 2; position: sticky; inset-block-start: calc(var(--header-h) + 24px); }
}

.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, #order_review_heading { font-size: 20px; }

.form-row { margin: 0 0 14px; }
.form-row label { display: block; margin-block-end: 6px; }
.form-row .required { color: var(--danger); text-decoration: none; }

@media (min-width: 640px) {
	.woocommerce-billing-fields__field-wrapper,
	.woocommerce-shipping-fields__field-wrapper,
	.woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
	.form-row-wide, .form-row.notes { grid-column: 1 / -1; }
}

#payment { padding: 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
#payment ul.payment_methods { list-style: none; display: grid; gap: 10px; margin-block-end: 16px; }
#payment .payment_box { margin-block-start: 8px; padding: 12px; border-radius: var(--radius-sm); background: var(--cream); font-size: 13px; }
#place_order { width: 100%; min-height: 54px; font-size: 16px; }

.select2-container .select2-selection--single { height: 48px !important; border: 1.5px solid var(--line) !important; border-radius: var(--radius-sm) !important; background: var(--paper) !important; }
.select2-container .select2-selection--single .select2-selection__rendered { line-height: 46px !important; padding-inline: 14px !important; }
.select2-container .select2-selection--single .select2-selection__arrow { height: 46px !important; }
.select2-dropdown { border-color: var(--line) !important; border-radius: var(--radius-sm) !important; font-family: var(--font); }

/* Block-based cart / checkout: align their palette with the theme */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout { --wp--preset--color--contrast: var(--ink); font-family: var(--font); }

.wc-block-components-button:not(.is-link) {
	min-height: 52px;
	border-radius: var(--pill) !important;
	background: var(--wine) !important;
	color: #fff !important;
	font-weight: 700;
}

.wc-block-components-button:not(.is-link):hover { background: var(--wine-700) !important; }
.wc-block-components-text-input input, .wc-block-components-select select { border-radius: var(--radius-sm) !important; }

/* ---------- My account ---------- */
.woocommerce-account .woocommerce { display: grid; gap: 24px; }

@media (min-width: 1024px) {
	.woocommerce-account.logged-in .woocommerce { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; }
}

.woocommerce-MyAccount-navigation ul { display: flex; gap: 6px; overflow-x: auto; list-style: none; scrollbar-width: none; }

@media (min-width: 1024px) {
	.woocommerce-MyAccount-navigation ul { flex-direction: column; padding: 10px; border-radius: var(--radius); background: var(--paper); }
}

.woocommerce-MyAccount-navigation a { display: block; padding: 10px 16px; border-radius: var(--pill); font-weight: 400; white-space: nowrap; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--ink); color: #fff; }

.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword {
	max-width: 460px;
	padding: 24px;
	border-radius: var(--radius);
	background: var(--paper);
	border: 1px solid var(--line);
}

#customer_login { display: grid; gap: 24px; }
@media (min-width: 1024px) { #customer_login { grid-template-columns: 1fr 1fr; } }
#customer_login .woocommerce-form-login, #customer_login .woocommerce-form-register { max-width: none; }

.woocommerce-form__label-for-checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; }
.lost_password a { color: var(--wine); font-size: 13px; }

.woocommerce-order-details, .woocommerce-customer-details { margin-block-start: 32px; }
ul.order_details { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin-block-end: 24px; }
ul.order_details li { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--paper); font-size: 13px; }

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