/**
 * QRTheme — estilos complementarios (Tailwind vía CDN).
 */

.btn-qr {
	display: inline-block;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-qr-primary {
	background-color: #2d5a27;
	border-radius: 4px;
}

.btn-qr-primary:hover {
	background-color: #24481f;
}

.qr-custom-logo {
	display: block;
	width: auto;
	max-width: 220px;
	height: auto;
	max-height: 52px;
	object-fit: contain;
}

@media (max-width: 767px) {
	.qr-custom-logo--header {
		max-width: 176px;
		max-height: 42px;
	}

	.qr-logo-text {
		font-size: 1.2rem;
		line-height: 1.2;
	}
}

.qr-custom-logo--footer {
	max-width: 200px;
	max-height: 48px;
}

.site-header__nav ul {
	display: flex;
	align-items: center;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-header__nav a {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: color 0.2s ease;
}

.site-header__nav a:hover {
	color: #2d5a27;
}

/* Cuadrícula categorías inicio — 6 cuadrados */
.qr-home-categories__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

@media (min-width: 640px) {
	.qr-home-categories__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.875rem;
	}
}

@media (min-width: 1024px) {
	.qr-home-categories__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		gap: 1rem;
	}
}

.qr-home-cat-card {
	display: flex;
	aspect-ratio: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 0.5rem;
	text-align: center;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.qr-home-cat-card:hover {
	transform: translateY(-4px);
	border-color: #2d5a27;
	box-shadow: 0 12px 24px rgba(45, 90, 39, 0.12);
}

.qr-home-cat-card__icon {
	display: flex;
	height: 2.25rem;
	width: 2.25rem;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: #ecfdf3;
	color: #2d5a27;
}

.qr-home-cat-card__icon img {
	height: 1.375rem;
	width: 1.375rem;
	object-fit: contain;
}

.qr-home-cat-card__icon svg {
	height: 1.25rem;
	width: 1.25rem;
}

.qr-home-cat-card__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	font-size: 0.8rem;
	font-weight: 800;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #1f2937;
}

@media (min-width: 640px) {
	.qr-home-cat-card {
		gap: 0.625rem;
		padding: 1rem 0.625rem;
	}

	.qr-home-cat-card__icon {
		height: 2.75rem;
		width: 2.75rem;
	}

	.qr-home-cat-card__icon img {
		height: 1.75rem;
		width: 1.75rem;
	}
}

@media (min-width: 1024px) {
	.qr-home-cat-card__icon {
		height: 3rem;
		width: 3rem;
	}

	.qr-home-cat-card__icon img {
		height: 2rem;
		width: 2rem;
	}

	.qr-home-cat-card__title {
		-webkit-line-clamp: 4;
	}
}

/* Menú móvil */
.qr-mobile-nav {
	display: none;
}

@media (max-width: 767px) {
	.qr-mobile-nav {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100;
		pointer-events: none;
		visibility: hidden;
	}

	.qr-mobile-nav.is-open {
		pointer-events: auto;
		visibility: visible;
	}
}

@media (min-width: 768px) {
	.qr-mobile-nav {
		display: none !important;
	}
}

.qr-mobile-nav__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-mobile-nav.is-open .qr-mobile-nav__backdrop {
	opacity: 1;
}

.qr-mobile-nav__panel {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	height: 100%;
	width: min(320px, 90vw);
	flex-direction: column;
	background: linear-gradient(180deg, #ffffff 0%, #f8faf8 100%);
	box-shadow: -8px 0 40px rgba(0, 0, 0, 0.18);
	transform: translateX(105%);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.qr-mobile-nav.is-open .qr-mobile-nav__panel {
	transform: translateX(0);
}

.qr-mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.qr-mobile-nav__label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #2d5a27;
}

.qr-mobile-nav__close {
	display: inline-flex;
	height: 2.5rem;
	width: 2.5rem;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 9999px;
	background: #f3f4f6;
	color: #374151;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.qr-mobile-nav__close:hover {
	background: #e5e7eb;
	color: #111827;
}

.qr-mobile-nav__menu {
	flex: 1;
	overflow-y: auto;
	padding: 0.75rem 0 2rem;
}

.qr-mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.qr-mobile-nav__list li {
	margin: 0;
	padding: 0;
	opacity: 0;
	transform: translateX(16px);
}

.qr-mobile-nav.is-open .qr-mobile-nav__list li {
	animation: qr-mobile-nav-item-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.qr-mobile-nav.is-open .qr-mobile-nav__list li:nth-child(1) { animation-delay: 0.05s; }
.qr-mobile-nav.is-open .qr-mobile-nav__list li:nth-child(2) { animation-delay: 0.1s; }
.qr-mobile-nav.is-open .qr-mobile-nav__list li:nth-child(3) { animation-delay: 0.15s; }
.qr-mobile-nav.is-open .qr-mobile-nav__list li:nth-child(4) { animation-delay: 0.2s; }
.qr-mobile-nav.is-open .qr-mobile-nav__list li:nth-child(5) { animation-delay: 0.25s; }
.qr-mobile-nav.is-open .qr-mobile-nav__list li:nth-child(6) { animation-delay: 0.3s; }
.qr-mobile-nav.is-open .qr-mobile-nav__list li:nth-child(7) { animation-delay: 0.35s; }
.qr-mobile-nav.is-open .qr-mobile-nav__list li:nth-child(8) { animation-delay: 0.4s; }

.qr-mobile-nav__list a {
	display: block;
	padding: 1rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #1f2937;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, padding-left 0.2s ease;
}

.qr-mobile-nav__list a:hover,
.qr-mobile-nav__list .current-menu-item > a {
	background: #f0fdf4;
	border-left-color: #2d5a27;
	color: #2d5a27;
	padding-left: 1.75rem;
}

@keyframes qr-mobile-nav-item-in {
	from {
		opacity: 0;
		transform: translateX(16px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Botón hamburger */
.qr-mobile-menu-toggle {
	display: inline-flex;
	height: 2.75rem;
	width: 2.75rem;
	align-items: center;
	justify-content: center;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	background: #fff;
	cursor: pointer;
	padding: 0;
}

.qr-mobile-menu-toggle__bars {
	display: flex;
	height: 14px;
	width: 20px;
	flex-direction: column;
	justify-content: space-between;
}

.qr-mobile-menu-toggle__bars span {
	display: block;
	height: 2px;
	width: 100%;
	border-radius: 2px;
	background: #1f2937;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.qr-mobile-menu-toggle.is-active .qr-mobile-menu-toggle__bars span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.qr-mobile-menu-toggle.is-active .qr-mobile-menu-toggle__bars span:nth-child(2) {
	opacity: 0;
}

.qr-mobile-menu-toggle.is-active .qr-mobile-menu-toggle__bars span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

body.qr-mobile-nav-open {
	overflow: hidden;
}

.hero-section {
	position: relative;
	overflow: hidden;
}

.hero-bg-slider {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-bg-slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1s ease-in-out;
}

.hero-bg-slide.active {
	opacity: 1;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65));
}

.hero-content {
	position: relative;
	z-index: 2;
}

.product-card:hover {
	transform: translateY(-5px);
	transition: all 0.3s ease;
}

/* Breadcrumb claro no hero da tienda */
.qr-breadcrumb--light,
.qr-breadcrumb--light a {
	color: #fff;
}

.qr-breadcrumb--light a:hover {
	color: #bbf7d0;
}

.border-accent {
	border-color: #d4af37;
}

/* WooCommerce: rejilla tipo tarjetas home1 */
.woocommerce-page-wrap ul.products {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	.woocommerce-page-wrap ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.woocommerce-page-wrap ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.woocommerce-page-wrap ul.products li.product {
	width: auto;
	margin: 0;
	float: none;
}

.woocommerce-page-wrap .woocommerce-result-count,
.woocommerce-page-wrap .woocommerce-ordering {
	margin-bottom: 1.5rem;
}

/* Single product: especificación técnica */
.qr-tech-specs p {
	margin: 0 0 0.5rem;
	line-height: 1.6;
}

.qr-tech-specs p:last-child {
	margin-bottom: 0;
}

.qr-tech-specs ul,
.qr-tech-specs ol {
	margin: 0 0 0.75rem;
	padding-left: 1.25rem;
}

.qr-tech-specs li {
	margin-bottom: 0.35rem;
	line-height: 1.6;
}

.qr-tech-specs strong {
	font-weight: 700;
	color: #111827;
}

/* Single product: galería deslizante */
.qr-product-gallery {
	isolation: isolate;
}

.qr-product-gallery-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.qr-product-gallery-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.45s ease-in-out;
	pointer-events: none;
}

.qr-product-gallery-slide.active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.qr-product-gallery-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.qr-product-gallery-prev,
.qr-product-gallery-next {
	position: absolute;
	top: 50%;
	z-index: 3;
	transform: translateY(-50%);
	width: 2.5rem;
	height: 2.5rem;
	border: none;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.92);
	color: #1f2937;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.qr-product-gallery-prev {
	left: 0.75rem;
}

.qr-product-gallery-next {
	right: 0.75rem;
}

.qr-product-gallery-dots {
	position: absolute;
	bottom: 1rem;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.qr-product-gallery-dot {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: none;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.55);
	cursor: pointer;
}

.qr-product-gallery-dot.active {
	background: #fff;
	width: 1.25rem;
}

.woocommerce-page-wrap div.product .woocommerce-product-gallery {
	margin-bottom: 0;
}

.woocommerce-page-wrap div.product .summary {
	margin-bottom: 0;
}

/* Formulario de contacto — home */
.qr-contact-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	overflow: hidden !important;
}

.qr-contact-form__label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	line-height: 1.4;
}

.qr-contact-form__label span {
	margin-left: 0.125rem;
}

.qr-contact-form__control {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0.75rem 1rem !important;
	border: 1px solid #d1d5db !important;
	border-radius: 0.5rem;
	background-color: #f9fafb !important;
	font-family: inherit;
	font-size: 1rem !important;
	line-height: 1.5;
	color: #111827 !important;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.qr-contact-form__control::placeholder {
	color: #9ca3af;
}

.qr-contact-form__control:hover {
	border-color: #9ca3af;
	background-color: #fff;
}

.qr-contact-form__control:focus {
	outline: none !important;
	border-color: #2d5a27 !important;
	background-color: #fff !important;
	box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.12);
}

.qr-contact-form__control--textarea {
	min-height: 140px;
	resize: vertical;
}

.qr-contact-form__submit {
	cursor: pointer;
	min-width: 200px;
	letter-spacing: 0.02em;
}

.qr-contact-form__submit:hover {
	transform: translateY(-1px);
}

@media (min-width: 640px) {
	.qr-contact-form {
		padding: 2rem 2.5rem;
	}
}
