/* ==========================================================================
   Little Susie's Baked Goods — theme layer.
   Only markup without a source equivalent, plus functional state rules.
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   1. Functional states & animations that the source drives with JS
   -------------------------------------------------------------------------- */

.theme-word {
	display: inline-block;
	opacity: 0;
	transform: translateY(0.6em);
	filter: blur(10px);
	transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
		filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: calc(var(--word-index, 0) * 70ms);
}

.theme-word.is-in {
	opacity: 1;
	transform: translateY(0);
	filter: blur(0);
}

.theme-anim {
	opacity: 0;
	transform: translateY(20px);
	filter: blur(6px);
	animation: theme-anim-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	animation-delay: var(--anim-delay, 0ms);
}

.theme-anim[data-anim="fade-up"] {
	filter: none;
}

@keyframes theme-anim-in {
	to {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
}

/* Header tone helpers */
.site-header {
	transition: background-color 0.5s var(--transition-smooth), border-color 0.5s var(--transition-smooth),
		backdrop-filter 0.5s var(--transition-smooth);
}

.site-header.is-solid {
	background-color: hsl(var(--background) / 0.95);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	border-bottom: 1px solid hsl(var(--border));
}

body.theme-home .site-header:not(.is-solid) [data-nav-link] {
	text-shadow: 0 1px 12px hsl(var(--noir) / 0.7);
}

.site-header.is-menu-open {
	background-color: hsl(var(--background));
	border-bottom: 1px solid hsl(var(--background));
}

.theme-mobile-menu {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.theme-photo-error {
	margin-top: 0.5rem;
	font-family: var(--font-body);
	font-size: 0.75rem;
	line-height: 1.4;
	color: hsl(var(--destructive));
}

@media (min-width: 1024px) {
	.theme-mobile-menu {
		padding-left: 2.5rem;
		padding-right: 2.5rem;
	}
}

.site-logo-img {
	height: var(--logo-height, 64px) !important;
	width: auto !important;
	display: block;
}

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

@media (max-width: 1023px) {
	#site-header .site-logo-img {
		height: calc(var(--logo-height, 64px) * 0.75) !important;
	}
}

@media (max-width: 639px) {
	.theme-modal-content {
		top: 50%;
		bottom: auto;
		left: 1rem;
		right: 1rem;
		width: auto;
		transform: translateY(-50%);
	}
}

/* Cart drawer */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 40;
	background: hsl(var(--foreground) / 0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.7s var(--transition-smooth), visibility 0.7s var(--transition-smooth);
}

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

#theme-cart-drawer {
	visibility: hidden;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s var(--transition-smooth), transform 0.5s var(--transition-smooth),
		visibility 0.5s var(--transition-smooth);
	animation: none;
}

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

body.cart-open,
body.theme-modal-open,
body.theme-lightbox-open {
	overflow: hidden;
}

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

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

/* Hide "View cart" injected by WooCommerce 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;
}

/* Modal */
.theme-modal {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.theme-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.theme-modal-content {
	opacity: 0;
	transition: opacity 0.25s ease;
}

.theme-modal.is-open .theme-modal-content {
	opacity: 1;
}

/* Lightbox */
.theme-lightbox {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.theme-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.theme-lightbox img {
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-lightbox.is-open img {
	opacity: 1;
	transform: scale(1);
}

/* FAQ accordion */
.theme-faq-panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.4s cubic-bezier(0.25, 0.4, 0.25, 1);
}

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

.theme-faq-panel > div {
	min-height: 0;
}

/* Gallery */
.theme-gallery-hidden {
	display: none !important;
}

.theme-gallery-more-wrap {
	display: none;
}

@media (max-width: 639px) {
	.theme-gallery-more-wrap {
		display: block;
	}
}

/* Shop filtering */
.theme-filtered-out {
	display: none !important;
}

.theme-product-card-wrap {
	height: 100%;
}

.theme-product-card-wrap .theme-product-card {
	transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth),
		border-color 0.5s var(--transition-smooth);
}

.theme-product-card-wrap:hover .theme-product-card {
	transform: translateY(-6px);
	box-shadow: var(--shadow-soft);
}

.theme-product-card-wrap .theme-product-card img {
	transition: transform 0.8s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card-wrap:hover .theme-product-card img {
	transform: scale(1.05);
}

.theme-product-card {
	position: relative;
}

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

.theme-product-card > .theme-card-link + * {
	position: relative;
}

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

/* Add-to-cart loading state */
.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;
}

/* --------------------------------------------------------------------------
   2. Customizer / no-JS reveal fallbacks
   -------------------------------------------------------------------------- */

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

body.is-customizer .theme-anim {
	animation: none !important;
	opacity: 1 !important;
	transform: none !important;
	filter: none !important;
}

@media (scripting: none) {
	.reveal,
	.theme-word {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.theme-word,
	.theme-anim,
	.theme-product-card,
	.theme-product-card img {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
}

/* --------------------------------------------------------------------------
   3. Single product
   -------------------------------------------------------------------------- */

.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 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 form.variations_form .variations {
	display: none;
}

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

.single-product .theme-qty-input {
	width: 3rem;
	border: 0;
	background: transparent;
	-moz-appearance: textfield;
}

.single-product .theme-qty-input::-webkit-outer-spin-button,
.single-product .theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

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

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

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

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

/* --------------------------------------------------------------------------
   4. WordPress / WooCommerce generated markup
   -------------------------------------------------------------------------- */

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

.page-title {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.01em;
	font-size: 2.25rem;
	line-height: 1.1;
	margin: 0 0 2rem;
}

@media (min-width: 768px) {
	.page-title {
		font-size: 3rem;
	}
}

.entry-content {
	color: hsl(var(--foreground));
}

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

.woocommerce-error {
	border-color: hsl(var(--destructive));
	color: hsl(var(--destructive));
}

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

.woocommerce-message .button,
.woocommerce-info .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: 0.75rem;
	padding: 0.5rem 1rem;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.woocommerce-pagination ul {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.woocommerce-pagination a,
.woocommerce-pagination span {
	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));
	font-family: var(--font-body);
	font-size: 0.8125rem;
	color: hsl(var(--foreground));
}

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

.woocommerce-breadcrumb {
	font-family: var(--font-body);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	margin-bottom: 1.5rem;
}

/* Prices */
.woocommerce-Price-amount,
.price {
	font-family: var(--font-body);
	color: inherit;
}

.price del {
	color: hsl(var(--muted-foreground));
	font-weight: 300;
}

/* WooCommerce forms inside account / cart pages */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-account input[type="text"],
.woocommerce-account input[type="email"],
.woocommerce-account input[type="password"] {
	width: 100%;
	padding: 0.875rem 1rem;
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	color: hsl(var(--foreground));
	font-family: var(--font-body);
	font-size: 0.875rem;
}

.woocommerce form .form-row label {
	font-family: var(--font-body);
	font-size: 0.6875rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	margin-bottom: 0.5rem;
}

.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	font-family: var(--font-body);
}

/* Cart block */
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wp-block-woocommerce-cart {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	min-width: 0;
}

body.woocommerce-cart .wc-block-components-sidebar {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	padding: 1.5rem;
}

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

.woocommerce-account .woocommerce-MyAccount-navigation a {
	display: inline-flex;
	padding: 0.5rem 1rem;
	border: 1px solid hsl(var(--border));
	font-family: var(--font-body);
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: hsl(var(--foreground) / 0.75);
}

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

/* --------------------------------------------------------------------------
   5. Checkout block
   -------------------------------------------------------------------------- */

body.woocommerce-checkout .site-main {
	padding-top: var(--header-height, 96px);
	padding-bottom: 4rem;
}

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

body.woocommerce-checkout .wc-block-checkout {
	display: block;
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

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-sidebar-layout {
	display: flex;
	flex-direction: column;
	gap: var(--checkout-gap, 2rem);
}

@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__sidebar {
	background-color: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 2rem;
	order: 2;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout__sidebar {
		order: 1;
	}
}

body.woocommerce-checkout .wc-block-checkout__main {
	order: 1;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-checkout__main {
		order: 0;
	}
}

body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-checkout__sidebar h2,
body.woocommerce-checkout .wc-block-components-title {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: -0.01em;
	font-size: 1.5rem;
	line-height: 1.2;
	margin-bottom: 1rem;
}

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;
	font-family: var(--font-body) !important;
	font-size: 0.875rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0 !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,
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 label,
body.woocommerce-checkout .wc-block-components-select label {
	font-family: var(--font-body) !important;
	color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkbox label,
body.woocommerce-checkout .wc-block-components-radio-control__label {
	font-family: var(--font-body) !important;
	color: hsl(var(--foreground)) !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: 0 !important;
	font-family: var(--font-body) !important;
	font-size: 0.8125rem !important;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 500;
	min-height: 3.5rem;
}

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: 0;
	font-family: var(--font-body);
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-cart-items__row {
	border-color: hsl(var(--border));
}

body.woocommerce-checkout .wc-block-components-totals-item,
body.woocommerce-checkout .wc-block-components-totals-footer-item {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	font-family: var(--font-body);
	color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   6. 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-thankyou-order-received {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.75rem;
	line-height: 1.2;
	color: hsl(var(--foreground));
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
	background: none;
}

@media (min-width: 768px) {
	body.theme-thankyou-page .woocommerce-thankyou-order-received {
		font-size: 2.25rem;
	}
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.5rem;
	line-height: 1.2;
	padding: 0 0 1rem;
	margin: 0 0 1.5rem;
	border-bottom: 1px solid hsl(var(--border));
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	list-style: none;
	padding: 1.5rem;
	margin: 0 0 2rem;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
}

@media (min-width: 640px) {
	body.theme-thankyou-page .woocommerce-order-overview {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	body.theme-thankyou-page .woocommerce-order-overview {
		grid-template-columns: repeat(4, 1fr);
	}
}

body.theme-thankyou-page .woocommerce-order-overview li {
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--font-display);
	font-size: 1rem;
	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;
	font-family: var(--font-body);
}

body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.85rem 0;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
	font-size: 0.875rem;
	vertical-align: top;
}

body.theme-thankyou-page .woocommerce-order-details tfoot th {
	text-align: left;
	font-weight: 500;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-details tfoot td {
	text-align: right;
	font-weight: 500;
}

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;
	font-family: var(--font-body);
	line-height: 1.8;
}

/* --------------------------------------------------------------------------
   7. Misc
   -------------------------------------------------------------------------- */

.theme-modal-overlay {
	animation: none;
}

.theme-gallery-more-wrap button {
	font-family: var(--font-body);
}

@media (max-width: 1023px) {
	:root {
		--header-height: 80px;
	}
}

/* Custom order step transition */
.theme-co-step.theme-step-anim {
	animation: themeStepIn 0.2s ease-out;
}

@keyframes themeStepIn {
	from {
		opacity: 0;
		transform: translateX(calc(var(--step-dir, 1) * 24px));
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}
