/* =========================================================================
   Sanorea — main stylesheet
   Values mirror the original Tailwind build (src/index.css, tailwind.config.js
   and the component class lists) so the WordPress output matches the app.
   ========================================================================= */

:root {
	--background: hsl(34 45% 93%);
	--foreground: hsl(22 16% 18%);
	--card: hsl(37 62% 96%);
	--primary: hsl(19 56% 42%);
	--primary-hover: #8e4423;
	--primary-foreground: hsl(34 45% 93%);
	--muted: hsl(34 47% 85%);
	--muted-foreground: hsl(22 27% 33%);
	--accent: hsl(33 64% 68%);
	--border: hsl(33 29% 77%);
	--input: hsl(33 29% 77%);
	--ring: hsl(33 64% 68%);
	--destructive: hsl(0 84.2% 60.2%);
	--price: #b9772e;
	--price-old: #8a6f5d;
	--star: #c98a4b;
	--radius: 2px; /* rounded-md = calc(0.25rem - 2px) */
	--font-display: 'Instrument Serif', Georgia, serif;
	--font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
	--shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
	--admin-bar: var(--wp-admin--admin-bar--height, 0px);
}

/* ---------- Base (subset of Tailwind preflight) ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip; /* last-resort guard; components are built not to overflow */
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
p, figure, blockquote, dl, dd { margin: 0; }
a { color: inherit; text-decoration: inherit; }
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: transparent; cursor: pointer; padding: 0; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--foreground); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 8px; top: 8px; z-index: 100000; padding: 12px 16px;
	background: var(--foreground); color: var(--background);
}
.muted { color: var(--muted-foreground); }

.container { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 2.5rem; padding-right: 2.5rem; }
@media (max-width: 479px) {
	.container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

/* ---------- Buttons & inputs (shadcn "Button" / "Input") ---------- */
.sanorea-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	white-space: nowrap; border-radius: var(--radius);
	font-size: 14px; font-weight: 500; line-height: 20px;
	height: 36px; padding: 8px 16px;
	background: var(--primary); color: var(--primary-foreground);
	box-shadow: var(--shadow);
	transition: background-color .15s, color .15s, opacity .15s;
}
.sanorea-btn:hover { background: hsl(19 56% 42% / 0.9); }
.sanorea-btn--block { width: 100%; }
.sanorea-btn--lg { height: 40px; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: var(--admin-bar); z-index: 40;
	border-bottom: 1px solid var(--border);
	background: var(--background);
}
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.announcement {
	background: var(--primary); color: var(--primary-foreground);
	padding: 9px 16px; text-align: center;
	font-size: 11px; font-weight: 500; line-height: 16px;
	text-transform: uppercase; letter-spacing: 0.14em;
}
.site-header__inner { position: relative; padding: 20px 24px 16px; }
.site-logo {
	display: block; text-align: center;
	font-family: var(--font-display); font-size: 40px; line-height: 1.1; letter-spacing: -0.01em;
	color: var(--foreground);
	margin: 0 56px; /* keeps the wordmark clear of the search and cart buttons */
}
.site-logo--image img, .site-logo--image .custom-logo { margin: 0 auto; max-height: 44px; width: auto; }
.header-cart {
	position: absolute; right: 24px; top: 28px;
	display: flex; align-items: center; gap: 8px;
	font-size: 14px; line-height: 20px; color: var(--foreground);
	transition: color .2s;
}
.header-cart:hover, .header-search-toggle:hover { color: var(--primary); }
.header-search-toggle {
	position: absolute; left: 24px; top: 28px;
	display: flex; align-items: center; color: var(--foreground); transition: color .2s;
}
.primary-nav { margin-top: 16px; }
.primary-nav__list {
	display: flex; justify-content: flex-start; gap: 28px;
	list-style: none; margin: 0; padding: 0 0 2px;
	overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.primary-nav__list::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .primary-nav__list { justify-content: center; } }
.primary-nav__list li { flex: none; }
.primary-nav__list a {
	white-space: nowrap; font-size: 12px; font-weight: 500; line-height: 16px;
	text-transform: uppercase; letter-spacing: 0.16em;
	color: var(--muted-foreground); transition: color .2s;
}
.primary-nav__list a:hover { color: var(--primary); }
.header-search { border-top: 1px solid var(--border); padding: 12px 24px; }
.header-search__form { display: flex; gap: 8px; max-width: 36rem; margin: 0 auto; }
.header-search__input { flex: 1; min-width: 0; }

@media (max-width: 380px) {
	.site-header__inner { padding-left: 16px; padding-right: 16px; }
	.header-cart { right: 16px; }
	.header-search-toggle { left: 16px; }
	.site-logo { font-size: 34px; margin: 0 48px; }
	.primary-nav__list { gap: 22px; }
}

/* Shared input style (shadcn Input) */
.header-search__input,
.sanorea-input,
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select,
.woocommerce .quantity .qty,
.woocommerce-page form .form-row .input-text,
.woocommerce form.woocommerce-form-track-order .input-text,
.woocommerce table.variations select,
.woocommerce #coupon_code,
.woocommerce-cart table.cart td.actions .coupon .input-text {
	height: 36px; width: 100%;
	border: 1px solid var(--input); border-radius: var(--radius);
	background: transparent; color: var(--foreground);
	padding: 4px 12px; font-size: 16px; line-height: 1.5;
	box-shadow: var(--shadow-sm);
	transition: border-color .15s, box-shadow .15s;
}
@media (min-width: 768px) {
	.header-search__input, .sanorea-input,
	.woocommerce form .form-row .input-text, .woocommerce form .form-row select,
	.woocommerce table.variations select, .woocommerce #coupon_code { font-size: 14px; }
}
.woocommerce form .form-row textarea.input-text { height: auto; min-height: 88px; padding: 8px 12px; }
.header-search__input:focus, .sanorea-input:focus,
.woocommerce form .form-row .input-text:focus, .woocommerce form .form-row select:focus,
.woocommerce .quantity .qty:focus, .woocommerce table.variations select:focus, .woocommerce #coupon_code:focus {
	outline: none; border-color: var(--ring); box-shadow: 0 0 0 1px var(--ring);
}
::placeholder { color: var(--muted-foreground); opacity: 1; }

/* ---------- Home ---------- */
.hero { position: relative; }
.hero__img { width: 100%; height: 78vh; min-height: 520px; object-fit: cover; background: var(--muted); }
.hero__overlay {
	position: absolute; inset: 0;
	display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
	padding: 0 24px 64px; text-align: center; color: var(--background);
	background: linear-gradient(to top, rgba(59, 32, 18, 0.88), rgba(59, 32, 18, 0.25) 55%, rgba(59, 32, 18, 0));
}
.hero__title { font-family: var(--font-display); font-size: clamp(3.5rem, 10vw, 9rem); line-height: 1; letter-spacing: -0.03em; }
.hero__subtitle { margin-top: 14px; font-size: 19px; letter-spacing: 0.02em; }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-hero {
	display: inline-block; border: 1px solid; padding: 14px 28px;
	font-size: 12px; font-weight: 600; line-height: 16px; text-transform: uppercase; letter-spacing: 0.14em;
	transition: background-color .25s, color .25s, box-shadow .25s;
}
.btn-hero:active { opacity: .85; }
.btn-hero--solid { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }
.btn-hero--solid:hover { background: var(--primary-hover); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.btn-hero--ghost { border-color: var(--background); color: var(--background); }
.btn-hero--ghost:hover { background: var(--background); color: var(--foreground); }
@media (max-width: 400px) { .btn-hero { padding: 14px 20px; } }

.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--muted); padding: 16px 0; }
.marquee__track {
	display: flex; width: max-content; gap: 40px; white-space: nowrap;
	font-family: var(--font-display); font-size: 24px; line-height: 32px; color: var(--primary);
	animation: sanorea-marquee 40s linear infinite;
}
.marquee__item { display: flex; align-items: center; gap: 40px; }
.marquee__star { font-size: 12px; line-height: 16px; color: var(--star); }
@keyframes sanorea-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.trust { display: grid; column-gap: 36px; row-gap: 44px; padding-top: 96px; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust__item { border-top: 1px solid var(--foreground); padding-top: 22px; }
.trust__icon { width: 26px; height: 26px; color: var(--primary); }
.trust__title { margin-top: 18px; font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.trust__text { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted-foreground); }

.home-section { padding-top: 96px; }
.section-title { font-family: var(--font-display); font-size: 52px; line-height: 1.05; letter-spacing: -0.01em; }
@media (max-width: 479px) { .section-title { font-size: 44px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-head .link-underline { flex: none; }
.link-underline {
	display: inline-block; border-bottom: 1px solid var(--foreground); padding-bottom: 2px;
	font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: 0.14em;
}
.category-grid { margin-top: 36px; display: grid; gap: 20px; }
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.category-card { display: block; }
.category-card__media { overflow: hidden; border-radius: 2px; background: var(--muted); }
.category-card__img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; transition: transform .7s var(--ease-out); }
.category-card:hover .category-card__img { transform: scale(1.05); }
.category-card__title { margin-top: 16px; font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.category-card__blurb { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--muted-foreground); }
.category-card .link-underline { margin-top: 12px; }
.home-products { margin-top: 36px; }

/* ---------- Animations (original "rise") ---------- */
@keyframes sanorea-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.rise, .woocommerce ul.products li.product { animation: sanorea-up .8s var(--ease-out) both; }
.rise-hero { animation: sanorea-up .9s var(--ease-out) both; }
.rise-2 { animation-delay: .15s; }
.rise-3 { animation-delay: .3s; }
.rise-list > *:nth-child(2), .woocommerce ul.products li.product:nth-child(2) { animation-delay: .1s; }
.rise-list > *:nth-child(3), .woocommerce ul.products li.product:nth-child(3) { animation-delay: .2s; }
.rise-list > *:nth-child(4), .woocommerce ul.products li.product:nth-child(4) { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
	.rise, .rise-hero, .woocommerce ul.products li.product { animation: none; }
	.marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 24px; }
	.category-card__img, .card-media img { transition: none; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 110px; background: var(--foreground); color: var(--background); padding: 72px 40px 28px; }
.site-footer__grid { max-width: 80rem; margin: 0 auto; display: grid; gap: 36px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.1fr 1fr 1.2fr; } }
.site-footer__brand { font-family: var(--font-display); font-size: 38px; line-height: 1.1; }
.site-footer__tagline { margin-top: 14px; max-width: 220px; font-size: 13px; line-height: 1.7; color: var(--border); }
.site-footer__heading { margin-bottom: 16px; font-size: 12px; font-weight: 500; line-height: 16px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); }
.footer-links { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.5; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.site-footer__company { font-size: 13px; line-height: 1.7; color: var(--border); overflow-wrap: anywhere; }
.site-footer__email { display: block; margin-top: 8px; text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom { max-width: 80rem; margin: 52px auto 0; border-top: 1px solid rgb(245 238 229 / 0.15); padding-top: 20px; font-size: 12px; line-height: 16px; color: var(--border); }
@media (max-width: 479px) { .site-footer { padding-left: 24px; padding-right: 24px; } }

/* ---------- Pages (policies, generic) ---------- */
.page-article { max-width: 48rem; margin: 0 auto; padding: 80px 24px; }
.page-article--wide { max-width: 80rem; }
.page-article--narrow { max-width: 36rem; padding-top: 96px; padding-bottom: 96px; }
.page-title { font-family: var(--font-display); font-size: clamp(2.75rem, 10vw, 3.75rem); line-height: 1; overflow-wrap: break-word; }
.entry-content { overflow-wrap: break-word; }
.entry-content > h2, .entry-content > .wp-block-heading { margin-top: 40px; font-family: var(--font-display); font-size: 1.875rem; line-height: 2.25rem; }
.entry-content > h3 { margin-top: 28px; font-family: var(--font-display); font-size: 1.5rem; line-height: 2rem; }
.entry-content > p, .entry-content > ul, .entry-content > ol { margin-top: 12px; line-height: 1.625; color: rgb(59 42 33 / 0.8); }
.entry-content > h2 + p { margin-top: 12px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--primary); }
.entry-content img { border-radius: 2px; }
.page-article--wide .entry-content > .woocommerce { margin-top: 32px; }
.post-list { margin-top: 40px; display: grid; gap: 32px; }
.post-list__title { font-family: var(--font-display); font-size: 30px; line-height: 1.2; }
.post-list__excerpt { margin-top: 8px; color: var(--muted-foreground); }

.not-found { padding: 128px 24px; text-align: center; }
.not-found__title { font-family: var(--font-display); font-size: 48px; line-height: 1; }
.not-found__link { display: inline-block; margin-top: 24px; text-decoration: underline; }

/* Order tracking (original layout: intro, two inputs, full-width button) */
.order-tracking .entry-content > p:first-child { margin-top: 16px; color: var(--muted-foreground); }
.woocommerce form.woocommerce-form-track-order { margin-top: 32px; }
.woocommerce form.woocommerce-form-track-order > p:first-child { display: none; } /* replaced by the page intro */
.woocommerce form.woocommerce-form-track-order .form-row { float: none; width: 100%; margin: 0 0 16px; padding: 0; }
.woocommerce form.woocommerce-form-track-order label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted-foreground); }
.woocommerce form.woocommerce-form-track-order .button { width: 100%; }
.woocommerce form.woocommerce-form-track-order .clear { display: none; }

/* =========================================================================
   WooCommerce — shared
   ========================================================================= */
.shop-container { max-width: 80rem; margin: 0 auto; padding: 80px 24px; }
.shop-container--product { padding-top: 64px; padding-bottom: 64px; }

/* Buttons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .woocommerce #respond input#submit.alt,
.woocommerce-page a.button, .woocommerce-page button.button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 36px; padding: 8px 16px;
	border-radius: var(--radius); border: 0;
	background: var(--primary); color: var(--primary-foreground);
	font-family: var(--font-body); font-size: 14px; font-weight: 500; line-height: 20px;
	text-shadow: none; box-shadow: var(--shadow);
	transition: background-color .15s, opacity .15s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover,
.woocommerce #respond input#submit:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover, .woocommerce-page a.button:hover, .woocommerce-page button.button:hover {
	background: hsl(19 56% 42% / 0.9); color: var(--primary-foreground);
}
.woocommerce a.button.disabled, .woocommerce a.button:disabled, .woocommerce a.button:disabled[disabled],
.woocommerce button.button.disabled, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled],
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt:disabled, .woocommerce button.button.alt:disabled[disabled],
.woocommerce input.button:disabled {
	background: var(--primary); color: var(--primary-foreground); opacity: .5; padding: 8px 16px; cursor: not-allowed;
}
.woocommerce a.button.loading, .woocommerce button.button.loading { opacity: .6; }

/* Notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews, p.no-comments {
	background: var(--card); color: var(--foreground);
	border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: var(--radius);
	font-size: 14px; line-height: 1.6;
}
.woocommerce-error { border-top-color: var(--destructive); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--primary); }
.woocommerce-message .button, .woocommerce-info .button { margin-left: 12px; }
.woocommerce-message a:not(.button), .woocommerce-info a:not(.button) { text-decoration: underline; }

/* Price */
.woocommerce .price .woocommerce-Price-amount, .woocommerce-Price-amount { white-space: nowrap; }
.woocommerce .price ins { text-decoration: none; background: none; }

/* Stars (keep WooCommerce font; recolour) */
.woocommerce .star-rating span::before, .woocommerce p.stars a { color: var(--price); }

/* Pagination */
.woocommerce nav.woocommerce-pagination { margin-top: 48px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; display: inline-flex; gap: 6px; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
	min-width: 36px; padding: 8px 10px; border: 1px solid var(--border); font-size: 13px;
}
.woocommerce nav.woocommerce-pagination ul li a:hover, .woocommerce nav.woocommerce-pagination ul li span.current {
	background: var(--foreground); color: var(--background); border-color: var(--foreground);
}

/* =========================================================================
   Archives
   ========================================================================= */
.woocommerce-products-header { margin: 0; padding: 0; }
.woocommerce-products-header__title.page-title { font-family: var(--font-display); font-size: clamp(2.75rem, 10vw, 3.75rem); line-height: 1; }
.woocommerce-products-header .term-description, .woocommerce-products-header .page-description { margin-top: 12px; max-width: 40rem; font-size: 14px; color: var(--muted-foreground); }
.category-chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; line-height: 20px; text-transform: uppercase; letter-spacing: 0.1em; }
.chip { border: 1px solid var(--border); padding: 8px 16px; transition: border-color .15s; }
.chip:hover, .chip.is-active { border-color: var(--primary); }
.chip.is-active { color: var(--primary); }
.woocommerce .woocommerce-info.woocommerce-no-products-found, .woocommerce-no-products-found .woocommerce-info { margin-top: 48px; }

/* Grid (replaces WooCommerce float columns) */
.woocommerce ul.products, .woocommerce-page ul.products {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 20px; row-gap: 40px;
	margin: 48px 0 0; padding: 0; list-style: none;
}
.home-products .woocommerce ul.products, .related ul.products, .upsells ul.products, .cross-sells ul.products { margin-top: 0; column-gap: 16px; row-gap: 36px; }
.woocommerce ul.products::before, .woocommerce ul.products::after,
.woocommerce-page ul.products::before, .woocommerce-page ul.products::after { display: none; }
@media (min-width: 1024px) {
	.woocommerce ul.products.columns-3, .woocommerce-page ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.woocommerce ul.products.columns-4, .woocommerce-page ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product, .woocommerce-page ul.products[class*="columns-"] li.product {
	float: none; width: auto; margin: 0; clear: none; padding: 0; text-align: left; min-width: 0;
}

/* Product card (original ProductCard.jsx) */
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
	display: block; height: 100%;
	border: 1px solid var(--border); background: var(--card);
	padding: 10px 10px 16px;
	transition: box-shadow .3s;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link:hover { box-shadow: 0 10px 26px rgba(59, 42, 32, 0.15); }
.card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--muted); }
.woocommerce ul.products li.product .card-media img {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
	object-fit: cover; box-shadow: none;
	transition: transform .7s var(--ease-out);
}
.woocommerce ul.products li.product a:hover .card-media img { transform: scale(1.05); }
.save-badge {
	position: absolute; left: 8px; top: 8px; z-index: 1;
	background: var(--accent); color: var(--foreground);
	padding: 4px 7px; font-size: 10px; font-weight: 600; line-height: 14px;
	text-transform: uppercase; letter-spacing: 0.08em;
}
.save-badge .woocommerce-Price-amount { white-space: nowrap; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2, .woocommerce ul.products li.product h3 {
	margin-top: 14px; padding: 0;
	font-family: var(--font-body); font-size: 13px; font-weight: 400; line-height: 1.4;
	color: var(--foreground);
}
.woocommerce ul.products li.product .price {
	display: flex; flex-wrap: wrap; column-gap: 8px; row-gap: 4px;
	margin: 8px 0 0; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--price);
}
.woocommerce ul.products li.product .price ins { order: 1; font-weight: 600; color: var(--price); }
.woocommerce ul.products li.product .price del { order: 2; opacity: 1; font-weight: 400; color: var(--price-old); }
.woocommerce ul.products li.product .onsale { display: none; }
/* Any add-to-cart button a plugin adds back to the card */
.woocommerce ul.products li.product .button { margin-top: 12px; width: 100%; }

/* =========================================================================
   Single product
   ========================================================================= */
.woocommerce div.product, .woocommerce-page div.product {
	display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; margin: 0;
}
.woocommerce div.product > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 768px) {
	.woocommerce div.product, .woocommerce-page div.product { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.woocommerce div.product > div.images, .woocommerce div.product > .summary { grid-column: auto; }
}
.woocommerce div.product div.images, .woocommerce div.product div.summary,
.woocommerce-page div.product div.images, .woocommerce-page div.product div.summary {
	float: none; width: auto; margin: 0;
}

/* Gallery: centred, uncropped main image; thumbnails in a contained row underneath */
.woocommerce div.product div.images { position: relative; width: 100%; justify-self: center; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce div.product div.images .woocommerce-product-gallery__image > a {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 1 / 1; background: var(--muted); border-radius: 2px; overflow: hidden;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img,
.woocommerce div.product div.images img {
	width: 100%; height: 100%; object-fit: contain; box-shadow: none;
}
.woocommerce div.product div.images .flex-viewport { border-radius: 2px; }
.woocommerce div.product div.images .flex-control-thumbs {
	display: flex; gap: 8px; margin: 12px 0 0; padding: 0 0 4px;
	overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
	scroll-snap-type: x proximity; scrollbar-width: thin; list-style: none;
}
.woocommerce div.product div.images .flex-control-thumbs li,
.woocommerce div.product div.images[class*="woocommerce-product-gallery--columns-"] .flex-control-thumbs li {
	flex: 0 0 76px; width: 76px !important; margin: 0 !important; float: none !important; clear: none !important;
	scroll-snap-align: start;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
	aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover;
	background: var(--muted); border: 1px solid transparent; border-radius: 2px;
	opacity: .6; transition: opacity .15s, border-color .15s;
}
.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { opacity: 1; border-color: var(--foreground); }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { z-index: 5; }
@media (min-width: 768px) {
	.woocommerce div.product div.images {
		position: sticky; align-self: start;
		top: calc(var(--admin-bar) + var(--sanorea-header-h, 160px) + 24px);
		/* keep main image + thumbnails within the viewport while sticky */
		max-width: min(100%, max(340px, calc(100vh - var(--admin-bar) - var(--sanorea-header-h, 160px) - 140px)));
	}
	.woocommerce div.product div.images .flex-control-thumbs li,
	.woocommerce div.product div.images[class*="woocommerce-product-gallery--columns-"] .flex-control-thumbs li { flex-basis: 84px; width: 84px !important; }
}

/* Summary */
.woocommerce div.product .product_title {
	font-family: var(--font-display); font-size: 36px; line-height: 1.25; font-weight: 400; margin: 0;
	overflow-wrap: break-word;
}
@media (min-width: 768px) { .woocommerce div.product .product_title { font-size: 48px; line-height: 1.15; } }
.woocommerce div.product .summary p.price, .woocommerce div.product .summary span.price {
	display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px;
	margin: 20px 0 0; font-size: 20px; line-height: 28px; color: var(--primary);
}
.woocommerce div.product .summary p.price ins, .woocommerce div.product .summary span.price ins { order: 1; font-weight: 400; color: var(--primary); }
.woocommerce div.product .summary p.price del, .woocommerce div.product .summary span.price del { order: 2; opacity: 1; font-size: 16px; color: var(--muted-foreground); }
.woocommerce-product-details__short-description { margin-top: 24px; line-height: 1.625; color: rgb(59 42 33 / 0.8); }
.woocommerce-product-details__short-description > * + * { margin-top: 16px; }
.woocommerce-product-details__short-description ul { padding-left: 1.2em; }
.woocommerce-product-details__short-description ul.sanorea-features,
.woocommerce-product-details__short-description .sanorea-features { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 8px; font-size: 14px; color: var(--foreground); }
.sanorea-features li { display: flex; align-items: center; gap: 8px; }
.sanorea-features li::before {
	content: ""; flex: none; width: 16px; height: 16px; background: var(--primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce div.product .stock { margin-top: 16px; font-size: 14px; color: var(--muted-foreground); }
.woocommerce div.product .stock.out-of-stock { color: var(--destructive); }

/* Add to cart (simple, variable, grouped) */
.woocommerce div.product form.cart { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; flex: none; }
.woocommerce div.product form.cart .quantity .qty { width: 72px; height: 40px; text-align: center; padding: 4px 6px; }
.woocommerce div.product form.cart .button,
.woocommerce div.product form.cart .single_add_to_cart_button {
	float: none; flex: 1 1 180px; min-height: 40px; padding: 0 32px;
}
.woocommerce div.product form.cart .single_add_to_cart_button.disabled { flex: 1 1 180px; }
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product form.cart .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.woocommerce div.product form.cart table.variations { margin: 0; border: 0; width: 100%; }
.woocommerce div.product form.cart table.variations th, .woocommerce div.product form.cart table.variations td { display: block; padding: 0; text-align: left; border: 0; line-height: 1.4; }
.woocommerce div.product form.cart table.variations th.label { padding-top: 12px; padding-bottom: 6px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
.woocommerce div.product form.cart table.variations select { height: 40px; min-width: 0; max-width: 100%; margin: 0; }
.woocommerce div.product form.cart .reset_variations { display: inline-block; margin-top: 8px; font-size: 12px; text-decoration: underline; }
.woocommerce div.product form.cart .woocommerce-variation-price { margin-top: 12px; }
.woocommerce div.product form.cart .woocommerce-variation-description { margin-top: 8px; font-size: 14px; color: var(--muted-foreground); }
.woocommerce div.product form.cart.grouped_form table { width: 100%; }
.product-note { margin-top: 16px; font-size: 12px; line-height: 16px; color: var(--muted-foreground); }

/* Tabs, related */
.woocommerce div.product .woocommerce-tabs { margin-top: 16px; }
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex; flex-wrap: wrap; gap: 24px; margin: 0 0 24px; padding: 0;
	border-bottom: 1px solid var(--border); overflow: visible;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block; padding: 12px 0; margin-bottom: -1px; border-bottom: 1px solid transparent;
	font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-foreground);
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--foreground); border-bottom-color: var(--foreground); }
.woocommerce div.product .woocommerce-tabs .panel { margin: 0; line-height: 1.625; color: rgb(59 42 33 / 0.85); }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce div.product .woocommerce-tabs .panel p + p { margin-top: 12px; }
.woocommerce table.shop_attributes { border-color: var(--border); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border-color: var(--border); padding: 8px 12px; font-style: normal; }
.woocommerce table.shop_attributes tr:nth-child(even) th, .woocommerce table.shop_attributes tr:nth-child(even) td { background: var(--card); }
.related > h2, .upsells > h2, .cross-sells > h2 { font-family: var(--font-display); font-size: 40px; line-height: 1.05; margin: 32px 0 28px; }
#reviews #comments h2, #review_form .comment-reply-title { font-family: var(--font-display); font-size: 26px; }

/* =========================================================================
   Cart drawer (original Sheet, right side)
   ========================================================================= */
.drawer-overlay {
	position: fixed; inset: 0; z-index: 9998; background: rgb(0 0 0 / 0.8);
	opacity: 0; transition: opacity .3s;
}
.drawer-overlay.is-open { opacity: 1; transition-duration: .5s; }
.cart-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 9999;
	display: flex; flex-direction: column;
	width: 100%; height: 100%; max-height: 100dvh;
	padding: 24px; background: var(--background);
	border-left: 1px solid var(--border);
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	transform: translateX(100%); visibility: hidden;
	transition: transform .3s ease-in-out, visibility 0s linear .3s;
}
@media (min-width: 640px) { .cart-drawer { max-width: 28rem; } }
.cart-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .5s ease-in-out, visibility 0s; }
.cart-drawer:focus { outline: none; }
html.sanorea-drawer-open, html.sanorea-drawer-open body { overflow: hidden; }
.cart-drawer__head { padding-right: 32px; }
.cart-drawer__title { font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 400; }
.cart-drawer__close { position: absolute; right: 16px; top: 16px; border-radius: 2px; opacity: .7; transition: opacity .15s; padding: 4px; }
.cart-drawer__close:hover { opacity: 1; }
.sanorea-drawer-body { display: flex; flex-direction: column; flex: 1; min-height: 0; transition: opacity .15s; }
.sanorea-drawer-body.is-busy { opacity: .55; pointer-events: none; }
.drawer-empty { margin-top: 40px; font-size: 14px; color: var(--muted-foreground); }
.drawer-shipping { margin-top: 8px; font-size: 14px; color: var(--primary); }
.drawer-error { margin-top: 8px; font-size: 13px; color: var(--destructive); }
.drawer-lines { list-style: none; margin: 16px 0 0; padding: 0; flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 20px; }
.drawer-line { display: flex; gap: 16px; }
.drawer-line__thumb { flex: none; width: 80px; height: 80px; overflow: hidden; border-radius: 2px; background: var(--muted); }
.drawer-line__thumb img { width: 80px; height: 80px; object-fit: cover; }
.drawer-line__info { flex: 1; min-width: 0; font-size: 14px; line-height: 20px; }
.drawer-line__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drawer-line__info dl.variation { margin: 4px 0 0; font-size: 12px; color: var(--muted-foreground); }
.drawer-line__info dl.variation dt, .drawer-line__info dl.variation dd { display: inline; margin: 0; }
.drawer-line__info dl.variation dd p { display: inline; }
.drawer-line__price { margin-top: 4px; color: var(--muted-foreground); }
.drawer-line__qty { margin-top: 8px; display: flex; align-items: center; gap: 12px; }
.qty-btn { display: inline-flex; padding: 2px; border-radius: 2px; }
.qty-btn:hover { color: var(--primary); }
.drawer-foot { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.drawer-subtotal { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 14px; }
.drawer-viewcart { display: block; margin-top: 12px; text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-foreground); }
.drawer-viewcart:hover { color: var(--primary); }

/* =========================================================================
   WooCommerce Blocks (only if the store keeps block-based pages)
   ========================================================================= */
.wc-block-components-button:not(.is-link), .wp-block-button__link {
	background: var(--primary); color: var(--primary-foreground); border-radius: var(--radius); font-family: var(--font-body);
}
.wc-block-components-title, .wc-block-cart__totals-title { font-family: var(--font-display) !important; font-weight: 400 !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select {
	border-color: var(--input) !important; border-radius: var(--radius) !important; background: transparent !important;
}
