/* ==========================================================================
   Listen To His Voice — theme layer
   Only markup without a source equivalent, functional state and WooCommerce
   output is styled here. Source utility classes are preserved in templates.
   ========================================================================== */

:root {
	--header-height: 80px;
	--checkout-gap: 2rem;
}

/* --------------------------------------------------------------------------
   Header state (transparent over the hero, solid after scrolling)
   -------------------------------------------------------------------------- */
.site-header .theme-header-icon {
	color: #fff;
}

.site-header .theme-header-icon:hover {
	background-color: rgb(255 255 255 / 0.1);
}

.site-header.is-solid .theme-header-icon {
	color: hsl(var(--foreground));
}

.site-header.is-solid .theme-header-icon:hover {
	background-color: hsl(var(--foreground) / 0.06);
}

.site-header .theme-nav-btn {
	color: rgb(255 255 255 / 0.85);
}

.site-header .theme-nav-btn:hover,
.site-header .theme-nav-btn.is-active {
	color: #fff;
}

.site-header.is-solid .theme-nav-btn {
	color: hsl(var(--foreground) / 0.75);
}

.site-header.is-solid .theme-nav-btn:hover,
.site-header.is-solid .theme-nav-btn.is-active {
	color: hsl(var(--primary));
}

.site-header .site-logo-img {
	filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgb(0 0 0 / 0.5));
}

.site-header.is-solid .site-logo-img {
	filter: none;
}

.site-header .site-logo-text {
	color: #fff;
}

.site-header.is-solid .site-logo-text {
	color: hsl(var(--foreground));
}

.site-logo-img {
	height: var(--logo-height, 48px) !important;
	width: auto !important;
	display: block;
}

@media (max-width: 1023px) {
	.site-logo-img {
		height: calc(var(--logo-height, 48px) - 4px) !important;
	}
}

.site-logo-text {
	line-height: var(--logo-height, 48px);
	display: block;
}

#theme-mobile-menu[hidden] {
	display: none;
}

/* WordPress admin bar (Customizer / logged-in preview) */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

body.admin-bar #theme-cart-drawer {
	top: 32px;
	height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar #theme-cart-drawer {
		top: 46px;
		height: calc(100% - 46px);
	}
}

/* Pointer only on real controls (not decorative hover states) */
a[href],
button:not(:disabled),
input[type='button']:not(:disabled),
input[type='submit']:not(:disabled),
input[type='reset']:not(:disabled),
select:not(:disabled),
summary,
label[for] {
	cursor: pointer;
}

#theme-cart-overlay,
div[data-blog-close] {
	cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
.disabled {
	cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   Product cards (Pattern A hit-area overlay)
   -------------------------------------------------------------------------- */
.theme-product-card {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	pointer-events: auto;
}

.theme-product-card :where(*:not(.theme-card-link):not(.theme-card-add)) {
	pointer-events: none;
}

.theme-product-card .theme-card-actions {
	z-index: 3;
}

.theme-product-card .theme-card-actions > span {
	pointer-events: auto;
	cursor: default;
}

.theme-product-card .theme-card-add {
	position: relative;
	z-index: 3;
	pointer-events: auto;
}

.theme-product-card-card__info,
.theme-product-card > div:last-child {
	min-width: 0;
}

.theme-product-card-wrap {
	display: flex;
	min-width: 0;
}

.theme-product-card-wrap.theme-shop-item-hidden {
	display: none !important;
}

[data-shop-more-wrap].theme-shop-more-hidden {
	display: none !important;
}

@keyframes theme-shop-item-enter {
	from {
		opacity: 0;
		transform: translateY(18px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.theme-product-card-wrap.theme-shop-item-enter {
	animation: theme-shop-item-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
	.theme-product-card-wrap.theme-shop-item-enter {
		animation: none;
	}
}

.theme-product-card-wrap > .theme-product-card {
	width: 100%;
}

.theme-product-card img {
	display: block;
}

/* --------------------------------------------------------------------------
   Brand highlights marquee
   -------------------------------------------------------------------------- */
.theme-marquee .animate-marquee {
	animation-duration: 4s;
}

@media (min-width: 768px) {
	.theme-marquee .animate-marquee {
		animation-duration: 35s;
	}
}

@media (prefers-reduced-motion: reduce) {
	.theme-marquee .animate-marquee {
		animation: none;
	}
}

/* --------------------------------------------------------------------------
   Scroll reveal fallbacks
   -------------------------------------------------------------------------- */
body.is-customizer [data-aos] {
	opacity: 1 !important;
	transform: none !important;
}

/* --------------------------------------------------------------------------
   FAQ accordion (grid-template-rows animation)
   -------------------------------------------------------------------------- */
.theme-faq-panel {
	grid-template-rows: 0fr;
}

.theme-faq-panel.is-open {
	grid-template-rows: 1fr;
}

/* --------------------------------------------------------------------------
   Blog modal
   -------------------------------------------------------------------------- */
#theme-blog-modal[hidden] {
	display: none;
}

.theme-blog-content {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: hsl(var(--foreground) / 0.75);
}

.theme-blog-content > * + * {
	margin-top: 1rem;
}

.theme-blog-content a {
	color: hsl(var(--primary));
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Quantity input
   -------------------------------------------------------------------------- */
.theme-qty-input {
	width: 44px;
	appearance: textfield;
	-moz-appearance: textfield;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* --------------------------------------------------------------------------
   Cart drawer + overlay
   -------------------------------------------------------------------------- */
#theme-cart-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background-color: hsl(var(--foreground) / 0.3);
	z-index: 50;
}

#theme-cart-drawer {
	display: none;
}

body.cart-open #theme-cart-overlay {
	display: block;
	animation: fade-in 0.7s ease-out both;
}

body.cart-open #theme-cart-drawer {
	display: flex;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

.theme-cart-count:empty {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* --------------------------------------------------------------------------
   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;
}

.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;
}

/* --------------------------------------------------------------------------
   Single 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-product-thumbnails button img,
.single-product #product-main-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.single-product .theme-add-to-cart-area .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 .woocommerce-product-details__short-description p {
	margin-bottom: 1.5rem;
}

.single-product .woocommerce-product-details__short-description p:last-child {
	margin-bottom: 0;
}

/* Attribute table: label above control */
.single-product .variations_form.cart > table.variations {
	margin-bottom: 1.75rem;
}

.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations_form.cart tbody tr:last-child td.value {
	padding-bottom: 0.25rem;
}

.single-product .variations tbody td.label {
	padding-bottom: 0.25rem;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.single-product .variations select.theme-attr-select-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.single-product .variations_form.cart .theme-variation-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.single-product .variations_form.cart .theme-variation-pill {
	padding: 0.5rem 1rem;
	border-radius: 999px;
	border: 1px solid hsl(var(--foreground) / 0.2);
	background: transparent;
	color: hsl(var(--foreground));
	font-family: 'Switzer', system-ui, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.single-product .variations_form.cart .theme-variation-pill.is-selected {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.single-product .variations_form.cart .theme-variation-pill:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.single-product .variations select:not(.theme-attr-select-hidden) {
	width: 100%;
	height: 3rem;
	padding: 0 1rem;
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--foreground) / 0.15);
	border-radius: calc(var(--radius) - 4px);
	font-family: 'Switzer', system-ui, sans-serif;
	font-size: 14px;
	color: hsl(var(--foreground));
}

.single-product .woocommerce-variation-price {
	margin-bottom: 1rem;
	font-size: 20px;
	font-weight: 500;
}

.single-product .woocommerce-variation-availability {
	margin-bottom: 1rem;
	font-size: 14px;
}

.single-product .reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 13px;
	color: hsl(var(--primary));
}

/* --------------------------------------------------------------------------
   WooCommerce notices
   -------------------------------------------------------------------------- */
.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: calc(var(--radius) - 2px);
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--linen));
	color: hsl(var(--foreground));
	font-size: 14px;
}

.woocommerce-error {
	border-color: hsl(var(--destructive));
	color: hsl(var(--destructive));
	background-color: hsl(var(--background));
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	display: inline-flex;
	align-items: center;
	margin-left: 0.75rem;
	padding: 0.35rem 1rem;
	border-radius: 9999px;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-size: 13px;
}

/* --------------------------------------------------------------------------
   Archive pagination
   -------------------------------------------------------------------------- */
.theme-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.theme-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--foreground) / 0.15);
	color: hsl(var(--foreground) / 0.75);
	text-decoration: none;
}

.theme-pagination .page-numbers.current,
.theme-pagination .page-numbers:hover {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* --------------------------------------------------------------------------
   WordPress utilities
   -------------------------------------------------------------------------- */
.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;
}

.theme-page-main .entry-content {
	max-width: 100%;
}

.theme-page-main .entry-content > *:first-child {
	margin-top: 0;
}

/* --------------------------------------------------------------------------
   Checkout (native WooCommerce Checkout Block)
   -------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .theme-page-main {
	padding-top: calc(var(--header-height) + 1rem);
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content {
	max-width: 100%;
}

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.wc-block-checkout.is-large,
	body.woocommerce-checkout .wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}

	body.woocommerce-checkout .wc-block-checkout__sidebar {
		position: sticky;
		top: calc(var(--header-height) + 1rem);
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--linen));
	border: 1px solid hsl(var(--foreground) / 0.1);
	border-radius: calc(var(--radius) + 0.375rem);
	padding: 1.5rem;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-blocks-components-select__select {
	width: 100% !important;
	max-width: none !important;
	border: 1px solid hsl(var(--foreground) / 0.15) !important;
	border-radius: calc(var(--radius) - 4px) !important;
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: 'Switzer', system-ui, -apple-system, sans-serif !important;
	font-size: 14px !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-block-components-textarea textarea:focus {
	border-color: hsl(var(--primary)) !important;
	outline: 2px solid transparent !important;
	outline-offset: 2px !important;
	box-shadow: 0 0 0 2px hsl(var(--ring) / 0.35) !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 {
	color: hsl(var(--foreground) / 0.55) !important;
	font-size: 12px !important;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-family: 'Switzer', system-ui, sans-serif !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar h2,
body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-components-title.wc-block-components-title {
	font-family: 'Gilda Display', 'Times New Roman', serif !important;
	font-weight: 400 !important;
	color: hsl(var(--foreground)) !important;
	letter-spacing: -0.005em;
}

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: 1px solid hsl(var(--primary)) !important;
	border-radius: 9999px !important;
	height: 3rem !important;
	font-family: 'Switzer', system-ui, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
}

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: calc(var(--radius) - 2px) !important;
	border-color: hsl(var(--border)) !important;
	background-color: hsl(var(--linen)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: 'Switzer', system-ui, sans-serif !important;
	font-size: 14px !important;
}

body.woocommerce-checkout .wc-block-cart-items,
body.woocommerce-checkout .wc-block-components-order-summary {
	font-family: 'Switzer', system-ui, sans-serif !important;
	font-size: 14px !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-product-name {
	color: hsl(var(--foreground)) !important;
}

/* Cart block page */
body.theme-cart-page .site-main,
body.theme-cart-page .theme-page-main {
	padding-top: calc(var(--header-height) + 1rem);
	padding-bottom: 4rem;
}

body.theme-cart-page .entry-content,
body.woocommerce-account .entry-content {
	max-width: 100%;
}

body.theme-cart-page .wc-block-cart {
	font-family: 'Switzer', system-ui, sans-serif;
}

body.theme-cart-page .wc-block-cart__submit-button,
body.theme-cart-page .wc-block-components-button,
body.woocommerce-account .woocommerce-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: 'Switzer', system-ui, sans-serif !important;
	font-size: 14px !important;
}

body.woocommerce-account .woocommerce-Input {
	height: 3rem;
	padding: 0 1rem;
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--foreground) / 0.15);
	border-radius: calc(var(--radius) - 4px);
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Thank you page
   -------------------------------------------------------------------------- */
body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	font-family: 'Switzer', system-ui, sans-serif;
	color: hsl(var(--foreground));
	font-size: 15px;
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: 'Gilda Display', 'Times New Roman', serif;
	font-weight: 400;
	font-size: 1.5rem;
	color: hsl(var(--foreground));
	padding: 0 0 1rem 0;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) + 0.375rem);
	background-color: hsl(var(--linen));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: hsl(var(--foreground) / 0.6);
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 15px;
	letter-spacing: 0;
	text-transform: none;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
}

body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.75rem 0;
	border-bottom: 1px solid hsl(var(--foreground) / 0.1);
	font-size: 14px;
	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;
	font-size: 14px;
	line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Default WooCommerce form controls fallback
   -------------------------------------------------------------------------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	height: 3rem;
	padding: 0 1rem;
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--foreground) / 0.15);
	border-radius: calc(var(--radius) - 4px);
	font-size: 14px;
	color: hsl(var(--foreground));
}

.woocommerce form .form-row textarea {
	height: auto;
	padding: 0.75rem 1rem;
}
