/*
 * luciole theme — main stylesheet.
 * Tokens come from theme.json presets (--wp--preset--color--*, --wp--preset--font-family--*).
 */

:root {
	--luciole-accent: var(--wp--preset--color--accent, #631344);
	--luciole-accent-custom: var(--wp--preset--color--accent, #631344);
	--luciole-ink: var(--wp--preset--color--ink, #360010);
	--luciole-bg: var(--wp--preset--color--bg, #fefefe);
	--luciole-band: var(--wp--preset--color--band, #dfcfd9);
	--luciole-bar: var(--wp--preset--color--bar, #621444);
	--luciole-surface: var(--wp--preset--color--surface, #fefefe);
	--luciole-blush: var(--wp--preset--color--blush, #f8e4ef);
	--luciole-mist: var(--wp--preset--color--mist, #c2a5b6);
	--luciole-accent-deep: var(--wp--preset--color--accent-deep, #621444);
	--luciole-content-width: 860px;
	--luciole-wide-width: 1200px;
	/* Fallback heights only: the header script measures the real header
	   and announcement-bar heights and overwrites these on every page
	   load, because the bar's line box rounds to a fraction of a pixel
	   that no static constant can match. Used as-is only without
	   JavaScript. */
	--luciole-header-h: 95px;
	--luciole-bar-h: 30px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	/* The spinning seal's transformed bounding box is up to sqrt(2)x its
	   width, briefly poking past the right edge at some angles (around
	   480–1280px viewports), which flashes a horizontal scrollbar in and
	   out as it rotates. The art itself always fits inside its layout
	   box, so suppressing horizontal scrolling hides only transparent
	   corner pixels. */
	overflow-x: hidden;
}

body {
	margin: 0;
	background: var(--luciole-bg);
	color: var(--luciole-ink);
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--luciole-ink);
	font-family: var(--wp--preset--font-family--crimson, Georgia, serif);
	font-style: italic;
	line-height: 1.2;
	margin: 0 0 0.5em;
}

a {
	color: var(--luciole-accent-custom);
}

a:hover,
a:focus {
	color: var(--luciole-accent-deep);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ---------- Accessibility ---------- */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100001;
	background: var(--luciole-ink);
	color: var(--luciole-surface);
	padding: 0.75rem 1.25rem;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
}

.skip-link:focus {
	left: 0;
}

:focus-visible {
	outline: 2px solid var(--luciole-accent-custom);
	outline-offset: 2px;
}

/* ---------- Layout ---------- */

.luciole-container {
	width: min(100% - 2rem, var(--luciole-wide-width));
	margin-inline: auto;
}

#content {
	outline: none;
}

.site-main {
	padding-block: 3rem;
}

/* The hero sits flush under the header announcement bar. */
.luciole-front-page {
	padding-top: 0;
}

/* ---------- Duotone treatment (render-time CSS only) ---------- */

.duotone {
	position: relative;
	isolation: isolate;
}

.duotone img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.05);
}

.duotone::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--luciole-accent-deep);
	mix-blend-mode: multiply;
	pointer-events: none;
}

/* ---------- Header ---------- */

.site-header {
	position: relative;
	z-index: 100000;
}

/* Mockup: dark plum bar, light text, scrolling marquee. */
.luciole-announcement-bar {
	background: var(--luciole-bar);
	color: var(--luciole-blush);
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.35;
	text-align: center;
	padding: 0.4rem 0;
	overflow: hidden;
	white-space: nowrap;
}

/* Natural-width track; the header script scrolls it at a constant px/s
   (viewport-independent) and restarts after the last message exits. */
.luciole-announcement-track {
	display: flex;
	width: max-content;
	align-items: baseline;
	will-change: transform;
}

/* Reduced motion: the announcements render statically, centered. */
.luciole-announcement-bar--static .luciole-announcement-track {
	margin-inline: auto;
}

.luciole-announcement-item {
	flex: none;
}

/* Mockup: white asterisk mark between announcements. */
.luciole-announcement-bar .luciole-announcement-mark {
	color: var(--luciole-blush);
	font-size: 0.75em;
	padding: 0 1rem;
}

.luciole-header-main {
	background: var(--luciole-surface);
	border-bottom: 1px solid var(--luciole-mist);
}

.luciole-header-main .luciole-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 56px;
}

.luciole-wordmark {
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-weight: 600;
	font-size: 1.5rem;
	letter-spacing: 3px;
	/* Mockup wordmark: plum #621444 on the white header row. */
	color: var(--luciole-accent-deep);
	text-decoration: none;
}

.luciole-wordmark:hover,
.luciole-wordmark:focus {
	color: var(--luciole-accent);
}

.luciole-header-icons {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.luciole-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	color: var(--luciole-ink);
	cursor: pointer;
	position: relative;
	padding: 0;
	text-decoration: none;
}

.luciole-icon-btn:hover,
.luciole-icon-btn:focus {
	color: var(--luciole-accent-custom);
}

.luciole-icon-btn svg {
	width: 24px;
	height: 24px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.luciole-cart-count {
	position: absolute;
	top: 4px;
	right: 2px;
	min-width: 18px;
	height: 18px;
	border-radius: 9px;
	background: var(--luciole-accent-custom);
	color: var(--luciole-surface);
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.6875rem;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
}

.luciole-search-form {
	display: none;
	width: min(100% - 2rem, var(--luciole-wide-width));
	margin-inline: auto;
	padding: 0.75rem 0;
}

.luciole-search-form[data-open="true"] {
	display: block;
}

.luciole-search-form input[type="search"] {
	width: 100%;
	padding: 0.65rem 1rem;
	border: 1px solid var(--luciole-mist);
	border-radius: 4px;
	background: var(--luciole-surface);
	color: var(--luciole-ink);
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.9375rem;
}

/* ---------- Off-canvas panel ---------- */

.luciole-offcanvas {
	position: fixed;
	inset: 0 auto 0 0;
	width: min(320px, 85vw);
	background: var(--luciole-surface);
	border-right: 1px solid var(--luciole-mist);
	transform: translateX(-100%);
	transition: transform 0.28s ease;
	z-index: 100002;
	overflow-y: auto;
	padding: 1.5rem;
	visibility: hidden;
}

.luciole-offcanvas[data-open="true"] {
	transform: translateX(0);
	visibility: visible;
}

.luciole-offcanvas-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(54, 0, 16, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.28s ease;
	z-index: 100001;
}

.luciole-offcanvas-backdrop[data-open="true"] {
	opacity: 1;
	pointer-events: auto;
}

.luciole-offcanvas-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 0;
	background: none;
	color: var(--luciole-ink);
	cursor: pointer;
	margin-left: auto;
}

.luciole-offcanvas-close svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
}

.luciole-offcanvas nav ul {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
}

.luciole-offcanvas nav li + li {
	border-top: 1px solid var(--luciole-blush);
}

.luciole-offcanvas nav a {
	display: block;
	padding: 0.9rem 0.25rem;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 1.0625rem;
	color: var(--luciole-ink);
	text-decoration: none;
}

.luciole-offcanvas nav a:hover,
.luciole-offcanvas nav a:focus {
	color: var(--luciole-accent-custom);
}

.luciole-offcanvas-header {
	display: flex;
	align-items: center;
}

/* ---------- Footer ---------- */

/* Mockup: a full-screen-tall footer — the art fills the top, fades to
   white, and the content is pinned to the bottom. */
.site-footer {
	position: relative;
	isolation: isolate;
	color: var(--luciole-ink);
	background: var(--luciole-surface);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.site-footer .duotone {
	position: absolute;
	inset: 0;
	z-index: -1;
	/* fondo-principal.webp is now the finished mockup duotone (pale
	   pink-lavender field, plum shapes, flopped to match the mockup).
	   White background: the art fades to white over the footer's height
	   and the content sits on white below. */
	background: var(--luciole-surface);
}

/* Mockup footer: show the pre-duotoned art as-is — no grayscale, no
   opacity, no multiply. */
.site-footer .duotone img {
	filter: none;
	opacity: 1;
}

.site-footer .duotone::after {
	background: none;
}

/* Gradual fade to white across the whole footer height (measured from
   the mockup: art strong at the top, ~white by 77%, content below). */
.site-footer .duotone::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom,
		rgba(254, 254, 254, 0) 0%,
		rgba(254, 254, 254, 0.18) 12%,
		rgba(254, 254, 254, 0.4) 24%,
		rgba(254, 254, 254, 0.5) 36%,
		rgba(254, 254, 254, 0.58) 48%,
		rgba(254, 254, 254, 0.71) 60%,
		rgba(254, 254, 254, 0.84) 71%,
		rgba(254, 254, 254, 0.93) 78%,
		var(--luciole-surface) 84%);
	pointer-events: none;
	z-index: 2;
}

.luciole-footer-inner {
	position: relative;
	z-index: 3;
	padding-block: 2rem 2.5rem;
}

.luciole-footer-links {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.9375rem;
}

.luciole-footer-links a {
	color: var(--luciole-ink);
	text-decoration: none;
}

.luciole-footer-links a:hover,
.luciole-footer-links a:focus {
	color: var(--luciole-accent);
	text-decoration: underline;
}

.luciole-newsletter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	max-width: 420px;
	margin-bottom: 2rem;
}

.luciole-newsletter input[type="email"] {
	flex: 1 1 200px;
	padding: 0.7rem 1rem;
	border: 1px solid var(--luciole-mist);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.8);
	color: var(--luciole-ink);
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.9375rem;
}

.luciole-newsletter input[type="email"]::placeholder {
	color: rgba(54, 0, 16, 0.55);
}

.luciole-newsletter button {
	padding: 0.7rem 1.5rem;
	border: 0;
	border-radius: 4px;
	background: var(--luciole-accent);
	color: var(--luciole-surface);
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.luciole-newsletter button:hover,
.luciole-newsletter button:focus {
	background: var(--luciole-accent-deep);
}

.luciole-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.8125rem;
	opacity: 0.9;
}

.luciole-footer-bottom a {
	color: var(--luciole-ink);
}

/* ---------- Hero ---------- */

.luciole-hero {
	position: relative;
	isolation: isolate;
	/* Full browser screen minus the header and the second announcement
	   bar, so that bar sits just inside the initial viewport. Both
	   heights are measured by the script in header.php and published as
	   the variables; the :root values are the no-JavaScript fallback. */
	min-height: calc(100vh - var(--luciole-header-h) - var(--luciole-bar-h));
	min-height: calc(100svh - var(--luciole-header-h) - var(--luciole-bar-h));
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	text-align: left;
	color: var(--luciole-surface);
	/* Left padding matches .luciole-container's centering offset so the
	   hero text begins at the same edge as the wordmark and section
	   headings. */
	padding: 4rem 1.5rem 4rem calc((100% - min(100% - 2rem, var(--luciole-wide-width))) / 2);
}

.luciole-hero .duotone {
	position: absolute;
	inset: 0;
	z-index: -1;
	/* principal.webp is already the finished mockup duotone (plum
	   backdrop, pale-pink content). Show it as-is: no grayscale, no
	   opacity, no multiply — any tint on top would only darken it. */
	background: var(--luciole-accent-deep);
}

.luciole-hero .duotone img {
	filter: none;
	opacity: 0.3;
}

/* No scrim: the art's own bottom-left is plum (#621444), which matches
   the mockup's text zone behind the headline. */
.luciole-hero .duotone::before {
	content: "";
	position: absolute;
	inset: 0;
	background: none;
	z-index: 1;
	pointer-events: none;
}

.luciole-hero .duotone::after {
	background: none;
}

.luciole-hero-inner {
	position: relative;
	z-index: 3;
	width: min(100% - 3rem, var(--luciole-wide-width));
	/* The text area grows with the viewport, capped for readability. */
	max-width: clamp(320px, 60vw, 800px);
	/* Pin left: .luciole-container's margin-inline: auto would center
	   this flex item even with justify-content: flex-start. */
	margin-inline: 0 auto;
	text-align: left;
}

.luciole-hero h1 {
	color: var(--luciole-surface);
	font-size: clamp(2.5rem, 6vw, 5.5rem);
	line-height: 1.05;
	margin-bottom: 1.5rem;
	text-align: left;
}

.luciole-hero-subtext {
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: clamp(1rem, 1.8vw, 1.375rem);
	opacity: 0.92;
	margin: 0;
}

/* ---------- Product row (auto-scrolling marquee) ---------- */

.luciole-section {
	padding-block: 3.5rem;
}

.luciole-books-heading {
	padding-bottom: 0;
}

.luciole-section-heading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 2rem;
}

.luciole-section-heading h2 {
	font-size: var(--wp--preset--font-size--xl, 2.25rem);
	margin: 0;
}

/* Mockup: spinning stamp at the height of the "Libros" heading, at the
   right, straddling the heading/row boundary. Sits fixed (the row scrolls
   under it). */
.luciole-seal {
	position: absolute;
	top: calc(1.5rem - clamp(75px, 9vw, 120px));
	right: calc((100% - min(100% - 2rem, var(--luciole-wide-width))) / 2);
	z-index: 10;
	width: clamp(140px, 16vw, 200px);
	animation: luciole-seal-spin 30s linear infinite;
}

@keyframes luciole-seal-spin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.luciole-book-band {
	position: relative;
	background: transparent;
	padding-block: 2.5rem 3.5rem;
}

.luciole-book-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 300px;
	gap: 1rem;
	overflow-x: auto;
	padding: 0 0 1rem;
	margin: 0;
	list-style: none;
	/* No visible scrollbar: the row auto-scrolls and has its own arrows. */
	scrollbar-width: none;
}

.luciole-book-row::-webkit-scrollbar {
	display: none;
}

.luciole-row-wrap {
	position: relative;
}

/* Mockup: large, transparent chevrons floating at the row edges. */
.luciole-row-arrow {
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
	z-index: 5;
	width: 80px;
	height: 80px;
	padding: 0;
	border: 0;
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	color: var(--luciole-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.luciole-row-arrow::-moz-focus-inner {
	border: 0;
	padding: 0;
}

.luciole-row-arrow--prev {
	left: 0.75rem;
}

.luciole-row-arrow--next {
	right: 0.75rem;
}

.luciole-row-arrow:hover,
.luciole-row-arrow:focus {
	opacity: 0.65;
}

.luciole-row-arrow svg {
	width: 48px;
	height: 48px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 800px) {
	.luciole-row-arrow {
		width: 52px;
		height: 52px;
	}

	.luciole-row-arrow svg {
		width: 30px;
		height: 30px;
	}
}

.luciole-book-row > li {
	scroll-snap-align: start;
}

.luciole-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Product card ---------- */

/* Cards in a row/grid stretch to the tallest item; the cover fills the
   leftover space so every card ends up exactly the same height. */
li.luciole-card {
	display: flex;
}

.luciole-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.luciole-card:hover,
.luciole-card:focus {
	color: inherit;
}

/* Covers show their actual colors — no duotone, cropped to fill. */
.luciole-card-image {
	flex: 1 1 auto;
	min-height: 0;
	display: block;
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--luciole-surface);
	overflow: hidden;
}

/* Absolutely fill the frame so every source — portrait or square — is
   cropped to cover, regardless of how the span's height was resolved. */
.luciole-card-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

/* Slight push-in on hover/focus for a bit of life. */
.luciole-card:hover .luciole-card-image img,
.luciole-card:focus .luciole-card-image img {
	transform: scale(1.04);
}

/* WooCommerce core sets height:auto on loop images; on an absolutely
   positioned replaced <img> that resolves to the intrinsic height, which
   letterboxes square sources despite inset:0. Force 100% — main.css loads
   after woocommerce.css, so this equal-specificity rule wins. */
.woocommerce ul.products li.product a img {
	height: 100%;
}

/* Mockup: dark info block with light text. */
.luciole-card-info {
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	background: var(--luciole-accent);
	color: var(--luciole-surface);
	padding: 0.9rem 1rem 1rem;
}

/* Title in Crimson italic (like the headings); price in Inter, always on
   its own line under the title. */
.luciole-card-title {
	font-family: var(--wp--preset--font-family--crimson, Georgia, serif);
	font-size: 1.125rem;
	font-style: italic;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
	color: var(--luciole-surface);
}

.luciole-card-price {
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--luciole-mist);
	margin: 0;
}

/* ---------- Single product ---------- */

.single-product .luciole-single-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 3rem;
	align-items: start;
}

/* WooCommerce nests the gallery and summary inside content-area > site-main >
   .product, which traps the whole product in one grid column (half the
   container width) and doubles the .site-main padding. Unwrap those boxes so
   the grid lays the gallery and summary out as its two columns and the content
   fills the container. */
.single-product .luciole-single-inner .content-area,
.single-product .luciole-single-inner .content-area > .site-main,
.single-product .luciole-single-inner div.product {
	display: contents;
}

/* Breadcrumb (top) and tabs (bottom) span both columns. */
.single-product .luciole-single-inner .woocommerce-breadcrumb,
.single-product .luciole-single-inner .woocommerce-tabs {
	grid-column: 1 / -1;
}

/* Tighter breadcrumb spacing on product pages: less space above it (the
   container's top padding) and a smaller gap before the product. */
.single-product .site-main.luciole-container {
	padding-top: 1.5rem;
}
.single-product .luciole-single-inner .woocommerce-breadcrumb {
	margin: 0 0 1.5rem;
}

/* Let the grid columns size these; drop WooCommerce's default float/width and
   its bottom margin so the sections sit closer under the media/summary row. */
.single-product .woocommerce-product-gallery,
.single-product .summary.entry-summary {
	float: none !important;
	width: 100% !important;
	min-width: 0;
	margin-bottom: 0 !important;
}

.single-product .woocommerce-tabs {
	margin-top: 2rem;
}

/* Tabs dropped: hide the tab navigation and show Description + Additional
   Information as stacked sections in order. Reviews hidden for now. */
.single-product .woocommerce-tabs ul.tabs {
	display: none;
}

/* Show both panels (override WooCommerce's inline display:none on the inactive
   ones) and hide the reviews panel. */
.single-product .woocommerce-Tabs-panel--description,
.single-product .woocommerce-Tabs-panel--additional_information {
	display: block !important;
	margin: 0 0 3rem;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	color: var(--luciole-ink);
	font-size: 1.0625rem;
	line-height: 1.7;
}

/* Extra breathing room between the two stacked sections (Descripción →
   Información adicional). WooCommerce's own panel margin (~34px) otherwise wins. */
.single-product .woocommerce-Tabs-panel--description {
	margin: 0 0 4rem !important;
}

.single-product .woocommerce-Tabs-panel--reviews {
	display: none !important;
}

/* Section headings (formerly the tab titles) — plain Inter semibold. */
.single-product .woocommerce-Tabs-panel--description > h2,
.single-product .woocommerce-Tabs-panel--additional_information > h2 {
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-style: normal;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--luciole-ink);
	margin: 0 0 1.25rem;
}

/* Additional information table: minimal — no box, no rules, no italics.
   The header is just a heavier weight; same ink as the value. */
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
}

.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td {
	padding: 0.55rem 0;
	border: 0;
	text-align: left;
	vertical-align: top;
	font-size: 1rem;
	font-style: normal;
	font-weight: 400;
	color: var(--luciole-ink);
}

.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th {
	width: 35%;
	font-weight: 600;
}

/* Kill every cell/row background (theme blush + WooCommerce stripes). */
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes th,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes td,
.single-product .woocommerce-Tabs-panel--additional_information table.shop_attributes tr {
	background: none !important;
}

/* Product description text in Inter (display title stays Crimson). */
.single-product .summary .woocommerce-product-details__short-description {
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
}

/* Summary order: short description right under the title, price after it. */
.single-product .summary.entry-summary {
	display: flex;
	flex-direction: column;
}
.single-product .summary.entry-summary .product_title { order: 1; }
.single-product .summary.entry-summary .woocommerce-product-rating { order: 2; }
.single-product .summary.entry-summary .woocommerce-product-details__short-description { order: 3; }
.single-product .summary.entry-summary .price { order: 4; }
.single-product .summary.entry-summary form.cart { order: 5; }
.single-product .summary.entry-summary .product_meta { order: 6; }

/* Related products: full width, styled like the site product grid. */
.single-product .luciole-single-inner .related.products {
	grid-column: 1 / -1;
	clear: both;
	margin-top: 3rem;
	/* Related cards match the site's default card accent; the per-book
	   --luciole-acento must not leak in from the single-product scope. */
	--luciole-accent: #631344;
}

.single-product .related.products ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* WooCommerce's clearfix pseudos become grid items once the ul is a grid,
   stealing cell (1,1) and shifting every card one column (the "last product
   out of line"). Grid needs no clearfix — drop them. */
.single-product .related.products ul.products::before,
.single-product .related.products ul.products::after {
	content: none;
}

.single-product .related.products ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0;
}

.single-product .woocommerce-product-gallery {
	width: 100%;
}

.single-product .woocommerce-product-gallery img {
	width: 100%;
}

.single-product .summary.entry-summary .price {
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 1.375rem;
	color: var(--luciole-ink);
}

.single-product .summary.entry-summary .price .woocommerce-Price-amount,
.single-product .summary.entry-summary .price .woocommerce-Price-amount bdi {
	color: var(--luciole-ink);
}

.single-product .summary .product_meta {
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.875rem;
}

.single-product button.single_add_to_cart_button,
.single-product form.cart button.button.alt,
.single-product .button {
	background: var(--luciole-accent-custom) !important;
	color: var(--luciole-surface);
	border: 0;
	border-radius: 4px;
	padding: 0.9rem 1.75rem;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
}

.single-product button.single_add_to_cart_button:hover,
.single-product button.single_add_to_cart_button:focus,
.single-product form.cart button.button.alt:hover,
.single-product form.cart button.button.alt:focus,
.single-product .button:hover,
.single-product .button:focus {
	background: var(--luciole-accent-deep) !important;
}

.single-product form.cart .quantity input.qty,
.single-product .quantity input.qty,
.single-product .quantity .qty {
	width: 4rem;
	height: 3rem;
	padding: 0 0.5rem;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 1rem;
	font-weight: 500;
	color: var(--luciole-ink);
	text-align: center;
	background: var(--luciole-surface);
	border: 1px solid var(--luciole-mist);
	border-radius: 4px;
	-webkit-appearance: none;
	appearance: none;
}

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

.single-product form.cart .quantity input.qty:focus,
.single-product .quantity input.qty:focus {
	border-color: var(--luciole-ink);
	outline: none;
}

.luciole-bio {
	border-left: 3px solid var(--luciole-accent-custom);
	padding-left: 1.25rem;
	margin-top: 2rem;
	font-size: 0.9375em;
}

.luciole-accent-element {
	--luciole-accent: #631344;
}

/* Per-book accent: custom property overrides wherever the element is placed. */
[style*="--luciole-acento"] {
	--luciole-accent: var(--luciole-acento, #631344);
}

[style*="--luciole-acento"] .luciole-card-price,
[style*="--luciole-acento"] .summary .price,
[style*="--luciole-acento"] .luciole-bio,
[style*="--luciole-acento"] button.single_add_to_cart_button,
[style*="--luciole-acento"] .button {
	--luciole-accent: var(--luciole-acento, #631344);
}

/* ---------- WooCommerce base ---------- */

.woocommerce-breadcrumb {
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.8125rem;
	margin-bottom: 1.5rem;
}

.woocommerce ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce ul.products li.product {
	margin: 0;
}

.woocommerce table.shop_attributes {
	border-collapse: collapse;
	width: 100%;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
}

.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
	border: 1px solid var(--luciole-mist);
	padding: 0.6rem 0.9rem;
	text-align: left;
}

.woocommerce table.shop_attributes th {
	background: var(--luciole-blush);
}

/* ---------- Product archives (shop + categories) ---------- */

/* WooCommerce's plugin template floats the products, which makes cards
   touch each other and the container edges. Same grid as the
   related-products row, applied to the archive loop. */
.luciole-shop ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* WooCommerce's clearfix pseudos become grid items once the ul is a grid,
   stealing cell (1,1). Grid needs no clearfix — drop them. */
.luciole-shop ul.products::before,
.luciole-shop ul.products::after {
	content: none;
}

.luciole-shop ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0;
}

.luciole-shop-header {
	margin-bottom: 2rem;
}

.luciole-shop-title {
	margin: 0 0 0.5rem;
}

/* Category/shop description under the title. */
.luciole-shop .term-description {
	margin: 1.25rem 0 0;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 1.0625rem;
	line-height: 1.7;
	color: var(--luciole-ink);
}

.luciole-shop .term-description p {
	margin: 0;
}

/* Result count + ordering select in one row. */
.luciole-shop-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.luciole-shop .woocommerce-result-count,
.luciole-shop .woocommerce-ordering {
	float: none;
	margin: 0;
}

.luciole-shop .woocommerce-result-count {
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.875rem;
	color: var(--luciole-mist);
}

.luciole-shop .woocommerce-ordering select {
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--luciole-ink);
	background-color: var(--luciole-surface);
	border: 1px solid var(--luciole-mist);
	border-radius: 4px;
	padding: 0.5rem 2.25rem 0.5rem 0.75rem;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23360010' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 10px 6px;
	cursor: pointer;
}

.luciole-shop .woocommerce-ordering select:focus {
	border-color: var(--luciole-ink);
	outline: none;
}

/* Pagination: numbered buttons. */
.luciole-shop .woocommerce-pagination {
	margin-top: 2.5rem;
}

.luciole-shop .woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.luciole-shop .woocommerce-pagination ul.page-numbers li {
	float: none;
	margin: 0;
	border: 0;
}

.luciole-shop .woocommerce-pagination ul.page-numbers a,
.luciole-shop .woocommerce-pagination ul.page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	color: var(--luciole-ink);
	background: var(--luciole-surface);
	border: 1px solid var(--luciole-mist);
	border-radius: 4px;
	text-decoration: none;
}

.luciole-shop .woocommerce-pagination ul.page-numbers a:hover,
.luciole-shop .woocommerce-pagination ul.page-numbers a:focus {
	color: var(--luciole-surface);
	background: var(--luciole-accent);
	border-color: var(--luciole-accent);
}

.luciole-shop .woocommerce-pagination ul.page-numbers .current {
	color: var(--luciole-surface);
	background: var(--luciole-accent);
	border-color: var(--luciole-accent);
}

/* Ellipsis between page numbers: no button chrome. */
.luciole-shop .woocommerce-pagination ul.page-numbers .dots {
	min-width: 0;
	height: auto;
	padding: 0;
	background: none;
	border: 0;
}

/* Empty archive notice. */
.luciole-shop .woocommerce-info {
	font-family: var(--wp--preset--font-family--inter, system-ui, sans-serif);
	font-size: 1rem;
	color: var(--luciole-ink);
	background: var(--luciole-blush);
	border: 0;
	border-radius: 4px;
	padding: 1rem 1.25rem;
	margin: 0;
}

.luciole-shop .woocommerce-info::before {
	display: none;
}

/* ---------- Static pages ---------- */

.luciole-page-content {
	max-width: var(--luciole-content-width);
	margin-inline: auto;
}

.luciole-page-content h1 {
	font-size: var(--wp--preset--font-size--xl, 2.25rem);
	margin-bottom: 1.5rem;
}

.luciole-page-content p,
.luciole-page-content li {
	font-size: 1.0625rem;
}

.luciole-error-404 {
	text-align: center;
	padding-block: 5rem;
}

.luciole-search-results-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.luciole-search-results-list li + li {
	margin-top: 1.25rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 800px) {
	.single-product .luciole-single-inner {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	/* Hero keeps the full-screen height from the base rule; only the
	   text area goes full width on mobile. */
	.luciole-hero-inner {
		max-width: 100%;
	}
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.luciole-offcanvas,
	.luciole-offcanvas-backdrop,
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
