/*
 * Nhouse Eats — theme layer.
 *
 * Holds only: functional rules (drawer state, hidden attributes, reveal
 * fallbacks) and styling for markup WordPress/WooCommerce generates that has
 * no equivalent in the original design. Every element that exists in the
 * original design is styled by the compiled stylesheet (app.css).
 */

/* ---------------------------------------------------------------- utilities */

[hidden] {
	display: none !important;
}

/* ------------------------------------------------------- smooth scrolling */

html.lenis,
html.lenis body {
	height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
	overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch] {
	overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
	pointer-events: none;
}

.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;
	width: 1px;
	word-wrap: normal !important;
}

/* ------------------------------------------------------- decorative layers */

.theme-video-overlay {
	background: linear-gradient(180deg, hsl(var(--video-overlay) / 0.62) 0%, hsl(var(--video-overlay) / 0.58) 45%, hsl(var(--video-overlay) / 0.72) 100%);
}

.theme-video-overlay--cta {
	background: linear-gradient(180deg, hsl(var(--video-overlay) / 0.62) 0%, hsl(var(--video-overlay) / 0.58) 50%, hsl(var(--video-overlay) / 0.72) 100%);
}

.theme-cta-shadow {
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.theme-cta-heading {
	font-size: clamp(2rem, 5.4vw, 3.8rem);
}

.theme-marquee-phrase {
	font-size: clamp(1.2rem, 3vw, 2.4rem);
}

.theme-marquee-dot {
	width: clamp(7px, 0.7vw, 12px);
	height: clamp(7px, 0.7vw, 12px);
}

/* ------------------------------------------------------- scroll reveal state */

body.is-customizer [data-aos],
.theme-aos-fallback [data-aos] {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
	transition: none !important;
}

body.is-customizer .hero-reveal,
.theme-aos-fallback .hero-reveal {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
}

/* ------------------------------------------------------------------ logo */

/* Keep the wordmark optically centred in the header row while its left edge
   stays aligned with the container padding on desktop. */
.site-header .header-logo {
	margin-top: 0;
	align-self: center;
	transform-origin: center center;
}

@media (min-width: 1024px) {
	.site-header .header-logo {
		transform-origin: left center;
	}
}

/* The design inverts the logo over dark sections; the Customizer can turn
   that filter off for colour logos. */
.theme-dark .brand-logo.theme-logo-plain {
	filter: none;
}

/* ------------------------------------------------------------ cart drawer */

.theme-cart-drawer {
	z-index: 60;
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 400ms;
	will-change: transform;
}

body.cart-open .theme-cart-drawer {
	transform: translateX(0);
	visibility: visible;
	transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 55;
	background: hsl(var(--foreground) / 0.6);
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms ease, visibility 300ms ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

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

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

/* ------------------------------------------------------------ quantity ui */

.theme-qty-input {
	background: transparent;
	border: 0;
	color: hsl(var(--foreground));
	font-family: inherit;
	line-height: inherit;
	height: auto;
	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;
}

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

.theme-quantity-wrapper .theme-qty-minus,
.theme-quantity-wrapper .theme-qty-plus {
	color: hsl(var(--foreground));
	cursor: pointer;
}

/* --------------------------------------------------------- product details */

.theme-product-details ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

.theme-product-details li {
	display: flex;
	align-items: flex-start;
	font-size: 15px;
	color: hsl(var(--foreground) / 0.75);
}

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

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

/* -------------------------------------------------------- product card link */

.theme-product-card__media .theme-card-media-link {
	display: block;
}

.theme-product-card__media img {
	pointer-events: none;
}

.theme-product-card .woocommerce-Price-amount,
.theme-product-card .woocommerce-Price-currencySymbol {
	font-size: inherit;
	color: inherit;
	font-weight: inherit;
}

/* ------------------------------------------------------------ add to cart */

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

/* ------------------------------------------------------------ variations */

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

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

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

.single-product .variations tbody td.label label {
	font-size: 15px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.55);
	margin-bottom: 0.5rem;
	display: block;
}

.single-product .variations {
	border: 0;
	margin: 0 0 1.25rem;
	width: 100%;
}

.theme-attr-pill.is-active {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

.single-product .single_variation_wrap {
	margin-top: 1rem;
}

.single-product .woocommerce-variation-price {
	font-size: 20px;
	font-weight: 500;
	color: hsl(var(--foreground) / 0.9);
	margin-bottom: 1rem;
}

/* ------------------------------------------------- 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 0%;
	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;
}

/* --------------------------------------------------------------- notices */

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

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

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

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

/* ------------------------------------------------------------ pagination */

.theme-pagination .woocommerce-pagination ul.page-numbers,
.theme-pagination .page-numbers {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.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: 1px solid hsl(var(--border));
	border-radius: 9999px;
	font-size: 15px;
	font-weight: 600;
	color: hsl(var(--foreground) / 0.8);
	transition: color 300ms ease, border-color 300ms ease, background-color 300ms ease;
}

.theme-pagination .page-numbers:hover {
	border-color: hsl(var(--accent));
	color: hsl(var(--accent));
}

.theme-pagination .page-numbers.current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* --------------------------------------------------- checkout (block) */

body.woocommerce-checkout .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content {
	max-width: 100%;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout.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 {
	display: block;
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
	min-width: 0;
	width: 100%;
	max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--linen));
	border: 1px solid hsl(var(--foreground) / 0.1);
	border-radius: var(--radius);
	padding: 1.5rem;
}

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 .woocommerce-checkout .form-row .input-text {
	width: 100% !important;
	max-width: none !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: calc(var(--radius) - 4px) !important;
	color: hsl(var(--foreground)) !important;
	font-family: "Nunito Sans", system-ui, sans-serif !important;
	font-size: 15px !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(--primary)) !important;
	outline: none !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--foreground) / 0.55) !important;
}

body.woocommerce-checkout .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;
	font-family: "Nunito Sans", system-ui, sans-serif !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	height: 3rem !important;
	box-shadow: none !important;
}

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

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout h2.wc-block-components-title {
	font-family: "Fraunces", Georgia, serif !important;
	font-weight: 700 !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 1rem !important;
	border: 1px solid hsl(var(--border)) !important;
	background: hsl(var(--card)) !important;
	color: hsl(var(--foreground)) !important;
	font-size: 15px !important;
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-cart-items__row {
	border-color: hsl(var(--foreground) / 0.1) !important;
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	font-size: 15px !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkbox label {
	display: inline-flex !important;
}

/* ------------------------------------------------- cart / account pages */

body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-account .woocommerce {
	min-width: 0;
	width: 100%;
	max-width: none;
}

/* --------------------------------------------------- thank you (order) */

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	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: "Fraunces", Georgia, serif;
	font-weight: 700;
	font-size: 1.5rem;
	color: hsl(var(--foreground));
	padding: 0 0 1rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background: hsl(var(--card));
	font-size: 15px;
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	padding: 0;
	margin: 0;
	text-transform: none;
	color: hsl(var(--foreground) / 0.75);
}

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;
	border-bottom: 1px solid hsl(var(--foreground) / 0.1);
	text-align: left;
	vertical-align: top;
}

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-size: 15px;
	font-style: normal;
	color: hsl(var(--foreground) / 0.8);
}

/* ------------------------------------------------------------- faq panel */

.faq-panel {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	overflow: hidden;
	transition: grid-template-rows 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-panel-inner {
	overflow: hidden;
	min-height: 0;
}

.faq-item.is-open .faq-panel {
	grid-template-rows: 1fr;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.faq-panel {
		transition: none;
	}
}

/* -------------------------------------------------- hover preview (tilt) */

[data-tilt] {
	transform-style: preserve-3d;
	transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	[data-tilt] {
		transition: none;
		transform: none !important;
	}
}
