/* ============================================================
   JRS Nature Photography — theme.css
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
	/* Colors — overridden by inline style from functions.php */
	--color-background:  #f8f5f0;
	--color-foreground:  #111c15;
	--color-primary:     #1e6b3d;
	--color-primary-fg:  #ffffff;
	--color-secondary:   #ede9e2;
	--color-muted-fg:    #5a6860;
	--color-border:      #d6cfc4;
	--color-card:        #f0ede6;
	--color-muted:       #d8d3cd; /* Lovable: hsl(30 10% 85%) — filter pill hover */
	/* Lovable shadcn `index.css` — `outline` hover: bg-accent / text-accent-foreground */
	--color-accent:        hsl(25, 55%, 35%);
	--color-accent-fg:     #ffffff;
	--color-primary-hover: color-mix(in srgb, var(--color-primary) 90%, #000);

	/* Header sólido: misma cápsula en barra + panel móvil (ver @supports) */
	--header-surface: rgba(248, 245, 240, 0.95);

	/* Typography (aligned with the Lovable / shadcn stack: Playfair Display + Source Sans 3) */
	--font-display: 'Playfair Display', serif;
	--font-body:    'Source Sans 3', sans-serif;

	/* Spacing */
	--container-max: 1280px;
	--container-px:  1.5rem;

	/* Shadows */
	--shadow-soft:     0 4px 20px -4px rgba(17,28,21,0.06);
	--shadow-elevated: 0 12px 40px -8px rgba(17,28,21,0.12);
	--shadow-card-hover: 0 20px 40px -12px rgba(25,30,12,0.15);

	/* Easing — Lovable `index.css` / Tailwind */
	--ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

	/* Radius */
	--radius-sm:  calc(0.375rem - 2px);
	--radius-md:  0.375rem;
	--radius-lg:  0.5rem;
	--radius-xl:  1rem;
	--radius-2xl: 1rem; /* Tailwind `rounded-2xl` (CTA card) */

	/* Buttons (shadcn: default text-sm, lg = h-11) */
	--btn-radius:        var(--radius-md);
	--btn-height:        2.5rem; /* 40px — h-10 default */
	--btn-padding:       0.5rem 1rem; /* ~py-2 px-4 */
	--btn-font-size:     0.875rem; /* text-sm */
	--btn-font-weight:   500;
	--btn-letter-spacing: 0.01em;
	--btn-text-transform: none;

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

	/* Header — Lovable: `h-20` (5rem) default, `lg:h-24` (6rem) at 1024+ */
	--header-height: 5rem;
}

@supports (color: color-mix(in srgb, #fff, #000)) {
	:root {
		--header-surface: color-mix(in srgb, var(--color-background) 95%, transparent);
	}
}

@media (min-width: 1024px) {
	:root {
		--header-height: 6rem;
	}
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	--jrs-wpadmin-offset: 0px;
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5; /* Tailwind / shadcn base */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

/* Offset fixed header and main padding so they sit below the WordPress admin bar (preview & logged-in users) */
body.admin-bar {
	--jrs-wpadmin-offset: 32px;
}
@media screen and ( max-width: 782px ) {
	body.admin-bar {
		--jrs-wpadmin-offset: 46px;
	}
}

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

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

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

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

ul {
	list-style: none;
}

input, textarea, select {
	font-family: inherit;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container-wide {
	width: 100%;
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-px);
	padding-right: var(--container-px);
}

@media (min-width: 1024px) {
	.container-wide {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

.scroll-mt-24 {
	scroll-margin-top: calc(var(--jrs-wpadmin-offset) + var(--header-height) + 1rem);
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: var(--btn-padding);
	min-height: var(--btn-height);
	border-radius: var(--btn-radius);
	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);
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
	border: 1px solid transparent;
	white-space: nowrap;
	text-decoration: none;
}

.btn:hover { opacity: 0.88; transform: scale(1.02); }
.btn:active { transform: scale(0.97); }

.btn-primary {
	background-color: var(--color-primary);
	color: var(--color-primary-fg);
	border-color: var(--color-primary);
}
.btn-primary:hover { opacity: 0.88; color: var(--color-primary-fg); }

.btn-ghost {
	background-color: rgba(255,255,255,0.10);
	color: #ffffff;
	border-color: rgba(255,255,255,0.20);
}
.btn-ghost:hover { background-color: rgba(255,255,255,0.20); color: #fff; opacity: 1; }

.btn-outline {
	background-color: transparent;
	color: var(--color-foreground);
	border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); opacity: 1; transform: none; }

.btn-sm {
	padding: 0.5rem 0.75rem; /* sm: px-3, h-9 */
	min-height: 2.25rem; /* 36px */
	font-size: 0.875rem;
}

.btn-lg {
	padding: 0.5rem 2.5rem; /* lg + hero: px-10, h-11 */
	min-height: 2.75rem; /* 44px */
	font-size: 1rem; /* text-base */
}

.btn-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
	margin-bottom: 3rem;
}

.section-eyebrow {
	display: block;
	font-family: var(--font-body);
	font-size: 0.75rem; /* Lovable: text-xs */
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-fg);
}

.section-heading {
	font-family: var(--font-display);
	color: var(--color-foreground);
	/* Lovable: text-3xl md:text-5xl, mt-2 */
	font-size: 1.875rem; /* 30px */
	margin-top: 0.5rem;
	margin-bottom: 1rem; /* ~mb-4 */
	font-weight: 400;
}
@media (min-width: 768px) {
	.section-heading { font-size: 3rem; } /* 48px text-5xl */
}

.section-subtitle {
	font-family: var(--font-body);
	color: var(--color-muted-fg);
	max-width: 32rem; /* max-w-lg — portfolio / shop */
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2rem; /* mb-8 */
}
.contact-section .section-subtitle {
	max-width: 28rem; /* Lovable contact: max-w-md */
}

/* ============================================================
   FILTER PILLS
   ============================================================ */
.filter-pills {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
	margin-bottom: 2rem;
}

.filter-pill {
	padding: 0.5rem 1rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	border-radius: var(--radius-md);
	background-color: var(--color-card);
	color: var(--color-muted-fg);
	border: 1px solid transparent;
	transition: background-color 0.2s, color 0.2s;
}

.filter-pill:hover { background-color: var(--color-muted); color: var(--color-foreground); }
.filter-pill.is-active { background-color: var(--color-primary); color: var(--color-primary-fg); }

/* ============================================================
   LINK UNDERLINE
   ============================================================ */
.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); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
	position: fixed;
	top: var(--jrs-wpadmin-offset, 0px);
	left: 0;
	right: 0;
	z-index: 50; /* Lovable: z-50 */
	/* No animar backdrop-filter: evita parpadeo / sensación de “reflow” al abrir menú móvil o solid */
	transition: background-color 0.25s ease, border-color 0.25s ease;
	border-bottom: 1px solid transparent;
	height: var(--header-height);
	display: flex;
	align-items: center;
}

.site-header.is-solid {
	background-color: var(--header-surface);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-color: var(--color-border);
}

.site-header .container-wide { height: 100%; }

.site-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	gap: 0.75rem;
	min-width: 0; /* evita desbordamiento con logo ancho */
}

/* Brand */
.site-brand {
	display: flex;
	align-items: center;
	min-width: 0;
	max-width: 100%;
}
/* Lovable: h-8 md:h-10 on logo; customizer --logo-height applies from md+ */
.site-logo-img  { width: auto !important; display: block; }
.site-header .site-logo-img {
	height: 2rem !important; /* 32px */
	/* Lovable: `transition-all duration-300` on logo */
	transition: filter 0.3s ease, opacity 0.3s ease;
}
@media (min-width: 768px) {
	.site-header .site-logo-img { height: var(--logo-height) !important; }
}
/* Lovable: `brightness-0 invert` sobre el hero (header transparente) */
.site-header:not(.is-solid) .site-logo-img {
	filter: brightness(0) invert(1);
	-webkit-filter: brightness(0) invert(1);
}
.site-header.is-solid .site-logo-img {
	filter: none;
	-webkit-filter: none;
}
.footer-grid .site-logo-img,
.site-footer .site-logo-img { height: 2.5rem !important; } /* h-10 footer */
.site-logo-text { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; line-height: var(--logo-height); display: block; }

/* Desktop nav */
.site-nav-desktop { display: none; }
@media (min-width: 768px) {
	.site-nav-desktop { display: flex; align-items: center; }
}

/* Solo escritorio: fila horizontal. No usar .theme-nav-list en el menú móvil (rompe columna) */
#site-nav-desktop .theme-nav-list,
.site-nav-desktop .theme-nav-list {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.theme-nav-link {
	font-family: var(--font-body);
	font-size: 0.875rem; /* Lovable: text-sm */
	letter-spacing: 0.025em; /* tracking-wide */
	color: var(--color-foreground);
	transition: color 0.2s;
}

/* Transparent header nav text */
.site-header:not(.is-solid) .theme-nav-link,
.site-header:not(.is-solid) .theme-nav-link:hover { color: rgba(255,255,255,0.9); }
.site-header:not(.is-solid) .site-logo-text { color: #fff; }
.site-header:not(.is-solid) .mobile-menu-toggle { color: #fff; }
.site-header:not(.is-solid) .cart-btn { color: #fff; }

/* Nav actions */
.site-nav-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 0 0 auto; /* hamburguesa y carrito no se comprimen */
}

.cart-btn {
	position: relative;
	padding: 0.5rem;
	color: var(--color-foreground);
	transition: opacity 0.2s;
}
.cart-btn:hover { opacity: 0.6; }

/* `desktop-only` eliminado: en Lovable el carrito y el menú comparten fila en móvil */

.theme-cart-count {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 600;
	background-color: var(--color-primary);
	color: var(--color-primary-fg);
	border-radius: 50%;
}
.theme-cart-count:empty { display: none; }

.mobile-menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	color: var(--color-foreground);
	transition: opacity 0.2s;
}
.mobile-menu-toggle:hover { opacity: 0.6; }
@media (min-width: 768px) { .mobile-menu-toggle { display: none; } }

/* Mobile menu toggle icon states */
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-menu  { display: none; }
.mobile-menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ============================================================
   MÓVIL — alineado con Lovable: enlaces, tipografía
   El panel de enlaces no forma parte del flujo (no crece el header) → nada se “empuja” al abrir.
   ============================================================ */
@media (max-width: 767px) {
	/* Altura fija: la franja no cambia; el desplegable es overlay bajo ella */
	.site-header {
		min-height: var(--header-height);
		height: var(--header-height);
		max-width: 100%;
		overflow: visible; /* el panel :absolute sale del bloque; clip X iba a truncar yops */
		align-items: stretch;
	}
	.site-header .container-wide {
		position: relative;
		display: block;
		width: 100%;
		height: 100%;
		min-width: 0;
		/* contención del logo sin recortar el desplegable */
		overflow: visible;
	}
	.site-header .container-wide .site-nav {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: var(--header-height);
		height: 100%;
	}
	.site-brand {
		flex: 1 1 auto;
		min-width: 0;
	}
	.site-header .site-logo-text {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		max-width: 100%;
	}
	.site-header .site-logo-img {
		max-width: min(11rem, calc(100vw - 7.5rem));
		object-fit: contain;
		object-position: left center;
	}
	/* Apertura del menú: el logo/íconos no animan 300ms el filtro — evita el “jerk” hacia arriba */
	.site-header.menu-open .site-logo-img {
		transition: filter 0s, opacity 0.2s ease;
	}
	/* Desplegable bajo la barra; no incrementa el alto del <header> fijado */
	.mobile-menu {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		z-index: 10;
		display: none;
		margin: 0;
		width: 100%;
		/* Mismo aire que el ancho de contenido (Lovable); lateral izq un poco más aire */
		padding: 1rem var(--container-px) 1.5rem calc(var(--container-px) + 0.25rem);
		background: var(--header-surface);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
		border: none;
		border-top: 1px solid var(--color-border);
		box-shadow: 0 8px 24px -4px rgba(17, 28, 21, 0.1);
	}
	.mobile-menu.is-open {
		display: block;
		/* Sí solo forwards (no "both") para evitar un frame fantasma hacia arriba */
		animation: jrsMobileMenuReveal 0.4s var(--ease-smooth) forwards;
	}
	@media (prefers-reduced-motion: reduce) {
		.mobile-menu.is-open {
			animation: none;
		}
	}
}

@keyframes jrsMobileMenuReveal {
	from {
		opacity: 0;
		transform: translateY(0.4rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (min-width: 768px) {
	.site-header {
		min-height: 0;
		height: var(--header-height);
	}
	.site-header .container-wide {
		display: block;
		height: 100%;
	}
	.site-header .container-wide .site-nav {
		height: 100%;
	}
	.mobile-menu {
		display: none !important;
	}
}

/* (Estilos del contenedor .mobile-menu en móvil: @media (max-width: 767px) arriba) */

/* Lovable: `flex flex-col gap-4` — forzar columna (WordPress añade class `menu` al ul) */
.mobile-menu .theme-mobile-nav-list,
.mobile-menu ul.menu,
#mobile-menu .theme-mobile-nav-list,
#mobile-menu ul.menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column !important;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 1rem;
	width: 100%;
}
.mobile-menu .theme-mobile-nav-list > li,
#mobile-menu .theme-mobile-nav-list > li {
	margin: 0;
	padding: 0;
	float: none;
	display: block;
	width: 100%;
}
.theme-mobile-nav-list .theme-nav-link {
	/* Lovable: text-left text-sm tracking-wide py-2 — sin subrayado animado */
	text-align: left;
	display: block;
	font-size: 0.875rem;
	letter-spacing: 0.025em;
	color: var(--color-foreground);
	padding: 0.5rem 0; /* py-2 */
	transition: color 0.3s ease;
	background: none;
}
.theme-mobile-nav-list .link-underline::after {
	display: none;
}
.theme-mobile-nav-list .theme-nav-link:hover,
.theme-mobile-nav-list .theme-nav-link:focus {
	color: var(--color-muted-fg); /* Lovable: hover:text-muted-foreground */
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	overflow: hidden;
	background-color: var(--color-foreground);
}

.hero-video-wrapper {
	position: absolute;
	inset: 0;
}

.hero-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scaleX(-1);
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background-color: var(--color-foreground);
	opacity: 0.55;
	transition: opacity 0.3s ease;
}

.hero-content {
	position: relative;
	z-index: 10;
	padding-bottom: 5rem;
	text-align: left;
}

.hero-eyebrow-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.hero-line {
	display: block;
	height: 1px;
	width: 2rem;
	background-color: rgba(30,107,61,0.6);
	transition: width 0.8s ease;
}

.hero-eyebrow {
	font-family: var(--font-body);
	font-size: 0.875rem; /* Lovable: text-sm */
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--color-primary);
	font-weight: 500;
}

.hero-title-overflow {
	overflow: hidden;
}

.hero-title-line1 {
	font-family: var(--font-display);
	/* Lovable: text-5xl / md:text-7xl / lg:text-8xl, tracking-tight, mb-2 on line1 */
	letter-spacing: -0.02em;
	color: #ffffff;
	line-height: 1.1;
	margin-bottom: 0.5rem; /* mb-2 */
	font-size: 3rem; /* text-5xl */
	font-weight: 400;
}
@media (min-width: 768px) { .hero-title-line1 { font-size: 4.5rem; } }  /* text-7xl */
@media (min-width: 1024px) { .hero-title-line1 { font-size: 6rem; } } /* text-8xl */

.hero-title-line2 {
	font-family: var(--font-display);
	letter-spacing: -0.02em;
	color: #ffffff;
	line-height: 1.1;
	margin-bottom: 1.5rem; /* mb-6 */
	font-size: 3rem;
	font-weight: 400;
}
@media (min-width: 768px) { .hero-title-line2 { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title-line2 { font-size: 6rem; } }

.hero-subtitle {
	font-family: var(--font-body);
	color: rgba(255,255,255,0.70);
	max-width: 36rem; /* max-w-xl */
	font-size: 1.125rem; /* text-lg */
	line-height: 1.6;
	margin-bottom: 2.5rem; /* mb-10 */
}

.hero-ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem; /* gap-3 */
	justify-content: flex-start;
}
.hero-ctas .btn {
	font-size: 1rem; /* Lovable: Button lg + text-base on hero */
	font-weight: 500;
	min-height: 2.75rem;
}

.hero-scroll-down {
	position: absolute;
	bottom: 2.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
}

.scroll-down-btn {
	padding: 0.5rem;
	color: rgba(255,255,255,0.5);
	transition: color 0.2s;
	animation: hero-bounce 2s ease-in-out infinite;
}
.scroll-down-btn:hover { color: #fff; }

@keyframes hero-bounce {
	0%, 100% { transform: translateY(0); }
	50%       { transform: translateY(8px); }
}

/* Animate-in classes applied by JS */
.hero-content.is-visible .hero-eyebrow-row { animation: fadeUp 0.8s 0.5s both; }
.hero-content.is-visible .hero-title-line1  { animation: heroLineUp 1s 0.6s both; }
.hero-content.is-visible .hero-title-line2  { animation: heroLineUp 1s 0.75s both; }
.hero-content.is-visible .hero-subtitle     { animation: fadeBlurUp 0.8s 1s both; }
.hero-content.is-visible .hero-ctas         { animation: fadeUp 0.7s 1.2s both; }

@keyframes heroLineUp {
	from { opacity: 0; transform: translateY(80px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeBlurUp {
	from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
	to   { opacity: 1; transform: translateY(0);  filter: blur(0); }
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
	background-color: var(--color-secondary);
	padding: 4rem 0;
}
@media (min-width: 768px) { .about-section { padding: 6rem 0; } }

.about-inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
}
/* Lovable: `gap-8` then `md:gap-12` (3rem) */
@media (min-width: 768px) {
	.about-inner {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}
}

.about-image-wrapper {
	overflow: hidden;
	border-radius: var(--radius-lg); /* Lovable: rounded-lg */
	aspect-ratio: 1 / 1;
}
.about-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease-smooth);
}
.about-image-wrapper:hover .about-image { transform: scale(1.03); }

/* Lovable: text-3xl md:text-4xl lg:text-5xl, font-display */
.about-heading {
	margin-top: 0.5rem; /* after eyebrow */
	margin-bottom: 1.5rem; /* mb-6 */
	font-size: 1.875rem;
	font-weight: 400;
}
@media (min-width: 768px) { .about-heading { font-size: 2.25rem; } }   /* text-4xl */
@media (min-width: 1024px) { .about-heading { font-size: 3rem; } }    /* text-5xl */

.about-body {
	display: flex;
	flex-direction: column;
	gap: 1rem; /* space-y-4 */
	color: var(--color-muted-fg);
	font-family: var(--font-body);
	font-size: 1rem; /* text-base */
	line-height: 1.625; /* leading-relaxed */
}
@media (min-width: 768px) { .about-body { font-size: 1.125rem; } } /* text-lg */

.about-signature {
	color: var(--color-foreground);
	font-weight: 500;
}

/* ============================================================
   PORTFOLIO / GALLERY
   ============================================================ */
.portfolio-section {
	padding: 4rem 0;
}
@media (min-width: 768px) { .portfolio-section { padding: 6rem 0; } }

.gallery-masonry {
	columns: 1;
	gap: 1rem;
}
@media (min-width: 640px)  { .gallery-masonry { columns: 2; } }
@media (min-width: 1024px) { .gallery-masonry { columns: 3; } }

.gallery-item {
	break-inside: avoid;
	margin-bottom: 1rem;
}

.gallery-item-btn {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: var(--radius-lg);
	cursor: pointer;
	display: block;
}

.gallery-img {
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 0.7s ease;
	display: block;
}
.gallery-item-btn:hover .gallery-img { transform: scale(1.05); }

.gallery-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(17,28,21,0);
	transition: background-color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.gallery-item-btn:hover .gallery-overlay { background-color: rgba(17,28,21,0.3); }

.gallery-eye-icon {
	opacity: 0;
	color: #ffffff;
	transition: opacity 0.3s ease;
}
.gallery-item-btn:hover .gallery-eye-icon { opacity: 1; }

/* Hidden gallery items (filter) */
.gallery-item.is-hidden { display: none; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background-color: rgba(0,0,0,0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.lightbox-overlay[hidden] { display: none; }

.lightbox-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	color: rgba(255,255,255,0.7);
	transition: color 0.2s;
	z-index: 201;
	padding: 0.25rem;
}
.lightbox-close:hover { color: #fff; }

.lightbox-img-wrap {
	max-width: 100%;
	max-height: 90vh;
}

.lightbox-img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: var(--radius-lg);
}

/* ============================================================
   SHOP SECTION
   ============================================================ */
.shop-section {
	background-color: var(--color-secondary);
	padding: 4rem 0;
}
@media (min-width: 768px) { .shop-section { padding: 6rem 0; } }

/* Product grid */
.theme-product-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
	align-items: stretch;
}
@media (min-width: 640px)  { .theme-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .theme-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2rem; } }

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

/* Product card */
.theme-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--color-card);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.theme-product-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--shadow-card-hover);
}

/* Image wrapper */
.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 1 / 1; /* Lovable ProductCard: aspect-square */
	overflow: hidden;
}

.theme-product-card__image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--ease-smooth);
	display: block;
}
.theme-product-card:hover .theme-product-card__image-wrapper img { transform: scale(1.08); }

/* Hit-area overlay: el <a> bajo el img; img sin pointer para que el clic pase a la ficha.
   (No usar `wrapper *` — anulaba también .theme-card-link y el overlay no recibía clics.) */
.theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: auto;
	display: block;
}
.theme-product-card__image-wrapper .theme-product-card__image,
.theme-product-card__image-wrapper img {
	pointer-events: none;
}
.theme-product-card__image-wrapper .product-cat-badge,
.theme-product-card__image-wrapper .product-sold-out-badge {
	pointer-events: none; /* dejan pasar el clic al enlace a la ficha */
}
.theme-product-card__image-wrapper .add_to_cart_button,
.theme-product-card__image-wrapper a.btn {
	pointer-events: auto;
}

/* Category badge — Lovable Badge: text-xs */
.product-cat-badge {
	position: absolute;
	top: 0.75rem; /* top-3 */
	left: 0.75rem;
	z-index: 2;
	background-color: rgba(30,107,61,0.9);
	color: #fff;
	font-family: var(--font-body);
	font-size: 0.75rem; /* text-xs */
	font-weight: 500;
	padding: 0.2rem 0.6rem;
	border-radius: 9999px;
	pointer-events: none;
}

/* Sold out badge */
.product-sold-out-badge {
	position: absolute;
	bottom: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	background-color: rgba(0,0,0,0.6);
	color: #fff;
	font-family: var(--font-body);
	font-size: 0.6875rem;
	padding: 0.2rem 0.6rem;
	border-radius: 9999px;
	pointer-events: none;
}

/* Card info */
.theme-product-card__info {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.25rem; /* p-5 */
	gap: 0.5rem; /* Lovable: space-y-3 between blocks via structure */
}

.theme-product-card__title {
	font-family: var(--font-display);
	font-size: 1.125rem; /* text-lg */
	line-height: 1.4;
	color: var(--color-foreground);
	transition: color 0.2s;
	font-weight: 400;
}
.theme-product-card:hover .theme-product-card__title { color: var(--color-primary); }

.theme-product-card__desc {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-fg);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.theme-product-card__footer {
	margin-top: auto;
	padding-top: 0.75rem;
}

.theme-product-card__price {
	font-family: var(--font-body);
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 0.75rem;
}
.theme-product-card__price .woocommerce-Price-amount { color: inherit; }

.theme-product-card__actions {
	display: flex;
	gap: 0.5rem;
	position: relative;
	z-index: 2;
	pointer-events: auto;
}
.theme-product-card__actions > * {
	flex: 1;
	pointer-events: auto;
}

/* Hide "View cart" after AJAX add */
.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 — default primario (Woo); las tarjetas se sobreescriben abajo
   ============================================================ */
.single_add_to_cart_button.button,
a.add_to_cart_button,
button.add_to_cart_button,
.add_to_cart_button.button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-fg) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	min-height: var(--btn-height) !important;
	padding: var(--btn-padding) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-family: var(--font-body) !important;
	font-size: var(--btn-font-size) !important;
	font-weight: var(--btn-font-weight) !important;
	letter-spacing: var(--btn-letter-spacing) !important;
	text-transform: var(--btn-text-transform) !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease !important;
	white-space: nowrap !important;
}
.single_add_to_cart_button.button:hover,
a.add_to_cart_button:hover,
button.add_to_cart_button:hover,
.add_to_cart_button.button:hover {
	opacity: 0.9 !important;
	background-color: var(--color-primary) !important;
	color: var(--color-primary-fg) !important;
}
.single_add_to_cart_button.button:disabled,
.add_to_cart_button.button:disabled,
a.add_to_cart_button.disabled,
a.add_to_cart_button:disabled {
	cursor: not-allowed !important;
	opacity: 0.4 !important;
	pointer-events: none !important;
}

/* --- Grid / ProductCard: Lovable = outline + `size="sm"`, al lado default primary --- */
.theme-product-card a.add_to_cart_button.ajax_add_to_cart {
	background-color: var(--color-background) !important; /* bg-background */
	color: var(--color-foreground) !important;
	border: 1px solid var(--color-border) !important; /* border-input */
	min-height: 2.25rem !important; /* h-9 */
	padding: 0.5rem 0.75rem !important; /* py-1.5 px-3 */
	font-size: 0.875rem !important; /* text-sm */
	font-weight: 500 !important; /* font-medium */
	letter-spacing: 0.01em !important;
	text-transform: none !important;
}
/* Lovable: `hover:bg-accent hover:text-accent-foreground` (shadcn outline) */
.theme-product-card a.add_to_cart_button.ajax_add_to_cart:hover,
.theme-product-card__actions .btn-outline.add_to_cart_button:hover {
	opacity: 1 !important;
	background-color: var(--color-accent) !important;
	color: var(--color-accent-fg) !important;
	border-color: var(--color-accent) !important;
}

/* View Product: Lovable = `default` → `hover:bg-primary/90` */
.theme-product-card__actions .btn-primary.btn {
	min-height: 2.25rem !important;
	padding: 0.5rem 0.75rem !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: 0.01em !important;
	white-space: nowrap !important;
}
.theme-product-card__actions a.btn.btn-primary:hover {
	opacity: 1 !important;
	background-color: var(--color-primary-hover) !important;
	color: var(--color-primary-fg) !important;
	border-color: var(--color-primary) !important;
}

/* Misma fila: sin “zoom” ni opacidad del `.btn` global (Lovable: `transition-colors`) */
.theme-product-card__actions .btn:hover,
.theme-product-card__actions .btn:active {
	transform: none;
	opacity: 1 !important;
}

/* Loading (AJAX) en tarjeta: se mantiene outline */
.theme-product-card .add_to_cart_button.ajax_add_to_cart.theme-btn-loading,
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.65 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
	padding: 4rem 0;
}
@media (min-width: 768px) { .cta-section { padding: 6rem 0; } }

.cta-card {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius-2xl);
	color: #ffffff;
	transition: transform 0.4s var(--ease-smooth);
}
.cta-card:hover { transform: scale(1.01); }

.cta-bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(17,28,21,0.7);
}

.cta-content {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2.5rem 1.5rem;
}
@media (min-width: 768px) { .cta-content { padding: 4rem 2rem; } }
@media (min-width: 1024px) { .cta-content { padding: 5rem 2rem; } }

.cta-heading {
	font-family: var(--font-display);
	font-size: 1.875rem; /* text-3xl */
	font-weight: 400;
	color: #fff;
	margin-bottom: 1rem;
	line-height: 1.15; /* ~leading-tight on large titles */
}
@media (min-width: 768px)  { .cta-heading { font-size: 3rem; } }    /* md:text-5xl */
@media (min-width: 1024px) { .cta-heading { font-size: 3.75rem; } } /* lg:text-6xl */

.cta-body {
	font-family: var(--font-body);
	color: rgba(255,255,255,0.80);
	max-width: 28rem; /* max-w-md */
	font-size: 1rem; /* text-base */
	line-height: 1.6;
	margin-bottom: 2rem; /* mb-8 */
}
@media (min-width: 768px) { .cta-body { font-size: 1.125rem; } } /* md:text-lg */

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
	background-color: var(--color-secondary);
	padding: 4rem 0;
}
@media (min-width: 768px) { .contact-section { padding: 6rem 0; } }

.contact-inner {
	max-width: 42rem;
	margin-left: auto;
	margin-right: auto;
}

.contact-info-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem; /* Lovable: gap-6 */
	margin-bottom: 2rem;
}

.contact-info-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-fg);
	text-decoration: none;
	transition: color 0.2s, transform 0.2s;
}
.contact-info-item:hover { color: var(--color-foreground); transform: scale(1.03); }

/* Form */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.form-row { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 640px) { .form-row--2col { flex-direction: row; } }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.form-label {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-foreground);
}

.form-input {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: var(--color-background);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-foreground);
	transition: box-shadow 0.3s ease, border-color 0.2s ease;
	outline: none;
}
.form-input::placeholder { color: var(--color-muted-fg); }
.form-input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(30,107,61,0.15);
}

.form-textarea { resize: none; }

.form-submit-row { display: flex; justify-content: center; }

/* Success state */
.contact-success {
	text-align: center;
	padding: 2.5rem 0;
}
.contact-success[hidden] { display: none; }
.contact-success h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-success p  { color: var(--color-muted-fg); font-family: var(--font-body); }

.contact-success-icon {
	width: 64px;
	height: 64px;
	background-color: var(--color-primary);
	border-radius: var(--radius-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
	color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
	border-top: 1px solid var(--color-border);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem; /* gap-8 */
	padding: 3rem 0; /* py-12 */
}
@media (min-width: 768px) {
	.footer-grid { grid-template-columns: repeat(3, 1fr); } /* md:grid-cols-3 */
}
@media (min-width: 1024px) {
	.footer-grid {
		gap: 3rem; /* lg:gap-12 */
		padding: 4rem 0; /* lg:py-16 */
	}
}

.footer-logo-link { display: inline-flex; align-items: center; }
.footer-blurb {
	margin-top: 1rem;
	font-family: var(--font-body);
	font-size: 1rem; /* text-base, max-w-sm in Lovable */
	color: var(--color-muted-fg);
	max-width: 24rem;
	line-height: 1.625; /* ~leading-relaxed */
}

.footer-col-title {
	font-family: var(--font-body);
	font-size: 1rem; /* Lovable: text-base font-semibold = 600 */
	font-weight: 600;
	margin-bottom: 1rem;
}

.theme-footer-nav-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem; /* space-y-3 */
}
.theme-footer-nav-list a {
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-muted-fg);
	transition: color 0.2s;
}
.theme-footer-nav-list a:hover { color: var(--color-foreground); }

.footer-contact-list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}
.footer-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-muted-fg);
}
.footer-contact-list svg { flex-shrink: 0; margin-top: 0.15rem; }
.footer-contact-list a { transition: color 0.2s; }
.footer-contact-list a:hover { color: var(--color-foreground); }

.footer-bottom {
	margin-top: 2.5rem; /* Lovable: mt-10 */
	padding: 1.5rem 0; /* pt-6 */
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: center;
}
@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: var(--color-muted-fg);
}
.footer-credit:hover { color: var(--color-foreground); }

/* ============================================================
   CART DRAWER
   ============================================================ */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(17,28,21,0.20);
	z-index: 150;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}
body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}

#theme-cart-drawer {
	position: fixed;
	right: 0;
	top: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background-color: var(--color-background);
	z-index: 160;
	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;
}

.cart-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
	border-bottom: 1px solid var(--color-border);
}

.cart-drawer-title {
	font-family: var(--font-display);
	font-size: 1.125rem;
	font-weight: 700;
}

.cart-close-btn {
	padding: 0.25rem;
	color: var(--color-foreground);
	opacity: 0.7;
	transition: opacity 0.2s;
}
.cart-close-btn:hover { opacity: 1; }

/* Empty state */
.cart-empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	text-align: center;
	gap: 1rem;
}
.cart-empty svg { color: var(--color-muted-fg); opacity: 0.6; }
.cart-empty-msg {
	font-family: var(--font-body);
	color: var(--color-muted-fg);
}

/* Cart items */
.cart-items-list {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.cart-item {
	display: flex;
	gap: 1rem;
}
.cart-item-image-link {
	display: block;
	width: 80px;
	height: 96px;
	flex-shrink: 0;
	overflow: hidden;
	background-color: var(--color-secondary);
}
.cart-item-image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cart-item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.cart-item-name {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-foreground);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}
.cart-item-name:hover { opacity: 0.7; }

.cart-item-price {
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-fg);
	margin-top: 0.25rem;
}

.cart-item-meta {
	font-family: var(--font-body);
	font-size: 0.75rem;
	color: var(--color-muted-fg);
}

.cart-item-controls {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-top: 0.75rem;
}

.cart-qty-btn {
	padding: 0.25rem;
	border-radius: var(--radius-sm);
	transition: background-color 0.2s;
	color: var(--color-foreground);
}
.cart-qty-btn:hover { background-color: var(--color-secondary); }

.cart-qty-display {
	font-family: var(--font-body);
	font-size: 0.875rem;
	width: 1.5rem;
	text-align: center;
}

.cart-remove-btn {
	margin-left: auto;
	font-family: var(--font-body);
	font-size: 0.75rem;
	color: var(--color-muted-fg);
	transition: color 0.2s;
}
.cart-remove-btn:hover { color: var(--color-foreground); }

/* Cart footer */
.cart-drawer-footer {
	padding: 1.5rem;
	border-top: 1px solid var(--color-border);
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.cart-subtotal-row {
	display: flex;
	justify-content: space-between;
	font-family: var(--font-body);
	font-size: 0.875rem;
}
.cart-subtotal-label { color: var(--color-muted-fg); }
.cart-subtotal-amount { font-weight: 500; }

.cart-shipping-note {
	font-family: var(--font-body);
	font-size: 0.75rem;
	color: var(--color-muted-fg);
}

/* ============================================================
   WP NOTICE SCOPED VISIBILITY
   ============================================================ */
.single-product .woocommerce-message,
.single-product .woocommerce-info { display: none; }
#theme-cart-drawer .woocommerce-message { display: none; }

.woocommerce-error {
	font-family: var(--font-body);
	background-color: #fff0f0;
	border: 1px solid #f5c0c0;
	border-radius: var(--radius-md);
	padding: 1rem 1.25rem;
	color: var(--color-foreground);
	margin-bottom: 1rem;
	list-style: none;
}

/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */
.single-product .site-main {
	padding-top: calc(var(--jrs-wpadmin-offset) + var(--header-height) + 2rem);
	padding-bottom: 4rem;
}

.product-breadcrumb {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-fg);
	text-decoration: none;
	margin-bottom: 2rem;
	transition: color 0.2s;
}
.product-breadcrumb:hover { color: var(--color-foreground); }

.theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	min-width: 0;
}
@media (min-width: 768px) {
	.theme-product-layout { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

.theme-product-gallery,
.theme-product-info {
	min-width: 0;
	max-width: 100%;
}

.theme-product-main-img-wrap {
	aspect-ratio: 1 / 1;
	background-color: var(--color-secondary);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.theme-product-main-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.theme-product-thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
	max-width: 100%;
}

.theme-product-thumb-btn {
	width: 80px;
	height: 80px;
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 2px solid transparent;
	transition: border-color 0.2s;
	flex-shrink: 0;
}
.theme-product-thumb-btn.is-active { border-color: var(--color-primary); }
.theme-product-thumb-btn:hover     { border-color: var(--color-muted-fg); }
.theme-product-thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product info column */
.product-category-label {
	font-family: var(--font-body);
	font-size: 0.6875rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-muted-fg);
}

.product-title {
	font-family: var(--font-display);
	font-size: clamp(1.875rem, 4vw, 3rem);
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

.product-price-display {
	font-family: var(--font-body);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--color-primary);
	margin-bottom: 1.5rem;
}
.product-price-display .woocommerce-Price-amount { color: inherit; }
.product-price-display del { color: var(--color-muted-fg); font-weight: 400; }
.product-price-display ins { text-decoration: none; }

.product-stock-status {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-family: var(--font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	margin-bottom: 1rem;
}
.product-stock-status.in-stock   { background-color: rgba(30,107,61,0.1); color: var(--color-primary); }
.product-stock-status.sold-out   { background-color: rgba(0,0,0,0.06);  color: var(--color-muted-fg); }

.product-short-desc {
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--color-muted-fg);
	line-height: 1.7;
	margin-bottom: 2rem;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Quantity + button area */
.theme-add-to-cart-area {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.theme-qty-label {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
}

.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.theme-qty-minus,
.theme-qty-plus {
	padding: 0.5rem 0.625rem;
	background: none;
	border: none;
	font-size: 1rem;
	color: var(--color-foreground);
	cursor: pointer;
	transition: background-color 0.2s;
	min-width: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.theme-qty-minus:hover, .theme-qty-plus:hover { background-color: var(--color-secondary); }

.theme-qty-input {
	width: 2.5rem;
	text-align: center;
	border: none;
	background: none;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-foreground);
	-moz-appearance: textfield;
}
.theme-qty-input::-webkit-inner-spin-button,
.theme-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

/* Variations table */
.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; }

/* Product description / details */
.product-desc-section,
.product-details-section {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
	overflow-wrap: break-word;
	word-break: break-word;
}

.product-details-heading {
	font-family: var(--font-display);
	font-size: 1.125rem;
	margin-bottom: 1rem;
}

.product-details-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.product-details-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: var(--color-muted-fg);
}
.product-details-list .bullet {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--color-primary);
	flex-shrink: 0;
	margin-top: 0.5rem;
}

/* Related products */
.related-products-section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--color-border); }
.related-products-heading { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 2rem; }
.related-products-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0,1fr));
	gap: 1rem;
}
@media (min-width: 768px) { .related-products-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }

/* ============================================================
   PRODUCT ARCHIVE
   ============================================================ */
.theme-no-hero .site-main {
	padding-top: calc(var(--jrs-wpadmin-offset) + var(--header-height) + 2rem);
	padding-bottom: 4rem;
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
body.woocommerce-checkout .site-main {
	padding-top: calc(var(--jrs-wpadmin-offset) + var(--header-height) + 2rem);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .page-title {
	font-family: var(--font-display);
	font-size: clamp(1.875rem, 4vw, 2.5rem);
	margin-bottom: 2.5rem;
}

body.woocommerce-checkout .entry-content {
	max-width: 100%;
}

/* Two-column checkout grid */
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout {
		display: block;
	}
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 380px;
		gap: 2rem;
		align-items: start;
	}
}

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-checkout__sidebar {
	background-color: var(--color-secondary);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
}

/* WC Block inputs */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea {
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	color: var(--color-foreground) !important;
	border: 1px solid var(--color-border) !important;
	border-radius: var(--radius-md) !important;
	background-color: var(--color-background) !important;
	width: 100% !important;
	max-width: none !important;
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus {
	border-color: var(--color-primary) !important;
	box-shadow: 0 0 0 3px rgba(30,107,61,0.15) !important;
	outline: none !important;
}

/* Checkout place order button */
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: var(--color-primary) !important;
	color: var(--color-primary-fg) !important;
	border: none !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	font-weight: 600 !important;
	width: 100% !important;
}

/* ============================================================
   THANK YOU PAGE
   ============================================================ */
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);
	font-size: 1.5rem;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	background-color: var(--color-secondary);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
	margin-bottom: 2rem;
	font-family: var(--font-body);
}
body.theme-thankyou-page .woocommerce-order-overview li { font-size: 0.875rem; color: var(--color-muted-fg); }
body.theme-thankyou-page .woocommerce-order-overview strong { color: var(--color-foreground); }
body.theme-thankyou-page .woocommerce-order-details table { width: 100%; table-layout: fixed; font-family: var(--font-body); }
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 { overflow-wrap: break-word; font-style: normal; font-family: var(--font-body); }
body.theme-thankyou-page { overflow-x: hidden; }

/* ============================================================
   NOT FOUND (404)
   ============================================================ */
.not-found-main {
	min-height: 80vh;
	display: flex;
	align-items: center;
	padding-top: calc(var(--jrs-wpadmin-offset) + var(--header-height));
}
.not-found-inner {
	text-align: center;
	padding: 2rem 0;
}
.not-found-code {
	font-family: var(--font-display);
	font-size: 6rem;
	font-weight: 700;
	color: var(--color-muted-fg);
	opacity: 0.3;
	line-height: 1;
	margin-bottom: 0.5rem;
}
.not-found-heading {
	font-family: var(--font-display);
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
}

/* ============================================================
   PAGE MAIN (generic pages)
   ============================================================ */
.page-main {
	padding-top: calc(var(--jrs-wpadmin-offset) + var(--header-height) + 2rem);
	padding-bottom: 4rem;
}
.page-title {
	font-family: var(--font-display);
	font-size: clamp(1.875rem, 4vw, 2.5rem);
	margin-bottom: 2rem;
	color: var(--color-foreground);
}
.entry-content {
	font-family: var(--font-body);
	line-height: 1.7;
	color: var(--color-foreground);
}

/* Utility */
.w-full { width: 100%; }

/* ============================================================
   SCROLL ANIMATION SYSTEM
   ============================================================ */
[data-animate] {
	opacity: 0;
	transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}
[data-animate="fade-up"]     { transform: translateY(40px); }
[data-animate="slide-left"]  { transform: translateX(-60px); }
[data-animate="slide-right"] { transform: translateX(60px); }
[data-animate="scale-in"]    { transform: scale(0.92); }
[data-animate].is-visible    { opacity: 1; transform: none; }

/* ============================================================
   WOOCOMMERCE NOTICES — SCOPED
   ============================================================ */
.woocommerce-message:not(.woocommerce-error),
.shop-section .woocommerce-message { display: none; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 767px) {
	.hero-ctas { flex-direction: column; align-items: flex-start; }
	.hero-title-line1, .hero-title-line2 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
}

@media (max-width: 639px) {
	.contact-info-row { flex-direction: column; align-items: center; }
}
