/* =========================================================
   Crystal's Gluten-Free Stash — theme.css
   ========================================================= */

/* ─── Design Tokens ─── */
:root {
	--color-primary:          #D94F7A;
	--color-primary-foreground: #FFFFFF;
	--color-accent:           #47A79B;
	--color-accent-foreground: #FFFFFF;
	--color-background:       #FAF5EF;
	--color-foreground:       #281B12;
	--color-secondary:        #F0E5D8;
	--color-secondary-foreground: #281B12;
	--color-muted:            #EBDED0;
	--color-muted-foreground: #7A6557;
	--color-butter:           #F0E6D4;
	--color-border:           #E0D1C3;
	--color-card:             #FFFFFF;
	--color-card-foreground:  #281B12;

	/* Font families */
	--font-display: 'Chicle', cursive;
	--font-body:    'Montserrat', sans-serif;

	/* Shadows */
	--shadow-soft:     0 4px 20px -4px rgba(217, 79, 122, 0.1);
	--shadow-elevated: 0 8px 40px -8px rgba(217, 79, 122, 0.18);

	/* Radius */
	--radius: 0.75rem;

	/* Button */
	--btn-radius:        9999px;
	--btn-height:        3rem;
	--btn-padding:       0.875rem 2.5rem;
	--btn-font-size:     0.875rem;
	--btn-font-weight:   700;
	--btn-letter-spacing: 0.16em;
	--btn-text-transform: uppercase;
	--color-button-text: #FFFFFF;

	/* Logo */
	--logo-height: 60px;

	/* Header */
	--header-height: 7rem;

	/* Transitions */
	--ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { max-width: 100%; overflow-x: clip; }

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

body {
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.1;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { cursor: pointer; background: none; border: none; font-family: inherit; }

ul, ol { list-style: none; }

/* ─── Layout Helpers ─── */
.container-wide {
	width: 100%;
	max-width: 80rem; /* 1280px */
	margin-inline: auto;
	padding-inline: 1.5rem;
}
@media (min-width: 1024px) {
	.container-wide { padding-inline: 2rem; }
}

.text-center { text-align: center; }
.bg-secondary { background-color: var(--color-secondary); }
.bg-background { background-color: var(--color-background); }
.bg-butter { background-color: var(--color-butter); }

/* ─── Utility ─── */
.link-underline {
	position: relative;
	display: inline-block;
}
.link-underline::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0;
	width: 100%; height: 1px;
	background: currentColor;
	transform-origin: left;
	transform: scaleX(0);
	transition: transform 0.3s var(--ease-smooth);
}
.link-underline:hover::after { transform: scaleX(1); }

.scroll-mt-24 { scroll-margin-top: 6rem; }

/* ─── Marquee Animation ─── */
@keyframes marquee {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
.animate-marquee-fast { animation: marquee 45s linear infinite; }

/* ─── Fade Animations ─── */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in  { animation: fadeIn  0.6s var(--ease-smooth) forwards; }
.animate-slide-up { animation: slideUp 0.6s var(--ease-smooth) forwards; }

/* ─── Buttons ─── */
.theme-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: var(--btn-padding);
	background-color: var(--color-primary);
	color: var(--color-button-text);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	border: 2px solid transparent;
	transition: opacity 0.2s ease;
	cursor: pointer;
}
.theme-btn-primary:hover { opacity: 0.85; }

.theme-btn-outline-white {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: var(--btn-padding);
	background: transparent;
	color: #ffffff;
	border: 2px solid rgba(255,255,255,0.8);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	transition: background 0.2s ease, color 0.2s ease;
	cursor: pointer;
}
.theme-btn-outline-white:hover {
	background: #ffffff;
	color: var(--color-foreground);
}

.theme-btn-dark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: var(--btn-padding);
	background: var(--color-foreground);
	color: var(--color-background);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	transition: opacity 0.2s;
	cursor: pointer;
}
.theme-btn-dark:hover { opacity: 0.9; }

.theme-btn-light {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: var(--btn-padding);
	background: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: var(--btn-font-size);
	font-weight: var(--btn-font-weight);
	letter-spacing: var(--btn-letter-spacing);
	text-transform: var(--btn-text-transform);
	transition: opacity 0.2s;
	cursor: pointer;
}
.theme-btn-light:hover { opacity: 0.9; }

.theme-btn-rounded { border-radius: var(--btn-radius); }
.theme-btn-lg {
	padding: 1.5rem 2.5rem;
	font-size: 0.875rem;
	line-height: 1.25;
	letter-spacing: 0.16em;
}

/* ─── Scallop Divider ─── */
.theme-scallop {
	width: 100%;
	overflow: hidden;
	line-height: 0;
}
.theme-scallop svg {
	display: block;
	width: 100%;
	height: 2rem;
}
@media (min-width: 768px) {
	.theme-scallop svg { height: 2.5rem; }
}
.theme-scallop--flip { transform: rotate(180deg); }

.theme-scallop-section {
	position: relative;
	margin-top: 2rem;
}
@media (min-width: 768px) {
	.theme-scallop-section { margin-top: 2.5rem; }
}
.theme-scallop-section > .theme-scallop:first-child {
	position: absolute;
	top: 0;
	left: 0; right: 0;
	transform: translateY(-100%);
}

/* Footer Scallop */
.theme-footer-scallop-wrap {
	color: var(--color-foreground);
	transform: rotate(180deg);
	margin-bottom: -2px;
	line-height: 0;
}
.theme-footer-scallop-wrap svg {
	display: block;
	width: 100%;
	height: 2rem;
	fill: currentColor;
}
@media (min-width: 768px) {
	.theme-footer-scallop-wrap svg { height: 2.5rem; }
}

/* ─── Squiggle ─── */
.theme-squiggle {
	display: flex;
	justify-content: center;
	margin-bottom: 0.75rem;
}
.theme-squiggle svg {
	width: 10rem;
}
@media (min-width: 768px) {
	.theme-squiggle svg { width: 14rem; }
}
.theme-squiggle-light path { stroke: rgba(255,255,255,0.5) !important; }

/* ─── Section Common ─── */
.theme-section { position: relative; }

.theme-section-header {
	padding-top: 5rem;
	padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
	.theme-section-header { padding-top: 7rem; padding-bottom: 3.5rem; }
}

.theme-section-label {
	display: block;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	margin-bottom: 0.75rem;
}
.theme-section-label-light {
	color: rgba(255,255,255,0.7);
}

.theme-section-heading {
	font-size: clamp(2rem, 5vw, 3rem);
	color: var(--color-foreground);
	margin-bottom: 0.5rem;
}
.theme-section-heading-xl {
	font-size: clamp(2.5rem, 7vw, 5rem);
	color: var(--color-foreground);
	margin-bottom: 0.5rem;
}
.theme-section-subtitle {
	font-family: var(--font-body);
	color: var(--color-muted-foreground);
	font-size: 1.125rem;
	margin-top: 1rem;
}

/* ─── Header ─── */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
	color: #ffffff;
}
.site-header.is-solid {
	background: rgba(250,245,239,0.97);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--color-border);
	color: var(--color-foreground);
}

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 6rem;
}
@media (min-width: 768px) {
	.site-nav { height: 7rem; }
}

.site-logo-link { flex-shrink: 0; display: block; }
/* Header / footer logo sizes match Lovable (h-[5.4rem] md:h-[6.2rem], footer h-24 md:h-28) */
.site-header .site-logo-img {
	height: 5.4rem !important;
	width: auto !important;
	display: block;
}
@media (min-width: 768px) {
	.site-header .site-logo-img { height: 6.2rem !important; }
}
.site-logo-text { font-family: var(--font-display); font-size: 1.5rem; display: block; line-height: var(--logo-height); }

.site-nav-links {
	display: none;
	align-items: center;
	gap: 2rem;
}
@media (min-width: 1024px) {
	.site-nav-links { display: flex; }
}

.theme-nav-list, .theme-nav-list li {
	display: flex;
	align-items: center;
	gap: 2rem;
}
.theme-nav-list a, .theme-nav-list button {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	transition: color 0.3s ease, opacity 0.3s ease;
	cursor: pointer;
}
.theme-nav-list a:hover, .theme-nav-list button:hover { opacity: 0.7; }

.theme-nav-order-btn {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-primary);
	transition: opacity 0.2s;
}
.site-header:not(.is-solid) .theme-nav-order-btn { color: inherit; }
.theme-nav-order-btn:hover { opacity: 0.7; }

.site-nav-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.theme-cart-btn {
	position: relative;
	padding: 0.5rem;
	transition: opacity 0.2s;
	display: flex;
	align-items: center;
	color: inherit;
}
.theme-cart-btn .theme-cart-icon {
	width: 1.25rem;
	height: 1.25rem;
	display: block;
}
.theme-cart-btn:hover { opacity: 0.6; }

.theme-cart-count {
	position: absolute;
	top: -2px; right: -2px;
	width: 1.25rem; height: 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 600;
	background: var(--color-primary);
	color: #fff;
	border-radius: 9999px;
	font-family: var(--font-body);
}
.theme-cart-count:empty { display: none; }

.theme-mobile-menu-btn {
	padding: 0.5rem;
	transition: opacity 0.2s, color 0.3s ease;
	display: flex;
	align-items: center;
	color: inherit;
}
@media (min-width: 1024px) {
	.theme-mobile-menu-btn { display: none; }
}
.theme-mobile-menu-btn:hover { opacity: 0.6; }

/* Tablet y móvil (viewport < 1024px): hamburguesa blanca sobre el hero hasta que el header tenga .is-solid */
.site-header:not(.is-solid) .theme-mobile-menu-btn {
	color: #ffffff;
}
.site-header:not(.is-solid) .theme-mobile-menu-btn svg {
	stroke: currentColor;
}
.site-header.is-solid .theme-mobile-menu-btn {
	color: var(--color-foreground);
}

.icon-close { display: none; }
.theme-mobile-menu-btn[aria-expanded="true"] .icon-open  { display: none; }
.theme-mobile-menu-btn[aria-expanded="true"] .icon-close { display: block; }

/* Mobile Nav Dropdown */
.theme-mobile-menu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s var(--ease-smooth);
	border-top: 1px solid rgba(255,255,255,0.15);
}
.site-header.is-solid .theme-mobile-menu { border-top-color: var(--color-border); }
.theme-mobile-menu.is-open { max-height: 20rem; }
.theme-mobile-menu.is-open .theme-mobile-menu-inner {
	animation: fadeIn 0.45s var(--ease-smooth) forwards;
}
.theme-mobile-menu-inner {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem 0;
}
.theme-mobile-nav-link {
	display: block;
	padding: 0.5rem 0;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-align: left;
	transition: opacity 0.2s;
}
.theme-mobile-nav-link:hover { opacity: 0.7; }
.theme-mobile-order-btn {
	font-weight: 700;
	color: var(--color-primary);
}
.site-header:not(.is-solid) .theme-mobile-order-btn { color: inherit; }

/* ─── Hero ─── */
.theme-hero {
	position: relative;
	min-height: 75svh;
	max-height: 720px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
@media (min-width: 768px) {
	.theme-hero { min-height: 70svh; }
}
.theme-hero-video,
.theme-hero-img-fallback {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.theme-hero-img-fallback {
	background-size: cover;
	background-position: center;
}
.theme-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		hsla(340, 72%, 30%, 0.4) 0%,
		hsla(20, 40%, 10%, 0.55) 60%,
		hsla(20, 40%, 10%, 0.7) 100%
	);
}
.theme-hero-content {
	position: relative;
	z-index: 10;
	text-align: center;
	padding: 0 1.5rem;
	max-width: 64rem;
	padding-top: 2rem;
}
@media (min-width: 768px) {
	.theme-hero-content { padding-top: 0; }
}
.theme-hero-subtitle {
	color: rgba(255,255,255,0.9);
	font-family: var(--font-body);
	font-size: 1.125rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	margin-bottom: 1rem;
	max-width: 42rem;
	margin-inline: auto;
}
@media (min-width: 768px) {
	.theme-hero-subtitle { font-size: 1.25rem; }
}
.theme-hero-heading {
	font-family: var(--font-display);
	font-size: clamp(3rem, 8vw, 5.5rem);
	color: #ffffff;
	line-height: 1.1;
	margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
	.theme-hero-heading { margin-bottom: 2.5rem; }
}
.theme-hero-btns {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
	align-items: stretch;
}
@media (min-width: 640px) {
	.theme-hero-btns {
		flex-direction: row;
		align-items: center;
	}
}
.theme-hero-btns .theme-btn-primary,
.theme-hero-btns .theme-btn-outline-white {
	padding: 0.875rem 2.5rem;
	font-size: 0.875rem;
	line-height: 1.25;
	min-height: 0;
}

/* ─── Marquee ─── */
.theme-marquee-wrap {
	position: relative;
	background: var(--color-primary);
	color: var(--color-primary-foreground);
	overflow: visible;
}
.theme-marquee-wrap > .theme-scallop {
	position: absolute;
	top: 0; left: 0; right: 0;
	transform: translateY(-100%);
	z-index: 10;
	color: var(--color-primary);
}
.theme-marquee { overflow: hidden; }
.theme-marquee-inner {
	display: flex;
	width: max-content;
	white-space: nowrap;
	padding: 1rem 0;
}
.theme-marquee-item {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1.5rem;
}
@media (min-width: 768px) {
	.theme-marquee-item { font-size: 1.875rem; }
}
.theme-marquee-text { padding: 0 1.25rem; }
.theme-marquee-sep  { padding: 0 1.25rem; font-size: 1.5rem; }

/* ─── Category Section ─── */
.theme-categories-section .theme-section-header { padding-bottom: 2.5rem; }

.theme-cat-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	padding-bottom: 4rem;
}
@media (min-width: 768px) {
	.theme-cat-grid { grid-template-columns: repeat(3, 1fr); }
}

.theme-cat-tile {
	position: relative;
	aspect-ratio: 4/5;
	overflow: hidden;
	border-radius: 1.5rem;
	box-shadow: var(--shadow-elevated);
	display: block;
	width: 100%;
	cursor: pointer;
	transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}
.theme-cat-tile:hover {
	transform: translateY(-8px) rotate(-1deg);
	box-shadow: var(--shadow-elevated), 0 20px 40px -10px rgba(217,79,122,0.2);
}
.theme-cat-tile-img {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease-smooth);
}
.theme-cat-tile:hover .theme-cat-tile-img { transform: scale(1.06); }
.theme-cat-tile-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(40,27,18,0.6) 0%, transparent 60%);
}
.theme-cat-tile-text {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	padding: 1.5rem 2rem;
	text-align: left;
}
@media (min-width: 768px) {
	.theme-cat-tile-text { padding: 2rem; }
}
.theme-cat-tile-tagline {
	display: block;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.8);
	margin-bottom: 0.25rem;
}
.theme-cat-tile-label {
	display: block;
	font-family: var(--font-display);
	font-size: 1.875rem;
	color: #ffffff;
}
@media (min-width: 768px) {
	.theme-cat-tile-label { font-size: 2.25rem; }
}

/* ─── About Section ─── */
.theme-about-section .container-wide {
	padding-top: 5rem;
	padding-bottom: 8rem;
}
@media (min-width: 768px) {
	.theme-about-section .container-wide { padding-top: 8rem; padding-bottom: 10rem; }
}
.theme-about-inner {
	max-width: 48rem;
	margin-inline: auto;
	text-align: center;
}
.theme-script-text {
	font-family: var(--font-display);
	font-size: 1.875rem;
	color: var(--color-accent);
	display: block;
	margin-bottom: 0.75rem;
}
.theme-script-light { color: var(--color-secondary); }
.theme-about-quote {
	font-family: var(--font-body);
	font-style: italic;
	font-size: 1.25rem;
	color: rgba(40,27,18,0.85);
	line-height: 1.4;
	margin-bottom: 2rem;
}
@media (min-width: 768px) {
	.theme-about-quote { font-size: 1.5rem; }
}
.theme-body-text {
	font-family: var(--font-body);
	color: rgba(40,27,18,0.7);
	line-height: 1.75;
	margin-bottom: 1.25rem;
	font-size: 1rem;
}
@media (min-width: 768px) {
	.theme-body-text { font-size: 1.125rem; }
}

/* ─── Spotlight (Lovable bg-primary/10) ─── */
.theme-spotlight-section {
	background: rgba(217, 79, 122, 0.07);
	background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.theme-spotlight-section > .theme-scallop:first-child {
	color: rgba(217, 79, 122, 0.07);
	color: color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.theme-spotlight-section .container-wide {
	padding-bottom: 7rem;
}
.theme-spotlight-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	max-width: 64rem;
	margin-inline: auto;
}
@media (min-width: 768px) {
	.theme-spotlight-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.theme-spotlight-img-wrap {
	border-radius: 1.5rem;
	overflow: hidden;
	aspect-ratio: 1/1;
	box-shadow: var(--shadow-elevated);
}
.theme-spotlight-img {
	width: 100%; height: 100%;
	object-fit: cover;
}
.theme-spotlight-card {
	background: var(--color-accent);
	color: var(--color-accent-foreground);
	border-radius: 1.5rem;
	padding: 2rem;
	text-align: center;
}
@media (min-width: 768px) {
	.theme-spotlight-card { padding: 3rem; text-align: left; }
}
.theme-spotlight-badge {
	display: inline-block;
	padding: 0.375rem 1rem;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	background: rgba(255,255,255,0.2);
	border-radius: 9999px;
	margin-bottom: 1rem;
}
.theme-spotlight-name {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}
@media (min-width: 768px) {
	.theme-spotlight-name { font-size: 3rem; }
}
.theme-spotlight-desc {
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.75;
	margin-bottom: 1.5rem;
	opacity: 0.9;
}
.theme-spotlight-price {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1.875rem;
	margin-bottom: 1.5rem;
}
.theme-spotlight-price .woocommerce-Price-amount { font-family: inherit; }

/* ─── Order Banner ─── */
.theme-order-banner-inner {
	position: relative;
	width: 100%;
	min-height: 30rem;
	overflow: hidden;
}
@media (min-width: 768px) { .theme-order-banner-inner { min-height: 35rem; } }
@media (min-width: 1024px) { .theme-order-banner-inner { min-height: 40rem; } }

.theme-order-banner-bg {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.theme-order-banner-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		hsla(340, 72%, 30%, 0.75) 0%,
		hsla(340, 72%, 30%, 0.45) 50%,
		hsla(340, 72%, 30%, 0.15) 100%
	);
}
.theme-order-banner-content {
	position: relative;
	z-index: 10;
	padding-top: 6rem;
	padding-bottom: 6rem;
	max-width: 48rem;
}
@media (min-width: 768px) {
	.theme-order-banner-content { padding-top: 8rem; padding-bottom: 9rem; }
}
.theme-order-banner-heading {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 6vw, 5rem);
	color: #ffffff;
	line-height: 1.1;
	margin-bottom: 1.5rem;
}
.theme-order-banner-body {
	font-family: var(--font-body);
	color: rgba(255,255,255,0.9);
	line-height: 1.75;
	margin-bottom: 2.5rem;
	max-width: 28rem;
	font-size: 1rem;
}
@media (min-width: 768px) {
	.theme-order-banner-body { font-size: 1.125rem; }
}

/* ─── How It Works ─── */
.theme-hiw-section .container-wide {
	padding-bottom: 6rem;
}
@media (min-width: 768px) {
	.theme-hiw-section .container-wide { padding-bottom: 8rem; }
}
.theme-hiw-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	max-width: 64rem;
	margin-inline: auto;
}
@media (min-width: 768px) {
	.theme-hiw-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}
}
.theme-hiw-step { text-align: center; padding: 0 1rem; }
.theme-hiw-icon {
	width: 5rem; height: 5rem;
	border-radius: 9999px;
	background: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.875rem;
	margin: 0 auto 1.5rem;
	box-shadow: var(--shadow-soft);
}
.theme-hiw-title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--color-foreground);
	margin-bottom: 0.75rem;
}
.theme-hiw-desc {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--color-muted-foreground);
	line-height: 1.75;
	max-width: 20rem;
	margin-inline: auto;
}

/* ─── Menu / Shop Section ─── */
.theme-menu-section .container-wide { padding-bottom: 5rem; }
@media (min-width: 768px) { .theme-menu-section .container-wide { padding-bottom: 7rem; } }

.theme-search-wrap {
	position: relative;
	max-width: 28rem;
	margin-inline: auto;
	margin-bottom: 2.5rem;
}
.theme-search-icon {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	color: var(--color-muted-foreground);
	pointer-events: none;
}
.theme-search-input {
	width: 100%;
	padding: 0.5rem 0 0.5rem 1.5rem;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--color-border);
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--color-foreground);
	outline: none;
	transition: border-color 0.2s;
}
.theme-search-input:focus { border-bottom-color: var(--color-foreground); }
.theme-search-input::placeholder { color: var(--color-muted-foreground); }

/* Category Filter Pills */
.theme-cat-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}
.theme-cat-filter {
	padding: 0.75rem 1.5rem;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	border-radius: 9999px;
	border: 2px solid var(--color-border);
	background: var(--color-background);
	color: var(--color-foreground);
	transition: all 0.3s ease;
	cursor: pointer;
}
.theme-cat-filter.is-active {
	background: var(--color-primary);
	color: #ffffff;
	border-color: var(--color-primary);
	box-shadow: var(--shadow-soft);
}
.theme-cat-filter:not(.is-active):hover {
	background: var(--color-background);
	color: var(--color-foreground);
	border-color: var(--color-primary);
	box-shadow: var(--shadow-soft);
}

/* Price Filter */
.theme-price-filter-toggle-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}
.theme-price-filter-toggle {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	transition: color 0.3s;
	cursor: pointer;
}
.theme-price-filter-toggle:hover { color: var(--color-foreground); }
.theme-price-active-range {
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	font-size: 0.8125rem;
	opacity: 0.7;
}
.theme-chevron { transition: transform 0.3s ease; }
.theme-price-filter-toggle.is-open .theme-chevron { transform: rotate(180deg); }
.theme-price-filter-panel {
	width: 100%;
	max-width: 22rem;
	transition: max-height 0.3s var(--ease-smooth), opacity 0.3s ease;
	opacity: 0;
}
.theme-price-filter-panel.is-open { opacity: 1; }
.theme-price-filter-inner { padding: 0.5rem 0; }

/* Dual range — full-width track; thumbs receive pointer events (Lovable-style) */
.price-range-wrapper {
	position: relative;
	height: 2.5rem;
	margin-bottom: 0.75rem;
}
.range-track-bg {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 4px;
	background: var(--color-border);
	border-radius: 2px;
	pointer-events: none;
}
.range-track-fill {
	position: absolute;
	height: 4px;
	background: var(--color-primary);
	border-radius: 2px;
	pointer-events: none;
	top: 50%;
	transform: translateY(-50%);
}
.range-input[type="range"] {
	position: absolute;
	left: 0;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	height: 2rem;
	margin: 0;
	padding: 0;
	background: transparent;
	outline: none;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	pointer-events: none;
}
.range-input--min { z-index: 2; }
.range-input--max { z-index: 3; }
.range-input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--color-primary);
	border-radius: 50%;
	cursor: grab;
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(217,79,122,0.3);
	transition: transform 0.1s ease;
	pointer-events: auto;
}
.range-input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; }
.range-input[type="range"]::-moz-range-thumb {
	width: 1.25rem;
	height: 1.25rem;
	background: var(--color-primary);
	border-radius: 50%;
	cursor: grab;
	border: 2px solid #fff;
	box-shadow: 0 2px 6px rgba(217,79,122,0.3);
	pointer-events: auto;
}
.range-input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.range-input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	background: transparent;
}
.range-input[type="range"]::-moz-range-track {
	height: 4px;
	background: transparent;
}
.theme-price-labels {
	display: flex;
	justify-content: space-between;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
}

/* Product Grid */
.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 768px) {
	.theme-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.theme-product-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2.5rem;
	}
}

.theme-product-card-wrap {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.theme-product-hidden { display: none; }

/* Product Card */
.theme-product-card {
	position: relative;
	background: var(--color-background);
	border-radius: 1.5rem;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	transition: box-shadow 0.5s ease, transform 0.3s var(--ease-smooth);
	display: flex;
	flex-direction: column;
	height: 100%;
	cursor: pointer;
}
.theme-product-card:hover {
	box-shadow: var(--shadow-elevated);
	transform: translateY(-6px) rotate(0.5deg);
}

.theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}
.theme-product-card * { pointer-events: none; }
/* El overlay enlazable debe recibir clics por encima de * */
.theme-product-card .theme-card-link { pointer-events: auto; }
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 4/5;
	overflow: hidden;
}
.theme-product-card__img {
	width: 100%; height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.7s var(--ease-smooth);
}
.theme-product-card:hover .theme-product-card__img { transform: scale(1.06); }

.theme-product-badge {
	position: absolute;
	top: 0.75rem;
	padding: 0.375rem 0.75rem;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.625rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	border-radius: 9999px;
}
.badge-primary  { left: 0.75rem; background: var(--color-primary); color: #fff; }
.badge-accent   { left: 0.75rem; background: var(--color-accent); color: #fff; }
.badge-dark     { left: 0.75rem; background: var(--color-foreground); color: var(--color-background); }
.badge-sold-out { right: 0.75rem; background: #C93232; color: #fff; }

.theme-product-card__info {
	padding: 1.25rem;
	text-align: center;
	flex: 1;
}
.theme-product-card__name {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--color-foreground);
	line-height: 1.3;
	margin-bottom: 0.25rem;
}
.theme-product-card__price {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.3;
	color: var(--color-primary);
	margin-bottom: 0.5rem; /* Lovable ProductCard mb-2 */
}
.theme-product-card__price .woocommerce-Price-amount { font-family: inherit; color: inherit; }
.theme-price-from {
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	font-weight: 600;
	margin-right: 0.25rem;
}
.theme-product-card__tagline {
	display: inline-block;
	padding: 0.375rem 1rem; /* py-1.5 px-4 */
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.6875rem; /* text-[11px] */
	line-height: 1.35;
	letter-spacing: normal;
	text-transform: none;
	color: rgba(40, 27, 18, 0.8); /* text-foreground/80 */
	border: 1px solid var(--color-border);
	border-radius: 9999px;
	max-width: 100%;
}

/* Show More */
.theme-show-more-wrap {
	text-align: center;
	margin-top: 3.5rem;
}
.theme-show-more-btn {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	cursor: pointer;
	color: var(--color-foreground);
}
.theme-empty-state {
	text-align: center;
	padding: 5rem 0;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
}

/* ─── FAQ ─── */
.theme-faq-section .container-wide { padding-bottom: 5rem; }
@media (min-width: 768px) { .theme-faq-section .container-wide { padding-bottom: 7rem; } }
.theme-faq-inner { max-width: 48rem; margin-inline: auto; }
.theme-faq-list { border-top: 1px solid var(--color-border); }
.theme-faq-item { border-bottom: 1px solid var(--color-border); }
.theme-faq-question {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem 0;
	text-align: left;
	cursor: pointer;
	gap: 1rem;
}
.theme-faq-question span {
	font-family: var(--font-body);
	font-weight: 700;
	color: var(--color-foreground);
	font-size: 1rem;
}
@media (min-width: 768px) {
	.theme-faq-question span { font-size: 1.125rem; }
}
.theme-faq-chevron {
	flex-shrink: 0;
	color: var(--color-primary);
	transition: transform 0.3s ease;
}
.theme-faq-item.is-open .theme-faq-chevron { transform: rotate(180deg); }
.theme-faq-answer {
	transition: max-height 0.3s var(--ease-smooth), opacity 0.3s ease;
	opacity: 0;
}
.theme-faq-item.is-open .theme-faq-answer { opacity: 1; }
.theme-faq-answer-text {
	font-family: var(--font-body);
	color: var(--color-muted-foreground);
	line-height: 1.75;
	padding-bottom: 1.5rem;
}

/* ─── CTA ─── */
.theme-cta-wrap {
	position: relative;
	margin-top: 2rem;
}
@media (min-width: 768px) { .theme-cta-wrap { margin-top: 2.5rem; } }
.theme-cta-wrap > .theme-scallop:first-child {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 2;
}
.theme-cta-video {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.theme-cta-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		hsla(340, 72%, 62%, 0.75) 0%,
		hsla(340, 72%, 55%, 0.8) 100%
	);
	z-index: 1;
}
.theme-cta-section {
	position: relative;
	z-index: 10;
}
.theme-cta-section .container-wide {
	padding-top: 6rem;
	padding-bottom: 6rem;
}
@media (min-width: 768px) {
	.theme-cta-section .container-wide { padding-top: 8rem; padding-bottom: 8rem; }
}
.theme-cta-inner {
	max-width: 42rem;
	margin-inline: auto;
	text-align: center;
}
.theme-cta-heading {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 7vw, 4.5rem);
	line-height: 1.1;
	margin-bottom: 1.5rem;
	color: #ffffff;
}
.theme-cta-body {
	font-family: var(--font-body);
	color: rgba(255,255,255,0.8);
	line-height: 1.75;
	margin-bottom: 3rem;
	max-width: 28rem;
	margin-inline: auto;
}
.theme-cta-btns {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
}
@media (min-width: 640px) {
	.theme-cta-btns { flex-direction: row; justify-content: center; }
}
.theme-cta-link {
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #ffffff;
	cursor: pointer;
}

/* ─── Footer ─── */
.site-footer {
	background: var(--color-foreground);
	color: var(--color-background);
}
.site-footer-inner {
	padding-top: 4rem;
	padding-bottom: 5rem;
}
@media (min-width: 1024px) {
	.site-footer-inner { padding-top: 5rem; padding-bottom: 6.25rem; }
}
.footer-logo-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 2.5rem;
}
.footer-logo {
	height: 6rem !important;
	width: auto !important;
	display: block;
}
@media (min-width: 768px) {
	.footer-logo { height: 7rem !important; }
}
.footer-logo-text {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--color-background);
}
.footer-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem 2.5rem;
	margin-bottom: 2.5rem;
}
.footer-nav-link, .footer-nav-btn {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.8125rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: rgba(250,245,239,0.6);
	transition: color 0.2s ease;
	cursor: pointer;
}
.footer-nav-link:hover, .footer-nav-btn:hover { color: var(--color-background); }
.footer-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2rem;
	margin-bottom: 2.5rem;
}
.footer-contact-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: rgba(250,245,239,0.6);
	transition: color 0.2s;
}
.footer-contact-link:hover { color: var(--color-background); }
.footer-social svg { flex-shrink: 0; }
.footer-bottom {
	padding-top: 1.5rem;
	border-top: 1px solid rgba(250,245,239,0.15);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}
@media (min-width: 640px) {
	.footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-copyright, .footer-credit {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	color: rgba(250,245,239,0.5);
	letter-spacing: 0.05em;
}
.footer-credit a { text-decoration: underline; transition: color 0.2s; }
.footer-credit a:hover { color: var(--color-background); }

/* ─── Modals ─── */
.theme-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
	padding: 1rem;
	padding-top: max(1rem, env(safe-area-inset-top, 0px));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.theme-modal.is-open { display: block; }
body.modal-open { overflow: hidden; }

/* Tablet: centrar modales verticalmente (768px–1023px, mismo rango que nav móvil) */
@media (min-width: 768px) and (max-width: 1023px) {
	.theme-modal.is-open {
		display: grid;
		grid-template-columns: 1fr;
		grid-template-rows: 1fr;
		align-items: center;
		justify-items: center;
		padding: 1rem;
		padding-top: max(1rem, env(safe-area-inset-top, 0px));
		padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
	}
	.theme-modal.is-open .theme-modal-overlay {
		grid-column: 1 / -1;
		grid-row: 1 / -1;
	}
	.theme-modal.is-open .theme-modal-box {
		grid-column: 1 / -1;
		grid-row: 1 / -1;
		align-self: center;
		justify-self: center;
		margin: 0;
		width: min(100%, 36rem);
		max-height: min(calc(100svh - 2rem), calc(100dvh - 2rem));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

.theme-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: rgba(40,27,18,0.4);
	cursor: pointer;
}
.theme-modal-box {
	position: relative;
	z-index: 1;
	background: var(--color-background);
	border-radius: 1.5rem;
	padding: 1.25rem 1.25rem;
	width: 100%;
	max-width: 36rem;
	max-height: none;
	overflow: visible;
	margin: 1.5rem auto 2rem;
	box-shadow: 0 25px 60px -15px rgba(0,0,0,0.3);
	animation: slideUp 0.3s var(--ease-smooth) forwards;
	flex-shrink: 0;
}
@media (min-width: 640px) {
	.theme-modal-box { padding: 1.5rem 1.75rem; }
}
.theme-modal-close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	padding: 0.25rem;
	color: var(--color-muted-foreground);
	transition: color 0.2s, opacity 0.2s;
	cursor: pointer;
}
.theme-modal-close:hover { color: var(--color-foreground); opacity: 0.7; }
#theme-order-modal .theme-modal-header { margin-bottom: 0.75rem; }
#theme-order-modal .theme-modal-title { font-size: 1.5rem; }
#theme-order-modal .theme-modal-desc { font-size: 0.8125rem; line-height: 1.45; }
#theme-order-modal .theme-modal-form { gap: 0.65rem; }
#theme-order-modal .theme-form-field label { font-size: 0.8125rem; }
#theme-order-modal .theme-form-field input[type="text"],
#theme-order-modal .theme-form-field input[type="email"],
#theme-order-modal .theme-form-field input[type="tel"],
#theme-order-modal .theme-form-field input[type="date"],
#theme-order-modal .theme-form-field select,
#theme-order-modal .theme-form-field textarea {
	padding: 0.5rem 0.625rem;
	font-size: 0.875rem;
}
#theme-order-modal .theme-form-field textarea { min-height: 4.5rem; }
#theme-order-modal .theme-form-submit-row { margin-top: 0.25rem; }
#theme-order-modal .theme-btn-primary { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
#theme-contact-modal .theme-modal-header { margin-bottom: 0.75rem; }
#theme-contact-modal .theme-modal-title { font-size: 1.5rem; }
#theme-contact-modal .theme-modal-desc { font-size: 0.8125rem; line-height: 1.45; }
#theme-contact-modal .theme-modal-form { gap: 0.65rem; }
#theme-contact-modal .theme-form-field label { font-size: 0.8125rem; }
#theme-contact-modal .theme-form-field input[type="text"],
#theme-contact-modal .theme-form-field input[type="email"],
#theme-contact-modal .theme-form-field textarea {
	padding: 0.5rem 0.625rem;
	font-size: 0.875rem;
}
#theme-contact-modal .theme-form-field textarea { min-height: 4.5rem; }
#theme-contact-modal .theme-btn-primary { padding: 0.75rem 1.5rem; font-size: 0.875rem; }
.theme-modal-header { margin-bottom: 1.25rem; }
.theme-modal-title {
	font-family: var(--font-display);
	font-size: 1.875rem;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}
.theme-modal-desc {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
}
.theme-modal-contact-info {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.theme-modal-contact-link {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	font-family: var(--font-body);
	transition: color 0.2s;
}
.theme-modal-contact-link:hover { color: var(--color-foreground); }

/* Form Styles */
.theme-modal-form { display: flex; flex-direction: column; gap: 1rem; }
.theme-form-row-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}
@media (min-width: 640px) {
	.theme-form-row-2 { grid-template-columns: 1fr 1fr; }
}
.theme-form-field { display: flex; flex-direction: column; gap: 0.375rem; }
.theme-form-field label {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--color-foreground);
}
.theme-form-field input[type="text"],
.theme-form-field input[type="email"],
.theme-form-field input[type="tel"],
.theme-form-field input[type="date"],
.theme-form-field select,
.theme-form-field textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-foreground);
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.theme-form-field input:focus,
.theme-form-field select:focus,
.theme-form-field textarea:focus {
	border-color: var(--color-ring, var(--color-primary));
	box-shadow: 0 0 0 3px rgba(217,79,122,0.15);
}
.theme-form-field input::placeholder,
.theme-form-field textarea::placeholder { color: var(--color-muted-foreground); }
.theme-form-field textarea { resize: none; }
.theme-form-submit-row { display: flex; justify-content: flex-end; }

/* Modal Success State */
.theme-modal-success {
	text-align: center;
	padding: 2rem 0;
}
.theme-success-icon {
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 9999px;
	background: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	color: #fff;
}
.theme-success-title {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--color-primary);
	margin-bottom: 0.5rem;
}
.theme-modal-success p {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
}

/* ─── Cart Drawer (§12) ─── */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: rgba(40,27,18,0.2);
	z-index: 150;
	display: none;
}
body.cart-open #theme-cart-overlay { display: block; }

#theme-cart-drawer {
	position: fixed;
	right: 0; top: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background: var(--color-background);
	z-index: 151;
	box-shadow: var(--shadow-elevated);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s var(--ease-smooth);
}
body.cart-open #theme-cart-drawer { transform: translateX(0); }
#theme-cart-drawer.is-updating {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
	border-bottom: 1px solid var(--color-border);
}
.theme-cart-title {
	font-family: var(--font-display);
	font-size: 1.125rem;
}
.theme-cart-close-btn {
	padding: 0.25rem;
	transition: opacity 0.2s;
	cursor: pointer;
}
.theme-cart-close-btn:hover { opacity: 0.6; }

.theme-cart-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	text-align: center;
}
.theme-cart-empty-icon {
	color: var(--color-muted-foreground);
	margin-bottom: 1rem;
}
.theme-cart-empty-msg {
	font-family: var(--font-body);
	color: var(--color-muted-foreground);
	margin-bottom: 1.5rem;
}
.theme-cart-continue-btn {
	display: inline-block;
	padding: 0.625rem 1.5rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 0.875rem;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
	background: transparent;
	color: var(--color-foreground);
}
.theme-cart-continue-btn:hover {
	border-color: var(--color-foreground);
	background: var(--color-secondary);
}

.theme-cart-items {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.theme-cart-item { display: flex; gap: 1rem; }
.theme-cart-item-img-link {
	width: 5rem;
	height: 6rem;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--color-secondary);
	display: block;
}
.theme-cart-item-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.theme-cart-item-details { flex: 1; min-width: 0; }
.theme-cart-item-name {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	margin-bottom: 0.25rem;
	transition: opacity 0.2s;
}
.theme-cart-item-name:hover { opacity: 0.7; }
.theme-cart-item-price {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
}
.theme-cart-item-price .woocommerce-Price-amount { font-family: inherit; }
.theme-cart-item-variation {
	font-family: var(--font-body);
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	margin-top: 0.25rem;
}
.theme-cart-item-controls {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.75rem;
}
.theme-cart-qty-btn {
	padding: 0.25rem;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
	border-radius: var(--radius);
	display: flex;
	align-items: center;
}
.theme-cart-qty-btn:hover { background: var(--color-secondary); }
.theme-cart-qty-val {
	font-family: var(--font-body);
	font-size: 0.875rem;
	min-width: 1.5rem;
	text-align: center;
}
.theme-cart-remove-btn {
	margin-left: auto;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	cursor: pointer;
	transition: color 0.2s;
	background: transparent;
	border: none;
}
.theme-cart-remove-btn:hover { color: var(--color-foreground); }

.theme-cart-footer {
	padding: 1.5rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.theme-cart-subtotal {
	display: flex;
	justify-content: space-between;
	font-family: var(--font-body);
	font-size: 0.875rem;
}
.theme-cart-subtotal-label { color: var(--color-muted-foreground); }
.theme-cart-subtotal-val { font-weight: 600; }
.theme-cart-free-shipping {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
}
.theme-cart-checkout-btn {
	display: block;
	width: 100%;
	padding: 1rem;
	background: var(--color-primary);
	color: #fff;
	text-align: center;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.1em;
	border-radius: 9999px;
	transition: opacity 0.2s;
}
.theme-cart-checkout-btn:hover { opacity: 0.85; color: #fff; }

/* Empty cart — Lovable outline Button variant="outline" size="sm" w-full */
.theme-cart-empty-cart-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 2.25rem;
	padding: 0 0.75rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25;
	color: var(--color-foreground);
	background: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.theme-cart-empty-cart-btn:hover {
	background: var(--color-secondary);
	color: var(--color-foreground);
}
.theme-cart-empty-cart-icon {
	flex-shrink: 0;
}

/* ─── WooCommerce Global (§14) ─── */
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	font-family: var(--font-body);
	border-radius: var(--radius);
}
/* Scope notice hiding (§14.1) */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

/* Hide "View Cart" link after AJAX add (§11.4.2) */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward { display: none !important; }

/* ─── Add to Cart Button Override (§11.4.1) ─── */
.single_add_to_cart_button.button,
.add_to_cart_button.button,
a.single_add_to_cart_button,
a.add_to_cart_button {
	background-color: transparent !important;
	color: var(--color-primary) !important;
	border: 1px solid var(--color-primary) !important;
	border-radius: var(--btn-radius) !important;
	padding: 1rem 1.5rem !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.18em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	transition: background 0.3s ease, color 0.3s ease !important;
	min-height: unset !important;
	width: 100% !important;
}
.single_add_to_cart_button.button:hover,
.add_to_cart_button.button:hover,
a.single_add_to_cart_button:hover,
a.add_to_cart_button:hover {
	background-color: var(--color-primary) !important;
	color: #ffffff !important;
	opacity: 1 !important;
}
/* Disabled state (§11.4.1) */
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}
.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
	opacity: 0.4 !important;
	background-color: transparent !important;
}
/* Loading state (§31.8) */
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* ─── Single Product Page (§11) ─── */
.theme-inner-page { padding-top: var(--header-height); }
.theme-inner-content { padding-top: 0; padding-bottom: 4rem; }

.theme-product-breadcrumb {
	padding: 1.5rem 0;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.theme-product-breadcrumb a { transition: color 0.2s; }
.theme-product-breadcrumb a:hover { color: var(--color-foreground); }
.theme-product-breadcrumb .sep { opacity: 0.5; }
.theme-product-breadcrumb .current { color: var(--color-foreground); }

/* Single Product Layout (Lovable: gap-10 lg:gap-16 pb-24 pt-4 items-start) */
.single-product .theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	padding-bottom: 6rem;
	padding-top: 1rem;
	align-items: start;
	min-width: 0;
}
@media (min-width: 1024px) {
	.single-product .theme-product-layout {
		grid-template-columns: 7fr 5fr;
		gap: 4rem;
	}
}

/* Gallery */
.single-product .theme-product-gallery { min-width: 0; max-width: 100%; }
.single-product .theme-product-gallery-mobile { display: block; }
.single-product .theme-product-gallery-desktop { display: none; }
@media (min-width: 1024px) {
	.single-product .theme-product-gallery-mobile { display: none; }
	.single-product .theme-product-gallery-desktop { display: flex; flex-direction: column; gap: 1rem; }
}

.theme-product-main-img-wrap {
	aspect-ratio: 1/1;
	background: var(--color-secondary);
	overflow: hidden;
}
#product-main-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.theme-product-desktop-img-wrap {
	aspect-ratio: 1/1;
	background: var(--color-secondary);
	overflow: hidden;
}
.theme-product-desktop-img-wrap img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.single-product .theme-product-thumbnails {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
	overflow-x: auto;
	flex-wrap: wrap;
	max-width: 100%;
	padding-bottom: 0.25rem;
}
.theme-thumb-btn {
	position: relative;
	width: 5rem; height: 5rem;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--color-secondary);
	cursor: pointer;
	border: none;
	padding: 0;
}
.theme-thumb-btn img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: opacity 0.2s;
}
.theme-thumb-btn:not(.is-active) img { opacity: 0.6; }
.theme-thumb-btn:hover img { opacity: 1; }
.theme-thumb-active-bar {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 2px;
	background: var(--color-foreground);
	opacity: 0;
}
.theme-thumb-btn.is-active .theme-thumb-active-bar { opacity: 1; }

/* Product Info (Lovable: lg:col-span-5 lg:pl-4 lg:sticky lg:top-28 self-start) */
.single-product .theme-product-info {
	min-width: 0;
	max-width: 100%;
	align-self: start;
}
@media (min-width: 1024px) {
	.single-product .theme-product-info {
		position: sticky;
		top: var(--header-height);
		padding-left: 1rem;
	}
}
.theme-product-category {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	margin-bottom: 0;
	display: block;
}
.theme-product-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	line-height: 1.1;
	margin-top: 0.75rem;
	margin-bottom: 1.25rem;
}
.theme-product-price {
	font-family: var(--font-body);
	font-size: 1.25rem;
	color: var(--color-foreground);
	margin-bottom: 1.5rem;
}
.theme-product-price .woocommerce-Price-amount { font-family: inherit; }
.theme-product-desc {
	font-family: var(--font-body);
	color: var(--color-muted-foreground);
	line-height: 1.625;
	margin-bottom: 2rem;
	font-size: 1rem;
	overflow-wrap: break-word;
	word-break: break-word;
}
/* Lovable: text-muted-foreground leading-relaxed mb-8 font-body text-base */
.single-product .theme-product-desc--teaser {
	margin-bottom: 0;
}
.single-product .theme-product-desc--teaser .theme-product-desc__lead,
.single-product .theme-product-desc--teaser > p {
	margin: 0 0 2rem;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.625;
	color: var(--color-muted-foreground);
}

/* Quantity (§11.6) */
.theme-quantity-label {
	font-family: var(--font-body);
	font-size: 0.8125rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-foreground);
	margin-bottom: 0.75rem;
	display: block;
}
.single-product .theme-product-qty-block {
	margin-bottom: 1rem;
}
.theme-quantity-wrapper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--color-border);
	margin-bottom: 1rem;
}
.single-product .theme-product-qty-block .theme-quantity-wrapper {
	margin-bottom: 0;
}
.theme-qty-minus, .theme-qty-plus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.75rem;
	min-height: 2.25rem;
	transition: background 0.2s;
	cursor: pointer;
	background: transparent;
	border: none;
	font-size: 1rem;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background: var(--color-secondary); }
.theme-qty-input {
	box-sizing: border-box;
	flex: 0 0 auto;
	width: 2.75rem;
	min-width: 2.75rem;
	max-width: 5rem;
	height: 2.25rem;
	padding: 0.5rem 0.375rem;
	line-height: 1.25rem;
	text-align: center;
	font-family: var(--font-body);
	font-size: 0.875rem;
	background: transparent;
	border: none;
	border-left: 1px solid var(--color-border);
	border-right: 1px solid var(--color-border);
	outline: none;
	-moz-appearance: textfield;
	appearance: textfield;
}
.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.single-product .theme-quantity-wrapper input.qty.theme-qty-input,
.single-product .theme-add-to-cart-area .theme-quantity-wrapper input.qty {
	width: 2.75rem !important;
	min-width: 2.75rem !important;
	max-width: 5rem !important;
	flex: 0 0 2.75rem !important;
}

/* Add to cart area (Lovable: quantity block + full-width CTA column) */
.theme-add-to-cart-area { margin-bottom: 1rem; flex-wrap: wrap; gap: 0.75rem; }
.single-product .theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}
.single-product .theme-add-to-cart-area .single_add_to_cart_button,
.single-product .theme-add-to-cart-area .single_add_to_cart_button.button,
.single-product .single_variation_wrap .single_add_to_cart_button,
.single-product .single_variation_wrap .single_add_to_cart_button.button {
	flex: none;
	min-width: 0;
	width: 100% !important;
}

/* Accordions on product page */
.theme-product-accordions {
	margin-top: 2.5rem;
	border-top: 1px solid var(--color-border);
}
.theme-accordion-item { border-bottom: 1px solid var(--color-border); }
.theme-accordion-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 0;
	text-align: left;
	cursor: pointer;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	background: transparent;
	border: none;
	color: var(--color-foreground);
}
.theme-accordion-chevron { flex-shrink: 0; transition: transform 0.3s ease; }
.theme-accordion-item.is-open .theme-accordion-chevron { transform: rotate(180deg); }
.theme-accordion-content {
	overflow: hidden;
	transition: max-height 0.3s var(--ease-smooth);
}
.single-product .theme-accordion-item:not(.is-open) > .theme-accordion-content {
	max-height: 0;
}
.theme-accordion-inner {
	padding-bottom: 1.5rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	color: var(--color-muted-foreground);
	line-height: 1.75;
}
.theme-product-features-list { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.theme-product-feature-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.theme-feature-dot {
	width: 0.25rem; height: 0.25rem;
	background: var(--color-foreground);
	border-radius: 50%;
	flex-shrink: 0;
	margin-top: 0.5rem;
}

/* Product accordions — Lovable layout (mt-10 border-t; nested shipping; tail border) */
.theme-product-accordions--lovable {
	margin-top: 2.5rem;
	border-top: 1px solid var(--color-border);
}
.theme-product-accordions--lovable .theme-accordion-item {
	border-bottom: none;
}
.theme-product-accordions--lovable > .theme-accordion-nested {
	border-top: 1px solid var(--color-border);
}
.theme-product-accordions--lovable > .theme-accordion-nested:first-child {
	border-top: none;
}
.theme-product-accordions--lovable .theme-accordion-border-tail {
	border-top: 1px solid var(--color-border);
	height: 0;
	margin: 0;
	padding: 0;
	pointer-events: none;
}
.theme-accordion-inner--features {
	padding-bottom: 1.5rem;
}
.theme-product-features-rich {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.625;
	color: var(--color-muted-foreground);
	margin-bottom: 1rem;
}
/* Lovable: text-[15px] text-muted-foreground leading-relaxed mb-4 whitespace-pre-line */
.single-product .theme-product-features-rich--lovable {
	font-size: 0.9375rem;
	line-height: 1.625;
	color: var(--color-muted-foreground);
	margin-bottom: 1rem;
}
.single-product .theme-product-features-rich--lovable p {
	margin: 0 0 1rem;
	white-space: pre-line;
}
.single-product .theme-product-features-rich--lovable p:last-child {
	margin-bottom: 0;
}
.theme-product-features-rich p {
	margin: 0 0 1rem;
}
.theme-product-features-rich p:last-child {
	margin-bottom: 0;
}
.theme-product-features-rich > *:first-child { margin-top: 0; }
.theme-product-features-rich > *:last-child { margin-bottom: 0; }
.theme-accordion-inner--features .theme-product-features-rich:last-child { margin-bottom: 0; }
.theme-accordion-inner--features .theme-product-features-list {
	margin-top: 0;
}
.theme-accordion-inner--features .theme-product-features-rich + .theme-product-features-list--lovable {
	margin-top: 1rem;
}
.theme-product-accordions--lovable .theme-product-features-list--lovable {
	margin-top: 0;
	gap: 0.5rem;
}
.theme-product-accordions--lovable .theme-product-feature-item {
	font-size: 0.9375rem;
	line-height: 1.625;
	color: var(--color-muted-foreground);
}
.theme-product-accordions--lovable .theme-feature-dot {
	margin-top: 0.5rem;
}
.theme-accordion-inner--shipping {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-bottom: 1.5rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.625;
	color: var(--color-muted-foreground);
}
.theme-accordion-inner--shipping p {
	margin: 0;
}

/* Related products (Lovable: py-20 border-t border-border) */
.theme-related-products {
	padding: 5rem 0;
	border-top: 1px solid var(--color-border);
}
.theme-related-header {
	text-align: center;
	margin-bottom: 3rem;
}
.theme-related-eyebrow {
	display: block;
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--color-muted-foreground);
	margin-bottom: 0.5rem;
}
.theme-related-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 2.25rem;
	line-height: 1.1;
}
@media (min-width: 768px) {
	.theme-related-title { font-size: 3rem; }
}
.theme-related-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
@media (min-width: 1024px) {
	.theme-related-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* Variable product attributes */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td { display: block; width: 100%; }
.single-product .variations tbody td.label { padding-bottom: 0.25rem; }
.single-product .variations tbody td.value { padding-top: 0; }
.theme-attr-select-hidden { display: none !important; }

/* ─── WooCommerce Archive (§19) ─── */
.theme-archive-section .theme-section-header { padding-top: var(--header-height); }
.theme-archive-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	padding-bottom: 5rem;
}
@media (min-width: 768px) {
	.theme-archive-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.theme-archive-product-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Checkout (bloques WC): ancho, rejilla 2 cols, avisos (.wc-block-components-notices) ─── */
/* Quitar max-width de contenedores del tema cuando hay checkout bloque (DOM real: .wc-block-components-sidebar-layout.wc-block-checkout). */
body.woocommerce-checkout #page-content:has(.wp-block-woocommerce-checkout),
body.woocommerce-checkout .theme-inner-content:has(.wp-block-woocommerce-checkout),
body.woocommerce-checkout .container-wide:has(.wp-block-woocommerce-checkout),
body.woocommerce-checkout .site-main:has(.wp-block-woocommerce-checkout),
body.woocommerce-checkout article:has(.wp-block-woocommerce-checkout),
body.woocommerce-checkout .entry-content:has(.wp-block-woocommerce-checkout),
#page-content:has(.wp-block-woocommerce-checkout),
.theme-inner-content:has(.wp-block-woocommerce-checkout),
.container-wide:has(.wp-block-woocommerce-checkout),
.site-main:has(.wp-block-woocommerce-checkout),
article:has(.wp-block-woocommerce-checkout) {
	max-width: none;
	width: 100%;
}

body.woocommerce-checkout .site-main {
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}
body.woocommerce-checkout .entry-content {
	max-width: 100%;
	width: 100%;
}
body.woocommerce-checkout h1.page-title {
	font-family: var(--font-display);
	font-size: 2.5rem;
	padding-bottom: 1.5rem;
	color: var(--color-foreground);
}

/* Contenedor del bloque checkout (StoreNotices + SidebarLayout son hermanos en el front de WC Blocks). */
body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout,
.entry-content .wp-block-woocommerce-checkout {
	max-width: 80rem; /* 1280px */
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-items: stretch;
}

/* Avisos: misma anchura y alineación que el contenido del checkout */
body.woocommerce-checkout .entry-content .wc-block-components-notices,
.entry-content .wc-block-components-notices {
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	box-sizing: border-box;
}

/* Rejilla 2 columnas en el layout lateral (clases reales WC: .wc-block-components-sidebar-layout + .wc-block-checkout). */
@media (min-width: 768px) {
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout.wc-block-checkout,
	body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-components-sidebar-layout.wc-block-checkout,
	.entry-content .wc-block-checkout-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr minmax(360px, 400px);
		gap: 1.5rem;
		align-items: start;
	}

	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-checkout__sidebar,
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-components-sidebar,
	.entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-checkout__sidebar,
	.entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-components-sidebar {
		min-width: 360px;
	}
}

@media (max-width: 767px) {
	body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout.wc-block-checkout,
	body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout,
	.entry-content .wc-block-components-sidebar-layout.wc-block-checkout,
	.entry-content .wc-block-checkout-sidebar-layout {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
		align-items: start;
	}
}

/* Avisos como primer hijo del layout (si aplica): fila completa + orden */
body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout > .wc-block-components-notices,
body.woocommerce-checkout .entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-components-sidebar-layout > .wc-block-components-notices,
.entry-content .wc-block-checkout-sidebar-layout > .wc-block-components-notices {
	grid-column: 1 / -1;
	order: 1;
}

body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout.wc-block-checkout > *,
.entry-content .wc-block-components-sidebar-layout.wc-block-checkout > * {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-checkout__main,
body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-components-main,
.entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-checkout__main,
.entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-components-main {
	order: 2;
	width: 100% !important;
	max-width: 100% !important;
	padding-right: 0 !important;
}

body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-checkout__sidebar,
body.woocommerce-checkout .entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-components-sidebar,
.entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-checkout__sidebar,
.entry-content .wc-block-components-sidebar-layout.wc-block-checkout .wc-block-components-sidebar {
	order: 3;
	width: 100% !important;
	max-width: 100% !important;
	padding: 2rem !important;
	background: var(--color-secondary);
	border-radius: var(--radius);
	box-sizing: border-box;
}

body.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout-order-summary-block,
.entry-content .wp-block-woocommerce-checkout-order-summary-block {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	border-color: var(--color-border) !important;
	border-radius: var(--radius) !important;
	background: var(--color-background) !important;
	color: var(--color-foreground) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: var(--color-primary) !important;
	color: #fff !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em !important;
}

/* ─── Thank You Page (§22.8) ─── */
body.theme-thankyou-page { overflow-x: hidden; }
body.theme-thankyou-page .woocommerce-order { font-family: var(--font-body); }
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	padding-bottom: 1rem;
	color: var(--color-foreground);
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2rem;
	list-style: none;
	padding: 1rem 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 1rem 1.5rem;
	margin-bottom: 2rem;
	background: var(--color-secondary);
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; color: var(--color-muted-foreground); }
body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%; table-layout: fixed; border-collapse: collapse;
}
body.theme-thankyou-page .woocommerce-order-details tfoot th { text-align: left; }
body.theme-thankyou-page .woocommerce-order-details tfoot td { text-align: right; }
body.theme-thankyou-page .woocommerce-customer-details {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 30rem;
	overflow-wrap: break-word;
	font-style: normal;
	font-family: var(--font-body);
	line-height: 1.75;
}

/* ─── 404 ─── */
.theme-404-wrap {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
}
.theme-404-content { text-align: center; }
.theme-404-emoji { font-size: 4rem; margin-bottom: 1rem; }
.theme-404-heading {
	font-family: var(--font-display);
	font-size: 6rem;
	color: var(--color-primary);
	line-height: 1;
	margin-bottom: 1rem;
}
.theme-404-msg {
	font-family: var(--font-body);
	color: var(--color-muted-foreground);
	margin-bottom: 2rem;
	font-size: 1.125rem;
}

/* ─── Responsive misc ─── */
@media (max-width: 767px) {
	.site-nav-links { display: none; }
}
.scrollbar-none::-webkit-scrollbar { display: none; }
.scrollbar-none { scrollbar-width: none; }

/* Ensure WooCommerce price spans inherit */
.woocommerce-Price-amount.amount,
.woocommerce-Price-currencySymbol { font-family: inherit; }

/* inner page general */
.theme-inner-page.bg-background { background: var(--color-background); }
