/* =========================================================================
   Wicked Creations — functional + WordPress/WooCommerce generated markup.
   Source utility classes live in app.css; nothing here restyles an element
   that already carries them.
   ========================================================================= */

[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------- Reveal */
.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);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }
[data-reveal-delay="6"] { transition-delay: 0.6s; }
[data-reveal-delay="7"] { transition-delay: 0.7s; }
[data-reveal-delay="8"] { transition-delay: 0.8s; }

.is-visible .reveal-item,
.reveal-item.is-visible {
	opacity: 1;
	transform: none;
}

body.is-customizer .reveal-item {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ------------------------------------------------------------------ Hero */
@keyframes themeHeroFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

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

.hero-anim {
	opacity: 0;
	animation: themeHeroFade 1.1s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
}

.hero-anim-title {
	animation: themeHeroRise 0.9s cubic-bezier(0.25, 0.4, 0.25, 1) 0.35s forwards;
}

.hero-anim-sub {
	animation: themeHeroRise 0.7s cubic-bezier(0.25, 0.4, 0.25, 1) 0.55s forwards;
}

.hero-anim-cta {
	animation: themeHeroRise 0.65s cubic-bezier(0.25, 0.4, 0.25, 1) 0.75s forwards;
}

.hero-anim-scroll {
	animation: themeHeroFade 0.8s cubic-bezier(0.25, 0.4, 0.25, 1) 1.2s forwards,
		floatSoft 5s ease-in-out 2s infinite;
}

.theme-hero-cta {
	transition: transform 0.3s cubic-bezier(0.25, 0.4, 0.25, 1), background-color 0.15s ease;
}

.theme-hero-cta:hover {
	transform: scale(1.04);
}

.theme-hero-cta:active {
	transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
	.hero-anim,
	.hero-anim-title,
	.hero-anim-sub,
	.hero-anim-cta,
	.hero-anim-scroll {
		opacity: 1;
		animation: none;
	}
}

/* ------------------------------------------------------- Hover transforms */
.theme-tile-img {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.group:hover .theme-tile-img {
	transform: scale(1.05);
}

.theme-dark-tile-img {
	transition: transform 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.group:hover .theme-dark-tile-img {
	transform: scale(1.05);
}

.theme-gallery-img {
	transition: transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.group:hover .theme-gallery-img {
	transform: scale(1.04);
}

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

.theme-product-card-media {
	position: relative;
	transition: transform 0.35s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card:hover .theme-product-card-media {
	transform: translateY(-4px);
}

.theme-product-card-media img {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card:hover .theme-product-card-media img {
	transform: scale(1.04);
}

.theme-product-card-info {
	flex: 1 1 auto;
}

.theme-card-add {
	z-index: 3;
}

.theme-product-card .price,
.theme-product-card .woocommerce-Price-amount,
.theme-product-card .woocommerce-Price-currencySymbol,
.theme-product-card .woocommerce-Price-amount bdi {
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	background: none;
	padding: 0;
	white-space: nowrap;
}

.theme-product-card .price del,
.theme-product-card .woocommerce-Price-amount del {
	opacity: 0.6;
	margin-right: 0.35rem;
}

.theme-product-info .price,
.theme-product-info .woocommerce-Price-amount,
.theme-product-info .woocommerce-Price-currencySymbol {
	font: inherit;
	color: inherit;
}

.theme-dark-price .woocommerce-Price-amount,
.theme-dark-price .woocommerce-Price-currencySymbol {
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
}

/* ---------------------------------------------------------- Gallery strip */
.theme-gallery-track {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.theme-gallery-track::-webkit-scrollbar {
	display: none;
}

/* --------------------------------------------------------- Price filter */
.theme-price-panel {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.3s cubic-bezier(0.25, 0.4, 0.25, 1), opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-price-panel.is-open {
	max-height: 220px;
	opacity: 1;
}

.price-range-wrapper {
	position: relative;
	height: 1.5rem;
}

.range-track-bg,
.range-track-fill {
	position: absolute;
	height: 4px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	border-radius: 9999px;
}

.range-track-bg {
	left: 0;
	right: 0;
	background: hsl(var(--border));
}

.range-track-fill {
	background: hsl(var(--primary));
	left: 0;
	width: 100%;
}

.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-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.range-input::-moz-range-thumb {
	pointer-events: auto;
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.range-input::-moz-range-track {
	background: transparent;
}

.range-input--max { z-index: 3; }
.range-input--min { z-index: 4; }

/* ------------------------------------------------------------- Quantity */
.theme-qty-input {
	width: 4rem;
	background: transparent;
	border: 0;
	appearance: textfield;
	-moz-appearance: textfield;
}

.theme-qty-input:focus {
	outline: none;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* ---------------------------------------------- Add to cart button 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;
}

.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;
}

.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
	display: none !important;
}

.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

/* ------------------------------------------------------------ Cart drawer */
#theme-cart-drawer {
	transform: translateX(100%);
	visibility: hidden;
	pointer-events: none;
	transition: transform 0.3s cubic-bezier(0.25, 0.4, 0.25, 1), visibility 0.3s;
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: hsl(var(--foreground) / 0.2);
	z-index: 40;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

/* ---------------------------------------------------------- Contact modal */
body.theme-modal-open {
	overflow: hidden;
}

/* ------------------------------------------------------- Site identity */
.site-logo-img {
	height: var(--logo-height, 48px) !important;
	width: auto !important;
	max-width: 70vw !important;
	max-height: none !important;
	object-fit: contain;
	object-position: left center;
	display: block;
}

.site-logo-text {
	line-height: var(--logo-height);
	display: block;
	letter-spacing: 0.14em;
}

.site-brand-name {
	margin-left: 0.75rem;
}

/* ------------------------------------------------- Product page layout */
.single-product .theme-product-layout,
.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;
	flex-direction: column;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0;
}

.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.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations tbody td.label {
	display: none;
	padding-bottom: 0.25rem;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.theme-attr-select-hidden {
	display: none !important;
}

.theme-attr-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.theme-attr-swatch {
	display: inline-block;
}

/* Woo-generated product description lists (no source markup) */
.product-description ul {
	margin-top: 1rem;
}

.product-description li {
	display: flex;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.625;
	color: hsl(var(--muted-foreground));
	margin-bottom: 0.5rem;
}

.product-description li::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 9999px;
	background: hsl(var(--foreground));
	margin-top: 0.5rem;
	margin-right: 0.75rem;
	flex-shrink: 0;
}

.product-description p {
	margin-bottom: 0.75rem;
}

/* ------------------------------------------------------- Notices + WP */
.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;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.6;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	background: hsl(var(--secondary));
	color: hsl(var(--foreground));
}

.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.4);
	background: hsl(var(--destructive) / 0.08);
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	margin-left: 0.75rem;
	text-decoration: underline;
}

.woocommerce-form-coupon,
form.checkout_coupon,
.woocommerce-form-login {
	background: hsl(var(--secondary));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1.5rem;
}

/* --------------------------------------------------- WP content fallback */
.entry-content {
	font-family: var(--font-body);
	color: hsl(var(--foreground) / 0.85);
	line-height: 1.7;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
	margin-bottom: 1.25rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25rem;
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.entry-content a {
	text-decoration: underline;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	margin-bottom: 0.75rem;
}

.page-title {
	font-family: var(--font-display);
	letter-spacing: -0.015em;
}

/* ------------------------------------------------------------- Archive */
.theme-archive .woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3rem;
	list-style: none;
	padding: 0;
}

.theme-archive .woocommerce-pagination a,
.theme-archive .woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: 9999px;
	font-family: var(--font-body);
	font-size: 13px;
	color: hsl(var(--foreground));
}

.theme-archive .woocommerce-pagination .current {
	background: hsl(var(--foreground));
	color: hsl(var(--background));
	border-color: hsl(var(--foreground));
}

/* ===================================================== CHECKOUT (BLOCKS) */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .theme-page-main {
	padding-bottom: 4rem;
}

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;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--butter));
	border-radius: var(--radius);
	padding: 2rem;
}

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-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	color: hsl(var(--foreground)) !important;
	box-shadow: none !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 {
	border-color: hsl(var(--foreground)) !important;
	box-shadow: none !important;
	outline: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-block-components-select label,
body.woocommerce-checkout .wc-block-components-checkbox__label,
body.woocommerce-checkout .wc-block-checkout__form h2,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: 0.375rem !important;
	font-family: var(--font-display) !important;
	font-weight: 500 !important;
	text-transform: none;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--primary) / 0.9) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: var(--radius);
	font-family: var(--font-body);
	border-color: hsl(var(--border));
	background: hsl(var(--secondary));
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	font-family: var(--font-body);
}

/* -------------------------------------------- Cart + account width parity */
body.woocommerce-cart .wc-block-cart,
body.woocommerce-account .woocommerce {
	width: 100%;
	max-width: none;
}

body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}

body.woocommerce-cart .wc-block-components-sidebar-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 1024px) {
	body.woocommerce-cart .wc-block-components-sidebar-layout {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-account .woocommerce-Button,
body.woocommerce-account .button {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-radius: 0.375rem;
	font-family: var(--font-display);
	font-weight: 500;
	padding: 0.75rem 1.5rem;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0 0 2rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

body.woocommerce-account .woocommerce-MyAccount-navigation a {
	font-family: var(--font-body);
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

/* ------------------------------------------------------------ Thank you */
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 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;
	padding: 0 0 1rem 0;
}

body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	padding: 1.5rem;
	margin: 0 0 2rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--secondary));
	font-size: 14px;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	padding: 0;
	margin: 0;
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	font-size: 15px;
}

body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.75rem 0.5rem;
	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;
	margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-style: normal;
	line-height: 1.7;
}

/* ---------------------------------------- WooCommerce generated elements */
.woocommerce-Price-amount,
.woocommerce-Price-currencySymbol {
	font: inherit;
	color: inherit;
}

.woocommerce-error li {
	margin-bottom: 0.35rem;
}

.woocommerce-noreviews {
	font-family: var(--font-body);
	color: hsl(var(--muted-foreground));
}

/* Shipping calculator / cart table (classic fallbacks) */
.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-bottom: 1px solid hsl(var(--border));
	padding: 0.85rem 0.5rem;
	text-align: left;
}

.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
	text-align: right;
}

.woocommerce .quantity input.qty {
	width: 4rem;
}
