/*
Theme Name: Hara World
Description: Custom RTL storefront for Hara World (haraworld.shop). Espresso, cream and ember-orange brand palette with light and dark modes.
Version: 1.0
Text Domain: hara
*/

@font-face {
	font-family: "IRANYekanX";
	src: url("assets/fonts/IRANYekanXFaNum-Regular.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--espresso: #1c0900;
	--cream: #f0ece3;
	--ember: #e4570f;
	--gold: #e0b252;

	--bg: #fbf8f3;
	--surface: #ffffff;
	--surface-2: var(--cream);
	--text: #24140b;
	--muted: #6f6158;
	--line: #e6dfd3;
	--accent: var(--ember);
	--accent-ink: #ffffff;
	--hero-bg: var(--espresso);
	--hero-text: var(--cream);
	--deep: var(--espresso);
	--media-bg: radial-gradient(120% 90% at 50% 20%, #fff, #f3eee6);
	--shadow: 0 1px 2px rgb(28 9 0 / .06), 0 12px 32px -12px rgb(28 9 0 / .18);
	--radius: 18px;
	--wrap: 1240px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #2b1f18;
		--surface: #362820;
		--surface-2: #43332a;
		--text: #f6efe6;
		--muted: #cdbcad;
		--line: #54423a;
		--accent: #ff8a47;
		--accent-ink: #24140b;
		--hero-bg: #1f140e;
		--deep: #1f140e;
		--media-bg: radial-gradient(120% 90% at 50% 20%, #fbf8f3, #e9e1d5);
		--shadow: 0 1px 2px rgb(0 0 0 / .25), 0 18px 40px -16px rgb(0 0 0 / .55);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #2b1f18;
	--surface: #362820;
	--surface-2: #43332a;
	--text: #f6efe6;
	--muted: #cdbcad;
	--line: #54423a;
	--accent: #ff8a47;
	--accent-ink: #24140b;
	--hero-bg: #1f140e;
	--deep: #1f140e;
	--media-bg: radial-gradient(120% 90% at 50% 20%, #fbf8f3, #e9e1d5);
	--shadow: 0 1px 2px rgb(0 0 0 / .25), 0 18px 40px -16px rgb(0 0 0 / .55);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 15px/1.9 "IRANYekanX", Tahoma, sans-serif;
	-webkit-font-smoothing: antialiased;
	transition: background-color .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.icon { display: block; width: 22px; height: 22px; flex: none; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.btn, .button, button.button, a.button, input[type="submit"], .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.6em; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--accent) !important; color: var(--accent-ink) !important; font-weight: 700; line-height: 1.4;
	transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover, .button:hover, input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px var(--accent); filter: brightness(1.05); }
.btn--ghost { background: transparent !important; color: var(--hero-text) !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold) !important; }

input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="password"], input[type="number"], select, textarea {
	width: 100%; padding: .7em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }

/* ---------- Header ---------- */
.topbar { background: var(--deep); color: var(--cream); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.topbar b { color: var(--gold); font-weight: 700; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	backdrop-filter: saturate(1.4) blur(14px);
	border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 8px 24px -18px rgb(0 0 0 / .4); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { flex: none; }
.brand img { width: 168px; }
.nav { flex: 1; }
.nav ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; }
.nav a { display: block; white-space: nowrap; padding: .4rem .75rem; border-radius: 999px; font-weight: 600; font-size: 14.5px; }
.nav a:hover, .nav .current-menu-item > a { background: var(--surface-2); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.icon-btn {
	position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 0; background: transparent; cursor: pointer; color: var(--text);
}
.icon-btn:hover { background: var(--surface-2); color: var(--accent); }
.cart-count {
	position: absolute; top: 3px; inset-inline-start: 1px; min-width: 19px; height: 19px; padding: 0 5px;
	border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
}
[data-theme-toggle] span { display: grid; }
:is([data-theme-toggle] .moon, [data-theme-toggle] .to-light, .site-header .logo-dark) { display: none; }
:root[data-theme="dark"] :is([data-theme-toggle] .sun, [data-theme-toggle] .to-dark, .site-header .logo-light) { display: none; }
:root[data-theme="dark"] :is([data-theme-toggle] .moon, [data-theme-toggle] .to-light, .site-header .logo-dark) { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) :is([data-theme-toggle] .sun, [data-theme-toggle] .to-dark, .site-header .logo-light) { display: none; }
	:root:not([data-theme="light"]) :is([data-theme-toggle] .moon, [data-theme-toggle] .to-light, .site-header .logo-dark) { display: block; }
}
.header-search { position: relative; width: 240px; }
.header-search input { padding-inline-end: 2.6rem; border-radius: 999px; background: var(--surface-2); border-color: transparent; }
.header-search button { position: absolute; inset-inline-end: 4px; top: 50%; translate: 0 -50%; }
.menu-toggle { display: none; }

@media (max-width: 1380px) {
	.header-search { display: none; }
}
@media (max-width: 1000px) {
	.menu-toggle { display: grid; }
	.nav { position: absolute; inset-inline: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); display: none; padding: .75rem 16px; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; }
	.topbar .hide-sm { display: none; }
}
@media (max-width: 520px) {
	.site-header .wrap { gap: .5rem; }
	.brand img { width: 118px; }
	.header-actions { gap: 0; }
	.header-actions .icon-btn { width: 40px; height: 40px; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--hero-bg); color: var(--hero-text);
	border-radius: 0 0 40px 40px;
}
.hero::before {
	content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vmax; aspect-ratio: 1; z-index: -1;
	background: radial-gradient(closest-side, rgb(228 87 15 / .45), transparent 70%);
}
.hero::after {
	content: ""; position: absolute; inset: auto auto -30% -10%; width: 50vmax; aspect-ratio: 1; z-index: -1;
	background: radial-gradient(closest-side, rgb(224 178 82 / .22), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding-block: 4.5rem 5rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 900; line-height: 1.25; margin-block: 1rem 1.2rem; }
.hero h1 em { font-style: normal; color: var(--ember); }
.hero p { font-size: 1.08rem; color: rgb(240 236 227 / .78); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgb(240 236 227 / .14); }
.hero-stats b { display: block; font-size: 1.7rem; font-weight: 900; color: var(--cream); }
.hero-stats span { font-size: 13px; color: rgb(240 236 227 / .6); }

.hero-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 190px 190px 150px; gap: 14px; }
.hero-mosaic a { position: relative; border-radius: var(--radius); overflow: hidden; background: #2a160b; }
.hero-mosaic a:first-child { grid-row: span 2; }
.hero-mosaic a:last-child { grid-column: span 2; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hero-mosaic a:hover img { transform: scale(1.06); }
.hero-mosaic span {
	position: absolute; inset-inline-start: 12px; bottom: 12px; padding: .25rem .8rem; border-radius: 999px;
	background: rgb(28 9 0 / .72); backdrop-filter: blur(6px); color: var(--cream); font-size: 13px; font-weight: 700;
}
@media (max-width: 900px) {
	.hero .wrap { grid-template-columns: 1fr; padding-block: 3rem 3.5rem; }
	.hero-mosaic { grid-template-rows: 140px 140px 120px; }
	.hero-stats { gap: 1.5rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: 4.5rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.section-head h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: .3rem 0 0; }
.section-head .eyebrow { color: var(--accent); }
.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.more .icon { width: 18px; transition: translate .2s; }
.more:hover .icon { translate: -4px 0; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2.4rem; position: relative; z-index: 2; }
.perk { display: flex; gap: .9rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.perk .icon { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.perk b { display: block; font-size: 14.5px; }
.perk span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .perk { flex-direction: column; text-align: center; } }

/* Category groups: grid of cards, each a 2x2 grid of subcategories (mirrors the live homepage) */
.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.group-card {
	display: grid; grid-row: span 2; grid-template-rows: subgrid; gap: .9rem;
	padding: 1.1rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
	transition: box-shadow .3s, border-color .3s;
}
.group-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.group-card header { display: flex; align-items: start; justify-content: space-between; gap: .5rem; }
.group-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.5; }
.group-card .more { font-size: 13px; }
.group-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; align-content: start; }
.group-tiles a { display: flex; flex-direction: column; gap: .15rem; font-size: 13px; line-height: 1.5; }
.group-tiles figure { margin: 0 0 .35rem; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.group-tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.group-tiles a:hover img { transform: scale(1.08); }
.group-tiles a:hover b { color: var(--accent); }
.group-tiles b { font-weight: 700; }
.group-tiles small { color: var(--muted); font-size: 11.5px; }
@media (max-width: 1100px) { .groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.groups { gap: .7rem; }
	.group-card { padding: .75rem; gap: .6rem; border-radius: 18px; }
	.group-card h3 { font-size: .9rem; }
	.group-card .more { display: none; }
	.group-tiles { gap: .5rem; }
	.group-tiles a { font-size: 11.5px; }
	.group-tiles figure { border-radius: 10px; margin-bottom: .2rem; }
	.group-tiles small { display: none; }
}

/* Bento of lifestyle banners */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.bento a { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); isolation: isolate; }
.bento a:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.bento a:nth-child(4) { grid-column: span 2; }
.bento img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.bento a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(28 9 0 / .82), rgb(28 9 0 / 0) 60%); }
.bento a:hover img { transform: scale(1.06); }
.bento .label { position: absolute; inset-inline-start: 1.2rem; bottom: 1.1rem; color: var(--cream); }
.bento .label b { display: block; font-size: 1.25rem; font-weight: 800; }
.bento .label span { font-size: 13px; color: var(--gold); }
@media (max-width: 900px) {
	.bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
	.bento a:nth-child(1) { grid-row: span 1; }
	.bento a:nth-child(4) { grid-column: span 1; }
	.bento .label { inset-inline-start: .8rem; bottom: .7rem; }
	.bento .label b { font-size: 1rem; }
}

/* Dark promo band */
.band { margin-top: 4.5rem; background: var(--deep); color: var(--cream); border-radius: 32px; overflow: hidden; position: relative; isolation: isolate; }
.band::before { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, rgb(228 87 15 / .5), transparent); }
.band .inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: center; padding: 3rem; }
.band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.band h2 span { color: var(--gold); }
.band p { color: rgb(240 236 227 / .72); }
.band-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.band-tiles a { border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 4; background: #2a160b; position: relative; }
.band-tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.band-tiles a:hover img { transform: scale(1.07); }
.band-tiles span { position: absolute; inset-inline: 0; bottom: 0; padding: 1.5rem .7rem .6rem; background: linear-gradient(transparent, rgb(13 4 0 / .9)); font-size: 13px; font-weight: 700; }
@media (max-width: 900px) { .band .inner { grid-template-columns: 1fr; padding: 2rem 1.25rem; } }

/* ---------- Product cards (front page + WooCommerce loops) ---------- */
.woocommerce ul.products, ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem 1.1rem;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product, ul.products li.product {
	width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important;
	display: flex; flex-direction: column; position: relative; text-align: start;
}
ul.products li.product > a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; }
ul.products li.product .card-media {
	position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
	background: var(--media-bg); margin-bottom: .9rem;
	box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .35s, transform .35s;
}
ul.products li.product .card-media img {
	position: absolute; inset: 0; width: 100%; height: 100% !important; margin: 0 !important;
	object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .45s;
}
ul.products li.product .card-media .img-alt { opacity: 0; }
ul.products li.product:hover .card-media { box-shadow: inset 0 0 0 1px transparent, var(--shadow); transform: translateY(-4px); }
ul.products li.product:hover .card-media img { transform: scale(1.05); }
ul.products li.product:hover .card-media:has(.img-alt) img:first-child { opacity: 0; }
ul.products li.product:hover .card-media .img-alt { opacity: 1; }
ul.products li.product .card-cat { font-size: 12px; font-weight: 700; color: var(--accent); }
ul.products li.product .woocommerce-loop-product__title {
	font-size: 14.5px !important; font-weight: 700; line-height: 1.75; padding: 0 !important; margin: .1rem 0 .5rem !important; color: var(--text);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.5em;
}
ul.products li.product:hover .woocommerce-loop-product__title { color: var(--accent); }
ul.products li.product .price { margin-top: auto !important; min-height: 46px; justify-content: center; padding-inline-end: 56px; display: flex; flex-direction: column; color: var(--text) !important; font-weight: 900; font-size: 16px !important; line-height: 1.5; }
ul.products li.product .price .woocommerce-Price-currencySymbol { font-size: 11.5px; font-weight: 500; color: var(--muted); }
ul.products li.product .price del { color: var(--muted); font-weight: 400; font-size: 12.5px; opacity: .8; }
ul.products li.product .price ins { text-decoration: none; color: var(--accent); }
ul.products li.product .button {
	position: absolute; bottom: 0; inset-inline-end: 0;
	display: grid !important; place-items: center; line-height: 0 !important;
	width: 46px; height: 46px; padding: 0 !important; margin: 0 !important; border-radius: 14px;
}
ul.products li.product .button .icon { width: 21px; height: 21px; }
ul.products li.product .button .icon-check, ul.products li.product .button.added .icon-cart { display: none; }
ul.products li.product .button.added .icon-check { display: block; }
ul.products li.product .button.loading { opacity: .6; pointer-events: none; }
ul.products li.product .button::after { display: none !important; }
ul.products li.product .button.loading .icon { animation: bob .6s ease-in-out infinite alternate; }
@keyframes bob { to { translate: 0 -3px; } }
ul.products li.product .added_to_cart { display: none !important; }
.woocommerce span.onsale, span.onsale {
	position: absolute; top: .8rem !important; inset-inline-start: .8rem !important; inset-inline-end: auto !important; left: auto; min-height: 0 !important; min-width: 0 !important;
	margin: 0 !important; padding: .1rem .7rem !important; line-height: 1.9 !important; border-radius: 999px !important;
	background: var(--gold) !important; color: var(--espresso) !important; font-size: 12px; font-weight: 800; z-index: 2;
}
@media (max-width: 1000px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
	.woocommerce ul.products, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem .75rem; }
	ul.products li.product .button { width: 40px; height: 40px; border-radius: 12px; }
	ul.products li.product .woocommerce-loop-product__title { font-size: 13px !important; }
}

/* Bookmark + compare toggles */
.pa { display: flex; gap: .4rem; }
.pa-btn {
	display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); backdrop-filter: blur(6px);
	box-shadow: 0 2px 10px -2px rgb(0 0 0 / .18); transition: background .2s, color .2s, scale .2s;
}
.pa-btn .icon { width: 19px; height: 19px; }
.pa-btn:hover { color: var(--accent); scale: 1.08; }
.pa-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.pa-btn[data-act="wishlist"][aria-pressed="true"] .icon { fill: currentColor; }
.pa-btn.pop { animation: pop .4s; }
@keyframes pop { 40% { scale: 1.25; } }
/* On cards: stacked over the image corner, revealed on hover (always visible on touch / when active) */
ul.products li.product .pa { position: absolute; top: .7rem; inset-inline-end: .7rem; flex-direction: column; z-index: 2; }
@media (hover: hover) and (pointer: fine) {
	ul.products li.product .pa-btn[aria-pressed="false"] { opacity: 0; translate: 0 -6px; transition: opacity .25s, translate .25s, background .2s, color .2s, scale .2s; }
	ul.products li.product:hover .pa-btn, ul.products li.product .pa-btn:focus-visible { opacity: 1; translate: none; }
}
/* Single product: labelled pill buttons under add-to-cart */
.summary .pa { margin: -.4rem 0 1.4rem; }
.summary .pa-btn { width: auto; height: auto; gap: .45rem; display: inline-flex; align-items: center; padding: .5rem 1rem; border-radius: 999px; font-size: 13.5px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; }
.summary .pa-btn[aria-pressed="true"] { box-shadow: none; }

/* Wishlist + compare pages */
.saved-page { padding-bottom: 1rem; }
.saved ul.products li.product .button { bottom: 0; }
.saved-remove {
	position: absolute; top: .7rem; inset-inline-end: .7rem; z-index: 2; display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
	border: 0; border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: 0 2px 10px -2px rgb(0 0 0 / .2); cursor: pointer;
}
.saved-remove .icon { width: 17px; height: 17px; }
.saved-remove:hover { background: #d63c2f; color: #fff; }
.saved-empty { display: grid; justify-items: center; gap: .6rem; padding: 4rem 1rem; text-align: center; color: var(--muted); }
.saved-empty > .icon { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--surface-2); color: var(--accent); }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.compare :is(th, td) { padding: .8rem 1rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:nth-child(odd) { background: color-mix(in srgb, var(--surface-2) 40%, transparent); }
.compare tbody th { width: 150px; color: var(--muted); font-weight: 600; white-space: nowrap; position: sticky; inset-inline-start: 0; background: var(--surface); }
.compare thead th { position: relative; font-weight: 700; min-width: 190px; }
.compare thead img { width: 100%; max-width: 170px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin-bottom: .6rem; background: #fff; }
.compare thead a span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.7; font-size: 13.5px; }
.compare thead .saved-remove { top: 1.2rem; inset-inline-end: 1.4rem; }
.compare-price { font-weight: 900; color: var(--accent); }
.compare-price small, .saved .price small { font-size: 11px; font-weight: 500; color: var(--muted); }
.compare .na { color: var(--muted); }
.compare .button { position: static !important; display: inline-grid !important; place-items: center; width: 46px; height: 46px; padding: 0 !important; border-radius: 14px; line-height: 0 !important; }
.compare .button::after { display: none !important; }
.compare .button .icon-check, .compare .button.added .icon-cart { display: none; }
.compare .button.added .icon-check { display: block; }
.compare .added_to_cart { display: none !important; }

/* Cart toast + header badge bump after AJAX add */
.toast {
	position: fixed; inset-inline: 0; bottom: 1.4rem; margin-inline: auto; width: max-content; max-width: calc(100% - 32px); z-index: 99;
	display: flex; align-items: center; gap: .9rem; padding: .7rem .8rem .7rem 1.1rem; border-radius: 999px;
	background: var(--espresso); color: var(--cream); box-shadow: 0 18px 40px -12px rgb(0 0 0 / .5); font-size: 14px;
	translate: 0 calc(100% + 3rem); visibility: hidden; transition: translate .45s cubic-bezier(.2,.9,.3,1.2), visibility 0s .45s;
}
.toast.show { translate: 0 0; visibility: visible; transition-delay: 0s; }
.toast .icon { color: var(--gold); }
.toast a { padding: .35rem 1rem; border-radius: 999px; background: var(--ember); color: #fff; font-weight: 700; }
.cart-count.bump { animation: bump .5s; }
@keyframes bump { 40% { scale: 1.45; } }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card .body { padding: 1.1rem 1.2rem 1.3rem; }
.post-card time { font-size: 12.5px; color: var(--accent); font-weight: 700; }
.post-card h3 { font-size: 1.05rem; margin: .3rem 0 .4rem; }
.post-card p { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--surface-2); padding: 2.6rem 0 2.2rem; margin-bottom: 2.5rem; border-radius: 0 0 32px 32px; }
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 2.3rem); margin: 0; }
.page-hero .woocommerce-breadcrumb, .page-hero .crumbs { color: var(--muted); font-size: 13px; margin: 0 0 .3rem; }
.content { padding-bottom: 4rem; }
.prose { max-width: 820px; margin-inline: auto; }
.prose img { border-radius: 14px; margin-block: 1.2rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose table, .woocommerce-Tabs-panel table, .woocommerce-product-details__short-description table { width: 100% !important; border-collapse: collapse; }
:is(.prose, .woocommerce-Tabs-panel, .woocommerce-product-details__short-description) :is(th, td) { text-align: start !important; vertical-align: top; }
:is(.prose, .woocommerce-Tabs-panel, .woocommerce-product-details__short-description) tr > :first-child { width: 38%; color: var(--muted) !important; font-weight: 600; }
:is(.prose, .woocommerce-Tabs-panel, .woocommerce-product-details__short-description) tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
:is(.prose, .woocommerce-Tabs-panel, .woocommerce-product-details__short-description) :is(td, th) { padding: .55rem .7rem !important; border-bottom: 1px solid var(--line) !important; color: inherit !important; background: none !important; font-family: inherit !important; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 900px) { .archive-grid { grid-template-columns: 1fr; } }

/* ---------- WooCommerce shop & single product ---------- */
.woocommerce .woocommerce-result-count { color: var(--muted); font-size: 13.5px; }
.woocommerce .woocommerce-ordering select { width: auto; border-radius: 999px; }
.woocommerce nav.woocommerce-pagination ul { border: 0 !important; display: flex; gap: .4rem; justify-content: center; }
.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { border-radius: 50%; width: 40px; height: 40px; display: grid !important; place-items: center; background: var(--surface); color: var(--text); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--accent) !important; color: var(--accent-ink) !important; }

.woocommerce div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce div.product div.images img { border-radius: var(--radius); background: #fff; }
.woocommerce div.product .flex-control-thumbs { display: flex; gap: .6rem; margin-top: .7rem !important; }
.woocommerce div.product .flex-control-thumbs li { width: 76px !important; }
.woocommerce div.product .flex-control-thumbs img { border-radius: 10px; }
.woocommerce div.product .product_title { font-size: clamp(1.3rem, 2.4vw, 1.85rem); }
.woocommerce div.product p.price { color: var(--accent) !important; font-size: 1.7rem !important; font-weight: 900; }
.woocommerce div.product .woocommerce-product-details__short-description { color: var(--muted); font-size: 14px; }
.woocommerce div.product form.cart { display: flex; gap: .7rem; align-items: stretch; margin-block: 1.5rem; }
.woocommerce div.product form.cart .qty { width: 5em; border-radius: 999px; text-align: center; }
.woocommerce div.product form.cart .button { flex: 1; font-size: 1rem; }
.woocommerce div.product .product_meta { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0 !important; margin-bottom: 1rem !important; display: flex; gap: .4rem; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--surface) !important; border: 1.5px solid var(--line) !important; border-radius: 999px !important; margin: 0 !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: var(--text) !important; padding: .4rem 1.1rem !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--text) !important; border-color: var(--text) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--bg) !important; }
.woocommerce div.product .woocommerce-tabs .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.8rem; }
.woocommerce div.product .related > h2 { margin-top: 2rem; }
@media (max-width: 860px) { .woocommerce div.product { grid-template-columns: 1fr; gap: 1.5rem; } }

.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--surface) !important; color: var(--text) !important; border-top-color: var(--accent) !important; border-radius: 12px; }
.woocommerce table.shop_table { border-radius: var(--radius) !important; background: var(--surface); border-color: var(--line) !important; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--line) !important; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-checkout-review-order { background: var(--surface); border-radius: var(--radius); padding: 1.2rem; }
.wc-block-components-button:not(.is-link) { background: var(--accent) !important; color: var(--accent-ink) !important; border-radius: 999px !important; }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { color: var(--text); }
.wc-block-components-text-input input, .wc-block-components-combobox input, .wc-blocks-components-select select { background: var(--surface) !important; color: var(--text) !important; border-color: var(--line) !important; }
.wc-block-components-text-input label, .wc-block-components-combobox label { color: var(--muted) !important; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 5rem; background: var(--deep); color: rgb(240 236 227 / .74); border-radius: 40px 40px 0 0; font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-block: 3.5rem 2.5rem; }
.site-footer h4 { color: var(--cream); font-size: 15px; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer .brand img { width: 170px; margin-bottom: 1rem; }
.site-footer address { font-style: normal; display: flex; gap: .5rem; }
.site-footer address .icon { color: var(--ember); }
.newsletter { display: flex; gap: .4rem; margin-top: .8rem; }
.newsletter input { background: rgb(240 236 227 / .08); border-color: rgb(240 236 227 / .16); color: var(--cream); border-radius: 999px; }
.footer-bottom { border-top: 1px solid rgb(240 236 227 / .1); padding-block: 1.2rem; font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.theme-switch {
	display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem .45rem .85rem; border-radius: 999px; cursor: pointer;
	border: 1px solid rgb(240 236 227 / .18); background: rgb(240 236 227 / .06); color: var(--cream); font-size: 13px;
	transition: background .2s, border-color .2s, color .2s;
}
.theme-switch b { font-weight: 600; }
.theme-switch .icon { width: 18px; height: 18px; color: var(--gold); transition: rotate .5s; }
.theme-switch:hover { background: rgb(240 236 227 / .12); border-color: var(--gold); color: var(--gold); }
.theme-switch:hover .icon { rotate: 30deg; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* My Account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; }
.woocommerce-account .woocommerce > :not(.woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) { grid-column: 1 / -1; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-account .woocommerce-MyAccount-navigation { grid-column: 1; grid-row: 2; }
.woocommerce-account .woocommerce-MyAccount-content { grid-column: 2; grid-row: 2; }
.woocommerce-MyAccount-navigation { position: sticky; top: 96px; padding: .6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.woocommerce-MyAccount-navigation a { text-decoration: none; display: flex; align-items: center; gap: .7rem; padding: .65rem .85rem; border-radius: 12px; font-weight: 600; font-size: 14px; }
.woocommerce-MyAccount-navigation a::before { content: ""; width: 20px; height: 20px; flex: none; background: currentColor; opacity: .6; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.woocommerce-MyAccount-navigation-link--dashboard a::before { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2213%22%20y%3D%224%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%224%22%20y%3D%2213%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3Crect%20x%3D%2213%22%20y%3D%2213%22%20width%3D%227%22%20height%3D%227%22%20rx%3D%221.5%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--orders a::before { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207.5%2012%203l9%204.5v9L12%2021l-9-4.5z%22/%3E%3Cpath%20d%3D%22M3%207.5%2012%2012l9-4.5M12%2012v9%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--bookmarks a::before { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%204h12v17l-6-4.2L6%2021z%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--downloads a::before { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%204v11m-4.5-4.5L12%2015l4.5-4.5M5%2020h14%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-address a::before { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2021s-7-6.2-7-11a7%207%200%200%201%2014%200c0%204.8-7%2011-7%2011z%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%222.5%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--edit-account a::before { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%228%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M4%2021a8%208%200%200%201%2016%200%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%204h4a2%202%200%200%201%202%202v12a2%202%200%200%201-2%202h-4M10%2016l-4-4%204-4M6%2012h10%22/%3E%3C/svg%3E"); }
.woocommerce-MyAccount-navigation a:hover { background: var(--surface-2); color: var(--text); }
.woocommerce-MyAccount-navigation .is-active a { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.woocommerce-MyAccount-navigation .is-active a::before { opacity: 1; }
.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: .4rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.woocommerce-MyAccount-navigation-link--customer-logout a:hover { color: #d63c2f; }
.woocommerce-MyAccount-content .saved ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
	.woocommerce-account .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
	.woocommerce-MyAccount-navigation { position: static; padding: .4rem; }
	.woocommerce-account .woocommerce-MyAccount-navigation { grid-row: 2; }
	.woocommerce-account .woocommerce-MyAccount-content { grid-column: 1; grid-row: 3; }
	.woocommerce-MyAccount-navigation ul { display: flex; overflow-x: auto; scrollbar-width: none; }
	.woocommerce-MyAccount-navigation a { white-space: nowrap; padding: .5rem .8rem; }
	.woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
	.woocommerce-MyAccount-content .saved ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Contact Form 7 */
.wpcf7 form { display: grid; gap: .9rem; }
.wpcf7 label { display: grid; gap: .3rem; font-weight: 600; font-size: 14px; }

/* Reveal on scroll: main.js adds .js-reveal only when IntersectionObserver exists and motion is allowed,
   so content is never hidden for no-JS or reduced-motion visitors. */
.js-reveal .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s cubic-bezier(.2,.7,.2,1), translate .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js-reveal .reveal.in { opacity: 1; translate: none; }
@media (prefers-reduced-motion: no-preference) {
	.hero .wrap > div > * { animation: hero-in .9s cubic-bezier(.2,.7,.2,1) both; }
	.hero .wrap > div > :nth-child(2) { animation-delay: .08s; }
	.hero .wrap > div > :nth-child(3) { animation-delay: .16s; }
	.hero .wrap > div > :nth-child(4) { animation-delay: .24s; }
	.hero .wrap > div > :nth-child(5) { animation-delay: .32s; }
	.hero-mosaic a { animation: tile-in 1s cubic-bezier(.2,.7,.2,1) both; }
	.hero-mosaic a:nth-child(2) { animation-delay: .12s; }
	.hero-mosaic a:nth-child(3) { animation-delay: .24s; }
	.hero-mosaic a:nth-child(4) { animation-delay: .36s; }
	@keyframes hero-in { from { opacity: 0; translate: 0 24px; } }
	@keyframes tile-in { from { opacity: 0; scale: .92; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
