/* =========================================================================
   Westline Imports — theme layer.
   Only functional rules and styling for markup that has no source
   equivalent (WooCommerce, WordPress output). Source classes live in app.css.
   ========================================================================= */

[hidden] {
	display: none !important;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* -------------------------------------------------------------------------
   Header identity
   ---------------------------------------------------------------------- */
.site-header .site-logo-img {
	display: block;
	width: auto;
}

@media (max-width: 639px) {
	.site-header .site-logo-img {
		height: calc(var(--logo-height, 44px) * 0.818) !important;
	}
}

@media (min-width: 640px) and (max-width: 1023px) {
	.site-header .site-logo-img {
		height: calc(var(--logo-height, 44px) * 0.909) !important;
	}
}

@media (min-width: 1024px) {
	.site-header .site-logo-img {
		height: var(--logo-height, 44px) !important;
	}
}

.site-logo-text {
	line-height: var(--logo-height, 44px);
	display: block;
}

/* -------------------------------------------------------------------------
   Reveal fallback (Customizer preview and no-observer contexts)
   ---------------------------------------------------------------------- */
body.is-customizer [data-aos],
body.is-customizer .reveal-item,
body.is-customizer .scale-in-item {
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
}

/* -------------------------------------------------------------------------
   Product card overlay pattern
   ---------------------------------------------------------------------- */
.theme-product-card {
	position: relative;
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-product-card:hover {
	transform: translateY(-0.5rem);
}

/* The inner card must never create its own stacking context: that would
   lift the overlay link above the add-to-cart button. */
.theme-product-card > div,
.theme-product-card > div:hover {
	transform: none !important;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
}

.theme-product-card *:not(.theme-card-link) {
	pointer-events: none;
}

.theme-product-card .theme-card-add {
	pointer-events: auto !important;
	z-index: 3;
	position: relative;
}

.theme-product-card:hover > div {
	border-color: hsl(var(--accent) / 0.6);
	box-shadow: var(--shadow-elevated);
}

/* Collection cards: icon micro-interaction (motion.span whileHover) */
.theme-service-icon {
	transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) and (pointer: fine) {
	.service-tilt-card:hover .theme-service-icon {
		transform: rotate(8deg) scale(1.12);
	}
}

/* -------------------------------------------------------------------------
   Cart drawer + overlay
   ---------------------------------------------------------------------- */
#theme-cart-drawer {
	transform: translateY(100%);
	transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

body.cart-open #theme-cart-drawer {
	transform: translateY(0);
}

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

#theme-cart-overlay {
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms ease, visibility 300ms ease;
}

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

body.cart-open {
	overflow: hidden;
}

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

@media (prefers-reduced-motion: reduce) {
	#theme-cart-drawer,
	#theme-cart-overlay {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
   Quantity control
   ---------------------------------------------------------------------- */
.theme-qty-input {
	width: 44px;
	background: transparent;
	border: 0;
	outline: none;
	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;
	box-shadow: none;
}

/* -------------------------------------------------------------------------
   Single product
   ---------------------------------------------------------------------- */
.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;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.single-product .theme-add-to-cart-area .single_add_to_cart_button {
	flex: 1 1 0%;
	min-width: 160px;
	text-align: center;
}

.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 ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.625rem;
}

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

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

.single-product .woocommerce-product-details p {
	font-size: 15px;
	color: hsl(var(--foreground) / 0.75);
	margin: 0 0 0.75rem;
}

/* Variations */
.single-product .variations {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
}

.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-bottom: 0.25rem;
}

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

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

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

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

/* Cart drawer variation meta */
.theme-cart-variation {
	overflow-wrap: break-word;
}

/* -------------------------------------------------------------------------
   WooCommerce buttons and notices
   ---------------------------------------------------------------------- */
.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 .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;
}

.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 .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

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

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

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

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

.woocommerce-notices-wrapper {
	width: 100%;
}

/* -------------------------------------------------------------------------
   Shop archive
   ---------------------------------------------------------------------- */
.theme-shop-pagination .woocommerce-pagination ul.page-numbers,
.theme-shop-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}

.theme-shop-pagination .page-numbers li {
	border: 0;
}

.theme-shop-pagination .page-numbers a,
.theme-shop-pagination .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.85rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--border));
	font-size: 15px;
	font-weight: 600;
	color: hsl(var(--foreground) / 0.8);
	background: transparent;
	text-decoration: none;
}

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

/* -------------------------------------------------------------------------
   Checkout (WooCommerce Blocks)
   ---------------------------------------------------------------------- */
body.woocommerce-checkout .entry-content {
	width: 100%;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
	color: hsl(var(--foreground));
	font-family: 'Nunito', system-ui, sans-serif;
}

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-checkout.wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}
}

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

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-title {
	font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
	font-weight: 700;
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-textarea,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
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: var(--radius) !important;
	color: hsl(var(--foreground)) !important;
	font-family: 'Nunito', system-ui, sans-serif !important;
	font-size: 15px !important;
	width: 100% !important;
	max-width: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-textarea:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select: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::placeholder {
	color: hsl(var(--foreground) / 0.45) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button:not(.is-link) {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	border-radius: 9999px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	min-height: 3rem;
	text-decoration: none;
}

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

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

body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-order-summary-item {
	border-color: hsl(var(--border));
}

body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-product-name {
	font-family: 'Nunito', system-ui, sans-serif;
	color: hsl(var(--foreground));
}

/* -------------------------------------------------------------------------
   Cart and account pages
   ---------------------------------------------------------------------- */
body.theme-cart-page .entry-content,
body.theme-account-page .entry-content {
	width: 100%;
	max-width: none;
}

body.theme-cart-page .wc-block-cart,
body.theme-account-page .woocommerce {
	font-family: 'Nunito', system-ui, sans-serif;
	color: hsl(var(--foreground));
}

body.theme-cart-page .wc-block-cart__submit-button,
body.theme-account-page .woocommerce-Button,
body.theme-account-page button.button {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border: 1px solid hsl(var(--primary));
	border-radius: 9999px;
	font-size: 15px;
	font-weight: 600;
	padding: 0.75rem 1.75rem;
	text-decoration: none;
}

body.theme-cart-page .wc-block-cart-items__row,
body.theme-account-page .woocommerce-orders-table {
	border-color: hsl(var(--border));
}

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

body.theme-account-page .woocommerce-MyAccount-navigation a {
	display: inline-flex;
	align-items: center;
	height: 2.5rem;
	padding: 0 1.25rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--border));
	font-size: 15px;
	font-weight: 600;
	color: hsl(var(--foreground) / 0.8);
	text-decoration: none;
}

body.theme-account-page .woocommerce-MyAccount-navigation .is-active a {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* -------------------------------------------------------------------------
   Order received
   ---------------------------------------------------------------------- */
body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
	font-size: 15px;
	color: hsl(var(--foreground) / 0.8);
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1.15;
	color: hsl(var(--foreground));
	padding: 0 0 1rem 0;
	margin: 2rem 0 0;
}

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

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.65);
	border: 0;
	padding: 0;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	font-size: 16px;
	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(--border));
	text-align: left;
	vertical-align: top;
	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.6;
}

/* -------------------------------------------------------------------------
   Forms inside WooCommerce content
   ---------------------------------------------------------------------- */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	color: hsl(var(--foreground));
	font-size: 15px;
	font-family: 'Nunito', system-ui, sans-serif;
	padding: 0.75rem 1rem;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	border-color: hsl(var(--primary));
	outline: none;
}


/* -------------------------------------------------------------------------
   Order received notice
   ---------------------------------------------------------------------- */
body.theme-thankyou-page .woocommerce-thankyou-order-received {
	font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
	font-size: 1.5rem;
	line-height: 1.3;
	font-weight: 700;
	color: hsl(var(--foreground));
	background: none;
	border: 0;
	padding: 0;
	margin: 0 0 1.5rem;
}

body.theme-thankyou-page .woocommerce-order-overview__order strong,
body.theme-thankyou-page .woocommerce-order-overview__total strong {
	font-weight: 600;
}
