/* Greenwood Creative Works — theme styles.
   Only markup without a source equivalent, plus functional behaviour. */

:root {
	--header-height: 113px;
	--checkout-gap: 2rem;
}

[hidden] {
	display: none !important;
}

/* Logo sizing (single definition, all contexts) */
.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
}
@media (max-width: 639px) {
	.site-logo-img {
		height: calc(var(--logo-height) - 8px) !important;
	}
}
.site-logo-text {
	line-height: var(--logo-height);
	display: block;
}

/* Spinning text speeds */
.theme-spin-normal { animation-duration: 26s; }
.theme-spin-slow { animation-duration: 22s; }
.theme-spin-fast { animation-duration: 14s; }
.theme-spin-reverse { animation-direction: reverse; }

/* Scroll reveal fallbacks (customizer preview and no-JS) */
body.is-customizer [data-reveal],
body.theme-no-js [data-reveal] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* Inner pages sit below the fixed header */
.theme-page-main {
	padding-top: 7.5rem;
}
@media (min-width: 1024px) {
	.theme-page-main {
		padding-top: 8.5rem;
	}
}

/* Cart badge hides at zero */
.theme-cart-count:empty {
	display: none;
}

/* Side cart */
#theme-cart-overlay {
	display: none;
}
body.cart-open #theme-cart-overlay {
	display: block;
}
#theme-cart-drawer {
	z-index: 60;
	visibility: hidden;
	transform: translateX(100%);
	transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1), visibility 400ms;
}
body.cart-open #theme-cart-drawer {
	visibility: visible;
	transform: translateX(0);
}
#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

/* Quantity steppers */
.theme-qty-input {
border: 0;
background-color: transparent;
width: 44px;
padding-left: 0;
padding-right: 0;
}
.theme-qty-input:focus {
outline: none;
}
.theme-quantity-wrapper input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}
.theme-quantity-wrapper input[type="number"]::-webkit-outer-spin-button,
.theme-quantity-wrapper input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Add-to-cart disabled state */
.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,
a.single_add_to_cart_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;
}

/* Hide "View cart" injected after AJAX add-to-cart */
.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;
}

/* Loading state on add-to-cart buttons */
.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-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 .theme-product-description p {
	margin: 0 0 1.625em;
}
.single-product .theme-product-description p:last-child {
	margin-bottom: 0;
}
.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-variation-price {
        margin-bottom: 1rem;
}
.single-product .single_variation_wrap {
	width: 100%;
}

/* Variations table reflow (labels are rendered by the pills) */
.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}
.single-product .variations tbody td.label {
	display: none;
}
.single-product .variations tbody td.value {
	padding: 0;
}
.single-product .variations {
	margin: 0;
	border: 0;
}
.theme-attr-select-hidden {
	display: none !important;
}

/* Product cards in grids */
.theme-product-card-wrap {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 1rem 1.25rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.5rem;
	background-color: hsl(var(--linen));
	color: hsl(var(--foreground));
	font-family: 'Geist', system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.6;
}
.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.5);
	background-color: hsl(var(--destructive) / 0.08);
	color: hsl(var(--destructive));
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}
.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}
#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* Pagination */
.theme-pagination .woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}
.theme-pagination .woocommerce-pagination ul li {
	border: 0;
	margin: 0;
}
.theme-pagination .woocommerce-pagination a,
.theme-pagination .woocommerce-pagination span.current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.9rem;
	border: 1px solid hsl(var(--foreground) / 0.25);
	border-radius: 9999px;
	color: hsl(var(--foreground));
	font-family: 'Geist', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.theme-pagination .woocommerce-pagination a:hover,
.theme-pagination .woocommerce-pagination span.current {
	background-color: hsl(var(--foreground));
	border-color: hsl(var(--foreground));
	color: hsl(var(--background));
}

/* Page headings */
.page-title {
	font-family: 'Gambarino', Georgia, serif;
	font-weight: 400;
	letter-spacing: 0;
	color: hsl(var(--foreground));
	font-size: 2.25rem;
	line-height: 1.05;
	margin: 0 0 1.75rem;
}
@media (min-width: 768px) {
	.page-title {
		font-size: 3rem;
	}
}
.entry-content {
	font-family: 'Geist', system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.75;
	color: hsl(var(--foreground) / 0.8);
}
.entry-content h2,
.entry-content h3 {
	font-family: 'Gambarino', Georgia, serif;
	font-weight: 400;
	color: hsl(var(--foreground));
}

/* Screen reader text */
.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;
}

/* Classic WooCommerce forms (cart / account) */
.woocommerce-cart .woocommerce,
.woocommerce-account .woocommerce {
	color: hsl(var(--foreground));
	font-family: 'Geist', system-ui, sans-serif;
	font-size: 15px;
}
.woocommerce-cart table.shop_table,
.woocommerce-account table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 1px solid hsl(var(--border));
	border-radius: 0.5rem;
	overflow: hidden;
}
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td,
.woocommerce-account table.shop_table th,
.woocommerce-account table.shop_table td {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
}
.woocommerce-cart .quantity input.qty,
.woocommerce-account input.input-text,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"] {
	height: 3rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.25rem;
	background-color: hsl(var(--ivory));
	color: hsl(var(--foreground));
	font-family: 'Geist', system-ui, sans-serif;
	font-size: 14px;
	padding: 0 1rem;
}
.woocommerce-cart .button,
.woocommerce-account .button,
.woocommerce-cart button.button,
.woocommerce-account button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 3rem;
	padding: 0 1.75rem;
	border: 1px solid hsl(var(--primary));
	border-radius: 9999px;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-family: 'Geist', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
}
.woocommerce-cart .button:hover,
.woocommerce-account .button:hover {
	opacity: 0.9;
	color: hsl(var(--primary-foreground));
}

/* ---------------------------------------------------------------
 * Checkout (native WooCommerce Checkout Block)
 * ------------------------------------------------------------ */
body.woocommerce-checkout .site-main {
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}
body.woocommerce-checkout .wc-block-checkout {
	display: block;
	max-width: none;
	color: hsl(var(--foreground));
	font-family: 'Geist', system-ui, sans-serif;
	font-size: 15px;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
}
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__main {
	order: 1;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	order: 2;
}
body.woocommerce-checkout .wc-block-components-notice-banner,
body.woocommerce-checkout .wc-block-components-notices {
	grid-column: 1 / -1;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--linen));
	border: 1px solid hsl(var(--border) / 0.7);
	border-radius: 1rem;
	padding: 1.5rem;
}
@media (min-width: 1024px) {
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		padding: 1.75rem;
		position: sticky;
		top: calc(var(--header-height) + 1rem);
	}
}
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__sidebar h2,
body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-checkout__main h3,
body.woocommerce-checkout .wc-block-components-title {
	font-family: 'Gambarino', Georgia, serif;
	font-weight: 400;
	letter-spacing: 0;
	color: hsl(var(--foreground));
	font-size: 1.5rem;
	line-height: 1.2;
}
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 {
	border-color: hsl(var(--border)) !important;
	border-radius: 0.25rem !important;
	background-color: hsl(var(--ivory)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: 'Geist', system-ui, 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-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus {
	border-color: hsl(var(--primary)) !important;
	outline: none !important;
	box-shadow: 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-components-radio-control__label {
	color: hsl(var(--foreground) / 0.55) !important;
	font-family: 'Geist', system-ui, sans-serif !important;
	font-size: 12px !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}
body.woocommerce-checkout .wc-block-components-checkbox label,
body.woocommerce-checkout .wc-block-components-radio-control__label {
	font-size: 14px !important;
	letter-spacing: 0;
	text-transform: none;
	color: hsl(var(--foreground)) !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--primary)) !important;
	border: 1px solid hsl(var(--primary)) !important;
	border-radius: 9999px !important;
	color: hsl(var(--primary-foreground)) !important;
	font-family: 'Geist', system-ui, sans-serif !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	height: 3rem;
	transition: opacity 0.2s ease;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	opacity: 0.9;
}
body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-order-summary-item {
	font-size: 14px;
}
body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-item__value {
	color: hsl(var(--foreground) / 0.8);
	font-family: 'Geist', system-ui, sans-serif;
	font-size: 14px;
}
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: hsl(var(--foreground));
	font-weight: 500;
	font-size: 16px;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.5rem;
	font-family: 'Geist', system-ui, sans-serif;
	font-size: 14px;
}

/* Cart / account width parity */
body.theme-cart-page .site-main,
body.theme-account-page .site-main {
	padding-top: var(--header-height);
	padding-bottom: 4rem;
}
body.theme-cart-page .entry-content,
body.theme-account-page .entry-content,
body.theme-thankyou-page .entry-content {
	max-width: none;
}

/* ---------------------------------------------------------------
 * Thank you page
 * ------------------------------------------------------------ */
body.theme-thankyou-page {
	overflow-x: hidden;
}
body.theme-thankyou-page .woocommerce-order {
	color: hsl(var(--foreground));
	font-family: 'Geist', system-ui, sans-serif;
	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: 'Gambarino', Georgia, serif;
	font-weight: 400;
	letter-spacing: 0;
	color: hsl(var(--foreground));
	font-size: 1.75rem;
	line-height: 1.2;
	padding: 0 0 1rem 0;
}
body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin: 0 0 2rem;
	padding: 1.5rem;
	list-style: none;
	border: 1px solid hsl(var(--border));
	border-radius: 0.5rem;
	background-color: hsl(var(--linen));
}
body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	margin: 0;
	padding: 0;
	font-size: 13px;
	color: hsl(var(--foreground) / 0.7);
	text-transform: uppercase;
	letter-spacing: 0.14em;
}
body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	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;
	border: 1px solid hsl(var(--border));
	border-radius: 0.5rem;
	overflow: hidden;
}
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid hsl(var(--border));
}
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: 2.5rem;
}
body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	border: 0;
	padding: 0;
	font-style: normal;
	font-size: 15px;
	line-height: 1.7;
	color: hsl(var(--foreground) / 0.8);
}
