/* Peanut's Porch — functional and WooCommerce styling.
   Source utilities live in app.css; this file only styles markup that has no
   source equivalent plus stateful behaviour. */

[hidden] {
	display: none !important;
}

/* Clickable cursor ------------------------------------------------------ */
a,
button,
summary,
label,
select,
[role="button"],
[role="tab"],
[role="menuitem"],
[data-cart-open],
[data-cart-close],
[data-open-contact],
[data-contact-close],
.theme-cat-filter,
.theme-accordion-toggle,
.theme-gallery-thumb,
.theme-attr-pill,
.theme-qty-minus,
.theme-qty-plus,
.theme-menu-toggle,
.theme-card-image-link,
.theme-card-title-link,
.add_to_cart_button,
.single_add_to_cart_button,
input[type="submit"],
input[type="button"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[type="image"] {
	cursor: pointer !important;
}
a:disabled,
button:disabled,
input:disabled,
select:disabled,
[aria-disabled="true"],
.disabled {
	cursor: not-allowed !important;
}

/* Admin bar overlap ----------------------------------------------------- */
body.admin-bar .site-header {
	top: 32px !important;
}
body.admin-bar .porch-hero {
	--porch-chrome: calc(8.6rem + 32px);
}
@media (min-width: 1024px) {
	body.admin-bar .theme-product-info {
		top: calc(7rem + 32px);
	}
}
@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px !important;
	}
	body.admin-bar .porch-hero {
		--porch-chrome: calc(8.6rem + 46px);
	}
}
@media screen and (max-width: 600px) {
	body.admin-bar .site-header {
		top: 0 !important;
	}
	body.admin-bar .porch-hero {
		--porch-chrome: 8.6rem;
	}
}

/* Hero buttons match Lovable (no inherited copy shadow) ----------------- */
.hero-copy a,
.hero-copy button {
	text-shadow: none;
}

/* Site identity --------------------------------------------------------- */
.site-logo-img {
	height: var(--logo-height, 80px) !important;
	width: auto !important;
	display: block;
}
.site-logo-text {
	line-height: var(--logo-height, 80px);
	display: block;
}

/* Section decorations --------------------------------------------------- */
.theme-peanut-pattern {
	background-image: url(../images/peanut-pattern-tile.png);
}

/* Cart drawer ----------------------------------------------------------- */
#theme-cart-drawer {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}
body.cart-open #theme-cart-drawer {
	opacity: 1;
	visibility: visible;
}
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: hsl(var(--foreground) / 0.2);
	z-index: 50;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease-out, visibility 0.4s ease-out;
}
body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}
body.cart-open,
body.theme-modal-open {
	overflow: hidden;
}
#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

/* Contact modal --------------------------------------------------------- */
.theme-contact-success.is-visible {
	animation: theme-fade-scale 0.4s ease-out both;
}
.theme-contact-success.is-visible .theme-success-icon {
	animation: theme-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
@keyframes theme-fade-scale {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
@keyframes theme-pop {
	from {
		transform: scale(0);
	}
	to {
		transform: scale(1);
	}
}

/* Product cards --------------------------------------------------------- */
.theme-product-card {
	position: relative;
	height: 100%;
	cursor: pointer;
}
.theme-product-grid__item {
	min-width: 0;
}
.theme-product-card > .theme-card-image-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
}
.theme-product-card .theme-card-title-link {
	position: relative;
	z-index: 2;
	display: block;
}
.theme-product-card .theme-product-card__add,
.theme-product-card .add_to_cart_button {
	z-index: 3;
}
.theme-product-card__media {
	transition: transform 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-product-card:hover .theme-product-card__media {
	transform: translateY(-3px);
}
.theme-product-card__image {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}
.theme-product-card:hover .theme-product-card__image {
	transform: scale(1.04);
}

/* Add to cart states ---------------------------------------------------- */
.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;
}
.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;
}
body a.added_to_cart.wc-forward,
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward {
	display: none !important;
}

/* Single product -------------------------------------------------------- */
.single-product .theme-product-gallery,
.single-product .theme-product-info {
	min-width: 0;
	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 form.variations_form {
	width: 100%;
}
.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;
}
.theme-product-description p {
	margin: 0;
}
.theme-product-description p + p {
	margin-top: 1.625em;
}
.theme-quantity-wrapper .theme-qty-input {
	-moz-appearance: textfield;
	appearance: textfield;
	width: 44px;
	border: 0;
	background: transparent;
	box-shadow: none;
}
.theme-quantity-wrapper .theme-qty-input::-webkit-outer-spin-button,
.theme-quantity-wrapper .theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.theme-quantity-wrapper .theme-qty-input:focus {
	outline: none;
}

/* Variations ------------------------------------------------------------ */
.theme-attr-select-hidden {
	display: none !important;
}
.single-product .variations,
.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.value {
	padding-top: 0;
}
.single-product .variations td.label label {
	font-family: 'Lato', sans-serif;
	font-size: 13px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	display: block;
	margin-bottom: 0.5rem;
}
.single-product .single_variation_wrap {
	margin-top: 1rem;
}
.single-product .woocommerce-variation-price {
	font-family: 'Lato', sans-serif;
	font-size: 1.25rem;
	margin-bottom: 1rem;
}
.theme-attr-pills {
	display: flex;
	flex-wrap: wrap;
}

/* WooCommerce notices --------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	background: hsl(var(--secondary));
	color: hsl(var(--foreground));
	font-family: 'Lato', sans-serif;
	font-size: 0.875rem;
}
.woocommerce-error {
	background: hsl(var(--destructive) / 0.08);
	border-color: hsl(var(--destructive) / 0.4);
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before,
.woocommerce-message::after,
.woocommerce-info::after,
.woocommerce-error::after {
	display: none;
}
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* WooCommerce generic markup ------------------------------------------- */
.woocommerce .button:not(.single_add_to_cart_button):not(.add_to_cart_button),
.woocommerce-page .button:not(.single_add_to_cart_button):not(.add_to_cart_button) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	border: 1px solid hsl(var(--primary));
	border-radius: 0.375rem;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-family: 'Lato', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	height: 2.75rem;
	padding: 0 2rem;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.woocommerce .button:not(.single_add_to_cart_button):not(.add_to_cart_button):hover,
.woocommerce-page .button:not(.single_add_to_cart_button):not(.add_to_cart_button):hover {
	background: hsl(var(--background));
	color: hsl(var(--primary));
}
.woocommerce .price,
.woocommerce-page .price {
	font-family: 'Lato', sans-serif;
	color: hsl(var(--foreground));
}
.woocommerce .price del,
.woocommerce-page .price del {
	color: hsl(var(--muted-foreground));
}
.woocommerce .price ins,
.woocommerce-page .price ins {
	text-decoration: none;
}
.woocommerce table.shop_table,
.woocommerce-page table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-family: 'Lato', sans-serif;
	font-size: 0.875rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce-page table.shop_table th,
.woocommerce-page table.shop_table td {
	padding: 0.75rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-page form .form-row input.input-text,
.woocommerce-page form .form-row textarea,
.woocommerce-page form .form-row select {
	width: 100%;
	background: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	font-family: 'Lato', sans-serif;
	font-size: 1rem;
	color: hsl(var(--foreground));
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
	outline: none;
	box-shadow: 0 0 0 1px hsl(var(--primary));
}
.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
	font-family: 'Lato', sans-serif;
	font-size: 0.875rem;
	font-weight: 500;
	color: hsl(var(--foreground));
}

/* Pagination ------------------------------------------------------------ */
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0 0.75rem;
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	font-family: 'Lato', sans-serif;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: hsl(var(--foreground));
	transition: background-color 0.15s ease, color 0.15s ease;
}
.page-numbers:hover {
	background: hsl(var(--secondary));
}
.page-numbers.current {
	background: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* Screen reader text ---------------------------------------------------- */
.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;
}

/* Page shells ----------------------------------------------------------- */
.page-title {
	font-family: 'Lora', Georgia, serif;
	font-weight: 600;
	line-height: 1.15;
}
.entry-content p {
	margin: 0 0 1rem;
}

/* Checkout -------------------------------------------------------------- */
body.woocommerce-checkout .entry-content {
	max-width: 100%;
}
body.woocommerce-checkout .page-title {
	margin-bottom: 2rem;
}
body.woocommerce-checkout .site-main {
	padding-bottom: 4rem;
}
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;
}
@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout,
	body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap, 2rem);
		align-items: start;
	}
	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notice-banner,
	body.woocommerce-checkout .wc-block-components-sidebar-layout > .wc-block-components-notices {
		grid-column: 1 / -1;
	}
}
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 .components-combobox-control__input {
	width: 100% !important;
	max-width: none !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	color: hsl(var(--foreground)) !important;
	font-family: 'Lato', sans-serif !important;
	font-size: 1rem !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 .components-combobox-control__input:focus {
	outline: none !important;
	box-shadow: 0 0 0 1px hsl(var(--primary)) !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 {
	font-family: 'Lato', sans-serif !important;
	color: hsl(var(--muted-foreground)) !important;
}
body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card)) !important;
	border-radius: 0.375rem;
	padding: 2rem;
}
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: 0.375rem !important;
	font-family: 'Lato', sans-serif !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	min-height: 3rem;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--background)) !important;
	color: hsl(var(--primary)) !important;
}
body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0.375rem !important;
	font-family: 'Lato', sans-serif !important;
}
body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title {
	font-family: 'Lora', Georgia, serif !important;
	font-weight: 600 !important;
	color: hsl(var(--foreground)) !important;
}
body.woocommerce-checkout .wc-block-components-totals-item__label,
body.woocommerce-checkout .wc-block-components-order-summary-item__description {
	font-family: 'Lato', sans-serif !important;
	color: hsl(var(--foreground));
}

/* Cart and account pages ------------------------------------------------ */
.theme-cart-page .entry-content,
.woocommerce-account .entry-content {
	max-width: 100%;
}
.theme-cart-page .wc-block-cart__main,
.theme-cart-page .wc-block-cart__sidebar {
	min-width: 0;
}

/* Order received -------------------------------------------------------- */
body.theme-thankyou-page {
	overflow-x: hidden;
}
body.theme-thankyou-page .woocommerce-order {
	font-family: 'Lato', sans-serif;
}
body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
	font-family: 'Lora', Georgia, serif;
	font-weight: 600;
	padding: 0 0 1rem 0;
	color: hsl(var(--foreground));
}
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: 0.375rem;
	background: hsl(var(--card));
}
body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	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;
	margin-bottom: 2rem;
}
body.theme-thankyou-page .woocommerce-order-details th,
body.theme-thankyou-page .woocommerce-order-details td {
	padding: 0.75rem;
	border-bottom: 1px solid hsl(var(--border));
	text-align: left;
	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;
	font-size: 0.875rem;
	line-height: 1.6;
}
