/*
 * Theme styles for WordPress and WooCommerce markup that has no equivalent
 * in the compiled source stylesheet. Source classes keep app.css.
 */

body.theme-dialog-open {
	overflow: hidden;
}

/* Logged-in toolbar: keep sticky header below the admin bar in preview and front end. */
body.admin-bar [data-theme-header] {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar [data-theme-header] {
		top: 46px;
	}
}

body.admin-bar {
	--wp-admin--admin-bar--height: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar {
		--wp-admin--admin-bar--height: 46px;
	}
}

html {
	scroll-padding-top: calc(80px + var(--wp-admin--admin-bar--height, 0px));
}

body.admin-bar .pulp-hero {
	min-height: calc(100svh - 81px - var(--wp-admin--admin-bar--height, 32px));
}

/* Clickable affordance for theme-specific controls not covered by the compiled bundle. */
a[href]:not([href=""]),
button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
summary,
.theme-cart-control,
.theme-cart-remove,
.theme-product-thumb,
[data-artwork-open],
[data-faq-toggle],
[data-dialog-close],
[data-menu-toggle],
[data-cart-open] {
	cursor: pointer;
}

/* WordPress helpers */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.page-title {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.875rem;
	line-height: 1.05;
	margin: 0 0 2rem;
}

@media (min-width: 768px) {
	.page-title {
		font-size: 2.25rem;
	}
}

@media (min-width: 1024px) {
	.page-title {
		font-size: 3rem;
	}
}

.theme-page-main {
	padding-top: 2rem;
	padding-bottom: 4rem;
}

.theme-page-content > * + * {
	margin-top: 1.5rem;
}

/* ---------------------------------------------------------------- Woo shop */
.theme-shop-intro {
	max-width: 42rem;
}

.theme-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	align-items: stretch;
	gap: 2rem;
}

.theme-product-grid--three {
	grid-template-columns: 1fr;
	gap: 2rem;
}

@media (min-width: 768px) {
	.theme-product-grid--three {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.theme-product-card-wrap {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}

.theme-product-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	border-top: 1px solid hsl(var(--border));
	padding-top: 1.5rem;
}

.theme-product-card__image-wrapper {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: hsl(var(--muted));
	margin-bottom: 1.25rem;
}

.theme-product-card__image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.theme-product-card__image-link {
	display: block;
	overflow: hidden;
}

.theme-product-card__badge {
	position: absolute;
	bottom: 0.75rem;
	left: 0.75rem;
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	border: 1px solid hsl(var(--border));
	padding: 0.35rem 0.6rem;
	font-family: var(--font-display);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.theme-product-card__info {
	flex: 1;
	min-width: 0;
}

.theme-product-card__title {
	font-family: var(--font-display);
	font-size: 1.35rem;
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.15;
	margin: 0 0 0.5rem;
}

.theme-product-card__title a {
	color: inherit;
}

.theme-product-card__price {
	font-family: var(--font-display);
	font-size: 1.1rem;
	color: hsl(var(--primary));
}

.theme-product-card__price .price,
.theme-product-card__price .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
}

/* Single product */
.single-product .theme-product-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
}

@media (min-width: 1024px) {
	.single-product .theme-product-layout {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
}

.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-gallery {
	background: hsl(var(--muted));
	border: 1px solid hsl(var(--border));
}

.single-product .theme-product-main-image {
	position: relative;
	overflow: hidden;
}

.single-product .theme-product-main-image img {
	display: block;
	width: 100%;
	height: auto;
}

.single-product .theme-product-thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	max-width: 100%;
	margin-top: 1rem;
}

.single-product .theme-product-thumb {
	width: 76px;
	height: 95px;
	padding: 0;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--background));
	overflow: hidden;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.single-product .theme-product-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.single-product .theme-product-thumb.is-active {
	border-color: hsl(var(--primary));
	opacity: 1;
}

.single-product .theme-product-category {
	font-family: var(--font-display);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
	margin-bottom: 0.75rem;
}

.single-product .theme-product-category a {
	color: inherit;
}

.single-product .theme-product-title {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 2rem;
	line-height: 1.05;
	margin: 0 0 1rem;
}

.single-product .theme-product-price {
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: hsl(var(--primary));
	margin-bottom: 1rem;
}

.single-product .theme-product-stock {
	font-family: var(--font-display);
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: hsl(var(--primary));
	margin-bottom: 1.5rem;
}

.single-product .theme-product-stock.is-out {
	color: hsl(var(--muted-foreground));
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
	color: hsl(var(--muted-foreground));
	line-height: 1.7;
}

.single-product .theme-product-description {
	border-top: 1px solid hsl(var(--border));
	margin-top: 2.5rem;
	padding-top: 2rem;
}

.single-product .theme-product-description h2 {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.5rem;
	line-height: 1.1;
	margin: 0 0 1rem;
}

.single-product .theme-product-description p,
.single-product .theme-product-description li {
	color: hsl(var(--muted-foreground));
	line-height: 1.7;
}

.single-product .theme-product-description ul {
	list-style: disc;
	padding-left: 1.25rem;
	margin: 1rem 0;
}

.single-product .theme-related-products {
	margin-top: clamp(5rem, 10vw, 8rem);
	padding-top: clamp(2.5rem, 5vw, 4rem);
}

.single-product .theme-add-to-cart-area {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.single-product .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 160px;
}

.theme-quantity-wrapper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid hsl(var(--input));
	background: hsl(var(--background));
}

.theme-qty-minus,
.theme-qty-plus {
	width: 2.75rem;
	border: 0;
	background: transparent;
	color: hsl(var(--foreground));
	font-family: var(--font-display);
	font-size: 1.1rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.theme-qty-minus:hover,
.theme-qty-plus:hover {
	color: hsl(var(--primary));
}

.theme-qty-input {
	width: 3.25rem;
	border: 0;
	border-left: 1px solid hsl(var(--input));
	border-right: 1px solid hsl(var(--input));
	background: transparent;
	color: hsl(var(--foreground));
	text-align: center;
	font-family: var(--font-display);
	font-size: 1rem;
	-moz-appearance: textfield;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.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;
}

.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 .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;
}

/* Variations */
.single-product .variations.shop_attributes tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
	display: block;
	width: 100%;
}

.single-product .variations tbody td.label {
	padding: 0 0 0.35rem;
}

.single-product .variations tbody td.value {
	padding: 0 0 1.25rem;
}

.single-product .variations td.label label {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	color: hsl(var(--muted-foreground));
}

.single-product .variations select {
	width: 100%;
	background: hsl(var(--background));
	border: 1px solid hsl(var(--input));
	color: hsl(var(--foreground));
	padding: 0.75rem;
	font-family: var(--font-body);
	font-size: 1rem;
}

.theme-attr-select-hidden {
	display: none !important;
}

.theme-attr-group {
	margin-bottom: 1.5rem;
}

.theme-attr-heading {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	color: hsl(var(--muted-foreground));
	margin-bottom: 0.6rem;
}

.theme-attr-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.theme-attr-option {
	border: 1px solid hsl(var(--input));
	background: hsl(var(--background));
	color: hsl(var(--foreground));
	font-family: var(--font-display);
	font-size: 0.85rem;
	text-transform: uppercase;
	padding: 0.5rem 0.85rem;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-attr-option.is-active {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
}

.single-product .reset_variations {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: hsl(var(--muted-foreground));
}

.woocommerce-variation-price {
	font-family: var(--font-display);
	color: hsl(var(--primary));
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

/* Notices */
.woocommerce-notices-wrapper {
	margin: 1.5rem 0;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	padding: 1rem 1.25rem;
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.6;
}

.woocommerce-error {
	border-color: hsl(var(--destructive));
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
	color: hsl(var(--primary));
	text-decoration: underline;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* ------------------------------------------------------------ Cart drawer */
#theme-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 92vw);
	z-index: 70;
	background: hsl(var(--background));
	border-left: 1px solid hsl(var(--border));
	transform: translateX(100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	padding: 1.75rem;
	color: hsl(var(--foreground));
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: rgba(0, 0, 0, 0.7);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

.theme-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid hsl(var(--border));
}

.theme-cart-header h2 {
	font-family: var(--font-display);
	font-weight: 700;
	text-transform: uppercase;
	font-size: 1.5rem;
	line-height: 1;
	margin: 0;
}

.theme-cart-close {
	border: 1px solid hsl(var(--border));
	background: transparent;
	color: hsl(var(--foreground));
	width: 2.5rem;
	height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.theme-cart-close:hover {
	color: hsl(var(--primary));
}

.theme-cart-items {
	list-style: none;
	margin: 1.25rem 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.theme-cart-item {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 1rem;
	align-items: start;
	border-bottom: 1px solid hsl(var(--border));
	padding-bottom: 1.25rem;
}

.theme-cart-item img {
	width: 72px;
	height: 90px;
	object-fit: cover;
	display: block;
}

.theme-cart-item__name {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
}

.theme-cart-item__meta {
	font-size: 0.8rem;
	color: hsl(var(--muted-foreground));
	margin: 0.25rem 0 0;
	padding: 0;
	list-style: none;
}

.theme-cart-item__price {
	color: hsl(var(--primary));
	font-family: var(--font-display);
	margin-top: 0.4rem;
}

.theme-cart-item__controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.6rem;
}

.theme-cart-qty {
	min-width: 1.75rem;
	text-align: center;
	font-family: var(--font-display);
}

.theme-cart-control {
	border: 1px solid hsl(var(--input));
	background: transparent;
	color: hsl(var(--foreground));
	width: 1.75rem;
	height: 1.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 0.9rem;
}

.theme-cart-control:hover {
	color: hsl(var(--primary));
	border-color: hsl(var(--primary));
}

.theme-cart-remove {
	margin-left: auto;
	background: none;
	border: 0;
	color: hsl(var(--muted-foreground));
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	cursor: pointer;
	text-decoration: underline;
}

.theme-cart-remove:hover {
	color: hsl(var(--primary));
}

.theme-cart-footer {
	margin-top: auto;
	padding-top: 1.25rem;
	border-top: 1px solid hsl(var(--border));
}

.theme-cart-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 1rem;
}

.theme-cart-subtotal strong {
	color: hsl(var(--primary));
	font-size: 1.15rem;
}

.theme-cart-empty {
	color: hsl(var(--muted-foreground));
	line-height: 1.6;
	margin: 2rem 0;
}

/* ---------------------------------------------------------------- Checkout */
body.woocommerce-checkout .site-main,
body.woocommerce-cart .site-main,
body.woocommerce-account .site-main {
	padding-top: 2rem;
	padding-bottom: 4rem;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
	max-width: none;
}

@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: 2rem;
		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-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;
	background: hsl(var(--background)) !important;
	color: hsl(var(--foreground)) !important;
	border: 1px solid hsl(var(--input)) !important;
	border-radius: 0 !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background: hsl(var(--card));
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1.75rem;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: var(--radius) !important;
	font-family: var(--font-display) !important;
	text-transform: uppercase;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border: 1px solid hsl(var(--border));
	background: hsl(var(--card));
	color: hsl(var(--foreground));
	border-radius: var(--radius);
}

body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-checkout__sidebar h2 {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0;
}

body.woocommerce-checkout .wc-block-cart-items__header,
body.woocommerce-checkout .wc-block-components-order-summary-item {
	color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
	color: #000;
}

/* Classic checkout fallback (never used by the theme templates) */
body.woocommerce-checkout .woocommerce-checkout .form-row .input-text,
body.woocommerce-checkout .woocommerce-checkout .form-row select {
	background: hsl(var(--background));
	border: 1px solid hsl(var(--input));
	color: hsl(var(--foreground));
	border-radius: 0;
}

/* Thank you page */
body.theme-thankyou-page {
	overflow-x: hidden;
}

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: 700;
	text-transform: uppercase;
	font-size: 1.5rem;
	line-height: 1.1;
	padding: 0 0 1rem;
}

body.theme-thankyou-page .woocommerce-order {
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1.25rem;
	padding: 1.5rem 0;
	margin: 0 0 2rem;
	border-top: 1px solid hsl(var(--border));
	border-bottom: 1px solid hsl(var(--border));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	color: hsl(var(--foreground));
	font-size: 1rem;
	margin-top: 0.35rem;
}

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 {
	border-bottom: 1px solid hsl(var(--border));
	padding: 0.75rem 0.5rem;
	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;
	margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
	max-width: 480px;
	overflow-wrap: break-word;
	color: hsl(var(--muted-foreground));
	font-style: normal;
	line-height: 1.7;
}

/* Cart / account content width */
body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content,
body.woocommerce-checkout .entry-content {
	max-width: 100%;
}

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	color: hsl(var(--foreground));
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	border-bottom: 1px solid hsl(var(--border));
	padding: 0.85rem 0.5rem;
	text-align: left;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-family: var(--font-display);
	text-transform: uppercase;
	font-size: 0.875rem;
	padding: 0.75rem 1.5rem;
	border: 0;
	border-radius: var(--radius);
	cursor: pointer;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: hsl(var(--primary) / 0.9);
}

/* Footer navigation: one typographic scale for every link (matches Lovable nav-link). */
.theme-footer-nav__link {
	display: block;
	font-family: var(--font-display);
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0;
	color: hsl(var(--foreground));
}

.theme-cart-count:empty {
	display: none;
}

.theme-cart-count {
	font-family: var(--font-display);
	font-size: 0.8rem;
	line-height: 1;
	margin-left: 0.25rem;
}

.single-product .variations td.label {
	display: none;
}

.theme-attr-pills {
	margin: 1.25rem 0;
}

[data-mobile-nav][hidden],
[data-menu-icon-open][hidden],
[data-menu-icon-close][hidden] {
	display: none !important;
}
