/**
 * Functional rules and styles for markup with no source equivalent.
 * Visual styling for source elements comes from app.css.
 */

/* -------------------------------------------------------------------------
 * Hidden attribute must win over display utilities
 * ---------------------------------------------------------------------- */
[hidden] {
	display: none !important;
}

/* -------------------------------------------------------------------------
 * Document / layout shell
 * ---------------------------------------------------------------------- */
html.theme-cart-locked,
body.theme-modal-open {
	overflow: hidden;
}

html.theme-customizer-scroll-pending body {
	visibility: hidden;
}

html.theme-customizer-scroll-revealed body {
	visibility: visible;
}

body {
	overflow-x: clip;
}

/* Fixed header + content offset when the WordPress admin bar is visible. */
body.admin-bar .site-header {
	top: 32px;
}

body.admin-bar .theme-header-offset {
	padding-top: calc(73px + 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	body.admin-bar .theme-header-offset {
		padding-top: calc(73px + 46px);
	}
}

@media screen and (min-width: 768px) {
	body.admin-bar .theme-header-offset {
		padding-top: calc(81px + 32px);
	}
}

@media screen and (min-width: 768px) and (max-width: 782px) {
	body.admin-bar .theme-header-offset {
		padding-top: calc(81px + 46px);
	}
}

body.admin-bar.home [data-hero],
body.admin-bar.home [data-hero] .hero-scrim {
	min-height: calc(100svh - 72px - 32px);
}

@media screen and (min-width: 768px) {
	body.admin-bar.home [data-hero],
	body.admin-bar.home [data-hero] .hero-scrim {
		min-height: calc(100dvh - 92px - 32px);
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar.home [data-hero],
	body.admin-bar.home [data-hero] .hero-scrim {
		min-height: calc(100svh - 72px - 46px);
	}
}

/* Pointer cursor on interactive front-end controls (links reset in app.css). */
a[href]:not([href=""]),
button:not(:disabled),
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
label[for],
select,
summary,
.theme-faq-trigger,
.theme-modal-close,
[data-contact-close],
[data-contact-modal],
[data-cart-open],
[data-cart-close],
[data-mobile-menu-toggle],
[data-faq-toggle],
[data-show-more],
[data-price-toggle],
[data-cat-slug],
.theme-logo-link,
.theme-nav-link,
.theme-link-btn,
.theme-mobile-link,
.theme-cart-btn,
.theme-product-thumbnails button,
.theme-card-add,
.ajax_add_to_cart {
	cursor: pointer;
}

.home main > section:first-child {
	margin-top: 0;
}

/* -------------------------------------------------------------------------
 * Page loader (framer-motion exit in the source)
 * ---------------------------------------------------------------------- */
.theme-page-loader {
	transition: opacity 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-page-loader.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.theme-loader-ring {
	animation: themeLoaderWobble 2.4s ease-in-out infinite;
}

.theme-loader-bar {
	animation: themeLoaderSweep 1.2s ease-in-out infinite;
}

@keyframes themeLoaderWobble {
	0%,
	100% {
		transform: rotate(0deg);
	}
	25% {
		transform: rotate(8deg);
	}
	75% {
		transform: rotate(-8deg);
	}
}

@keyframes themeLoaderSweep {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(200%);
	}
}

/* -------------------------------------------------------------------------
 * Reveal animations (framer-motion fadeUp / scaleIn equivalents)
 * ---------------------------------------------------------------------- */
[data-reveal] {
	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);
	will-change: opacity, transform;
}

[data-reveal][data-reveal="hero"] {
	opacity: 0;
	transform: translateY(22px);
}

[data-reveal].is-visible {
	opacity: 1;
	transform: none;
}

[data-reveal-scale] {
	opacity: 0;
	transform: scale(0.9);
	transition: opacity 0.6s cubic-bezier(0.25, 0.4, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}

[data-reveal-scale].is-visible {
	opacity: 1;
	transform: none;
}

/* Never leave content hidden in the Customizer preview or without JS. */
body.is-customizer [data-reveal],
body.is-customizer [data-reveal-scale],
body.is-customizer .theme-shop-item,
body.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	[data-reveal],
	[data-reveal-scale] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Images: blur-up reveal + shimmer placeholders from the source */
.theme-img-shimmer,
.theme-card-shimmer,
.theme-product-main-shimmer {
	transition: opacity 0.5s ease-out;
}

.theme-img-shimmer.is-hidden,
.theme-card-shimmer.is-hidden,
.theme-product-main-shimmer.is-hidden {
	opacity: 0;
	visibility: hidden;
}

.theme-blur-in {
	opacity: 0;
	filter: blur(12px);
}

.theme-blur-in.is-loaded {
	opacity: 1;
	filter: blur(0);
}

.theme-product-card__img {
	opacity: 0;
}

.theme-product-card__img.is-loaded {
	opacity: 1;
}

.theme-product-card__img.is-loaded.is-sold-out {
	opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
	.theme-blur-in,
	.theme-product-card__img {
		opacity: 1;
		filter: none;
	}
}

/* Hero video slow zoom-in (source: scale 1.06 -> 1 over 16s) */
.theme-hero-video {
	animation: themeHeroZoom 16s ease-out forwards;
}

@keyframes themeHeroZoom {
	from {
		transform: scale(1.06);
	}
	to {
		transform: scale(1);
	}
}

/* Hero bounce indicator */
.theme-hero-scroll {
	animation: themeHeroBounce 1.8s ease-in-out infinite;
}

@keyframes themeHeroBounce {
	0%,
	100% {
		transform: translate(-50%, 0);
	}
	50% {
		transform: translate(-50%, 6px);
	}
}

/* Hero CTA hover lift */
.theme-lift {
	transition: transform 0.3s cubic-bezier(0.25, 0.4, 0.25, 1), box-shadow 0.3s ease;
}

.theme-lift:hover {
	transform: translateY(-2px) scale(1.04);
}

.theme-lift:active {
	transform: scale(0.96);
}

/* Contact card background (inline gradient in the source) */
.theme-contact-card {
	background: linear-gradient(135deg, hsl(var(--background) / 0.96) 0%, hsl(var(--secondary) / 0.92) 55%, hsl(var(--accent) / 0.25) 100%);
}

/* Owner photo hover scale (source duration 1.2s) */
.theme-owner-img {
	transition: opacity 0.7s ease-out, filter 0.7s ease-out, transform 1.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.theme-hero-video,
	.theme-hero-scroll,
	.theme-loader-ring,
	.theme-loader-bar {
		animation: none;
	}

	.theme-lift:hover,
	.theme-lift:active {
		transform: none;
	}
}

/* -------------------------------------------------------------------------
 * Header states
 * ---------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
 * Hero title size (source uses an inline clamp value)
 * ---------------------------------------------------------------------- */
.theme-hero-title {
	font-size: clamp(2.4rem, 7vw, 5.5rem);
}

/* -------------------------------------------------------------------------
 * Product card title link keeps the heading typography
 * ---------------------------------------------------------------------- */
.theme-product-card .theme-card-title-link {
	color: inherit;
	text-decoration: none;
}

.theme-product-card .theme-card-title-link:hover {
	color: hsl(var(--primary));
}

/* -------------------------------------------------------------------------
 * Parallax / reveal image wrappers
 * ---------------------------------------------------------------------- */
.theme-parallax img,
.theme-reveal-image img {
	will-change: transform;
}

/* Position is never set here: the source class list decides it
   (.relative on the owner image, .absolute on the contact backdrop). */
.theme-reveal-image {
	overflow: hidden;
}

/* -------------------------------------------------------------------------
 * Shop grid filtering
 * ---------------------------------------------------------------------- */
.theme-shop-item.is-collapsed {
	display: none;
}

.theme-shop-item.is-filtered-out {
	display: none;
}

.theme-shop-grid.is-single-result {
	grid-template-columns: minmax(0, 1fr);
	max-width: 24rem;
	margin-left: auto;
	margin-right: auto;
}

.theme-no-scrollbar {
	scrollbar-width: none;
}

.theme-no-scrollbar::-webkit-scrollbar {
	display: none;
}

/* Price panel collapse (source animates height and opacity) */
.theme-price-panel {
	transition: height 0.3s cubic-bezier(0.25, 0.4, 0.25, 1), opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
	overflow: hidden;
}

/* Dual-handle range slider (source Radix slider, overlapping inputs) */
.price-range-wrapper {
	position: relative;
	height: 1.5rem;
}

.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: hsl(var(--secondary));
}

.range-track-fill {
	background: hsl(var(--primary));
}

.range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.range-input::-webkit-slider-runnable-track {
	height: 100%;
	background: transparent;
}

.range-input::-moz-range-track {
	height: 100%;
	background: transparent;
}

.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	height: 20px;
	width: 20px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
	box-shadow: 0 1px 4px hsl(var(--foreground) / 0.2);
	transition: box-shadow 0.2s ease;
}

.range-input::-moz-range-thumb {
	pointer-events: auto;
	height: 20px;
	width: 20px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.range-input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px hsl(var(--ring) / 0.4);
}

.range-input--max {
	z-index: 3;
}

.range-input--min {
	z-index: 4;
}

/* -------------------------------------------------------------------------
 * Product cards
 * ---------------------------------------------------------------------- */
.theme-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.theme-shop-item > .theme-product-card,
.theme-product-card-wrap > .theme-product-card {
	height: 100%;
}

.theme-shop-item,
.theme-product-card-wrap {
	min-width: 0;
}

.theme-card-img-link {
	display: block;
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.theme-product-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Hover zoom follows the card, not the covered image (overlay-safe). */
.theme-product-card .theme-card-media:hover .theme-product-card__img,
.theme-product-card:hover .theme-product-card__img {
	transform: scale(1.04);
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1), opacity 0.5s ease-out;
}

.theme-product-card .theme-card-media {
	transition: transform 0.4s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card:hover .theme-card-media {
	transform: translateY(-3px);
}

.theme-product-card .theme-card-add {
	z-index: 3;
}

.theme-product-card .theme-card-add.theme-btn-loading,
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* Hide WooCommerce's own spinner so only the theme loading state shows. */
.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}

/* Hide the "View cart" link WooCommerce injects 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;
}

/* Disabled add-to-cart states (variable products + sold out). */
.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;
}

/* -------------------------------------------------------------------------
 * Single product layout
 * ---------------------------------------------------------------------- */
.single-product .theme-product-layout,
.single-product .theme-product-gallery,
.single-product .theme-product-info {
	min-width: 0;
	max-width: 100%;
}

.single-product .product {
	display: grid;
}

.single-product .theme-product-thumbnails {
	flex-wrap: wrap;
	max-width: 100%;
}

.single-product .theme-product-main-shimmer {
	transition: opacity 0.5s ease-out;
}

.single-product #product-main-img img {
	opacity: 0;
	transition: opacity 0.7s ease-out, filter 0.7s ease-out, transform 0.7s ease-out;
	filter: blur(12px);
}

.single-product #product-main-img img.is-loaded {
	opacity: 1;
	filter: blur(0);
}

.single-product .theme-add-to-cart-area {
	display: block;
	width: 100%;
	margin-bottom: 0.5rem;
}

.single-product .theme-add-to-cart-area .single_add_to_cart_button {
	display: block;
	width: 100%;
	max-width: 100%;
}

.single-product .theme-quantity-wrapper {
	flex: 0 0 auto;
	width: auto;
}

.single-product .theme-quantity-wrapper .theme-qty-minus,
.single-product .theme-quantity-wrapper .theme-qty-plus {
	line-height: 1;
}

.single-product .theme-quantity-wrapper input[type='number'].theme-qty-input {
	width: 2.75rem;
	min-width: 2.75rem;
	max-width: 2.75rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	-moz-appearance: textfield;
	appearance: textfield;
}

.single-product .theme-quantity-wrapper input[type='number']::-webkit-outer-spin-button,
.single-product .theme-quantity-wrapper input[type='number']::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in,
.single-product .theme-product-description {
	overflow-wrap: break-word;
	word-break: break-word;
}

.single-product .theme-product-description ul,
.single-product .theme-product-description ol {
	list-style: disc;
	padding-left: 1.25rem;
	margin: 0.5rem 0;
}

.single-product .theme-product-description ul ul {
	list-style: circle;
}

.single-product .theme-product-description p {
	margin-bottom: 0.75rem;
}

.single-product .theme-product-description a {
	color: hsl(var(--accent));
	text-decoration: underline;
}

/* Variation table: label above control, selects hidden behind pills */
.single-product .variations.theme-variations-native,
.single-product .variations.theme-variations-native tbody,
.single-product .variations.theme-variations-native tbody tr,
.single-product .variations.theme-variations-native tbody td {
	display: block;
	width: 100%;
	border: 0;
	padding: 0;
}

.single-product .variations.theme-variations-native {
	display: none;
}

.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;
}

.single-product .variations td.label {
	display: none;
}

.theme-reset-variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	text-decoration: underline;
	text-underline-offset: 3px;
}

.theme-reset-variations:hover {
	color: hsl(var(--foreground));
}

/* Hide WooCommerce's variation price/availability block; the pills drive it. */
.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-availability,
.single-product .woocommerce-variation-description {
	display: none;
}

.single-product .single_variation_wrap {
	margin-top: 0.5rem;
}

/* Notices inside the single product page are redundant with the drawer. */
.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

/* Related products section: same 4-up grid the source shows. */
.theme-related-products .theme-related-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1024px) {
	.theme-related-products .theme-related-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* -------------------------------------------------------------------------
 * Cart drawer
 * ---------------------------------------------------------------------- */
body.cart-open {
	overflow: hidden;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: hsl(var(--foreground) / 0.2);
	z-index: 60;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

#theme-cart-drawer {
	position: fixed;
	right: 0;
	top: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background: hsl(var(--background));
	z-index: 70;
	box-shadow: var(--shadow-elevated);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.25, 0.4, 0.25, 1);
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

#theme-cart-drawer .theme-cart-inner {
	min-height: 0;
	height: 100%;
}

/* Padding on the inner wrapper, never on the drawer itself: the drawer node is
   replaced by the WooCommerce fragment and must stay layout-neutral. */
#theme-cart-drawer .theme-cart-inner > div:first-child {
	padding: 1.5rem;
}

#theme-cart-drawer .theme-cart-checkout {
	text-align: center;
}

.theme-cart-count:empty {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* -------------------------------------------------------------------------
 * Contact modal (above cart drawer z-70 and scroll progress z-100)
 * ---------------------------------------------------------------------- */
.theme-contact-modal {
	position: fixed;
	inset: 0;
	z-index: 150;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
}

.theme-contact-modal[hidden] {
	display: none !important;
}

.theme-contact-overlay {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: hsl(var(--foreground) / 0.8);
	animation: themeFadeIn 0.2s ease-out forwards;
}

.theme-contact-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: min(32rem, calc(100% - 2rem));
	max-height: 90vh;
	overflow-y: auto;
	margin: 0;
	animation: themeModalIn 0.2s ease-out forwards;
}

@keyframes themeFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes themeModalIn {
	from {
		opacity: 0;
		transform: scale(0.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.theme-contact-overlay,
	.theme-contact-panel {
		animation: none;
	}
}

/* -------------------------------------------------------------------------
 * WooCommerce notices (styled where they must remain visible)
 * ---------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	border-radius: 0.75rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	line-height: 1.6;
	list-style: none;
}

.woocommerce-message {
	border-left: 3px solid hsl(var(--primary));
}

.woocommerce-info {
	border-left: 3px solid hsl(var(--accent));
}

.woocommerce-error {
	border-left: 3px solid hsl(var(--destructive));
}

.woocommerce-error li {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Checkout / Cart Blocks
 * ---------------------------------------------------------------------- */
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content,
body.woocommerce-cart .entry-content,
.woocommerce-account .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
.woocommerce-account .page-title,
body.theme-thankyou-page .page-title {
	font-family: var(--font-display);
	font-weight: 700;
	margin-bottom: 2rem;
}

/* One grid owner only: the direct parent of the two columns. */
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: grid !important;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}

	body.woocommerce-cart .wc-block-components-sidebar-layout {
		display: grid !important;
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
		gap: 2rem;
		align-items: start;
	}

	body.woocommerce-cart .wc-block-cart__sidebar {
		background-color: hsl(var(--card));
		border: 1px solid hsl(var(--border));
		border-radius: 0.75rem;
		padding: 2rem;
	}
}

/* The outer block wrapper stays a block so no nested grid is created. */
body.woocommerce-checkout .wc-block-checkout:not(.wc-block-components-sidebar-layout),
body.woocommerce-cart .wc-block-cart:not(.wc-block-components-sidebar-layout) {
	display: block;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-checkout__form > .wc-block-components-notice-banner {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-cart .wc-block-components-select select {
	width: 100% !important;
	max-width: none !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
	outline: none !important;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
	border-color: hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: 0.75rem;
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	border-radius: 9999px !important;
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
	font-weight: 600 !important;
	padding: 0.9rem 2rem !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:hover {
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary,
body.woocommerce-cart .wc-block-cart-items {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-checkout h2,
body.woocommerce-checkout .wc-block-checkout h3,
body.woocommerce-cart .wc-block-cart h2 {
	font-family: var(--font-display);
	font-weight: 600;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.75rem;
	font-family: var(--font-body);
}

/* Classic shortcode selectors kept for plugin compatibility. */
.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select {
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
}

/* -------------------------------------------------------------------------
 * 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));
}

body.theme-thankyou-page .woocommerce-order > p {
	font-size: 1rem;
	line-height: 1.7;
	color: hsl(var(--muted-foreground));
	margin-bottom: 2rem;
}

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);
	font-size: 1.5rem;
	font-weight: 600;
	padding: 0 0 1rem 0;
	margin-bottom: 1rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 0 0 2.5rem;
	padding: 1.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.75rem;
	background: hsl(var(--card));
}

body.theme-thankyou-page .woocommerce-notice--success {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-left: 3px solid hsl(var(--primary));
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
	margin-bottom: 2rem;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	list-style: none;
}

body.theme-thankyou-page .woocommerce-notice--error,
body.theme-thankyou-page .woocommerce-thankyou-order-failed {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-left: 3px solid hsl(var(--destructive));
	border-radius: 0.75rem;
	padding: 1rem 1.25rem;
	margin-bottom: 2rem;
	font-family: var(--font-body);
	list-style: none;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	letter-spacing: normal;
	text-transform: none;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	margin-bottom: 2.5rem;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
	padding: 0.75rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
	overflow-wrap: break-word;
}

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;
	line-height: 1.7;
}

/* -------------------------------------------------------------------------
 * Archive / shop loop
 * ---------------------------------------------------------------------- */
.theme-archive-main .theme-shop-grid {
	align-items: stretch;
}

.woocommerce-pagination {
	margin-top: 3rem;
	text-align: center;
	font-family: var(--font-body);
}

.woocommerce-pagination ul {
	display: inline-flex;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
	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.75rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: hsl(var(--foreground));
	text-decoration: none;
}

.woocommerce-pagination a:hover,
.woocommerce-pagination span.current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* -------------------------------------------------------------------------
 * Rich text inside standard pages
 * ---------------------------------------------------------------------- */
.theme-rich-text {
	max-width: 48rem;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.75;
	color: hsl(var(--foreground) / 0.85);
}

.theme-rich-text h2,
.theme-rich-text h3 {
	font-family: var(--font-display);
	color: hsl(var(--foreground));
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.theme-rich-text a {
	color: hsl(var(--accent));
	text-decoration: underline;
	text-underline-offset: 3px;
}

.theme-rich-text ul {
	list-style: disc;
	padding-left: 1.25rem;
	margin-bottom: 1rem;
}

/* -------------------------------------------------------------------------
 * WordPress core helpers (no source equivalent)
 * ---------------------------------------------------------------------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: hsl(var(--background));
	border-radius: 3px;
	box-shadow: 0 0 2px 2px hsl(var(--foreground) / 0.6);
	clip: auto !important;
	clip-path: none;
	color: hsl(var(--foreground));
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.alignleft {
	float: left;
	margin: 0 1.5rem 1rem 0;
}

.alignright {
	float: right;
	margin: 0 0 1rem 1.5rem;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	text-align: center;
	margin-top: 0.5rem;
}

.sticky,
.gallery-caption,
.bypostauthor {
	position: static;
}
