/**
 * Little Explorer Kids theme styles.
 *
 * app.css carries the compiled source stylesheet (every utility used by the
 * templates). This file only adds:
 *   a. styling for WordPress/WooCommerce generated markup that has no source
 *      equivalent (checkout block, notices, cart tables, thank you page...)
 *   b. functional rules (hidden native select, drawer transitions, reveal
 *      initial states, layout guards).
 */

@layer base {
	[hidden] {
		display: none !important;
	}
}

/* ------------------------------------------------------------------ brand tokens */
body {
	--theme-header-height: 76px;
}

@media (min-width: 768px) {
	body {
		--theme-header-height: 92px;
	}
}

/* ----------------------------------------------------------- slogan marquee */
.marquee-track {
	display: inline-flex;
	white-space: nowrap;
	animation: theme-marquee 26s linear infinite;
}

@keyframes theme-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.marquee-track {
		animation: none;
	}
}

/* ------------------------------------------------------------ logo consistency */
.theme-logo-slot {
	display: inline-block;
	position: relative;
	line-height: 0;
	vertical-align: middle;
}

.theme-logo-slot--header {
	height: calc(var(--logo-height, 82px) * 0.756);
	max-height: calc(var(--theme-header-height) - 12px);
}

@media (min-width: 768px) {
	.theme-logo-slot--header {
		height: calc(var(--logo-height, 82px) * 0.902);
	}
}

@media (min-width: 1024px) {
	.theme-logo-slot--header {
		height: var(--logo-height, 82px);
		max-height: calc(var(--theme-header-height) - 10px);
	}
}

.theme-logo-slot--header .theme-logo-stack {
	display: block;
	height: 100%;
	width: auto;
	max-height: 100%;
}

.logo-white {
	filter: brightness(0) invert(1);
}

.theme-logo-slot--footer {
	height: 6rem;
}

@media (min-width: 768px) {
	.theme-logo-slot--footer {
		height: 8rem;
	}
}

.site-logo-img {
	height: 100% !important;
	width: auto !important;
	display: block;
}

.site-logo-text {
	display: block;
	line-height: 1;
	white-space: nowrap;
}

/* ------------------------------------------------------ WordPress admin bar */
body.admin-bar .theme-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .theme-header {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

/* -------------------------------------------------------- interactive cues */
a[href]:not([href=""]),
button:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
summary,
[role="button"],
label[for],
.theme-hero-cta,
.theme-hero-scroll,
.theme-cat-tile,
.theme-cat-filter,
.theme-menu-toggle,
.theme-cart-toggle,
.theme-carousel-dot,
.theme-nav-link,
.theme-nav-trigger,
.theme-icon-btn,
.theme-product-card__image-link,
.theme-product-card__title-link,
.theme-product-card__add,
[data-photo-open],
[data-photo-close],
[data-photo-prev],
[data-photo-next],
[data-contact-open],
[data-shop-jump],
[data-cat-slug],
[data-see-more],
[data-price-toggle],
[data-mobile-toggle],
[data-dropdown-toggle],
[data-cart-open] {
	cursor: pointer;
}

/* ------------------------------------------------------------------- site shell */
.theme-main {
	min-width: 0;
}

body.theme-no-hero .theme-main {
	padding-top: var(--theme-header-height);
}

body.theme-home .theme-main {
	padding-top: 0;
}

/* --------------------------------------------------------- header state classes */
#theme-nav {
	min-width: 0;
}

.theme-header .container-wide {
	max-width: 100%;
}

/* Hamburger layout below 1280px to avoid nav overflow on medium viewports. */
.theme-header-desktop {
	display: none;
}

.theme-header-mobile {
	display: flex;
}

@media (min-width: 1280px) {
	.theme-header-desktop {
		display: flex;
	}

	.theme-header-mobile {
		display: none;
	}

	.theme-mobile-panel {
		display: none !important;
	}
}

/* Transparent over the home hero, solid after scrolling or on inner pages. */
.theme-header.is-solid {
	background-color: hsl(var(--background) / 0.95);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 1px 2px 0 hsl(var(--foreground) / 0.05);
}

/* Logo layers swap by opacity (matches the Lovable header). */
.theme-header .theme-logo-default {
	opacity: 1;
}

.theme-header .theme-logo-white {
	opacity: 0;
}

.theme-header.is-transparent .theme-logo-default {
	opacity: 0;
}

.theme-header.is-transparent .theme-logo-white {
	opacity: 1;
}

.theme-header.is-solid .theme-logo-default {
	opacity: 1;
}

.theme-header.is-solid .theme-logo-white {
	opacity: 0;
}

.theme-header .theme-nav-link,
.theme-header .theme-nav-trigger,
.theme-header .theme-icon-btn,
.theme-header .theme-menu-toggle {
	color: hsl(var(--foreground) / 0.85);
}

.theme-header.is-transparent .theme-nav-link,
.theme-header.is-transparent .theme-nav-trigger,
.theme-header.is-transparent .theme-icon-btn,
.theme-header.is-transparent .theme-menu-toggle {
	color: hsl(var(--background));
}

.theme-header.is-transparent .theme-nav-link:hover,
.theme-header.is-transparent .theme-nav-trigger:hover,
.theme-header.is-transparent .theme-icon-btn:hover {
	color: hsl(var(--marigold));
}

.theme-header.is-transparent .theme-icon-btn {
	border-color: hsl(var(--background) / 0.6);
}

.theme-header.is-transparent .theme-icon-btn:hover {
	border-color: hsl(var(--marigold));
}

.theme-header .theme-icon-btn {
	border-color: hsl(var(--foreground) / 0.3);
}

.theme-nav-link,
.theme-nav-trigger {
	position: relative;
	cursor: pointer;
}

.theme-nav-link::after,
.theme-nav-trigger::after {
	content: '';
	position: absolute;
	bottom: -0.375rem;
	left: 0;
	height: 2px;
	width: 100%;
	transform-origin: right;
	transform: scaleX(0);
	background-color: hsl(var(--accent));
	transition: transform 0.3s ease;
}

.theme-nav-link:hover::after,
.theme-nav-trigger:hover::after {
	transform-origin: left;
	transform: scaleX(1);
}

/* Mobile menu panel animation hooks. */
.theme-mobile-panel {
	animation: fadeIn 0.6s var(--transition-smooth) forwards;
}

/* ------------------------------------------------------ product card hit area */
.theme-product-card__media {
	position: relative;
}

/* The image link and the title link are the only card links (never nested). */
.theme-product-card__image-link {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 1;
	overflow: hidden;
}

.theme-product-card__image-link img {
	display: block;
	width: 100%;
	height: 100%;
}

.theme-product-card__title-link {
	position: relative;
	z-index: 2;
}

.theme-product-card__add {
	z-index: 3;
	pointer-events: auto;
}

.theme-product-card__shimmer {
	transition: opacity 0.4s ease;
	pointer-events: none;
	z-index: 2;
}

.theme-product-card.is-loaded .theme-product-card__shimmer {
	opacity: 0;
	visibility: hidden;
}

.theme-product-card__media {
	transition: transform 0.3s ease;
}

.theme-product-card:hover .theme-product-card__media {
	transform: translateY(-3px);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-product-card__img {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1), opacity 0.5s ease;
}

.theme-product-card:hover .theme-product-card__img {
	transform: scale(1.18);
}

/* Grid wrapper shared by every listing context. */
.theme-product-card-wrap {
	min-width: 0;
}

.theme-product-card {
	display: block;
}

/* ------------------------------------------------------------- add to cart states */
.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;
}

/* Hide the "View cart" link WooCommerce appends after an 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;
}

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}

/* --------------------------------------------------------------- cart drawer */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 49;
	background-color: hsl(var(--foreground) / 0.2);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#theme-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background-color: hsl(var(--background));
	box-shadow: var(--shadow-elevated);
	z-index: 50;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	visibility: hidden;
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
	visibility: visible;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

/* --------------------------------------------------------- native variation select */
.theme-attr-select-hidden {
	display: none !important;
}

/* Variation pills. */
.theme-attr-group + .theme-attr-group {
	margin-top: 1.25rem;
}

.theme-attr-pill {
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Quantity control shared by simple and variable products. */
.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid hsl(var(--border));
}

.theme-qty-input {
	width: 3.5rem;
	min-width: 0;
	background: transparent;
	border: 0;
	text-align: center;
	font-family: var(--font-body);
	font-size: 0.875rem;
	-moz-appearance: textfield;
	appearance: textfield;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.theme-qty-input:focus {
	outline: none;
}

/* ------------------------------------------------------- single product layout */
.single-product .theme-product-layout {
	min-width: 0;
}

.single-product .theme-product-gallery,
.single-product .theme-product-info {
	min-width: 0;
	max-width: 100%;
}

.single-product .theme-product-thumbnails {
	flex-wrap: wrap;
	max-width: 100%;
}

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.single-product .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

.single-product .variations,
.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations tbody td.label {
	padding: 0 0 0.25rem 0;
}

.single-product .variations tbody td.value {
	padding: 0;
}

.single-product .variations_form .reset_variations {
	margin-top: 0.75rem;
	display: inline-block;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	text-decoration: underline;
	text-underline-offset: 4px;
}

.single-product .single_variation_wrap {
	margin-top: 1.5rem;
}

.single-product .woocommerce-variation-price {
	margin-bottom: 1rem;
	font-family: var(--font-body);
}

.single-product .woocommerce-variation-availability .stock,
.single-product .stock.in-stock,
.single-product .stock.out-of-stock {
	font-family: var(--font-body);
	font-size: 0.875rem;
}

/* ------------------------------------------------------------ product page gallery */
.theme-gallery-thumb.is-active {
	border-color: hsl(var(--foreground));
}

/* ------------------------------------------------------------ notices / messages */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner,
.woocommerce-notice,
.woocommerce-notice--success {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	border-radius: calc(var(--radius) - 2px);
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--card));
	color: hsl(var(--foreground));
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	list-style: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

/* Order-received confirmation heading. */
body.theme-thankyou-page .woocommerce-thankyou-order-received {
	background: none;
	border: 0;
	padding: 0;
	margin: 0 0 1.5rem;
}

.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.45);
	color: hsl(var(--destructive));
}

.woocommerce-error li {
	margin-bottom: 0.25rem;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

.theme-price-panel {
	height: 0;
	opacity: 0;
	transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------------ archive empty */
.theme-empty-products {
	font-family: var(--font-body);
	color: hsl(var(--muted-foreground));
	text-align: center;
	padding: 5rem 1rem;
}

/* ----------------------------------------------------------- price filter slider */
.price-range-wrapper {
	position: relative;
	height: 1.5rem;
	width: 100%;
}

.range-track-bg,
.range-track-fill {
	position: absolute;
	height: 8px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	border-radius: 9999px;
}

.range-track-bg {
	left: 0;
	right: 0;
	background-color: hsl(var(--secondary));
}

.range-track-fill {
	background-color: hsl(var(--primary));
}

.range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

.range-input::-webkit-slider-runnable-track {
	height: 8px;
	background: transparent;
}

.range-input::-moz-range-track {
	height: 8px;
	background: transparent;
}

.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	height: 20px;
	width: 20px;
	margin-top: -6px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background-color: hsl(var(--background));
	cursor: pointer;
	box-shadow: 0 1px 2px hsl(var(--foreground) / 0.15);
}

.range-input::-moz-range-thumb {
	pointer-events: auto;
	height: 16px;
	width: 16px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background-color: hsl(var(--background));
	cursor: pointer;
}

.range-input:focus-visible {
	outline: none;
}

.range-input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px hsl(var(--ring) / 0.4);
}

.range-input--max {
	z-index: 3;
}

.range-input--min {
	z-index: 4;
}

.price-range-labels {
	display: flex;
	justify-content: space-between;
	font-family: var(--font-body);
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
}

/* ---------------------------------------------------------- contact modal shell */
.theme-dialog-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	background-color: hsl(0 0% 0% / 0.8);
	animation: themeOverlayIn 0.2s ease forwards;
}

.theme-dialog-content {
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 50;
	display: grid;
	width: 100%;
	max-width: 32rem;
	transform: translate(-50%, -50%);
	gap: 1rem;
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--background));
	padding: 1.5rem;
	box-shadow: 0 10px 15px -3px hsl(var(--foreground) / 0.1), 0 4px 6px -4px hsl(var(--foreground) / 0.1);
	animation: themeDialogIn 0.2s ease forwards;
	max-height: 90vh;
	overflow-y: auto;
}

@media (min-width: 640px) {
	.theme-dialog-content {
		max-width: 36rem;
		border-radius: calc(var(--radius) - 2px);
	}
}

.theme-dialog-close {
	position: absolute;
	right: 1rem;
	top: 1rem;
	border-radius: 2px;
	opacity: 0.7;
	transition: opacity 0.2s ease;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: inherit;
}

.theme-dialog-close:hover {
	opacity: 1;
}

@keyframes themeOverlayIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes themeDialogIn {
	from {
		opacity: 0;
		transform: translate(-50%, -48%) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

.theme-dialog-root[hidden] {
	display: none !important;
}

/* Contact form selects: keep the chevron off the right edge (native UI sits flush on Windows). */
[data-contact-form] select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.5rem;
	background-color: hsl(var(--background));
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1rem 1rem;
	cursor: pointer;
}

[data-contact-form] input[type="date"] {
	padding-right: 2.5rem;
}

/* Accordion body animation used by the product page and FAQ. */
.theme-collapse-body {
	overflow: hidden;
	height: 0;
	opacity: 0;
	transition: height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-collapse-body.is-open {
	opacity: 1;
}

/* ---------------------------------------------------------- community carousel */
.theme-carousel-track {
	display: grid;
}

.theme-carousel-slide {
	grid-column-start: 1;
	grid-row-start: 1;
	min-width: 0;
	transition: opacity 0.4s ease;
}

/* Slider dots / arrows. */
.theme-carousel-dot {
	height: 2.75rem;
	width: 1.5rem;
	padding: 0;
	background: none;
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.theme-carousel-dot span {
	height: 0.625rem;
	width: 0.625rem;
	border-radius: 9999px;
	display: block;
	transition: all 0.3s ease;
}

/* -------------------------------------------------------------- photo viewer */
.theme-photo-viewer {
	position: fixed;
	inset: 0;
	z-index: 80;
}

.theme-photo-viewer__overlay {
	position: absolute;
	inset: 0;
	background-color: hsl(var(--photo-viewer-scrim) / 0.95);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.theme-photo-viewer__content {
	position: absolute;
	inset: 0;
	z-index: 81;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 5rem 3.5rem;
}

@media (min-width: 768px) {
	.theme-photo-viewer__content {
		padding: 5rem 5rem;
	}
}

.theme-photo-viewer__image {
	width: 100%;
	max-width: 64rem;
	height: min(68svh, 900px);
	object-fit: contain;
}

.theme-photo-viewer__caption {
	color: hsl(var(--background));
	text-align: center;
	font-family: var(--font-body);
	font-size: 1rem;
}

/* Accordion body animation used by the product page and FAQ. */
/* Content is visible by default; JS adds .reveal-ready to opt into animation. */
.reveal-item {
	opacity: 1;
	transform: none;
}

body.reveal-enabled .reveal-item {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

body.reveal-enabled .reveal-item.is-visible {
	opacity: 1;
	transform: none;
}

body.is-customizer .reveal-item {
	opacity: 1;
	transform: none;
}

body.is-customizer .theme-section-animate {
	opacity: 1;
	transform: none;
}

.theme-section-animate {
	opacity: 1;
	transform: none;
}

body.reveal-enabled .theme-section-animate {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

body.reveal-enabled .theme-section-animate.is-visible,
body.is-customizer .theme-section-animate {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	body.reveal-enabled .reveal-item,
	body.reveal-enabled .theme-section-animate {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ------------------------------------------------------------------ misc helpers */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Blur up image reveal used by the final CTA photo. */
.theme-media-reveal {
	opacity: 1;
	filter: blur(0);
	transition: opacity 0.7s ease-out, filter 0.7s ease-out;
}

body.reveal-enabled .theme-media-reveal:not(.is-loaded) {
	opacity: 0;
	filter: blur(12px);
}

body.is-customizer .theme-media-reveal {
	opacity: 1;
	filter: blur(0);
}

/* Image links get an explicit display to avoid inline gaps. */
a > img {
	display: block;
}

/* --------------------------------------------------------- WooCommerce pages */
body.woocommerce-cart .theme-main,
body.woocommerce-account .theme-main,
body.woocommerce-checkout .theme-main {
	min-height: 60vh;
}

/* Page title used by page.php. */
.page-title {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.01em;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.05;
	color: hsl(var(--foreground));
	margin-bottom: 1rem;
}

/* Entry content typography for WordPress pages built in the editor. */
.entry-content {
	font-family: var(--font-body);
	color: hsl(var(--foreground) / 0.85);
	line-height: 1.75;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	color: hsl(var(--foreground));
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.entry-content p {
	margin-bottom: 1rem;
}

.entry-content a {
	color: hsl(var(--accent));
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ------------------------------------------ WooCommerce checkout block overrides */
body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

/* ONE grid owner for the two column split: the sidebar-layout container, which
   is the direct parent of __main and __sidebar. */
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.is-large,
	body.woocommerce-checkout .wc-block-components-sidebar-layout.is-medium {
		display: grid !important;
		grid-template-columns: 1fr 1fr !important;
		gap: 2rem;
		align-items: start;
		width: 100% !important;
		max-width: none !important;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__main {
		order: 1;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-checkout__sidebar {
		order: 2;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--secondary));
	border-radius: var(--radius);
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: calc(var(--radius) - 8px) !important;
	box-shadow: none !important;
	width: 100% !important;
	max-width: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus {
	outline: none !important;
	border-color: hsl(var(--foreground) / 0.5) !important;
	box-shadow: 0 0 0 2px hsl(var(--ring) / 0.35) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	font-weight: 600 !important;
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: 9999px !important;
	border: 1px solid hsl(var(--primary)) !important;
	padding: 1rem 2rem !important;
	height: auto !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__value,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-product-name {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item__value {
	font-weight: 600 !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

/* ------------------------------------------ WooCommerce cart / account blocks */
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wp-block-woocommerce-cart,
body.theme-account-page .woocommerce {
	font-family: var(--font-body);
}

body.woocommerce-cart .wc-block-components-button,
body.woocommerce-cart .wc-block-cart__submit-button {
	font-family: var(--font-body) !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	font-size: 0.875rem !important;
	border-radius: 9999px !important;
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
}

body.woocommerce-cart .wc-block-components-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:hover {
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--primary)) !important;
}

/* --------------------------------------------------- WooCommerce thank you page */
body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	font-family: var(--font-body);
	color: hsl(var(--foreground) / 0.85);
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: var(--font-display);
	color: hsl(var(--foreground));
	font-size: 1.5rem;
	line-height: 1.2;
	padding: 0 0 1rem 0;
	margin-top: 2.5rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	list-style: none;
	padding: 1.5rem;
	margin: 0 0 2rem;
	background-color: hsl(var(--secondary));
	border-radius: var(--radius);
	font-size: 0.875rem;
}

@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-order-overview {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	padding: 0;
	margin: 0;
	text-transform: none;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-family: var(--font-display);
	font-size: 1.125rem;
	color: hsl(var(--foreground));
	font-weight: 600;
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin-bottom: 1.5rem;
}

body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	font-family: var(--font-body);
	font-size: 0.9375rem;
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid hsl(var(--border));
	vertical-align: top;
	overflow-wrap: break-word;
}

body.theme-thankyou-page .woocommerce-order-details thead th {
	text-align: left;
	color: hsl(var(--muted-foreground));
	font-size: 0.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

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: 480px;
	overflow-wrap: break-word;
	font-style: normal;
	font-family: var(--font-body);
	color: hsl(var(--foreground) / 0.85);
}

body.theme-thankyou-page .woocommerce-thankyou-order-received {
	font-family: var(--font-display);
	font-size: 1.75rem;
	color: hsl(var(--foreground));
	margin-bottom: 1.5rem;
}

/* -------------------------------------------------- classic WooCommerce tables */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 4px);
	overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.875rem 1rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
}

.woocommerce table.shop_table tfoot th {
	text-align: left;
}

.woocommerce table.shop_table tfoot td {
	text-align: right;
}

/* WooCommerce forms outside the checkout block. */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	font-family: var(--font-body);
	font-size: 1rem;
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 8px);
	color: hsl(var(--foreground));
}

.woocommerce form .form-row label {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 600;
	color: hsl(var(--foreground));
}

.woocommerce .woocommerce-form-login,
.woocommerce .woocommerce-form-register,
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	font-family: var(--font-body);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: inline-block;
	padding: 0.5rem 1rem;
	border: 1px solid hsl(var(--border));
	border-radius: 9999px;
	font-size: 0.875rem;
	color: hsl(var(--foreground));
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* WordPress pagination / comments polish for default templates. */
.navigation.pagination {
	font-family: var(--font-body);
	margin-top: 3rem;
	display: flex;
	justify-content: center;
	gap: 0.5rem;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: 9999px;
	font-size: 0.875rem;
	color: hsl(var(--foreground));
	text-decoration: none;
}

.navigation.pagination .page-numbers.current {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* ------------------------------------------------------------ 404 helper block */
.theme-404 {
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 4rem 1.5rem;
	font-family: var(--font-body);
}

/* Fallback heading styles for WordPress generated headings only. */
.theme-generated-content h1,
.theme-generated-content h2 {
	font-family: var(--font-display);
}


/* ---------------------------------------------------------- skip to content link */
.sr-only.focus\:not-sr-only:focus {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	padding: 0.75rem 1.25rem;
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	border-radius: calc(var(--radius) - 4px);
	box-shadow: var(--shadow-soft);
	font-family: var(--font-body);
	font-size: 0.875rem;
}

/* --------------------------------------------------------- carousel images */
/* All slide images stay stacked and cross fade, matching the source motion. */
.theme-carousel-image {
	transition: opacity 0.9s cubic-bezier(0.25, 0.4, 0.25, 1);
}
