/*
 * SecHeal theme — only what theme.json can't express. Colours, fonts and spacing: theme.json / Styles panel.
 */

/* Keep the scrollbar's room when a pop-up, menu or drawer locks scrolling, so the page doesn't jump sideways. */
html {
	scrollbar-gutter: stable;
}

/* Template parts sit flush; each section brings its own spacing. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

/* The store header (SecHeal Blocks) is sticky itself; the header template part takes no box (.v-menu). */
.sh-header {
	position: relative;
	isolation: isolate;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 8%, transparent);
}
/* The blur sits on a pseudo-element: backdrop-filter on the header itself would trap the mobile menu overlay inside it. */
.sh-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--wp--preset--color--surface) 96%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
/* Cart count: brand badge (WooCommerce writes inline colours from the icon colour). */
.sh-header .wc-block-mini-cart__badge {
	background-color: var(--wp--preset--color--primary) !important;
	color: #fff !important;
	border-color: transparent !important;
}
.sh-header .wp-block-site-logo img {
	height: auto;
	display: block;
}
.sh-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.5rem 0.15rem;
}
.sh-header-tools {
	flex-shrink: 0;
}
.sh-header-tools .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 0.4rem;
	border: 0;
}
.sh-header-tools .wp-block-search__button svg {
	width: 22px;
	height: 22px;
}
/* Mobile menu: large, left-aligned links. */
.sh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
	padding-top: var(--wp--preset--spacing--60);
}
.sh-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 600;
}
@media (max-width: 599px) {
	.sh-header .wp-block-site-logo {
		order: 0;
	}
	.sh-header .wp-block-navigation {
		order: -1;
	}
}

/* Footer links. */
.sh-footer a,
.sh-footer .wp-block-navigation-item__content {
	color: var(--wp--preset--color--footer-ink);
}
.sh-footer a:hover,
.sh-footer .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--surface);
	text-decoration: none;
}
.sh-footer .wp-block-navigation-item__content {
	padding: 0;
}
.sh-footer-seo,
.sh-footer-legal {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding-top: var(--wp--preset--spacing--40);
}
.sh-footer-seo p {
	max-width: 70ch;
	opacity: 0.8;
}
.sh-footer--minimal {
	border-top: 1px solid var(--wp--preset--color--line);
}
.sh-footer--minimal a,
.sh-footer--minimal .wp-block-navigation-item__content {
	color: var(--wp--preset--color--muted);
}
@media (max-width: 781px) {
	.sh-footer .wp-block-columns {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--wp--preset--spacing--50);
	}
	.sh-footer .wp-block-columns > .wp-block-column:first-child {
		grid-column: 1 / -1;
	}
}

/* Full-width sections stack without gaps between their backgrounds. */
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * {
	margin-block-start: 0;
}
.wp-block-post-content > :first-child.alignfull {
	margin-block-start: 0;
}

/* Hero headline: second line in bold, like the demo. */
.sh-hero h1 {
	font-weight: 400;
}
.sh-hero h1 strong {
	font-weight: 800;
}

/* Category cards: whole heading is the link. */
.sh-cat-card {
	overflow: hidden;
}
.sh-cat-card h3 a {
	color: inherit;
	text-decoration: none;
}
.sh-cat-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}
.sh-cat-card img {
	transition: transform 0.6s ease;
}
.sh-cat-card:hover img {
	transform: scale(1.04);
}

/* Cards that start with an image keep the image inside the rounded corners. */
.is-style-card.sh-gift {
	overflow: hidden;
}
.sh-gift .wp-block-image {
	margin-block-end: var(--wp--preset--spacing--20);
}

/* Product cards from WooCommerce collections. */
.wc-block-product-template .wc-block-components-product-image img {
	border-radius: var(--wp--preset--border-radius--card);
}
.wc-block-product-template .wp-block-post-title a {
	color: inherit;
}

/* Comfortable focus ring everywhere. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Post cards in query loops. */
.sh-post-card .wp-block-post-featured-image img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* Product cards: price and button line up with the title. */
.wc-block-product-template .wc-block-components-product-price,
.wc-block-product-template .wc-block-components-product-rating {
	text-align: left;
}
.wc-block-product-template .wc-block-components-product-button {
	align-items: flex-start;
	justify-content: flex-start;
}

/* Phones: denser grids and a darker hero overlay so the copy stays readable over the photo. */
@media (max-width: 600px) {
	.sh-hero .wp-block-cover__background {
		background: linear-gradient(180deg, rgba(9, 8, 11, 0.6) 0%, rgba(9, 8, 11, 0.9) 100%) !important;
	}
	.sh-trust .is-layout-grid,
	.is-layout-grid:has(> .sh-gift) {
		grid-template-columns: 1fr 1fr;
	}
	.sh-trust-item {
		flex-direction: column;
		align-items: flex-start !important;
	}
	.sh-cat-card {
		min-height: 260px !important;
	}
}

/* ---------- WooCommerce ---------- */
.woocommerce span.onsale,
.wc-block-components-product-sale-badge {
	min-height: 0;
	min-width: 0;
	padding: 0.3em 0.85em;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 800;
	line-height: 1.4;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.woocommerce .star-rating,
.wc-block-components-product-rating__stars {
	color: var(--wp--preset--color--primary);
}
.sh-pdp__gallery .woocommerce-product-gallery {
	border-radius: var(--wp--preset--border-radius--card);
	overflow: hidden;
	background: var(--wp--preset--color--surface);
}
@media (min-width: 782px) {
	.sh-pdp__buy {
		position: sticky;
		top: calc(var(--wp--custom--header-height) + var(--wp-admin--admin-bar--height, 0px) + 1rem);
		align-self: flex-start;
	}
}
.sh-pdp__buy .wp-block-post-terms a {
	color: inherit;
}
.sh-pdp__buy form.cart {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: stretch;
}
.woocommerce .quantity .qty {
	min-height: 2.9rem;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--surface);
}
.sh-pdp__trust {
	padding: var(--wp--preset--spacing--40);
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--surface);
}
.sh-trust-inline {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
}
.sh-billing-note {
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--muted);
}
.sh-coming-soon {
	display: inline-block;
	padding: 0.25em 0.8em;
	border-radius: 999px;
	background: var(--wp--preset--color--lilac);
	color: var(--wp--preset--color--primary-deep);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 700;
}
.woocommerce-account .woocommerce form.login,
.woocommerce-account .woocommerce form.register {
	border-radius: var(--wp--preset--border-radius--md);
	background: var(--wp--preset--color--surface);
}

/* Demo view containers: the demo's own .wrap provides side padding, so WordPress root padding is off inside. */
.v-page {
	--wp--style--root--padding-left: 0px;
	--wp--style--root--padding-right: 0px;
}

/* Template parts whose block prints its own element (<footer>): the part wrapper adds no box. */
.sh-part {
	display: contents;
}

/* Content pages: the page's own text inside the design's text columns (.prose) keeps the design's spacing —
   WordPress's flow layout would add a top margin to every paragraph. */
.prose > .wp-block-post-content > * { margin-block-start: 0; }
.v-pg .prose > .wp-block-post-content > h2:first-child { margin-top: 0; }

/* Section pages whose content is still plain text (sections not added yet): keep the text in a readable column. */
.sh-sections > .wp-block-post-content > :where(p, h1, h2, h3, h4, ul, ol, figure, table, blockquote, .wp-block-group, .wp-block-columns, .wp-block-freeform) {
	max-width: 760px;
	margin-inline: auto;
	padding-inline: 16px;
}

/* Product page: “Write a review” form (pdp-reviews) — a card with a star picker, sent in the background. */
.v-pdp .sh-rv-form {
	max-width: 720px;
	margin: 22px 0 26px;
	padding: 28px 30px;
	border: 1px solid #ece8f3;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 14px 40px rgba(38, 20, 72, 0.08);
}
.v-pdp .sh-rv-form[hidden] {
	display: none;
}
.v-pdp .sh-rv-form .rf-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.v-pdp .sh-rv-form h3 {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
}
.v-pdp .sh-rv-form .rf-x {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #f4f1f9;
	color: #4b4357;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.v-pdp .sh-rv-form .rf-sub {
	margin: 6px 0 20px;
	color: #6b6377;
	font-size: 14px;
}
.v-pdp .sh-rv-form .rf-rate {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	margin-bottom: 18px;
}
.v-pdp .sh-rv-form .rf-lab,
.v-pdp .sh-rv-form .rf-f > span {
	font-size: 13px;
	font-weight: 700;
	color: #2a2333;
}
.v-pdp .sh-rv-form .rf-stars {
	display: inline-flex;
	flex-direction: row-reverse; /* inputs run 5 → 1, so “~” lights every star to the left */
}
.v-pdp .sh-rv-form .rf-stars input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.v-pdp .sh-rv-form .rf-stars label {
	padding: 0 3px;
	color: #ddd6e8;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.12s, transform 0.12s;
}
.v-pdp .sh-rv-form .rf-stars label:hover,
.v-pdp .sh-rv-form .rf-stars label:hover ~ label,
.v-pdp .sh-rv-form .rf-stars input:checked ~ label {
	color: #f5a524;
}
.v-pdp .sh-rv-form .rf-stars label:hover {
	transform: scale(1.12);
}
.v-pdp .sh-rv-form .rf-stars input:focus-visible + label {
	outline: 2px solid #7b4ee0;
	outline-offset: 2px;
	border-radius: 4px;
}
.v-pdp .sh-rv-form .rf-word {
	color: #9a91a6;
	font-size: 14px;
}
.v-pdp .sh-rv-form .rf-word.on {
	color: #7b4ee0;
	font-weight: 700;
}
.v-pdp .sh-rv-form .rf-f {
	position: relative;
	display: grid;
	gap: 7px;
	margin-bottom: 14px;
}
.v-pdp .sh-rv-form :is(textarea, input:not([type="radio"]):not([type="hidden"])) {
	width: 100%;
	padding: 13px 15px;
	border: 1px solid #ddd6e8;
	border-radius: 12px;
	background: #fbfafd;
	color: #1b1720;
	font: inherit;
	font-size: 15px;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.v-pdp .sh-rv-form textarea {
	min-height: 130px;
	resize: vertical;
}
.v-pdp .sh-rv-form :is(textarea, input):focus {
	border-color: #7b4ee0;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(123, 78, 224, 0.14);
	outline: 0;
}
.v-pdp .sh-rv-form .rf-f small {
	justify-self: end;
	color: #9a91a6;
	font-size: 12px;
}
.v-pdp .sh-rv-form .rf-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 14px;
}
.v-pdp .sh-rv-form .rf-note {
	margin: 2px 0 18px;
	color: #6b6377;
	font-size: 13px;
}
.v-pdp .sh-rv-form .rf-msg {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fdecef;
	color: #b4233c;
	font-size: 14px;
}
.v-pdp .sh-rv-form .rf-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.v-pdp .sh-rv-form .rf-acts .btn {
	min-width: 150px;
	justify-content: center;
}
.v-pdp .sh-rv-form .rf-acts .btn[disabled] {
	opacity: 0.6;
	cursor: wait;
}
.v-pdp .sh-rv-form .rf-done {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 18px 0;
	text-align: center;
}
.v-pdp .sh-rv-form .rf-done span {
	font-size: 34px;
}
.v-pdp .sh-rv-form .rf-done b {
	font-size: 22px;
}
.v-pdp .sh-rv-form .rf-done p {
	margin: 0;
	color: #6b6377;
}
/* Review photos: picker in the form, thumbnails on each review. */
.v-pdp .sh-rv-form .rf-ph-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.v-pdp .sh-rv-form .rf-ph-add,
.v-pdp .sh-rv-form .rf-ph-it {
	position: relative;
	width: 84px;
	height: 84px;
	border-radius: 14px;
	flex: none;
}
.v-pdp .sh-rv-form .rf-ph-add {
	display: grid;
	place-content: center;
	justify-items: center;
	border: 1.5px dashed #c9bde0;
	background: #fbfafd;
	color: #7b4ee0;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}
.v-pdp .sh-rv-form .rf-ph-add:hover,
.v-pdp .sh-rv-form .rf-ph-add:focus-within {
	border-color: #7b4ee0;
	background: #f4effd;
}
.v-pdp .sh-rv-form .rf-ph-add[hidden] {
	display: none;
}
.v-pdp .sh-rv-form .rf-ph-add input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}
.v-pdp .sh-rv-form .rf-ph-add b {
	font-size: 26px;
	line-height: 1;
}
.v-pdp .sh-rv-form .rf-ph-add small {
	justify-self: center;
	color: #7b4ee0;
	font-weight: 600;
}
.v-pdp .sh-rv-form .rf-ph-it img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
}
.v-pdp .sh-rv-form .rf-ph-it button {
	position: absolute;
	top: -7px;
	right: -7px;
	width: 24px;
	height: 24px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #1b1720;
	color: #fff;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}
.v-pdp .sh-rv-form small.rf-ph-tip {
	justify-self: start;
}
.v-pdp .rv-ph {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 12px;
}
.v-pdp .rv-ph img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 12px;
}
.v-pdp .photos > a {
	display: block;
}
/* Review videos: same box as the photos, a play mark on top. */
.v-pdp .rv-ph video {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 12px;
	background: #1b1720;
}
.v-pdp .sh-rv-form .rf-ph-it video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 14px;
	background: #1b1720;
}
.v-pdp .rv-vid {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
}
.v-pdp .rv-ph .rv-vid {
	width: 72px;
	height: 72px;
}
.v-pdp .photos video.cover {
	background: #1b1720;
}
.v-pdp .rv-vid i {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	margin: -14px 0 0 -14px;
	border-radius: 50%;
	background: rgba(27, 23, 32, 0.7);
	color: #fff;
	font-size: 11px;
	font-style: normal;
	line-height: 28px;
	text-align: center;
	pointer-events: none;
}
@media (max-width: 600px) {
	.v-pdp .sh-rv-form {
		padding: 22px 18px;
		border-radius: 16px;
	}
	.v-pdp .sh-rv-form .rf-2 {
		grid-template-columns: 1fr;
	}
	.v-pdp .sh-rv-form .rf-acts .btn {
		flex: 1;
	}
}

/* Quick view dialog: the close button stays above the product's sale badges. */
.sh-mod .mod-x {
	z-index: 5;
}
