/*
 * Functional and WordPress-generated-markup styles.
 * All design-system styling comes from app.css (the compiled source
 * stylesheet). Nothing here restyles an element that carries source classes.
 */

/* ------------------------------------------------------------------ Shell */
:root {
	--theme-header-height: 96px;
	--theme-admin-bar-offset: 0px;
	--theme-checkout-gap: 2rem;
	/* Aliases of the source tokens for WooCommerce-generated markup. */
	--color-primary: hsl(var(--primary));
	--color-background: hsl(var(--background));
	--color-foreground: hsl(var(--foreground));
	--color-surface: hsl(var(--cream-2));
	--color-border-token: hsl(var(--border));
	--color-muted: hsl(var(--muted-foreground));
	--card-radius: var(--radius);
	--section-padding: 2rem;
	--btn-radius: 9999px;
}

[hidden] {
	display: none !important;
}

/* Text hooks inherit the typography of the element they sit inside, so the
   wrapper never changes the rendered size of copy written as child markup
   (the source renders this copy as a bare text node). */
.theme-text {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	font-family: inherit;
	color: inherit;
}

body.theme-modal-open {
	overflow: hidden;
}

/* The source renders the logo at h-12/w-32 (mobile) and h-14/w-40 (desktop);
   the height control scales both dimensions so the box keeps that ratio. */
.site-logo-img {
	height: var(--logo-height) !important;
	width: calc(var(--logo-height) * 2.667) !important;
	display: block;
	object-fit: contain;
}

.site-logo-img-footer {
	height: calc(var(--logo-height) + 8px) !important;
	width: calc((var(--logo-height) + 8px) * 2.286) !important;
	display: block;
	object-fit: contain;
}

@media (min-width: 768px) {
	.site-logo-img {
		height: calc(var(--logo-height) + 8px) !important;
		width: calc((var(--logo-height) + 8px) * 2.857) !important;
	}
}

.site-logo-text,
.site-logo-text-footer {
	line-height: var(--logo-height);
	display: block;
}

.screen-reader-text,
.skip-link {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

#theme-content:focus {
	outline: none;
}

/* Logged-in users: keep sticky header and drawer below the WP admin bar. */
@media screen and (min-width: 783px) {
	body.admin-bar {
		--theme-admin-bar-offset: 32px;
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--theme-admin-bar-offset: 46px;
	}
}

body.admin-bar .site-header {
	top: var(--theme-admin-bar-offset);
}

body.admin-bar #theme-cart-drawer {
	top: var(--theme-admin-bar-offset);
	height: calc(100% - var(--theme-admin-bar-offset));
}

body.admin-bar #theme-cart-overlay {
	top: var(--theme-admin-bar-offset);
}

/* Pointer on interactive controls site-wide. */
button:not(:disabled),
a[href],
summary,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="reset"],
select:not(:disabled),
label[for],
[data-cart-open],
[data-cart-close],
[data-contact-modal],
[data-menu-toggle],
[data-back-to-top],
[data-back-to-top-float],
[data-announce-dismiss],
[data-section-anchor] {
	cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
.disabled {
	cursor: not-allowed;
}

/* ------------------------------------------------------- Announcement bar */
#theme-announcement {
	position: relative;
}

/* ------------------------------------------------------------ Mobile menu */
.theme-nav-list-mobile a {
	display: flex;
	width: 100%;
}

.theme-nav-list a {
	background: transparent;
	border: 0;
}

/* ------------------------------------------------------------------ Modal */
[data-contact-overlay] {
	animation: theme-fade-in 0.6s var(--transition-smooth) forwards;
}

[data-contact-dialog] {
	animation: theme-modal-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes theme-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes theme-modal-in {
	from {
		opacity: 0;
		transform: translate(-50%, -48%) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

/* --------------------------------------------------------- Cart drawer */
/* The drawer node is the source panel itself: fixed, full-height, 28rem. */
#theme-cart-drawer {
	position: fixed;
	right: 0;
	top: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	z-index: 60;
	background-color: hsl(var(--background));
	box-shadow: var(--shadow-elevated);
	transform: translateX(100%);
	transition: transform 300ms var(--transition-smooth);
	visibility: hidden;
	display: block;
}

#theme-cart-drawer > div {
	background-color: hsl(var(--background));
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
	visibility: visible;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 55;
	background-color: hsl(var(--foreground) / 0.4);
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms var(--transition-smooth), visibility 300ms;
	pointer-events: none;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

#theme-cart-drawer .theme-cart-count:empty {
	display: none;
}

.theme-cart-count:empty {
	display: none;
}

/* WooCommerce's "View cart" link is not part of the design. */
body a.added_to_cart.wc-forward {
	display: none !important;
}

/* -------------------------------------------------- Add to cart buttons */
.ajax_add_to_cart.theme-btn-loading {
	opacity: 0.6 !important;
	pointer-events: none !important;
	cursor: wait !important;
}

.ajax_add_to_cart.loading::after {
	display: none !important;
}

.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,
.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;
}

/* ------------------------------------------------- Product card internals */
.theme-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.theme-product-card .theme-product-card__image-wrapper img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.theme-product-grid {
	align-items: stretch;
}

.theme-product-grid > * {
	min-width: 0;
}

/* ---------------------------------------------------------- Product page */
.theme-quantity-wrapper input.theme-qty-input {
	border: 0;
	background: transparent;
	width: 44px;
	min-width: 44px;
	height: 36px;
	padding: 8px 16px;
	font-family: var(--font-body);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.theme-quantity-wrapper input.theme-qty-input::-webkit-outer-spin-button,
.theme-quantity-wrapper input.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.theme-attr-select-hidden {
	display: none !important;
}

.theme-quantity-wrapper .theme-qty-minus,
.theme-quantity-wrapper .theme-qty-plus {
	width: 42px;
	height: 44px;
	padding: 8px 12px;
	justify-content: center;
}

.theme-quantity-wrapper .theme-qty-minus svg,
.theme-quantity-wrapper .theme-qty-plus svg {
	width: 14px;
	height: 14px;
}

.single-product .variations {
	display: none;
}

.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: nowrap;
	gap: 0.75rem;
}

@media (max-width: 639px) {
	.single-product .theme-add-to-cart-area {
		flex-direction: column;
		flex-wrap: wrap;
	}
}

.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 #product-main-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* -------------------------------------------------------------- Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info,
.woocommerce-notice {
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	background-color: hsl(var(--cream-1));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 15px;
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	list-style: none;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	display: none;
}

.woocommerce-error {
	border-color: hsl(var(--gothic));
	color: hsl(var(--gothic));
}

.woocommerce-error li {
	margin: 0;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* ------------------------------------------------------- Shop pagination */
.woocommerce-pagination ul {
	display: flex;
	gap: 0.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li 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: calc(var(--radius) - 2px);
	font-family: var(--font-body);
	font-size: 14px;
	color: hsl(var(--foreground));
	text-decoration: none;
}

.woocommerce-pagination ul li span.current {
	background-color: hsl(var(--dark-1));
	color: hsl(var(--cream-1));
	border-color: hsl(var(--dark-1));
}

/* --------------------------------------------------- WordPress content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0;
}

.entry-content p,
.entry-content li {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
}

.entry-content a {
	color: hsl(var(--caramel-deep));
	text-decoration: underline;
	text-underline-offset: 4px;
}

.page-title {
	font-family: var(--font-display);
	font-weight: 600;
	color: hsl(var(--dark-1));
	letter-spacing: 0;
}

/* ------------------------------------------------------ Checkout (Blocks) */
body.woocommerce-checkout .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

@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(--theme-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-components-notice-banner {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--cream-2));
	border-radius: var(--radius);
	padding: var(--section-padding);
	border: 1px solid hsl(var(--border));
}

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,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	font-size: 16px !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--cream-1)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: calc(var(--radius) - 2px) !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 {
	outline: none !important;
	box-shadow: 0 0 0 2px hsl(var(--caramel) / 0.5) !important;
	border-color: hsl(var(--caramel)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--dark-1)) !important;
	color: hsl(var(--cream-1)) !important;
	border: 1px solid hsl(var(--dark-1)) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.22em !important;
	text-transform: uppercase !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--caramel)) !important;
	color: hsl(var(--dark-1)) !important;
	border-color: hsl(var(--caramel)) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar h2,
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main h2 {
	font-family: var(--font-display) !important;
	font-weight: 600 !important;
	color: hsl(var(--dark-1)) !important;
	letter-spacing: 0 !important;
}

body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-components-product-name {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkbox label {
	font-family: var(--font-body) !important;
}

/* Cart, account and thank-you pages share the checkout container width. */
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main,
body.theme-thankyou-page .site-main {
	padding-top: 1rem;
}

body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content,
body.theme-thankyou-page .entry-content {
	max-width: 100%;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-account .woocommerce {
	font-family: var(--font-body);
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .checkout-button,
body.woocommerce-account .woocommerce-Button,
body.woocommerce-account button.button {
	background-color: hsl(var(--dark-1)) !important;
	color: hsl(var(--cream-1)) !important;
	border: 1px solid hsl(var(--dark-1)) !important;
	border-radius: var(--btn-radius) !important;
	font-family: var(--font-body) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.2em !important;
	text-transform: uppercase !important;
	padding: 0.9rem 2rem !important;
	text-decoration: none !important;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .checkout-button:hover,
body.woocommerce-account .woocommerce-Button:hover {
	background-color: hsl(var(--caramel)) !important;
	color: hsl(var(--dark-1)) !important;
	border-color: hsl(var(--caramel)) !important;
}

/* ---------------------------------------------------- Thank you page */
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-weight: 600;
	color: hsl(var(--dark-1));
	padding: 0 0 1rem 0;
	font-size: 1.5rem;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.5rem;
	background-color: hsl(var(--cream-2));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 14px;
	color: hsl(var(--muted-foreground));
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	color: hsl(var(--dark-1));
	font-size: 16px;
	letter-spacing: 0;
	text-transform: none;
}

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(--border));
	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;
	margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	font-style: normal;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1.25rem;
	background-color: hsl(var(--cream-1));
}

/* -------------------------------------------------------- Cart blocks */
body.woocommerce-cart .wc-block-cart-items {
	font-family: var(--font-body);
}

body.woocommerce-cart .wc-block-cart__submit {
	margin-top: 1.5rem;
}

/* ---------------------------------------------- My Account forms */
body.woocommerce-account .woocommerce form.login,
body.woocommerce-account .woocommerce form.register,
body.woocommerce-account .woocommerce form.edit-account {
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 2rem;
	background-color: hsl(var(--cream-1));
	font-family: var(--font-body);
}

body.woocommerce-account .woocommerce form p label {
	font-family: var(--font-body);
	font-size: 14px;
	font-weight: 500;
	color: hsl(var(--dark-1));
}

body.woocommerce-account .woocommerce form input.input-text,
body.woocommerce-account .woocommerce form input[type="text"],
body.woocommerce-account .woocommerce form input[type="email"],
body.woocommerce-account .woocommerce form input[type="password"],
body.woocommerce-account .woocommerce form textarea {
	width: 100%;
	background-color: hsl(var(--cream-2));
	border: 1px solid hsl(var(--border));
	border-radius: calc(var(--radius) - 2px);
	font-family: var(--font-body);
	font-size: 16px;
	color: hsl(var(--foreground));
	padding: 0.75rem 1rem;
}

/* ------------------------------------------ Customizer preview safety */
body.is-customizer [data-cs-fade] {
	opacity: 1 !important;
	transform: none !important;
	transition: none !important;
}

/* ------------------------------------------------ Reduced motion */
@media (prefers-reduced-motion: reduce) {
	#theme-cart-drawer,
	#theme-cart-overlay {
		transition: none;
	}

	[data-contact-dialog],
	[data-contact-overlay] {
		animation: none;
	}
}

/* No-JS fallback: reveal content must never stay hidden. */
html.no-js [data-cs-fade] {
	opacity: 1 !important;
	transform: none !important;
}
