/* ==========================================================================
   Rolls4You2 — WordPress / WooCommerce integration layer.
   app.css already ships the design system; this file only covers markup
   WordPress and WooCommerce generate and the state hooks the theme needs.
   ========================================================================== */

[hidden] {
	display: none !important;
}

:root {
	--header-height: 80px;
	--checkout-gap: 2rem;
	--card-radius: 0.75rem;
	--section-padding: 2rem;
	--logo-height: 56px;
}

/* --------------------------------------------------------------------------
   Site identity
   -------------------------------------------------------------------------- */

.site-logo-img {
	height: var(--logo-height) !important;
	width: auto !important;
	display: block;
}

.site-logo-text {
	line-height: var(--logo-height);
	display: block;
}

/* Header solid state (scroll) */
.site-header.is-solid {
	background-color: hsl(var(--background) / 0.95);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	border-bottom-color: hsl(var(--border));
}

.site-header.is-solid,
.site-header {
	transition: background-color 300ms, border-color 300ms, backdrop-filter 300ms;
}

/* Clickable elements */
a[href]:not([disabled]),
button:not(:disabled),
[role="button"],
summary,
.theme-product-card > .theme-card-link,
.theme-quick-add,
[data-contact-open],
[data-cart-open],
[data-cart-close],
[data-theme-scroll],
.site-identity,
#theme-announcement-close,
#theme-menu-toggle,
.theme-attr-pill,
[data-gallery-prev],
[data-gallery-next] {
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Mobile navigation
   -------------------------------------------------------------------------- */

#theme-mobile-menu a,
#theme-mobile-menu button {
	display: block;
	width: 100%;
	text-align: left;
}

/* --------------------------------------------------------------------------
   Scroll reveal (source uses framer-motion: opacity 0 -> 1, y 32px -> 0)
   -------------------------------------------------------------------------- */

.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);
}

.reveal-item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal-item[data-reveal="1"] {
	transition-delay: 0.1s;
}

.reveal-item[data-reveal="2"] {
	transition-delay: 0.2s;
}

.reveal-item[data-reveal="3"] {
	transition-delay: 0.3s;
}

.reveal-item[data-reveal="4"] {
	transition-delay: 0.4s;
}

.reveal-item[data-reveal="5"] {
	transition-delay: 0.5s;
}

.reveal-item[data-reveal="6"] {
	transition-delay: 0.6s;
}

body.is-customizer .reveal-item,
.no-js .reveal-item {
	opacity: 1 !important;
	transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.reveal-item {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Hero entrance (source: opacity fade 1.1s + staged children) */
.hero-fade-in {
	animation: themeHeroFade 1.1s cubic-bezier(0.25, 0.4, 0.25, 1) forwards;
}

@keyframes themeHeroFade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.hero-title {
	animation: themeHeroUp 0.9s cubic-bezier(0.25, 0.4, 0.25, 1) 0.35s forwards;
	opacity: 0;
}

.hero-text {
	animation: themeHeroUp 0.7s cubic-bezier(0.25, 0.4, 0.25, 1) 0.55s forwards;
	opacity: 0;
}

.hero-cta {
	animation: themeHeroUp 0.65s cubic-bezier(0.25, 0.4, 0.25, 1) 0.75s forwards;
	opacity: 0;
}

@keyframes themeHeroUp {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-fade-in,
	.hero-title,
	.hero-text,
	.hero-cta {
		animation: none;
		opacity: 1;
	}
}

/* Hover motion mirroring the source's per-element framer-motion variants.
   Each component has its own scale + duration, so they are separate classes. */
.motion-collection-img {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.group:hover .motion-collection-img {
	transform: scale(1.05);
}

.motion-service-img {
	transition: transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1);
}

article:hover .motion-service-img {
	transform: scale(1.03);
}

.motion-tile-img {
	transition: transform 0.6s cubic-bezier(0.25, 0.4, 0.25, 1);
}

a:hover .motion-tile-img {
	transform: scale(1.05);
}

.motion-gallery-img {
	transition: transform 0.9s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.group:hover .motion-gallery-img {
	transform: scale(1.04);
}

.motion-card-img {
	transition: transform 0.7s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card:hover .motion-card-img {
	transform: scale(1.04);
}

/* Source lifts the whole card with a spring (stiffness 300, damping 22) */
.theme-product-card {
	transition: transform 0.45s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.theme-product-card:hover {
	transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
	.motion-collection-img,
	.motion-service-img,
	.motion-tile-img,
	.motion-gallery-img,
	.motion-card-img,
	.theme-product-card {
		transition: none;
	}

	.group:hover .motion-collection-img,
	article:hover .motion-service-img,
	a:hover .motion-tile-img,
	.group:hover .motion-gallery-img,
	.theme-product-card:hover .motion-card-img,
	.theme-product-card:hover {
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Gallery track (source hides the scrollbar while auto-scrolling)
   -------------------------------------------------------------------------- */

.theme-gallery-track {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.theme-gallery-track::-webkit-scrollbar {
	display: none;
}

/* --------------------------------------------------------------------------
   Price filter (dual-range slider matching the source Radix slider)
   -------------------------------------------------------------------------- */

.price-range-wrapper {
	position: relative;
	height: 20px;
	display: flex;
	align-items: center;
	width: 100%;
}

.range-track-bg,
.range-track-fill {
	position: absolute;
	height: 8px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	border-radius: 9999px;
}

.range-track-bg {
	left: 0;
	right: 0;
	background-color: hsl(var(--secondary));
}

.range-track-fill {
	background-color: hsl(var(--primary));
}

.range-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	background: transparent;
	-webkit-appearance: none;
	appearance: none;
	pointer-events: none;
}

.range-input::-webkit-slider-runnable-track {
	background: transparent;
	border: none;
	height: 8px;
}

.range-input::-moz-range-track {
	background: transparent;
	border: none;
	height: 8px;
}

.range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	height: 20px;
	width: 20px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background-color: hsl(var(--background));
	cursor: pointer;
	box-shadow: 0 1px 2px hsl(var(--foreground) / 0.15);
}

.range-input::-moz-range-thumb {
	pointer-events: auto;
	height: 20px;
	width: 20px;
	border-radius: 9999px;
	border: 2px solid hsl(var(--primary));
	background-color: hsl(var(--background));
	cursor: pointer;
}

.range-input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px hsl(var(--ring) / 0.4);
}

.range-input--max {
	z-index: 3;
}

.range-input--min {
	z-index: 4;
}

/* Collapsible price panel (source animates height 0 -> auto over 0.3s) */
.theme-price-panel {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	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: 220px;
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Product cards (shared wrapper used in every listing context)
   -------------------------------------------------------------------------- */

.theme-product-card-wrap {
	min-width: 0;
}

.theme-product-card {
	position: relative;
	display: block;
}

.theme-product-card > .theme-card-link {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: auto;
	display: block;
}

.theme-product-card__image-link {
	display: block;
}

.theme-product-card .theme-product-card-media {
	position: relative;
}

.theme-product-card .theme-product-card-media::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		transparent 45%,
		hsl(var(--primary) / 0.22) 100%
	);
	opacity: 0;
	transition: opacity 0.35s cubic-bezier(0.25, 0.4, 0.25, 1);
}

.theme-product-card:hover .theme-product-card-media::before {
	opacity: 1;
}

.theme-quick-add {
	z-index: 3;
	pointer-events: auto;
	border: 1px solid hsl(var(--border));
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	box-shadow: var(--shadow-soft);
	opacity: 1;
	transform: translateY(0) scale(1);
	transition:
		opacity 0.3s ease,
		transform 0.28s cubic-bezier(0.22, 1.2, 0.36, 1),
		background-color 0.25s ease,
		color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

@media (min-width: 768px) {
	.theme-product-card .theme-quick-add {
		opacity: 0;
		transform: translateY(8px) scale(0.9);
	}

	.theme-product-card:hover .theme-quick-add,
	.theme-product-card .theme-quick-add:focus-visible {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.theme-quick-add:hover {
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	border-color: hsl(var(--primary));
	box-shadow: var(--shadow-elevated);
	transform: scale(1.1);
}

.theme-quick-add:active {
	transform: scale(0.92);
}

.theme-product-card:hover .theme-quick-add:hover {
	transform: scale(1.1);
}

.theme-quick-add.added {
	background-color: hsl(var(--teal));
	color: hsl(var(--background));
	border-color: hsl(var(--teal));
	opacity: 1 !important;
	transform: scale(1) !important;
}

.theme-quick-add svg {
	transition: transform 0.25s cubic-bezier(0.22, 1.2, 0.36, 1);
}

.theme-quick-add:hover svg {
	transform: rotate(90deg);
}

/* WooCommerce price HTML inside the source price slot */
.theme-product-card .price {
	font: inherit;
	color: inherit;
}

.theme-product-card .price del {
	opacity: 0.6;
	font-weight: 400;
}

.theme-product-card .price ins {
	text-decoration: none;
	font-weight: inherit;
}

/* --------------------------------------------------------------------------
   Cart drawer
   -------------------------------------------------------------------------- */

#theme-cart-drawer {
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 300ms cubic-bezier(0.25, 0.4, 0.25, 1), visibility 300ms;
	overflow: hidden;
}

body.cart-open #theme-cart-drawer {
	transform: translateX(0);
	visibility: visible;
}

#theme-cart-drawer.is-updating > * {
	opacity: 0.6;
	pointer-events: none;
}

#theme-cart-overlay {
	position: fixed;
	inset: 0;
	z-index: 49;
	background-color: hsl(var(--foreground) / 0.2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms, visibility 300ms;
}

body.cart-open #theme-cart-overlay {
	opacity: 1;
	visibility: visible;
}

body.cart-open {
	overflow: hidden;
}

.theme-cart-count:empty {
	display: none;
}

/* WooCommerce's injected "View cart" link is not part of the design */
.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;
}

/* Add-to-cart button loading / disabled states */
a.add_to_cart_button.added {
	opacity: 1 !important;
	pointer-events: auto;
}

.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;
}

.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;
}

/* --------------------------------------------------------------------------
   Contact modal
   -------------------------------------------------------------------------- */

body.modal-open {
	overflow: hidden;
}

.theme-modal-overlay {
	background-color: rgba(0, 0, 0, 0.8);
	opacity: 0;
	transition: opacity 200ms ease-out;
}

.theme-modal-overlay[data-state="open"] {
	opacity: 1;
}

.theme-modal-content {
	opacity: 0;
	transform: translate(-50%, -48%) scale(0.95);
	transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.theme-modal-content[data-state="open"] {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.theme-modal-content[data-state="closed"] {
	opacity: 0;
	transform: translate(-50%, -48%) scale(0.95);
}

.theme-modal-success-icon {
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-modal-success-icon.scale-0 {
	transform: scale(0);
}

.theme-modal-success-icon.scale-100 {
	transform: scale(1);
}

/* --------------------------------------------------------------------------
   Home gallery lightbox
   -------------------------------------------------------------------------- */

body.gallery-lightbox-open {
	overflow: hidden;
}

.theme-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.theme-gallery-lightbox[hidden] {
	display: none !important;
}

.theme-gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.88);
	opacity: 0;
	transition: opacity 200ms ease-out;
}

.theme-gallery-lightbox[data-state="open"] .theme-gallery-lightbox__backdrop {
	opacity: 1;
}

.theme-gallery-lightbox__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 56rem);
	max-height: calc(100vh - 3rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0.97);
	transition: opacity 200ms ease-out, transform 200ms ease-out;
}

.theme-gallery-lightbox[data-state="open"] .theme-gallery-lightbox__panel {
	opacity: 1;
	transform: scale(1);
}

.theme-gallery-lightbox__figure {
	margin: 0;
	width: 100%;
	text-align: center;
}

.theme-gallery-lightbox__img {
	display: block;
	max-width: 100%;
	max-height: min(78vh, 720px);
	width: auto;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
	box-shadow: var(--shadow-elevated);
}

.theme-gallery-lightbox__caption {
	margin-top: 1rem;
	font-family: var(--font-body);
	font-size: 0.875rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: hsl(var(--background) / 0.9);
}

.theme-gallery-lightbox__close {
	position: absolute;
	top: -0.25rem;
	right: 0;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	color: hsl(var(--background));
	opacity: 0.85;
	transition: opacity 150ms;
}

.theme-gallery-lightbox__close:hover {
	opacity: 1;
}

.theme-gallery-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid hsl(var(--background) / 0.35);
	color: hsl(var(--background));
	background-color: hsl(var(--foreground) / 0.25);
	transition: border-color 150ms, background-color 150ms;
}

.theme-gallery-lightbox__nav:hover {
	border-color: hsl(var(--background) / 0.7);
	background-color: hsl(var(--foreground) / 0.45);
}

.theme-gallery-lightbox__nav--prev {
	left: 0;
}

.theme-gallery-lightbox__nav--next {
	right: 0;
}

@media (max-width: 640px) {
	.theme-gallery-lightbox__nav {
		top: auto;
		bottom: -3.25rem;
		transform: none;
	}

	.theme-gallery-lightbox__nav--prev {
		left: calc(50% - 3.25rem);
	}

	.theme-gallery-lightbox__nav--next {
		right: calc(50% - 3.25rem);
	}

	.theme-gallery-lightbox {
		padding-bottom: 4.5rem;
	}
}

/* --------------------------------------------------------------------------
   Single product page
   -------------------------------------------------------------------------- */

.single-product .theme-product-layout {
	min-width: 0;
}

.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-variation-description,
.single-product .posted_in {
	overflow-wrap: break-word;
	word-break: break-word;
}

.theme-quantity-wrapper {
	display: inline-flex;
	align-items: center;
	border: 1px solid hsl(var(--border));
}

.theme-quantity-wrapper .theme-qty-minus,
.theme-quantity-wrapper .theme-qty-plus {
	padding: 0.5rem 0.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color 150ms;
	color: inherit;
}

.theme-quantity-wrapper .theme-qty-minus:hover,
.theme-quantity-wrapper .theme-qty-plus:hover {
	background-color: hsl(var(--secondary));
}

.theme-quantity-wrapper .theme-qty-input {
	width: 44px;
	min-width: 44px;
	padding: 0.5rem 0;
	text-align: center;
	border: 0;
	background: transparent;
	font-family: var(--font-body);
	font-size: 0.875rem;
	-moz-appearance: textfield;
	appearance: textfield;
}

.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;
}

/* Variation pills + hidden native select */
.theme-attr-select-hidden {
	display: none !important;
}

.theme-attr-pill {
	padding: 0.5rem 1rem;
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	border: 1px solid hsl(var(--border));
	border-radius: 9999px;
	transition: all 150ms;
	cursor: pointer;
	background: transparent;
	font-family: var(--font-body);
}

.theme-attr-pill:hover {
	border-color: hsl(var(--foreground) / 0.6);
}

.theme-attr-pill.is-active {
	background-color: hsl(var(--foreground));
	color: hsl(var(--background));
	border-color: hsl(var(--foreground));
}

.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-bottom: 0.25rem;
	display: none;
}

.single-product .variations tbody td.value {
	padding-top: 0;
}

.single-product .single_variation_wrap {
	min-width: 0;
}

/* Accordions on the product page */
.theme-accordion-panel {
	display: none;
}

.theme-accordion-panel.is-open {
	display: block;
}

/* --------------------------------------------------------------------------
   Shop / archive listing (WooCommerce generated markup)
   -------------------------------------------------------------------------- */

.woocommerce-products-header {
	text-align: center;
	padding: 2.5rem 1.5rem 0;
}

.woocommerce-products-header__title.page-title {
	font-family: var(--font-display);
	font-size: 2.25rem;
	line-height: 1.05;
	font-weight: 400;
	letter-spacing: -0.015em;
}

.woocommerce-result-count,
.woocommerce-ordering {
	display: none;
}

ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 768px) {
	ul.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	ul.products {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 2rem;
	}
}

ul.products li.product {
	list-style: none;
	margin: 0;
	min-width: 0;
}

ul.products li.product .add_to_cart_button {
	display: none;
}

/* WooCommerce notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	border-left: 4px solid hsl(var(--primary));
	background-color: hsl(var(--secondary));
	padding: 1rem 1.25rem;
	margin: 1rem auto;
	max-width: 80rem;
	font-family: var(--font-body);
	font-size: 0.9375rem;
	border-radius: var(--card-radius);
	color: hsl(var(--foreground));
}

.woocommerce-error {
	border-left-color: hsl(var(--destructive));
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 0.6875rem;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
	display: none;
}

#theme-cart-drawer .woocommerce-message {
	display: none;
}

/* --------------------------------------------------------------------------
   WordPress pagination / generic page markup
   -------------------------------------------------------------------------- */

.page-title {
	font-family: var(--font-display);
	font-size: 2.25rem;
	line-height: 1.1;
	font-weight: 400;
	letter-spacing: -0.015em;
}

.entry-content > * + * {
	margin-top: 1rem;
}

.entry-content a {
	text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.25rem;
	list-style: disc;
}

.entry-content ol {
	list-style: decimal;
}

.wp-caption,
.wp-caption-text,
.gallery-caption,
.screen-reader-text {
	font-family: var(--font-body);
}

.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;
}

.alignleft {
	float: left;
	margin-right: 1.5rem;
}

.alignright {
	float: right;
	margin-left: 1.5rem;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

/* WordPress post classes — scoped so Tailwind position utilities on #site-header still work. */
article.sticky,
.bypostauthor {
	position: relative;
}

#site-header.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	width: 100%;
}

/* Sticky header sits below the WP admin bar (logged-in toolbar). */
body.admin-bar #site-header.site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar #site-header.site-header {
		top: 46px;
	}
}

/* Cart drawer aligns with the header when the admin bar is visible. */
body.admin-bar #theme-cart-drawer {
	top: 32px;
	height: calc(100% - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar #theme-cart-drawer {
		top: 46px;
		height: calc(100% - 46px);
	}
}

.navigation.pagination {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	margin: 3rem 0;
}

.navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	border: 1px solid hsl(var(--border));
	font-family: var(--font-body);
	font-size: 0.8125rem;
}

.navigation.pagination .current,
.navigation.pagination .page-numbers:hover {
	background-color: hsl(var(--primary));
	border-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
}

/* The header is sticky (source behaviour), so no content offset is needed */

/* --------------------------------------------------------------------------
   Checkout (native WooCommerce Checkout Block)
   -------------------------------------------------------------------------- */

body.woocommerce-checkout .site-main {
	padding-bottom: 4rem;
}

/* Title and block share one site container so insets always agree */
body.woocommerce-checkout .page-shell .page-title,
body.woocommerce-checkout .page-shell .entry-content,
body.woocommerce-cart .page-shell .page-title,
body.woocommerce-cart .page-shell .entry-content,
body.woocommerce-account .page-shell .page-title,
body.woocommerce-account .page-shell .entry-content,
body.theme-thankyou-page .page-shell .page-title,
body.theme-thankyou-page .page-shell .entry-content {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

body.woocommerce-checkout .page-shell .page-title,
body.woocommerce-cart .page-shell .page-title,
body.woocommerce-account .page-shell .page-title,
body.theme-thankyou-page .page-shell .page-title {
	margin-bottom: 1.5rem;
}

/* Keep the checkout block from adding its own competing max-width */
body.woocommerce-checkout .wc-block-checkout.alignwide,
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide,
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

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.wc-block-checkout,
	body.woocommerce-checkout .wc-block-checkout.is-large {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--checkout-gap);
		align-items: start;
	}
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
	background-color: hsl(var(--secondary));
	border-radius: var(--card-radius);
	padding: var(--section-padding);
}

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-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus {
	color: hsl(var(--foreground)) !important;
	background-color: hsl(var(--background)) !important;
	border-color: hsl(var(--border)) !important;
	border-radius: 0.375rem !important;
	font-family: var(--font-body) !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 {
	outline: 1px solid hsl(var(--primary)) !important;
	border-color: hsl(var(--primary)) !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: 0.375rem !important;
	font-family: var(--font-display) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.2em !important;
	font-size: 0.6875rem !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-components-notice-banner {
	background-color: hsl(var(--secondary)) !important;
	border-color: hsl(var(--primary)) !important;
	border-radius: var(--card-radius) !important;
	color: hsl(var(--foreground)) !important;
	font-family: var(--font-body) !important;
}

body.woocommerce-checkout .wc-block-checkout h1,
body.woocommerce-checkout .wc-block-checkout h2,
body.woocommerce-checkout .wc-block-checkout h3,
body.woocommerce-checkout .wc-block-checkout__main h2 {
	font-family: var(--font-display) !important;
	font-weight: 600;
	letter-spacing: -0.015em;
}

/* Cart / account blocks share the checkout container width */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-account .woocommerce {
	max-width: 100%;
}



/* --------------------------------------------------------------------------
   Thank you page
   -------------------------------------------------------------------------- */

body.theme-thankyou-page {
	overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order,
body.theme-thankyou-page .woocommerce-notice {
	font-family: var(--font-body);
}

body.theme-thankyou-page .woocommerce-notice--success {
	background-color: hsl(var(--secondary));
	border-left: 4px solid hsl(var(--primary));
	border-radius: var(--card-radius);
	padding: 1rem 1.25rem;
	margin: 0 0 2rem;
	font-size: 0.9375rem;
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title {
	font-family: var(--font-display);
	font-weight: 600;
	padding: 0 0 1rem 0;
}

body.theme-thankyou-page .woocommerce-order-overview {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	margin: 0 0 2rem;
	padding: 1.5rem;
	background-color: hsl(var(--secondary));
	border-radius: var(--card-radius);
}

body.theme-thankyou-page .woocommerce-order-overview li {
	margin: 0;
	font-size: 0.875rem;
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
	display: block;
	font-family: var(--font-display);
	font-size: 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 {
	padding: 0.75rem 0;
	border-bottom: 1px solid hsl(var(--border) / 0.5);
	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;
	font-style: normal;
}

/* --------------------------------------------------------------------------
   Order-received / account misc WooCommerce forms
   -------------------------------------------------------------------------- */

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-account .woocommerce-Input {
	width: 100%;
	padding: 0.75rem 1rem;
	background-color: hsl(var(--background));
	border: 1px solid hsl(var(--border));
	border-radius: 0.375rem;
	font-family: var(--font-body);
	font-size: 1rem;
	color: hsl(var(--foreground));
}

.woocommerce form .form-row label {
	font-family: var(--font-body);
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.375rem;
	display: block;
}

.woocommerce .button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: hsl(var(--primary));
	color: hsl(var(--primary-foreground));
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 0.6875rem;
	padding: 0.75rem 1.5rem;
	border-radius: 0.375rem;
	border: 0;
	cursor: pointer;
}

.woocommerce .button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
	background-color: hsl(var(--primary) / 0.9);
}

.woocommerce table.shop_table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-body);
	font-size: 0.9375rem;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: 0.75rem 0.5rem;
	border-bottom: 1px solid hsl(var(--border) / 0.5);
	text-align: left;
}

