/* ==========================================================================
   BohoBar theme styles
   Only markup without a source equivalent (WooCommerce / WordPress output)
   and functional state rules live here. Layout, spacing and typography of
   designed elements come from assets/css/app.css.
   ========================================================================== */

[hidden] {
	display: none !important;
}

/* --------------------------------------------------------------------------
   WordPress admin bar + clickable cursor
   -------------------------------------------------------------------------- */
body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 600px) {
	body.admin-bar .site-header {
		top: 0;
	}
}

video.object-cover {
	object-fit: cover;
}

a,
button,
[role="button"],
[role="option"],
[role="tab"],
[role="menuitem"],
[role="listbox"],
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
input[type="image"],
input[type="range"],
select,
summary,
label[for],
.theme-attr-pill,
.theme-product-card,
.theme-product-card__quick-add,
[data-faq-toggle],
[data-accordion-toggle],
[data-cart-open],
[data-cart-close],
[data-contact-open],
[data-contact-close],
[data-theme-menu-toggle],
[data-theme-announce-close],
[data-theme-select-toggle],
[data-shop-more],
[data-shop-search],
[data-theme-nav-link],
[data-theme-scroll] {
	cursor: pointer !important;
}

button:disabled,
input:disabled,
.disabled,
[aria-disabled="true"] {
	cursor: not-allowed;
}

.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;
}

/* --------------------------------------------------------------------------
   Scroll reveal (framer-motion fadeUp equivalent)
   -------------------------------------------------------------------------- */
.reveal-item {
	opacity: 0;
	transform: translateY(32px);
	transition:
		opacity 0.7s cubic-bezier(0.25, 0.4, 0.25, 1),
		transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
	transition-delay: var(--reveal-delay, 0s);
}

.reveal-item.is-visible {
	opacity: 1;
	transform: none;
}

body.is-customizer .reveal-item,
body.is-customizer .reveal-item.is-visible {
	opacity: 1 !important;
	transform: none !important;
}

/* --------------------------------------------------------------------------
   Hero mount animation
   -------------------------------------------------------------------------- */
@keyframes themeFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes themeFadeUp22 {
	from { opacity: 0; transform: translateY(22px); }
	to { opacity: 1; transform: none; }
}

@keyframes themeFadeUp14 {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: none; }
}

.hero-fade {
	animation: themeFadeIn 1.1s cubic-bezier(0.25, 0.4, 0.25, 1) both;
}

.hero-up-1 {
	animation: themeFadeUp22 0.9s cubic-bezier(0.25, 0.4, 0.25, 1) 0.35s both;
}

.hero-up-2 {
	animation: themeFadeUp14 0.7s cubic-bezier(0.25, 0.4, 0.25, 1) 0.55s both;
}

.hero-up-3 {
	animation: themeFadeUp14 0.65s cubic-bezier(0.25, 0.4, 0.25, 1) 0.75s both;
}

@keyframes themeBadgeIn {
	from { opacity: 0; transform: translateX(-20px); }
	to { opacity: 1; transform: none; }
}

.theme-sold-out-badge {
	animation: themeBadgeIn 0.4s cubic-bezier(0.25, 0.4, 0.25, 1) both;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item,
	.reveal-item.is-visible {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.hero-fade,
	.hero-up-1,
	.hero-up-2,
	.hero-up-3,
	.theme-sold-out-badge {
		animation: none;
	}
}

/* --------------------------------------------------------------------------
   Site identity
   -------------------------------------------------------------------------- */
.site-logo-img {
	height: var(--logo-height, 44px) !important;
	width: auto !important;
	display: block;
}

@media (min-width: 768px) {
	.site-logo-img {
		height: calc(var(--logo-height, 44px) + 4px) !important;
	}
}

.site-logo-text {
	line-height: var(--logo-height, 44px);
	display: block;
}

/* --------------------------------------------------------------------------
   Cart badge + drawer
   -------------------------------------------------------------------------- */
.theme-cart-count:empty {
	display: none;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: hsl(var(--foreground) / 0.2);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	pointer-events: auto;
}

#theme-cart-drawer {
	transform: translateX(100%);
	opacity: 0;
	visibility: hidden;
	transition:
		transform 0.35s cubic-bezier(0.25, 0.4, 0.25, 1),
		opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1),
		visibility 0s linear 0.35s;
}

body.cart-open #theme-cart-drawer {
	transform: none;
	opacity: 1;
	visibility: visible;
	transition:
		transform 0.35s cubic-bezier(0.25, 0.4, 0.25, 1),
		opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1),
		visibility 0s;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Product card interactions (Pattern A: overlay link + floating add button)
   -------------------------------------------------------------------------- */
.theme-product-card {
	position: relative;
	height: 100%;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
}

.theme-product-card *:not(.theme-card-link) {
	pointer-events: none;
}

.theme-product-card a.theme-product-card__quick-add {
	position: absolute;
	z-index: 3;
	pointer-events: auto;
}

.theme-product-card__media {
	position: relative;
	z-index: 3;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.theme-product-card:hover .theme-product-card__media {
	transform: translateY(-4px);
}

.theme-product-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	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);
}

@media (prefers-reduced-motion: reduce) {
	.theme-product-card__media,
	.theme-product-card__image {
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   Price filter (dual overlapping range inputs)
   -------------------------------------------------------------------------- */
.theme-price-panel {
	max-height: 0;
	opacity: 0;
	transition:
		max-height 0.3s cubic-bezier(0.25, 0.4, 0.25, 1),
		opacity 0.3s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-price-panel.is-open {
	max-height: 240px;
	opacity: 1;
}

.theme-price-slider {
	position: relative;
}

.theme-range-input {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 100%;
	height: 1.5rem;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

.theme-range-input::-webkit-slider-runnable-track {
	background: transparent;
	border: 0;
}

.theme-range-input::-moz-range-track {
	background: transparent;
	border: 0;
}

.theme-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.theme-range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background: hsl(var(--background));
	cursor: pointer;
}

.theme-range-input:focus-visible {
	outline: none;
}

.theme-range-input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.theme-range-input--max {
	z-index: 3;
}

.theme-range-input--min {
	z-index: 4;
}

/* --------------------------------------------------------------------------
   Quantity input
   -------------------------------------------------------------------------- */
.theme-qty-input {
	width: 2.75rem;
	-moz-appearance: textfield;
	appearance: textfield;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.theme-add-to-cart-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
}

.theme-add-to-cart-area .single_add_to_cart_button,
.single-product .single_add_to_cart_button.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	padding-left: 1.25rem;
	padding-right: calc(1.25rem - 0.25em);
}

/* --------------------------------------------------------------------------
   WooCommerce: 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;
}

/* The designed product CTA dims to 60% (disabled:opacity-60) when unavailable. */
.single-product .single_add_to_cart_button.button.disabled,
.single-product .single_add_to_cart_button.button:disabled {
	opacity: 0.6 !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;
}

/* Hide the "View cart" link WooCommerce appends after an AJAX add. */
.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;
}

/* --------------------------------------------------------------------------
   WooCommerce: variations
   -------------------------------------------------------------------------- */
.theme-attr-select-hidden {
	display: none !important;
}

/* The variation summary node is required by WooCommerce's variation script
   so the show_variation event fires; the design prints the price above instead. */
.theme-variation-summary {
	display: none !important;
}

.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;
}

.theme-attr-pill.is-selected {
	background-color: hsl(var(--foreground));
	color: hsl(var(--background));
	border-color: hsl(var(--foreground));
}

/* --------------------------------------------------------------------------
   Single product layout safety
   -------------------------------------------------------------------------- */
.single-product .theme-product-layout,
.single-product .theme-product-layout > * {
	min-width: 0;
	max-width: 100%;
}

.single-product .flex.gap-3.mt-4 {
	flex-wrap: wrap;
	max-width: 100%;
}

/* --------------------------------------------------------------------------
   Product description (WooCommerce content)
   -------------------------------------------------------------------------- */
.theme-product-description p {
	margin: 0 0 1rem;
}

.theme-product-description p:last-child {
	margin-bottom: 0;
}

.theme-product-description ul {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.theme-product-description li {
	display: flex;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.5;
	color: hsl(var(--muted-foreground));
}

.theme-product-description li::before {
	content: "";
	width: 0.25rem;
	height: 0.25rem;
	margin: 0.5rem 0.75rem 0 0;
	border-radius: 9999px;
	background: hsl(var(--foreground));
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Page titles
   -------------------------------------------------------------------------- */
.page-title {
	font-family: var(--font-display);
	font-size: 1.875rem;
	line-height: 2.25rem;
	font-weight: 700;
}

@media (min-width: 768px) {
	.page-title {
		font-size: 2.25rem;
		line-height: 2.5rem;
	}
}

/* --------------------------------------------------------------------------
   Policy / info pages
   -------------------------------------------------------------------------- */
.theme-info-page .entry-content > p:first-child {
	color: hsl(var(--muted-foreground));
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.5;
	margin-bottom: 2.5rem;
}

.theme-info-page .entry-content h2 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	line-height: 2rem;
	letter-spacing: 0.025em;
	color: hsl(var(--primary));
	margin: 2rem 0 0.5rem;
}

@media (min-width: 768px) {
	.theme-info-page .entry-content h2 {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}
}

.theme-info-page .entry-content p {
	font-family: var(--font-body);
	line-height: 1.625;
	color: hsl(var(--foreground) / 0.85);
}

/* --------------------------------------------------------------------------
   Journal content
   -------------------------------------------------------------------------- */
.theme-journal-content p + p {
	margin-top: 1.25rem;
}

.theme-journal-content a {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   WooCommerce notices
   -------------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	font-family: var(--font-body);
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--card));
	color: hsl(var(--foreground));
	border-radius: calc(var(--radius) - 2px);
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	list-style: none;
}

.woocommerce-error {
	border-color: hsl(var(--destructive) / 0.5);
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* --------------------------------------------------------------------------
   Checkout (native Checkout Block)
   -------------------------------------------------------------------------- */
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;
}

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 .wc-block-components-combobox-control input.components-combobox-control__input {
	width: 100% !important;
	max-width: none !important;
	font-family: var(--font-body) !important;
	font-size: 1rem !important;
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border: 1px solid hsl(var(--border)) !important;
	border-radius: calc(var(--radius) - 2px) !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 {
	border-color: hsl(var(--primary)) !important;
	outline: 2px solid hsl(var(--primary) / 0.4) !important;
	outline-offset: 0 !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: var(--font-body) !important;
	color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-components-checkout-step__title,
body.woocommerce-checkout .wc-block-components-order-summary__title {
	font-family: var(--font-display) !important;
	color: hsl(var(--foreground)) !important;
	letter-spacing: 0.02em;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	font-family: var(--font-display) !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.25em !important;
	text-transform: uppercase !important;
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: 9999px !important;
	box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
	background-color: hsl(var(--primary) / 0.9) !important;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--card));
	border-radius: var(--radius);
	padding: 2rem;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-color: hsl(var(--background)) !important;
	box-shadow: 0 0 0 2px hsl(var(--background)) !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity span {
	color: hsl(var(--primary-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	font-family: var(--font-body) !important;
	background-color: hsl(var(--card)) !important;
	border-color: hsl(var(--border)) !important;
	color: hsl(var(--foreground)) !important;
	border-radius: calc(var(--radius) - 2px) !important;
	grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-cart-items__row {
	border-color: hsl(var(--border)) !important;
}

body.woocommerce-checkout .site-main {
	padding-bottom: 4rem;
}

@media (min-width: 768px) {
	body.woocommerce-checkout .wc-block-components-sidebar-layout {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
		align-items: start;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-checkout__main {
		order: 1;
	}

	body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-checkout__sidebar {
		order: 2;
	}
}

/* --------------------------------------------------------------------------
   Cart / account / order received width parity
   -------------------------------------------------------------------------- */
body.theme-cart-page .entry-content,
body.theme-account-page .entry-content {
	max-width: 100%;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .woocommerce,
body.woocommerce-account .woocommerce {
	font-family: var(--font-body);
	color: hsl(var(--foreground));
}

/* --------------------------------------------------------------------------
   Order received (thank you)
   -------------------------------------------------------------------------- */
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-size: 1.5rem;
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: hsl(var(--foreground));
	margin: 0 0 1.5rem;
}

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: var(--radius);
	background-color: hsl(var(--card));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	font-size: 0.875rem;
	color: hsl(var(--muted-foreground));
	border: 0;
	margin: 0;
	padding: 0;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	font-family: var(--font-display);
	font-size: 1.125rem;
	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);
	color: hsl(var(--foreground));
	padding: 0 0 1rem;
}

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-color: hsl(var(--border));
	padding: 0.75rem 0;
	font-family: var(--font-body);
}

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-family: var(--font-body);
	font-style: normal;
	border: 1px solid hsl(var(--border));
	border-radius: var(--radius);
	padding: 1.25rem;
}

/* --------------------------------------------------------------------------
   Forms inside the dark sections
   -------------------------------------------------------------------------- */
[data-theme-select-list] {
	max-height: 18rem;
	overflow-y: auto;
}
