/* ---------- Generic card ---------- */
.ip-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--ip-border-color);
	border-radius: var(--ip-radius-md);
	padding: var(--wp--preset--spacing--5);
}

/* ---------- Hero fragments ----------
   The homepage hero itself lives in home.css (.ip-hero-premium); these
   two classes remain shared because 404.php reuses them. */
.ip-hero-eyebrow {
	display: inline-block;
	font-size: var(--wp--preset--font-size--micro);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--crimson);
	margin-bottom: var(--wp--preset--spacing--3);
}
.ip-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--3);
	margin-top: var(--wp--preset--spacing--5);
}

/* Generic eyebrow label — usable outside .ip-section-head (brand band,
   product page overview). woocommerce.css keeps its own copy for the
   product-page labels so non-WC pages don't depend on that file. */
.ip-eyebrow {
	font-size: var(--wp--preset--font-size--micro);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--crimson);
}

/* ---------- Section heading ---------- */
.ip-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--4);
	margin-bottom: var(--wp--preset--spacing--6);
}
.ip-section-head h2 { margin-bottom: 0; }
.ip-section-head .ip-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--wp--preset--font-size--micro);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--wp--preset--color--crimson);
	margin-bottom: var(--wp--preset--spacing--2);
}
/* Short rule ornament ahead of every section eyebrow — one quiet,
   consistent mark of intent instead of decorative clutter. */
.ip-section-head .ip-eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--wp--preset--color--crimson);
}

/* ---------- Product card ---------- */
.ip-product-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--ip-border-color);
	border-radius: var(--ip-radius-md);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color var(--ip-transition-fast), box-shadow var(--ip-transition-fast);
}
.ip-product-card:hover,
.ip-product-card:focus-within { border-color: var(--ip-border-hover); box-shadow: var(--ip-shadow-lift); }
@media (prefers-reduced-motion: no-preference) {
	.ip-product-card { transition: border-color var(--ip-transition-fast), box-shadow var(--ip-transition-fast), transform var(--ip-transition-fast); }
	.ip-product-card:hover { transform: translateY(-3px); }
}
.ip-product-card-media {
	aspect-ratio: 1 / 1;
	background: var(--wp--preset--color--neutral-100);
	border-bottom: 1px solid var(--wp--preset--color--neutral-100);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: clamp(10px, 2vw, 18px);
}
.ip-product-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: var(--ip-radius-sm);
	box-shadow: 0 14px 34px -30px rgba(28, 21, 16, 0.4);
	transition: transform var(--ip-transition-base);
}
.ip-product-card:hover .ip-product-card-media img,
.ip-product-card:focus-within .ip-product-card-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
	.ip-product-card:hover .ip-product-card-media img,
	.ip-product-card:focus-within .ip-product-card-media img { transform: none; }
}
.ip-product-card-body {
	padding: var(--wp--preset--spacing--4);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--1);
	flex-grow: 1;
}
.ip-product-card-name {
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--h-4);
	font-weight: 600;
	margin: 0;
}
.ip-product-card-name a { color: var(--wp--preset--color--ink); }
.ip-product-card-name a:hover { text-decoration: none; color: var(--wp--preset--color--crimson); }
.ip-product-card-meta {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--bronze);
}
.ip-product-card-price {
	font-size: var(--wp--preset--font-size--body-lg);
	font-weight: 600;
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--2);
}
.ip-product-card-actions { margin-top: var(--wp--preset--spacing--3); }
/* content-product.php renders the Product Details link with .ip-btn, not
   WooCommerce's own .button class, so this needs to target .ip-btn to
   have any effect — it previously matched nothing and the button rendered
   at its natural (inline-flex, content-width) size. */
.ip-product-card-actions .ip-btn { width: 100%; }

.ip-stock-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: var(--wp--preset--font-size--micro);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--bronze);
}
.ip-stock-badge.is-out { color: var(--wp--preset--color--error); }

/* ---------- Tracer border (crimson highlight that follows the pointer) ----------
   Applied selectively via .ip-tracer (product cards, the two homepage CTA
   bands) — never globally. The moving highlight only runs when JS adds
   .ip-tracer-active on fine-pointer, motion-tolerant devices; keyboard
   users get a static centered highlight via :focus-within, and touch
   devices get nothing beyond the normal hover/active styles. */
.ip-tracer { position: relative; }
.ip-tracer::after {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 1px;
	background: radial-gradient(
		220px circle at var(--ip-tracer-x, 50%) var(--ip-tracer-y, 50%),
		rgba(146, 46, 40, 0.65),
		rgba(146, 46, 40, 0.12) 45%,
		transparent 70%
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	mask-composite: exclude;
	opacity: 0;
	transition: opacity var(--ip-transition-base);
	pointer-events: none;
}
.ip-tracer-active .ip-tracer:hover::after { opacity: 1; }
/* Keyboard fallback: a static, centered highlight — works without JS. */
.ip-tracer:focus-within::after { opacity: 1; }

/* ---------- Section reveal ----------
   Sections are fully visible by default; only once JS confirms motion is
   allowed (html.ip-reveal-armed) do unrevealed sections start hidden. */
.ip-reveal-armed .ip-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.ip-reveal-armed .ip-reveal.is-revealed {
	opacity: 1;
	transform: none;
}

/* ---------- Notices ---------- */
.ip-notice {
	border: 1px solid var(--ip-border-color);
	border-left-width: 4px;
	border-radius: var(--ip-radius-sm);
	padding: var(--wp--preset--spacing--4);
	margin-bottom: var(--wp--preset--spacing--4);
	font-size: var(--wp--preset--font-size--small);
}
.ip-notice--info { border-left-color: var(--wp--preset--color--amber); }
.ip-notice--success { border-left-color: var(--wp--preset--color--success); }
.ip-notice--error { border-left-color: var(--wp--preset--color--error); }

/* ---------- FAQ accordion ----------
   Native <details>/<summary> — no JS required, keyboard and screen-reader
   accessible by default. Shared by the homepage FAQ preview (home.css adds
   the two-column layout around it) and the standalone FAQ page. */
.ip-faq-list { border-top: 1px solid var(--ip-border-color); }
.ip-faq-item { border-bottom: 1px solid var(--ip-border-color); }
.ip-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--4);
	min-height: 72px;
	padding: 18px 2px;
	font-family: var(--wp--preset--font-family--serif);
	font-size: clamp(1.1rem, 1rem + 0.38vw, 1.3rem);
	font-weight: 600;
	color: var(--wp--preset--color--ink);
	cursor: pointer;
	list-style: none;
}
.ip-faq-item summary::-webkit-details-marker { display: none; }
.ip-faq-item summary:hover { color: var(--wp--preset--color--crimson); }
.ip-faq-toggle {
	position: relative;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border: 1px solid rgba(90, 74, 62, 0.26);
	border-radius: 50%;
}
.ip-faq-toggle::before,
.ip-faq-toggle::after {
	content: "";
	position: absolute;
	left: 8px;
	top: 14px;
	width: 12px;
	height: 1px;
	background: currentColor;
	transition: transform var(--ip-transition-fast);
}
.ip-faq-toggle::after { transform: rotate(90deg); }
.ip-faq-item[open] .ip-faq-toggle::after { transform: rotate(0); }
.ip-faq-answer {
	padding: 0 52px var(--wp--preset--spacing--5) 2px;
	color: var(--wp--preset--color--bronze);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.7;
}
.ip-faq-answer p { margin: 0; }

/* Standalone FAQ page: the accordion is the primary page content (not a
   homepage preview alongside other copy), so answers read at body size. */
.ip-faq-page .ip-faq-answer { font-size: var(--wp--preset--font-size--body); }

@media (max-width: 767px) {
	.ip-faq-answer { padding-right: 4px; }
}

/* ---------- Accordion (generic, JS-driven) ---------- */
.ip-accordion-item { border-bottom: 1px solid var(--ip-border-color); }
.ip-accordion-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--3);
	padding: var(--wp--preset--spacing--4) 0;
	background: none;
	border: none;
	text-align: left;
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--h-4);
	color: var(--wp--preset--color--ink);
	cursor: pointer;
}
.ip-accordion-trigger .ip-icon { transition: transform var(--ip-transition-fast); flex-shrink: 0; }
.ip-accordion-trigger[aria-expanded="true"] .ip-icon { transform: rotate(180deg); }
.ip-accordion-panel {
	padding-bottom: var(--wp--preset--spacing--4);
	color: var(--wp--preset--color--bronze);
}
.ip-accordion-panel[hidden] { display: none; }

/* ---------- Modal (entry acknowledgment) ---------- */
.ip-modal-scrim {
	position: fixed;
	inset: 0;
	background: rgba(27, 25, 23, 0.55);
	z-index: var(--ip-z-modal-scrim);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--4);
}
.ip-modal {
	background: var(--wp--preset--color--white);
	border-radius: var(--ip-radius-md);
	box-shadow: var(--ip-shadow-soft);
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: var(--wp--preset--spacing--6);
	z-index: var(--ip-z-modal);
}
.ip-modal h2 { font-size: var(--wp--preset--font-size--h-3); }
.ip-modal-body { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--bronze); }
.ip-modal-checkbox-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: var(--wp--preset--spacing--4) 0;
}
.ip-modal-checkbox-row input[type="checkbox"] {
	width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
}
.ip-modal-actions {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--2);
	margin-top: var(--wp--preset--spacing--5);
}
.ip-modal-actions .ip-btn { width: 100%; }

/* ---------- Pagination ---------- */
.ip-pagination {
	display: flex;
	justify-content: center;
	gap: var(--wp--preset--spacing--2);
	margin-top: var(--wp--preset--spacing--7);
}
.ip-pagination a, .ip-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border: 1px solid var(--ip-border-color);
	border-radius: var(--ip-radius-sm);
	color: var(--wp--preset--color--ink);
}
.ip-pagination .current { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--paper); }
.ip-pagination a:hover { border-color: var(--ip-border-hover); text-decoration: none; }

/* ---------- CTA band ---------- */
.ip-cta-band {
	background: var(--wp--preset--color--neutral-100);
	border-radius: var(--ip-radius-md);
	padding: var(--wp--preset--spacing--7);
	text-align: center;
}
.ip-cta-band h2 { margin-bottom: var(--wp--preset--spacing--3); text-wrap: balance; }
.ip-cta-band .ip-btn { margin-top: var(--wp--preset--spacing--2); }

/* Dark variant — used once at the foot of the homepage so the two CTA
   bands don't read as the same repeated gray block. */
.ip-cta-band--dark {
	background: var(--wp--preset--color--ink);
}
.ip-cta-band--dark h2 { color: var(--wp--preset--color--paper); }
.ip-cta-band--dark p { color: rgba(252, 251, 250, 0.8); }
.ip-cta-band--dark .ip-btn {
	background: var(--wp--preset--color--paper);
	border-color: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
}
.ip-cta-band--dark .ip-btn:hover {
	background: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--ink);
}

/* ---------- COA document list ---------- */
.ip-doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--wp--preset--spacing--2); }
.ip-doc-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--3);
	border: 1px solid var(--ip-border-color);
	border-radius: var(--ip-radius-sm);
	padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4);
}
.ip-doc-item-meta { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--bronze); }
.ip-doc-item-title { font-weight: 600; display: flex; align-items: center; gap: 8px; }
