/**
 * Final front-office interaction layer.
 *
 * This file intentionally sits after the legacy storefront, WooCommerce and
 * checkout styles. It unifies the small interactions that shoppers touch on
 * every public page without replacing the established Tdiscount visual system.
 */

/* -------------------------------------------------------------------------
 * Global header and category discovery
 * ---------------------------------------------------------------------- */

.market-header .brand {
	position: relative;
	isolation: isolate;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline-offset: 6px;
}

.market-header .brand::after {
	position: absolute;
	bottom: max(3px, 5%);
	left: 50%;
	width: min(72%, 172px);
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--red) 76%, transparent), transparent);
	content: "";
	opacity: 0;
	transform: translateX(-50%) scaleX(0.72);
	transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.market-header .brand .brand__logo {
	box-shadow: none !important;
	filter: none;
	transform-origin: center;
	transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), filter 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.market-header .brand:hover .brand__logo {
		transform: translateY(-2px) scale(1.012);
		filter: drop-shadow(0 8px 12px rgba(230, 30, 37, 0.15));
	}

	.market-header .brand:hover::after {
		opacity: 1;
		transform: translateX(-50%) scaleX(1);
	}
}

.market-header .brand:focus-visible::after {
	opacity: 1;
	transform: translateX(-50%) scaleX(1);
}

.all-categories {
	position: relative;
	border-radius: 0.72rem;
	transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.all-categories .icon:last-child {
	transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.category-hover--open .all-categories,
.category-hover:focus-within .all-categories {
	box-shadow: 0 8px 18px rgba(230, 30, 37, 0.16);
}

.category-hover--open .all-categories .icon:last-child,
.category-hover:focus-within .all-categories .icon:last-child {
	transform: rotate(180deg);
}

@media (hover: hover) and (pointer: fine) {
	.all-categories:hover {
		transform: translateY(-1px);
	}

	.category-mega__root:not(.is-active):hover {
		background: color-mix(in srgb, var(--red) 8%, var(--surface));
		color: var(--red);
		box-shadow: none;
	}
}

.category-mega__categories,
.category-mega__subpanel {
	border-color: color-mix(in srgb, var(--line-strong) 88%, var(--red));
	box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

.category-mega__subpanel {
	border-left-color: color-mix(in srgb, var(--red) 32%, var(--line));
}

.category-mega__root:focus-visible,
.category-mega__subpane a:focus-visible,
.all-categories:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--red) 72%, #fff);
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * Global product search workspace
 * ---------------------------------------------------------------------- */

body.td-search-overlay-open {
	overflow: hidden;
	touch-action: none;
}

.td-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 850;
	display: grid;
	place-items: start center;
	padding: clamp(0.75rem, 2vw, 2rem);
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	transition: opacity 180ms ease;
}

.td-search-overlay[hidden] {
	display: none !important;
}

.td-search-overlay--open {
	opacity: 1;
}

.td-search-overlay__backdrop {
	position: fixed;
	inset: 0;
	background:
		radial-gradient(circle at 18% 3%, color-mix(in srgb, var(--red) 12%, transparent), transparent 30rem),
		rgba(7, 17, 28, 0.7);
	cursor: zoom-out;
}

.td-search-overlay__panel {
	position: relative;
	z-index: 1;
	width: min(1120px, 100%);
	min-height: min(620px, calc(100dvh - clamp(1.5rem, 4vw, 4rem)));
	margin: auto;
	border: 1px solid color-mix(in srgb, var(--line-strong) 72%, var(--red));
	border-radius: clamp(1rem, 2.2vw, 1.45rem);
	background:
		radial-gradient(circle at 100% 0, color-mix(in srgb, var(--red) 7%, transparent), transparent 32rem),
		var(--surface);
	box-shadow: 0 32px 90px rgba(5, 12, 22, 0.38);
	color: var(--text);
	padding: clamp(1rem, 2.8vw, 2.3rem);
	transform: translateY(14px) scale(0.988);
	transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.td-search-overlay--open .td-search-overlay__panel {
	transform: translateY(0) scale(1);
}

.td-search-overlay__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: clamp(1rem, 2.3vw, 1.65rem);
}

.td-search-overlay__head p,
.td-search-overlay__section-head p {
	margin: 0 0 0.28rem;
	color: var(--red);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.td-search-overlay__head h2,
.td-search-overlay__section-head h3 {
	margin: 0;
	color: var(--text);
	font-family: Manrope, Inter, sans-serif;
	font-size: clamp(1.35rem, 2.8vw, 2rem);
	font-weight: 900;
	letter-spacing: -0.045em;
	line-height: 1.12;
}

.td-search-overlay__section-head h3 {
	font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.td-search-overlay__close {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 2.8rem;
	height: 2.8rem;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface-2);
	color: var(--text);
	cursor: pointer;
	transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.td-search-overlay__close .icon {
	width: 1.1rem;
	height: 1.1rem;
}

@media (hover: hover) and (pointer: fine) {
	.td-search-overlay__close:hover {
		border-color: color-mix(in srgb, var(--red) 48%, var(--line));
		background: color-mix(in srgb, var(--red) 7%, var(--surface));
		color: var(--red);
		transform: rotate(4deg);
	}
}

.td-search-overlay__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(10rem, 12.5rem) auto;
	gap: 0.7rem;
	align-items: stretch;
}

.td-search-overlay__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 4rem;
	border: 1px solid var(--line-strong);
	border-radius: 0.95rem;
	background: var(--surface-2);
	transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.td-search-overlay__input-wrap:focus-within {
	border-color: var(--red);
	background: var(--surface);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 13%, transparent);
}

.td-search-overlay__input-icon {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin-left: 1.1rem;
	color: var(--red);
}

.td-search-overlay__input-wrap input {
	width: 100%;
	min-width: 0;
	height: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	padding: 0.95rem 2.8rem 0.95rem 0.75rem;
	font-family: inherit;
	font-size: clamp(1rem, 1.6vw, 1.12rem);
	font-weight: 750;
}

.td-search-overlay__input-wrap input::placeholder {
	color: var(--muted);
	opacity: 1;
}

.td-search-overlay__spinner {
	position: absolute;
	right: 1rem;
	width: 1.08rem;
	height: 1.08rem;
	border: 2px solid color-mix(in srgb, var(--red) 20%, transparent);
	border-top-color: var(--red);
	border-radius: 50%;
	animation: td-search-spin 700ms linear infinite;
}

.td-search-overlay__category-wrap {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--line);
	border-radius: 0.95rem;
	background: var(--surface-2);
}

.td-search-overlay__category-wrap label {
	color: var(--muted);
	font-size: 0.72rem;
	font-weight: 850;
}

.td-search-overlay__category-wrap select {
	width: 100%;
	min-width: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text);
	font: inherit;
	font-size: 0.84rem;
	font-weight: 800;
	text-overflow: ellipsis;
}

.td-search-overlay__submit {
	min-height: 4rem;
	border: 1px solid var(--red);
	border-radius: 0.95rem;
	background: linear-gradient(135deg, var(--red), #b7141a);
	box-shadow: 0 10px 20px rgba(190, 20, 27, 0.17);
	color: #fff;
	cursor: pointer;
	padding: 0.8rem 1rem;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 900;
	white-space: nowrap;
	transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.td-search-overlay__submit:hover {
		filter: brightness(1.04);
		box-shadow: 0 14px 25px rgba(190, 20, 27, 0.25);
		transform: translateY(-1px);
	}
}

.td-search-overlay__help {
	margin: 0.75rem 0 0;
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 650;
}

.td-search-overlay__content {
	margin-top: clamp(1.5rem, 3.5vw, 2.6rem);
}

.td-search-overlay__category-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.15rem;
}

.td-search-overlay__category-chips button {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 2.7rem;
	border: 1px solid var(--line);
	border-radius: 0.75rem;
	background: var(--surface-2);
	color: var(--text-soft);
	cursor: pointer;
	padding: 0.55rem 0.78rem;
	font: inherit;
	font-size: 0.82rem;
	font-weight: 800;
	transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.td-search-overlay__category-chips button .icon {
	width: 0.8rem;
	height: 0.8rem;
	transition: transform 160ms ease;
}

.td-search-overlay__category-chips button.is-active {
	border-color: color-mix(in srgb, var(--red) 48%, var(--line));
	background: color-mix(in srgb, var(--red) 10%, var(--surface));
	color: var(--red);
}

@media (hover: hover) and (pointer: fine) {
	.td-search-overlay__category-chips button:hover {
		border-color: color-mix(in srgb, var(--red) 48%, var(--line));
		color: var(--red);
		transform: translateY(-1px);
	}

	.td-search-overlay__category-chips button:hover .icon {
		transform: translateX(2px);
	}
}

.td-search-overlay__results {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.td-search-overlay__results[hidden] {
	display: none !important;
}

.td-search-overlay__product {
	display: grid;
	grid-template-columns: 5.3rem minmax(0, 1fr) auto;
	gap: 0.85rem;
	align-items: center;
	min-width: 0;
	border: 1px solid var(--line);
	border-radius: 0.95rem;
	background: color-mix(in srgb, var(--surface) 84%, var(--surface-2));
	padding: 0.65rem;
	transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.td-search-overlay__product-media {
	display: grid;
	place-items: center;
	width: 5.3rem;
	height: 5.3rem;
	border-radius: 0.72rem;
	background: var(--surface);
	overflow: hidden;
}

.td-search-overlay__product-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 180ms ease;
}

.td-search-overlay__product-copy {
	min-width: 0;
}

.td-search-overlay__product-copy p {
	margin: 0 0 0.2rem;
	color: var(--muted);
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.3;
}

.td-search-overlay__product-copy h3 {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 850;
	line-height: 1.35;
}

.td-search-overlay__product-copy h3 a {
	color: var(--text);
	text-decoration: none;
}

.td-search-overlay__product-price {
	margin-top: 0.35rem;
	color: var(--red);
	font-size: 0.87rem;
	font-weight: 900;
}

.td-search-overlay__product-arrow {
	display: grid;
	place-items: center;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	background: var(--surface);
	color: var(--muted);
	transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.td-search-overlay__product-arrow .icon {
	width: 0.78rem;
	height: 0.78rem;
}

@media (hover: hover) and (pointer: fine) {
	.td-search-overlay__product:hover {
		border-color: color-mix(in srgb, var(--red) 38%, var(--line));
		box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
		transform: translateY(-2px);
	}

	.td-search-overlay__product:hover img {
		transform: scale(1.04);
	}

	.td-search-overlay__product:hover .td-search-overlay__product-arrow {
		background: var(--red);
		color: #fff;
		transform: translateX(2px);
	}
}

.td-search-overlay__status {
	min-height: 1.4rem;
	margin: 0.85rem 0 0;
	color: var(--text-soft);
	font-size: 0.82rem;
	font-weight: 700;
}

.td-search-overlay__all-results {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 1rem;
	border-bottom: 1px solid currentColor;
	color: var(--red);
	padding-bottom: 0.16rem;
	font-size: 0.86rem;
	font-weight: 900;
	text-decoration: none;
}

.td-search-overlay__all-results .icon {
	width: 0.82rem;
	height: 0.82rem;
	transition: transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.td-search-overlay__all-results:hover .icon {
		transform: translateX(3px);
	}
}

/* -------------------------------------------------------------------------
 * Cart drawer
 * ---------------------------------------------------------------------- */

.cart-drawer {
	z-index: 780;
}

.cart-drawer__panel {
	width: min(496px, 100vw);
	border-left-color: color-mix(in srgb, var(--line-strong) 80%, var(--red));
	background:
		radial-gradient(circle at 100% 0, color-mix(in srgb, var(--red) 6%, transparent), transparent 22rem),
		var(--surface);
}

.cart-drawer__panel {
	grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.cart-drawer__head {
	padding: 1.25rem 1.25rem 1rem;
	background: color-mix(in srgb, var(--surface) 88%, var(--surface-2));
}

.cart-drawer__head h2 {
	font-size: 1.38rem;
	letter-spacing: -0.035em;
}

.cart-drawer__close {
	width: 2.55rem;
	height: 2.55rem;
	border-radius: 50%;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.cart-drawer__close:hover {
		background: color-mix(in srgb, var(--red) 8%, var(--surface));
		transform: rotate(4deg);
	}
}

.cart-drawer__body {
	padding: 1rem 1.1rem 1.25rem;
}

.cart-drawer .cart-items {
	gap: 0.75rem;
}

.cart-drawer .cart-item {
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 0.8rem;
	border: 1px solid var(--line);
	border-radius: 0.92rem;
	background: color-mix(in srgb, var(--surface) 80%, var(--surface-2));
	padding: 0.75rem;
}

.cart-drawer .cart-item__media {
	width: 84px;
	height: 84px;
	border-radius: 0.7rem;
	background: var(--surface);
}

.cart-drawer .cart-item__head h2 {
	font-size: 0.9rem;
	line-height: 1.35;
}

.cart-drawer .cart-summary {
	margin: 0;
	border: 1px solid color-mix(in srgb, var(--line) 84%, var(--red));
	border-radius: 0.95rem;
	background: color-mix(in srgb, var(--red) 4%, var(--surface));
	box-shadow: 0 -10px 22px rgba(15, 23, 42, 0.04);
	padding: 1rem;
}

.cart-drawer__summary-area {
	border-top: 1px solid var(--line);
	background: color-mix(in srgb, var(--surface) 94%, var(--surface-2));
	padding: 0.8rem 1.1rem 0.9rem;
}

.cart-drawer__summary-area[hidden] {
	display: none !important;
}

.cart-drawer .cart-summary h2 {
	margin-bottom: 0.75rem;
	font-size: 1.02rem;
}

.cart-drawer .cart-summary__row {
	padding: 0.46rem 0;
	font-size: 0.84rem;
}

.cart-drawer .cart-summary__row--total {
	margin-top: 0.28rem;
	padding-top: 0.8rem;
	font-size: 1rem;
}

.cart-drawer__reassurance {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.65rem;
	align-items: start;
	margin-top: 0.1rem;
	padding: 0.85rem 0.9rem;
	border-radius: 0.85rem;
	background: color-mix(in srgb, #198754 8%, var(--surface));
}

.cart-drawer__reassurance-icon {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: color-mix(in srgb, #198754 16%, var(--surface));
	color: #198754;
}

.cart-drawer__reassurance-icon .icon {
	width: 0.9rem;
	height: 0.9rem;
}

.cart-drawer__reassurance p,
.cart-drawer__reassurance strong,
.cart-drawer__reassurance span {
	display: block;
	margin: 0;
}

.cart-drawer__reassurance strong {
	color: var(--text);
	font-size: 0.78rem;
	font-weight: 900;
}

.cart-drawer__reassurance p > span {
	margin-top: 0.14rem;
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 650;
	line-height: 1.45;
}

.cart-drawer__foot {
	gap: 0.65rem;
	padding: 1rem 1.25rem max(1.15rem, env(safe-area-inset-bottom));
	background: color-mix(in srgb, var(--surface) 92%, var(--surface-2));
}

.cart-drawer__foot .button {
	min-height: 3.1rem;
	border-radius: 0.75rem;
	font-weight: 900;
}

/* -------------------------------------------------------------------------
 * Checkout clarity and an intentionally roomier order summary
 * ---------------------------------------------------------------------- */

body.checkout-page .site-main {
	width: min(calc(100% - 3rem), 1440px) !important;
	max-width: 1440px !important;
}

@media (min-width: 1120px) {
	body.checkout-page .wc-block-components-sidebar-layout,
	body.checkout-page .checkout-layout {
		grid-template-columns: minmax(0, 1.24fr) minmax(28.5rem, 0.9fr) !important;
		gap: clamp(1.4rem, 3vw, 2.75rem) !important;
	}
}

body.checkout-page .wc-block-components-checkout-step,
body.checkout-page .wc-block-checkout__payment-method,
body.checkout-page .wc-block-checkout__shipping-method,
body.checkout-page .wc-block-checkout__order-notes,
body.checkout-page .checkout-card {
	padding: clamp(1.2rem, 2.4vw, 1.8rem) !important;
}

body.checkout-page .wc-block-components-main,
body.checkout-page .wc-block-checkout__sidebar,
body.checkout-page .wc-block-components-sidebar,
body.checkout-page .checkout-layout__main,
body.checkout-page .checkout-layout__summary {
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	box-sizing: border-box;
	justify-self: stretch;
}

body.checkout-page .wc-block-checkout__sidebar,
body.checkout-page .wc-block-components-sidebar,
body.checkout-page .wp-block-woocommerce-checkout-totals-block,
body.checkout-page .checkout-layout__summary {
	padding: clamp(1.25rem, 2.4vw, 1.85rem) !important;
	border-color: color-mix(in srgb, var(--line-strong) 88%, var(--red)) !important;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.09) !important;
}

@media (min-width: 1250px) {
	body.checkout-page .wc-block-checkout__sidebar,
	body.checkout-page .wc-block-components-sidebar,
	body.checkout-page .wp-block-woocommerce-checkout-totals-block,
	body.checkout-page .checkout-layout__summary {
		top: calc(118px + 0.8rem) !important;
	}
}

body.checkout-page .wc-block-components-order-summary-item {
	grid-template-columns: 4.15rem minmax(0, 1fr) auto !important;
	gap: 0.9rem !important;
	padding: 1rem 0 !important;
}

body.checkout-page .wc-block-components-order-summary-item__image {
	width: 4.15rem !important;
	height: 4.15rem !important;
}

body.checkout-page .wc-block-components-text-input input,
body.checkout-page .wc-block-components-combobox .wc-block-components-combobox-control input,
body.checkout-page .wc-blocks-components-select .wc-blocks-components-select__select,
body.checkout-page .wc-block-components-textarea,
body.checkout-page .woocommerce-checkout .form-row input,
body.checkout-page .woocommerce-checkout .form-row select,
body.checkout-page .woocommerce-checkout .form-row textarea {
	min-height: 3.25rem !important;
}

body.checkout-page .wc-block-components-textarea,
body.checkout-page .woocommerce-checkout .form-row textarea {
	min-height: 8rem !important;
}

/* -------------------------------------------------------------------------
 * Catalogue and product detail refinement
 * ---------------------------------------------------------------------- */

body.post-type-archive-product #secondary,
body.tax-product_cat #secondary,
body.tax-product_tag #secondary,
body.search-results.product-search-page #secondary {
	display: none !important;
}

.product-search .category-layout,
.shop-archive .category-layout {
	align-items: start;
}

.product-search .shop-archive__results,
.product-search__results {
	min-width: 0;
}

.product-search__toolbar,
.shop-archive__toolbar,
.category-toolbar {
	gap: 0.85rem;
	border-color: var(--line);
	border-radius: 0.95rem;
	background: color-mix(in srgb, var(--surface) 88%, var(--surface-2));
	padding: clamp(0.75rem, 1.8vw, 1rem);
}

.product-search__toolbar-actions,
.shop-archive__toolbar-actions,
.category-toolbar__actions {
	gap: 0.55rem;
}

.product-search__deal-toggle,
.shop-archive__deal-toggle,
.category-toolbar .woocommerce-ordering,
.product-search__ordering {
	min-height: 2.6rem;
	border-radius: 0.68rem;
}

.product-search__ordering label {
	font-size: 0.72rem;
}

.product-search__ordering select,
.shop-archive .woocommerce-ordering select,
.category-toolbar .woocommerce-ordering select {
	min-height: 2.5rem;
	border-radius: 0.62rem;
	font-size: 0.8rem;
	font-weight: 800;
}

.shop-archive__filters,
.category-filter,
.shop-filter-sidebar {
	border-color: color-mix(in srgb, var(--line-strong) 88%, var(--red));
	border-radius: 1rem;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

@media (min-width: 981px) {
	body.product-search-page .product-search .category-layout {
		--shop-archive-header-offset: 8.5rem;
	}

	body.product-search-page .product-search .category-filters {
		top: var(--shop-archive-header-offset);
		max-height: calc(100vh - var(--shop-archive-header-offset) - 1rem);
	}
}

.shop-archive__filter-form {
	display: grid;
	gap: 0.7rem;
	padding-top: 1rem;
}

.shop-archive__filter-price-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.5rem;
}

.shop-archive__filter-form label {
	display: grid;
	gap: 0.28rem;
	min-width: 0;
}

.shop-archive__filter-form label > span {
	color: var(--muted);
	font-size: 0.7rem;
	font-weight: 850;
}

.shop-archive__filter-form input,
.shop-archive__filter-form select {
	width: 100%;
	min-width: 0;
	min-height: 2.5rem;
	border: 1px solid var(--line);
	border-radius: 0.62rem;
	background: var(--surface-2);
	color: var(--text);
	padding: 0.5rem 0.58rem;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 750;
}

.shop-archive__filter-form input:focus,
.shop-archive__filter-form select:focus {
	border-color: var(--red);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 12%, transparent);
	outline: 0;
}

.shop-archive__filter-apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 2.65rem;
	border: 1px solid color-mix(in srgb, var(--red) 62%, var(--line));
	border-radius: 0.66rem;
	background: color-mix(in srgb, var(--red) 9%, var(--surface));
	color: var(--red);
	cursor: pointer;
	font: inherit;
	font-size: 0.78rem;
	font-weight: 900;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.shop-archive__filter-apply .icon {
	width: 0.85rem;
	height: 0.85rem;
}

@media (hover: hover) and (pointer: fine) {
	.shop-archive__filter-apply:hover {
		background: var(--red);
		color: #fff;
		transform: translateY(-1px);
	}
}

.shop-archive .woocommerce-pagination,
.product-search__pagination,
.category-pagination {
	display: flex;
	justify-content: center;
	width: 100%;
	margin-top: clamp(1.75rem, 4vw, 3rem);
	padding-top: clamp(1rem, 2.5vw, 1.6rem);
	border-top: 1px solid var(--line);
}

.shop-archive .woocommerce-pagination ul,
.product-search__pagination .page-numbers,
.category-pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.42rem;
	margin: 0;
	border: 0;
	padding: 0;
}

.shop-archive .woocommerce-pagination li,
.product-search__pagination .page-numbers li,
.category-pagination .page-numbers li {
	border: 0;
	margin: 0;
}

.shop-archive .woocommerce-pagination a,
.shop-archive .woocommerce-pagination span,
.product-search__pagination .page-numbers a,
.product-search__pagination .page-numbers span,
.category-pagination .page-numbers a,
.category-pagination .page-numbers span {
	display: grid;
	place-items: center;
	min-width: 2.55rem;
	height: 2.55rem;
	border: 1px solid var(--line);
	border-radius: 0.68rem;
	background: var(--surface);
	color: var(--text-soft);
	font-size: 0.84rem;
	font-weight: 850;
	text-decoration: none;
	transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.shop-archive .woocommerce-pagination .current,
.product-search__pagination .page-numbers .current,
.category-pagination .page-numbers .current {
	border-color: var(--red);
	background: var(--red);
	color: #fff;
}

@media (hover: hover) and (pointer: fine) {
	.shop-archive .woocommerce-pagination a:hover,
	.product-search__pagination .page-numbers a:hover,
	.category-pagination .page-numbers a:hover {
		border-color: color-mix(in srgb, var(--red) 60%, var(--line));
		color: var(--red);
		transform: translateY(-1px);
	}
}

.single-product .product-detail__seller {
	display: none !important;
}

.single-product .product-detail__reviews {
	margin-top: clamp(2rem, 4vw, 3.5rem);
	border-top: 1px solid var(--line);
	padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.single-product .product-detail__reviews .woocommerce-Reviews-title,
.single-product .product-detail__reviews .woocommerce-noreviews {
	display: none !important;
}

.single-product .product-detail__reviews #reply-title {
	color: var(--text);
	font-family: Manrope, Inter, sans-serif;
	font-weight: 900;
	letter-spacing: -0.035em;
}

.single-product .product-detail__related {
	margin-top: clamp(2.3rem, 5vw, 4rem);
}

/* -------------------------------------------------------------------------
 * Footer: no horizontal clipping on a handset
 * ---------------------------------------------------------------------- */

@media (max-width: 720px) {
	.market-footer,
	.market-footer * {
	max-width: 100%;
	}

	.market-footer {
	width: 100%;
	overflow-x: hidden;
	overflow-x: clip;
	}

	.market-footer .footer-grid,
	.market-footer .footer-bottom,
	.market-footer .footer-care {
	width: min(calc(100% - 2rem), 38rem);
	margin-right: auto;
	margin-left: auto;
	}

	.market-footer .footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.2rem;
	}

	.market-footer .footer-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem 0.8rem;
	overflow: visible;
	padding: 0;
	}

	.market-footer .footer-cols > nav {
	width: auto;
	min-width: 0;
	}

	.market-footer .footer-grid nav a {
	display: block;
	overflow-wrap: anywhere;
	padding: 0.42rem 0;
	}

	.market-footer .footer-bottom {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.7rem;
	padding-bottom: max(1rem, env(safe-area-inset-bottom));
	text-align: left;
	}
}

@media (max-width: 480px) {
	.td-search-overlay {
		place-items: stretch;
		padding: 0;
	}

	.td-search-overlay__panel {
		min-height: 100dvh;
		border: 0;
		border-radius: 0;
		padding: 1rem;
	}

	.td-search-overlay__head h2 {
		font-size: 1.35rem;
	}

	.td-search-overlay__form {
		grid-template-columns: minmax(0, 1fr);
	}

	.td-search-overlay__category-wrap {
		min-height: 3.35rem;
	}

	.td-search-overlay__submit {
		min-height: 3.35rem;
	}

	.td-search-overlay__results {
		grid-template-columns: minmax(0, 1fr);
	}

	.td-search-overlay__product {
		grid-template-columns: 4.5rem minmax(0, 1fr) auto;
		gap: 0.65rem;
	}

	.td-search-overlay__product-media {
		width: 4.5rem;
		height: 4.5rem;
	}

	.cart-drawer__head,
	.cart-drawer__foot {
		padding-right: 1rem;
		padding-left: 1rem;
	}

	.cart-drawer__body {
		padding: 0.8rem 0.9rem 1rem;
	}

	.cart-drawer__summary-area {
		padding-right: 0.9rem;
		padding-left: 0.9rem;
	}

	.cart-drawer .cart-item {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 0.65rem;
	}

	.cart-drawer .cart-item__media {
		width: 72px;
		height: 72px;
	}

	body.checkout-page .site-main {
		width: min(calc(100% - 1.25rem), 100%) !important;
	}

	body.checkout-page .wc-block-components-checkout-step,
	body.checkout-page .wc-block-checkout__payment-method,
	body.checkout-page .wc-block-checkout__shipping-method,
	body.checkout-page .wc-block-checkout__order-notes,
	body.checkout-page .checkout-card,
	body.checkout-page .wc-block-checkout__sidebar,
	body.checkout-page .wc-block-components-sidebar,
	body.checkout-page .wp-block-woocommerce-checkout-totals-block,
	body.checkout-page .checkout-layout__summary {
		padding: 1rem !important;
		border-radius: 0.9rem !important;
	}

	body.checkout-page .wc-block-components-order-summary-item {
		grid-template-columns: 3.55rem minmax(0, 1fr) !important;
	}

	body.checkout-page .wc-block-components-order-summary-item__image {
		width: 3.55rem !important;
		height: 3.55rem !important;
	}

	.market-footer .footer-cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 1rem;
	}
}

@keyframes td-search-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.market-header .brand .brand__logo,
	.market-header .brand::after,
	.all-categories,
	.all-categories .icon:last-child,
	.td-search-overlay,
	.td-search-overlay__panel,
	.td-search-overlay__close,
	.td-search-overlay__submit,
	.td-search-overlay__category-chips button,
	.td-search-overlay__product,
	.td-search-overlay__product-media img,
	.td-search-overlay__product-arrow,
	.cart-drawer__close,
	.shop-archive .woocommerce-pagination a,
	.product-search__pagination .page-numbers a,
	.category-pagination .page-numbers a {
		transition-duration: 0.01ms !important;
	}

	.td-search-overlay__spinner {
		animation: none;
	}
}
