/*
 * The Social Set — functional and WordPress/WooCommerce markup styles.
 * Visual styling for elements that exist in the design lives in app.css.
 */

:root {
	--header-height: 80px;
}

/* Keep the source's hidden attribute authoritative over any display utility. */
[hidden] {
	display: none !important;
}

body {
	overflow-x: hidden;
}

html:has(body.is-customizer) {
	scroll-behavior: auto !important;
}

/* ------------------------------------------------------------------ header */
.site-header,
#site-header {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 40;
}

.theme-header-spacer {
	height: var(--header-height);
}

body.theme-has-announcement #site-header {
	top: 32px;
}

body.admin-bar.theme-has-announcement #site-header {
	top: 64px;
}

/* The spacer preserves the original document flow under the fixed header. */
.theme-no-hero .site-main {
	padding-bottom: 1rem;
}

.site-logo-img {
	height: var(--logo-height, 32px) !important;
	width: auto !important;
	display: block;
}

.site-logo-text {
	line-height: var(--logo-height, 32px);
	display: block;
}

/* Keep the sticky header below WordPress' fixed admin toolbar in previews. */
body.admin-bar #site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar #site-header {
		top: 46px;
	}
	body.theme-has-announcement #site-header {
		top: 40px;
	}
	body.admin-bar.theme-has-announcement #site-header {
		top: 86px;
	}
}

a,
button,
[role="button"],
summary,
input[type="submit"],
input[type="button"] {
	cursor: pointer;
}

/* mobile menu panel */
#theme-mobile-menu[hidden] {
	display: none !important;
}

/* ----------------------------------------------------------------- video */
.theme-video-toggle[hidden],
.theme-hero-video[hidden],
.theme-contact-video[hidden] {
	display: none !important;
}

/* -------------------------------------------------------------- marquee */
.marquee-track {
	animation: marquee 36s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	.marquee-track {
		animation: none;
	}
}

/* --------------------------------------------------------------- reveal */
@media (prefers-reduced-motion: reduce) {
	.reveal {
		opacity: 1;
		transform: none;
	}
}

body.is-customizer .reveal,
body.is-customizer .hero-in > * {
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

/* ------------------------------------------------------------ quick view */
.theme-quickview[hidden] {
	display: none !important;
}

/* ------------------------------------------------------- add to cart locks */
.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;
}

/* hide WooCommerce "View cart" link injected after 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;
}

/* --------------------------------------------------------- cart drawer */
#theme-cart-overlay {
	position: fixed;
	inset: 0;
	background: hsl(var(--foreground) / 0.3);
	z-index: 49;
	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-drawer {
	position: fixed;
	right: 0;
	top: 0;
	height: 100%;
	width: 100%;
	max-width: 28rem;
	background: hsl(var(--card));
	z-index: 50;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.4s cubic-bezier(0.25, 0.4, 0.25, 1);
	box-shadow: var(--shadow-elevated);
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

#theme-cart-drawer .theme-cart-subtotal .woocommerce-Price-amount {
	font: inherit;
}

/* -------------------------------------------------------- variable product */
.theme-attr-select-hidden {
	display: none !important;
}

.single-product .variations {
	display: none;
}

.theme-attr-pill.bg-primary {
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	background-color: hsl(var(--primary));
}

.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-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-product-details__long-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

.theme-qty-input::-webkit-outer-spin-button,
.theme-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.theme-qty-input {
	-moz-appearance: textfield;
	appearance: textfield;
}

/* ------------------------------------------------------ WooCommerce basics */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	border: 1px solid hsl(var(--border));
	border-radius: 1rem;
	background: hsl(var(--card));
	padding: 1rem 1.25rem;
	margin: 0 0 1.5rem;
	font-size: 0.875rem;
	color: hsl(var(--foreground));
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

.woocommerce-error {
	border-color: hsl(var(--destructive));
}

.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;
}

.woocommerce nav.woocommerce-pagination {
	margin-top: 3rem;
}

.woocommerce nav.woocommerce-pagination ul {
	display: flex;
	gap: 0.5rem;
	border: 0;
	justify-content: center;
}

.woocommerce nav.woocommerce-pagination ul li {
	border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	border-radius: 9999px;
	border: 1px solid hsl(var(--border));
	font-size: 0.875rem;
	color: hsl(var(--foreground));
}

.woocommerce nav.woocommerce-pagination ul li span.current {
	background: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
}

/* ------------------------------------------------------- checkout blocks */
body.woocommerce-checkout .site-main {
	padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content {
	max-width: 100%;
}

body.woocommerce-checkout .wc-block-checkout {
	display: block;
}

@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__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 .woocommerce-checkout .form-row .input-text {
	width: 100% !important;
	max-width: none !important;
	border: 1px solid hsl(var(--input)) !important;
	border-radius: 0.75rem !important;
	background-color: hsl(var(--card)) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
	font-size: 0.875rem !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 {
	outline: none !important;
	box-shadow: 0 0 0 2px hsl(var(--ring)) !important;
	border-color: hsl(var(--ring)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
	color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
	background-color: hsl(var(--primary)) !important;
	color: hsl(var(--primary-foreground)) !important;
	border-radius: 9999px !important;
	border: 1px solid hsl(var(--primary)) !important;
	font-family: var(--font-body) !important;
	font-size: 0.75rem !important;
	letter-spacing: 0.28em !important;
	text-transform: uppercase !important;
	min-height: 3.5rem !important;
}

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-checkout__sidebar {
	background-color: hsl(var(--card)) !important;
	border-radius: 1.5rem !important;
	padding: 2rem !important;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
	border-radius: 1rem !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-cart-items {
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .page-title,
body.woocommerce-cart .page-title,
body.woocommerce-account .page-title {
	font-family: var(--font-display);
	font-weight: 400;
}

/* ------------------------------------------------------- thank you page */
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,
body.theme-thankyou-page h2 {
	font-family: var(--font-display);
	padding: 0 0 1rem 0;
}

body.theme-thankyou-page .woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	list-style: none;
	margin: 1.5rem 0 2rem;
	padding: 1.5rem;
	border: 1px solid hsl(var(--border));
	border-radius: 1.5rem;
	background: hsl(var(--card));
}

body.theme-thankyou-page .woocommerce-order-overview li {
	border: 0;
	padding: 0;
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	margin-top: 0.35rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order-details,
body.theme-thankyou-page .woocommerce-customer-details {
	margin-top: 2.5rem;
}

body.theme-thankyou-page .woocommerce-order-details table,
body.theme-thankyou-page .woocommerce-customer-details address {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 300;
	color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-customer-details address {
	border: 1px solid hsl(var(--border));
	border-radius: 1.5rem;
	padding: 1.5rem;
	font-style: normal;
	line-height: 1.75;
}

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;
}

/* -------------------------------------------------------- no results etc. */
.woocommerce-info.woocommerce-no-products-found {
	margin-top: 2rem;
}


