/* Jeffrey Dicker Photography — theme styles for generated markup only. */

[hidden] {
	display: none !important;
}

/* Logged-in admin bar: keep fixed header below the toolbar in preview and front-end. */
.admin-bar #site-header.site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	.admin-bar #site-header.site-header {
		top: 46px;
	}
}

/* Pointer cursor on interactive controls. */
a[href],
button:not(:disabled),
input[type="submit"],
input[type="button"],
input[type="reset"],
label[for],
select,
summary,
.theme-cat-filter,
.theme-anchor-link,
.theme-mobile-nav-link,
.theme-nav-icon,
.theme-product-thumb,
[data-cart-open],
[data-cart-close],
[data-search-toggle],
[data-mobile-toggle],
[role="button"] {
	cursor: pointer;
}

/* Header logo keeps one height across every page and context. */
.theme-product-card-wrap.theme-reveal-fast {
	transition-duration: 180ms !important;
}

/* Product / shop imagery: full photo inside stable frames (not hero, about, or owner banners). */
.single-product .theme-product-gallery,
.theme-product-card-wrap a > div.relative.overflow-hidden,
.theme-product-thumb,
.theme-cart-item > a:first-child,
#theme-cart-page ul li > a:first-child {
	display: flex;
	align-items: center;
	justify-content: center;
}

.single-product .theme-product-gallery img,
.theme-product-card-wrap img,
.theme-product-thumb img,
.theme-related-card > div,
.theme-related-card img,
.theme-cart-item img,
#theme-cart-page .attachment-woocommerce_thumbnail,
body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
	object-fit: contain;
}

.theme-related-card > div {
	display: flex;
	align-items: center;
	justify-content: center;
}

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

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

@media (max-width: 639px) {
	.site-logo-img {
		height: calc(var(--logo-height, 82px) - 10px) !important;
	}
}

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

/* Scroll reveals never stay hidden inside the Customizer preview. */
body.is-customizer .theme-reveal,
body.is-customizer .theme-product-card-wrap,
body.is-customizer .reveal-item,
body.is-customizer .scale-in-item {
	opacity: 1 !important;
	transform: none !important;
}

/* Fallback for browsers without IntersectionObserver. */
.no-intersectionobserver .theme-reveal,
.no-intersectionobserver .theme-product-card-wrap {
	opacity: 1 !important;
	transform: none !important;
}

/* ------------------------------------------------------------------ *
 * Side cart drawer (markup with no source equivalent)
 * ------------------------------------------------------------------ */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 60;
	background: hsl(var(--espresso) / 0.55);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}

#theme-cart-drawer.theme-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 70;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 27rem;
	height: 100%;
	background: hsl(var(--ivory));
	transform: translateX(100%);
	transition: transform 0.4s ease;
	visibility: hidden;
}

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

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

#theme-cart-drawer .theme-cart-drawer__items {
	min-height: 0;
}

/* ------------------------------------------------------------------ *
 * WooCommerce generated markup
 * ------------------------------------------------------------------ */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	background: hsl(var(--ivory));
	border: 1px solid hsl(var(--stone) / 0.4);
	border-left: 3px solid hsl(var(--gold));
	color: hsl(var(--foreground));
	font-family: Inter, system-ui, sans-serif;
	font-size: 0.875rem;
	padding: 0.875rem 1rem;
	margin-bottom: 1.25rem;
}

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

.single-product .woocommerce-message,
.single-product .woocommerce-info,
#theme-cart-drawer .woocommerce-message,
#theme-cart-drawer .woocommerce-info {
	display: none;
}

a.added_to_cart.wc-forward,
.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;
}

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

/* Variable product attributes. */
.theme-attr-select-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Variable attribute pills — match Lovable ProductDetail (flex-wrap row, square borders). */
.theme-variable-product-form .theme-variation-pills {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.5rem;
	width: 100%;
}

.theme-variable-product-form .theme-variation-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 auto;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	font-family: Inter, system-ui, sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-align: center;
	border-radius: 0;
	border: 1px solid hsl(var(--stone) / 0.4);
	color: hsl(var(--foreground) / 0.7);
	background: transparent;
	transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.theme-variable-product-form .theme-variation-pill:hover:not(:disabled) {
	border-color: hsl(var(--gold));
	color: hsl(var(--gold));
}

.theme-variable-product-form .theme-variation-pill.is-selected {
	background: hsl(var(--espresso));
	border-color: hsl(var(--espresso));
	color: hsl(var(--ivory));
}

.theme-variable-product-form .theme-variation-pill:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.theme-variable-product-form .theme-variation-value {
	display: block;
	width: 100%;
}

.single-product .woocommerce-variation-price,
.single-product .woocommerce-variation-availability {
	display: none;
}

.single-product .single_variation_wrap .woocommerce-variation-description {
	font-family: Inter, system-ui, sans-serif;
	font-size: 0.875rem;
	color: hsl(var(--foreground) / 0.7);
	margin-bottom: 1rem;
}

.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 {
	-moz-appearance: textfield;
	appearance: textfield;
	width: 3rem;
	min-width: 3rem;
	flex: 0 0 3rem;
}

.single-product .theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.single-product .single_add_to_cart_button {
	min-width: 160px;
}

.single-product .theme-product-thumbnails {
	max-width: 100%;
	flex-wrap: wrap;
}

.single-product .theme-product-thumb.is-active {
	border-color: hsl(var(--espresso));
}

.single-product .theme-product-gallery,
.single-product .theme-product-info,
.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Disabled add-to-cart states (variable selection and out of stock). */
.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;
}

/* Locking state while the AJAX request is in flight. */
.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;
}

/* ------------------------------------------------------------------ *
 * Checkout block
 * ------------------------------------------------------------------ */
body.woocommerce-checkout .wc-block-checkout {
	display: block;
	margin: 0;
}

body.woocommerce-checkout .wc-block-components-sidebar-layout {
	display: block;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2.5rem;
		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__sidebar {
	background-color: #fff;
	border: 1px solid hsl(var(--stone) / 0.4);
	border-radius: 0;
	padding: 1.5rem;
}

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 input.components-combobox-control__input {
	font-family: Inter, system-ui, sans-serif !important;
	font-size: 0.875rem !important;
	color: hsl(var(--espresso)) !important;
	background-color: #fff !important;
	border: 1px solid hsl(var(--stone) / 0.4) !important;
	border-radius: 0 !important;
	width: 100% !important;
	max-width: none !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 input.components-combobox-control__input:focus {
	border-color: hsl(var(--gold)) !important;
	outline: none !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--espresso)) !important;
	color: hsl(var(--ivory)) !important;
	border-radius: 0 !important;
	font-family: Inter, system-ui, sans-serif !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	font-weight: 500;
	padding: 0.875rem 1.5rem !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--gold)) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-order-summary-item__quantity {
	background-color: hsl(var(--espresso)) !important;
	color: hsl(var(--ivory)) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 0 !important;
	font-family: Inter, system-ui, sans-serif !important;
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title {
	font-family: "Playfair Display", Georgia, serif !important;
	color: hsl(var(--espresso)) !important;
	font-weight: 400 !important;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading,
body.woocommerce-checkout .wc-block-checkout__order-summary-heading {
	font-family: "Playfair Display", Georgia, serif !important;
	color: hsl(var(--espresso)) !important;
}

body.woocommerce-checkout .wc-block-cart-items {
	border-color: hsl(var(--stone) / 0.4) !important;
}

/* Shared page headings generated by WordPress. */
.page-title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(2.25rem, 4vw, 3rem);
	line-height: 1.1;
	color: hsl(var(--espresso));
	margin-bottom: 2.5rem;
}

/* Cart, account and thank you alignment. */
body.theme-cart-page .entry-content,
body.theme-account-page .entry-content,
body.theme-thankyou-page .entry-content {
	max-width: none;
}

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order-details table {
	width: 100%;
	table-layout: fixed;
}

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-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.75rem;
	color: hsl(var(--espresso));
	padding: 0 0 1rem 0;
}

body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-customer-details,
body.theme-thankyou-page .woocommerce-order-details {
	max-width: 100%;
}

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

body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 0;
	margin: 0 0 2rem;
	font-family: Inter, system-ui, sans-serif;
}

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

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.25rem;
	letter-spacing: normal;
	text-transform: none;
	font-size: 0.95rem;
	color: hsl(var(--espresso));
}

/* Toast used by the contact form. */
#theme-toast {
	transition: opacity 0.25s ease, transform 0.25s ease;
}
