/* ==========================================================================
   Unicorn Elementor Blocks — WooCommerce Shop / Category Archive
   Standalone hand-written stylesheet. All selectors scoped under .ueb-shop.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base / reset
   -------------------------------------------------------------------------- */
.ueb-shop {
	width: 100%;
	/* Constrain + centre ourselves — the theme's content wrappers are
	   full-bleed (no max-width), so without this the layout sprawls edge
	   to edge on wide screens. */
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 clamp(16px, 4vw, 32px) 80px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: transparent;
	box-sizing: border-box;
}

.ueb-shop *,
.ueb-shop *::before,
.ueb-shop *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Breadcrumb
   -------------------------------------------------------------------------- */
.ueb-shop__breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 22.5px;
	color: #727371;
}

.ueb-shop__breadcrumb a {
	color: #727371;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ueb-shop__breadcrumb a:hover {
	color: #3a124d;
}

.ueb-shop__crumb-sep {
	color: #727371;
	font-size: 12px;
	line-height: 1;
}

/* --------------------------------------------------------------------------
   Form wrapper
   -------------------------------------------------------------------------- */
.ueb-shop__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* --------------------------------------------------------------------------
   Header (title + sort)
   -------------------------------------------------------------------------- */
.ueb-shop__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	padding: 16px 0;
}

.ueb-shop__heading {
	min-width: 0;
}

.ueb-shop__title {
	margin: 0;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 40px;
	letter-spacing: -0.9px;
	color: #1b1c19;
}

.ueb-shop__desc {
	margin-top: 8px;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #727371;
}

.ueb-shop__desc p {
	margin: 0;
	max-width: 560px;
}

/* --------------------------------------------------------------------------
   Sort control
   -------------------------------------------------------------------------- */
.ueb-sort {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 160px;
	flex-shrink: 0;
	background: #ffffff;
	border: 1px solid rgba(196, 198, 204, 0.6);
	border-radius: 12px;
	padding: 11px 17px;
	cursor: pointer;
}

.ueb-sort__label {
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #3a124d;
	white-space: nowrap;
}

.ueb-sort__select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	margin: 0;
	padding: 0 14px 0 0;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #3a124d;
	cursor: pointer;
	flex: 1 1 auto;
	min-width: 0;
}

.ueb-sort__select:focus {
	outline: none;
}

.ueb-sort__select:focus-visible {
	outline: 2px solid #3a124d;
	outline-offset: 2px;
	border-radius: 4px;
}

/* CSS-drawn down chevron */
.ueb-sort__caret {
	position: absolute;
	right: 17px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid #3a124d;
	border-bottom: 2px solid #3a124d;
	transform: rotate(45deg);
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   Header controls (sort + mobile filters toggle)
   -------------------------------------------------------------------------- */
.ueb-shop__controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

/* Mobile-only "Filters" toggle button — hidden on desktop. */
.ueb-filters-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid rgba(196, 198, 204, 0.6);
	border-radius: 12px;
	padding: 11px 17px;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #3a124d;
	cursor: pointer;
}

.ueb-filters-toggle__icon {
	flex-shrink: 0;
}

.ueb-filters-toggle__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #3a124d;
	color: #ffffff;
	font-size: 11px;
	line-height: 1;
}

.ueb-filters-toggle__count[hidden] {
	display: none;
}

/* Popup chrome — invisible until the mobile media query opts them in. */
.ueb-filters-backdrop,
.ueb-filters__close {
	display: none;
}

/* --------------------------------------------------------------------------
   Body layout (sidebar + main)
   -------------------------------------------------------------------------- */
.ueb-shop__body {
	display: flex;
	gap: 51px;
	align-items: flex-start;
}

.ueb-shop__sidebar {
	flex: 0 0 281px;
	width: 281px;
}

.ueb-shop__main {
	flex: 1 1 auto;
	min-width: 0;
}

/* --------------------------------------------------------------------------
   Filters panel
   -------------------------------------------------------------------------- */
.ueb-filters {
	background: #ffffff;
	border-radius: 24px;
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ueb-filters__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.ueb-filters__title {
	margin: 0;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 24px;
	letter-spacing: -0.4px;
	color: #0d1b2a;
	opacity: 0.8;
}

.ueb-filters__clear {
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	font-size: 15px;
	color: #3a124d;
	text-decoration: none;
	cursor: pointer;
}

.ueb-filters__clear:hover {
	text-decoration: underline;
}

/* Filter group — divider line before every group */
.ueb-filter {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-top: 16px;
	border-top: 1px solid rgba(196, 198, 204, 0.4);
}

.ueb-filter__title {
	margin: 0;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: -0.4px;
	color: #0d1b2a;
	opacity: 0.8;
}

.ueb-filter__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* --------------------------------------------------------------------------
   Checkboxes (radio-style filled indicator)
   -------------------------------------------------------------------------- */
.ueb-check__label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.ueb-check__input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ueb-check__mark {
	position: relative;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	background: #ffffff;
	border: 2px solid #3a124d;
	border-radius: 50%;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.ueb-check__input:checked + .ueb-check__mark {
	background: #3a124d;
}

.ueb-check__input:checked + .ueb-check__mark::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	background: #ffffff;
	border-radius: 50%;
}

.ueb-check__input:focus-visible + .ueb-check__mark {
	box-shadow: 0 0 0 3px rgba(58, 18, 77, 0.25);
}

.ueb-check__text {
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	color: #0d1b2a;
	opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Price range slider (dual-handle)
   -------------------------------------------------------------------------- */
.ueb-range {
	position: relative;
	height: 20px;
	margin: 8px 0;
	width: 100%;
}

.ueb-range__track {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 4px;
	border-radius: 9999px;
	background: rgba(196, 198, 204, 0.7);
}

.ueb-range__fill {
	position: absolute;
	height: 100%;
	background: #3a124d;
	border-radius: 9999px;
}

/* Both native range inputs overlap the custom track */
.ueb-range__input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 20px;
	margin: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.ueb-range__input--max {
	z-index: 4;
}

.ueb-range__input--min {
	z-index: 3;
}

/* Invisible native tracks — let the custom track show through */
.ueb-range__input::-webkit-slider-runnable-track {
	-webkit-appearance: none;
	appearance: none;
	height: 20px;
	background: transparent;
	border: 0;
}

.ueb-range__input::-moz-range-track {
	height: 20px;
	background: transparent;
	border: 0;
}

/* Interactive thumbs.
   The runnable track is the same height (20px) as the thumb, so the thumb
   needs no negative margin — WebKit centres it on the track. */
.ueb-range__input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	margin-top: 0;
	background: #ffffff;
	border: 2.5px solid #3a124d;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ueb-range__input::-moz-range-thumb {
	pointer-events: auto;
	box-sizing: border-box;
	width: 20px;
	height: 20px;
	background: #ffffff;
	border: 2.5px solid #3a124d;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ueb-range__input:focus-visible::-webkit-slider-thumb {
	outline: 2px solid #3a124d;
	outline-offset: 2px;
}

.ueb-range__input:focus-visible::-moz-range-thumb {
	outline: 2px solid #3a124d;
	outline-offset: 2px;
}

/* Value labels — JS positions each one centred under its thumb so the
   current price tracks the handle live while dragging. */
.ueb-range__values {
	position: relative;
	height: 18px;
	margin-top: 8px;
}

.ueb-range__value {
	position: absolute;
	top: 0;
	left: 0;
	transform: translateX(-50%);
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 18px;
	color: #6e7482;
	white-space: nowrap;
	transition: color 0.12s ease;
}

.ueb-range__value.is-active {
	font-weight: 700;
	color: #3a124d;
}

/* --------------------------------------------------------------------------
   Footer actions (Clear all + Save / Apply)

   Colours are pinned with !important across hover/focus/active because the
   production theme repaints any <button> crimson on those states — see the
   theme-button-hover-override note.
   -------------------------------------------------------------------------- */
.ueb-filters__grabber {
	display: none;
}

.ueb-filters__actions {
	display: flex;
}

/* The bottom "Clear all" button only appears in the mobile popup; on desktop
   the header "Clear All" link covers it. */
.ueb-filters__clear-btn {
	display: none;
}

/* Default label is "Apply Filters"; the popup swaps in "Save". */
.ueb-filters__apply-label--save {
	display: none;
}

.ueb-shop .ueb-filters__apply,
.ueb-shop .ueb-filters__apply:link,
.ueb-shop .ueb-filters__apply:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background-color: #3a124d !important;
	color: #ffffff !important;
	border: 1px solid #3a124d !important;
	border-radius: 12px;
	padding: 11px 16px;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.ueb-shop .ueb-filters__apply:hover,
.ueb-shop .ueb-filters__apply:focus,
.ueb-shop .ueb-filters__apply:focus-visible,
.ueb-shop .ueb-filters__apply:active {
	background-color: #2c0e3b !important;
	color: #ffffff !important;
	border-color: #2c0e3b !important;
}

.ueb-filters__apply:focus-visible {
	outline: 2px solid #3a124d;
	outline-offset: 2px;
}

/* With JS, filters auto-submit — hide the fallback action row on desktop. */
.ueb-shop__form--js .ueb-filters__actions {
	display: none;
}

/* --------------------------------------------------------------------------
   WooCommerce notices
   -------------------------------------------------------------------------- */
.ueb-shop__main .woocommerce-message,
.ueb-shop__main .woocommerce-info,
.ueb-shop__main .woocommerce-error {
	margin: 0 0 20px;
	padding: 14px 18px;
	border: 1px solid transparent;
	border-radius: 12px;
	list-style: none;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
}

.ueb-shop__main .woocommerce-message {
	background: #f0fdf4;
	border-color: #bbf7d0;
	color: #166534;
}

.ueb-shop__main .woocommerce-info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e40af;
}

.ueb-shop__main .woocommerce-error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.ueb-shop__main .woocommerce-message .button,
.ueb-shop__main .woocommerce-info .button {
	margin-left: auto;
	padding: 7px 14px;
	border-radius: 9999px;
	background: #3a124d;
	color: #ffffff;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 13px;
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   Product grid
   -------------------------------------------------------------------------- */
.ueb-shop__main ul.products {
	list-style: none;
	margin: 0;
	padding: 0;
	/* `!important` defeats themes that force `ul.products` to flex via a
	   `.products-list.grid` rule — which otherwise drops the column gap and
	   breaks row alignment. The grid is fully owned here. */
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px 20px !important;
}

.ueb-shop__main ul.products::before,
.ueb-shop__main ul.products::after {
	content: none;
	display: none;
}

.ueb-shop__main ul.products li.product {
	float: none;
	clear: none;
	width: auto;
	margin: 0;
}

.ueb-shop__main ul.products li.product::before,
.ueb-shop__main ul.products li.product::after {
	content: none;
	display: none;
}

/* --------------------------------------------------------------------------
   Product card (matches .ueb-product-card from product-grid.css)
   -------------------------------------------------------------------------- */
.ueb-product-card {
	background: #f4f4ff;
	border-radius: 20px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	position: relative;
	overflow: hidden;
	width: auto;
	margin: 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ueb-product-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.ueb-product-card__image-link {
	display: block;
	text-decoration: none;
}

.ueb-product-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
}

.ueb-product-card__image .ueb-product-card__img,
.ueb-product-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Badges */
.ueb-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 4px 12px;
	border-radius: 9999px;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 10px;
	line-height: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #ffffff;
	white-space: nowrap;
	pointer-events: none;
	z-index: 2;
}

.ueb-badge--sale {
	background: #ba1a1a;
}

.ueb-badge--new {
	background: #3a124d;
}

.ueb-badge--oos {
	background: #6b7280;
	color: #ffffff;
}

/* Added-to-cart toast */
.ueb-product-card__toast {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	opacity: 0;
	transition: opacity 0.25s ease;
	pointer-events: none;
	z-index: 3;
	background: #3a124d;
	border-radius: 9999px;
	padding: 8px 12px;
	text-align: center;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ueb-product-card__toast.is-visible {
	opacity: 1;
}

.ueb-product-card__toast-text {
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 10px;
	line-height: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #ffffff;
}

/* Title + subtitle */
.ueb-product-card__title-link {
	display: block;
	margin-top: 16px;
	text-decoration: none;
	color: inherit;
}

.ueb-product-card__title-link:hover {
	text-decoration: none;
}

.ueb-product-card__title {
	margin: 0;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	font-size: 18px;
	line-height: 28px;
	color: #1b1c19;
	/* Clamp to two lines so cards keep a consistent height. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	overflow: hidden;
	min-height: 56px;
}

.ueb-product-card__subtitle {
	margin: 0;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #44474c;
}

/* Footer (prices + cart) */
.ueb-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 4px;
}

.ueb-product-card__prices {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
}

.ueb-product-card__old-price {
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	color: #44474c;
	text-decoration: line-through;
}

.ueb-product-card__old-price .woocommerce-Price-amount,
.ueb-product-card__old-price bdi {
	text-decoration: line-through;
}

.ueb-product-card__price {
	font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 28px;
	color: #3a124d;
	white-space: nowrap;
}

.ueb-product-card__price del {
	display: none;
}

.ueb-product-card__price ins {
	text-decoration: none;
	background: transparent;
}

.ueb-product-card__price bdi,
.ueb-product-card__price .woocommerce-Price-amount,
.ueb-product-card__price .woocommerce-Price-currencySymbol {
	color: inherit;
	font-size: inherit;
	font-family: inherit;
	font-weight: inherit;
}

/* Cart button */
.ueb-product-card__cart-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	background: #3a124d;
	color: #ffffff;
	border: 0;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ueb-product-card__cart-btn:hover,
.ueb-product-card__cart-btn:active,
.ueb-product-card__cart-btn:focus-visible {
	background: #3a124d;
	color: #ffffff;
	transform: none;
	text-decoration: none;
}

.ueb-product-card__cart-btn:focus-visible {
	outline: 2px solid #3a124d;
	outline-offset: 2px;
}

.ueb-product-card__cart-btn svg {
	width: 18px;
	height: 18px;
	display: block;
	color: inherit;
}

.ueb-product-card__cart-btn svg path,
.ueb-product-card__cart-btn svg circle,
.ueb-product-card__cart-btn svg line,
.ueb-product-card__cart-btn svg polyline {
	stroke: currentColor;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.ueb-shop__main .woocommerce-pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
	max-width: 100%;
	/* Themes commonly draw a top border / divider line on the pagination
	   <nav> — strip it so only our page buttons show. */
	border: 0 !important;
}

.ueb-shop__main .woocommerce-pagination ul.page-numbers {
	list-style: none;
	display: flex;
	/* Wrap the page buttons so a long list can never push past the viewport
	   and make the page scroll sideways on mobile. */
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 0;
	margin: 0;
	max-width: 100%;
	border: 0 !important;
}

.ueb-shop__main .woocommerce-pagination ul.page-numbers li {
	margin: 0;
	padding: 0;
	border: 0 !important;
}

.ueb-shop__main .woocommerce-pagination .page-numbers {
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	border-radius: 10px;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	color: #1b1c19;
	background: #ffffff;
	text-decoration: none;
	border: 1px solid rgba(196, 198, 204, 0.6);
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ueb-shop__main .woocommerce-pagination .page-numbers.current {
	background: #3a124d;
	color: #ffffff;
	border-color: #3a124d;
}

.ueb-shop__main .woocommerce-pagination a.page-numbers:hover {
	border-color: #3a124d;
	color: #3a124d;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.ueb-shop__empty {
	padding: 64px 24px;
	text-align: center;
	background: #ffffff;
	border-radius: 24px;
}

.ueb-shop__empty-title {
	margin: 0;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #1b1c19;
}

.ueb-shop__empty-text {
	margin: 8px 0 20px;
	font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
	font-weight: 400;
	font-size: 14px;
	color: #727371;
}

.ueb-shop__empty-clear {
	display: inline-block;
	background: #3a124d;
	color: #ffffff;
	padding: 11px 20px;
	border-radius: 12px;
	text-decoration: none;
	font-family: "Inter", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 14px;
}

.ueb-shop__empty-clear:hover {
	background: #2c0e3b;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
	.ueb-shop__body {
		gap: 32px;
	}
	.ueb-shop__sidebar {
		flex-basis: 260px;
		width: 260px;
	}
}

@media (max-width: 1024px) {
	.ueb-shop__body {
		flex-direction: column;
		/* Column flex flips align-items to the horizontal axis — without
		   `stretch` the children shrink to their content width and the product
		   grid sizes to max-content, overflowing the viewport. */
		align-items: stretch;
	}
	.ueb-shop__sidebar {
		flex-basis: auto;
		width: 100%;
	}
	.ueb-shop__main {
		width: 100%;
		min-width: 0;
	}
	.ueb-shop__main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.ueb-shop__title {
		font-size: 28px;
		line-height: 32px;
	}
}

@media (max-width: 768px) {
	.ueb-shop__header {
		flex-wrap: wrap;
	}
	.ueb-shop__main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px !important;
	}
	.ueb-product-card {
		padding: 14px;
	}
	.ueb-product-card__title {
		font-size: 16px;
		line-height: 24px;
		min-height: 48px;
	}
	.ueb-product-card__price {
		font-size: 16px;
		line-height: 24px;
	}
	.ueb-product-card__cart-btn {
		width: 32px;
		height: 32px;
	}
	.ueb-product-card__cart-btn svg {
		width: 14px;
		height: 14px;
	}
}

@media (max-width: 560px) {
	/* Phones: two products per line. The columns shrink to fit the container
	   (minmax(0,1fr) + the width guards below keep them inside — no overflow). */
	.ueb-shop__main ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 12px !important;
	}
	.ueb-shop__main ul.products li.product {
		width: auto !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
	.ueb-product-card {
		padding: 10px;
	}
	.ueb-product-card__title {
		font-size: 14px;
		line-height: 20px;
		min-height: 40px;
	}
	.ueb-product-card__price {
		font-size: 14px;
		line-height: 20px;
	}
	.ueb-shop__title {
		font-size: 24px;
		line-height: 28px;
	}
	/* Compact pagination buttons so a full row fits comfortably on phones. */
	.ueb-shop__main .woocommerce-pagination .page-numbers {
		min-width: 36px;
		height: 36px;
		font-size: 13px;
	}
}

/* ==========================================================================
   Mobile filters — collapsed behind a toggle, opened as a bottom-sheet popup
   ========================================================================== */
@media (max-width: 768px) {
	/* Surface the toggle next to the sort control. */
	.ueb-filters-toggle {
		display: inline-flex;
	}

	/* Toggle + sort share one full-width row and may shrink so they never
	   overflow the viewport. */
	.ueb-shop__controls {
		width: 100%;
	}
	.ueb-filters-toggle {
		flex: 1 1 0;
		min-width: 0;
		justify-content: center;
	}
	.ueb-sort {
		flex: 1 1 0;
		min-width: 0;
	}

	/* The sidebar is no longer inline — it becomes a full-screen overlay
	   that is only rendered while open. */
	.ueb-shop__sidebar {
		display: none;
		position: fixed;
		inset: 0;
		/* Above the fixed mobile bottom nav (.ueb-mnav, z-index 9990) so the
		   sheet overlays it instead of being clipped behind it. */
		z-index: 10000;
		width: auto;
		flex: none;
	}
	.ueb-shop__sidebar.is-open {
		display: block;
	}

	.ueb-filters-backdrop {
		display: block;
		position: absolute;
		inset: 0;
		background: rgba(13, 27, 42, 0.5);
		opacity: 0;
		animation: ueb-filters-fade 0.2s ease forwards;
	}

	/* Full-screen modal — fills the viewport (Figma 217:57). */
	.ueb-shop__sidebar .ueb-filters {
		position: absolute;
		inset: 0;
		max-height: none;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		gap: 16px;
		padding: max(16px, env(safe-area-inset-top)) 32px max(20px, env(safe-area-inset-bottom));
		border-radius: 0;
		transform: translateY(100%);
		animation: ueb-filters-slide 0.28s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	}

	/* Drag-handle pill. */
	.ueb-filters__grabber {
		display: block;
		align-self: center;
		width: 58px;
		height: 6px;
		border-radius: 32px;
		background: #d1d5dc;
	}

	.ueb-filters__head {
		align-items: center;
		gap: 12px;
	}
	.ueb-filters__title {
		font-size: 18px;
		line-height: 22.5px;
		color: #3a124d;
		opacity: 1;
	}
	/* The header "Clear All" link is replaced by the footer button on mobile. */
	.ueb-filters__clear {
		display: none;
	}

	/* Round close button — colours pinned so the theme can't repaint it. */
	.ueb-shop .ueb-filters__close,
	.ueb-shop .ueb-filters__close:hover,
	.ueb-shop .ueb-filters__close:focus,
	.ueb-shop .ueb-filters__close:active {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		margin-left: auto;
		width: 32px;
		height: 32px;
		padding: 0;
		border: 0 !important;
		border-radius: 50% !important;
		background-color: #f9fafb !important;
		color: #0d1b2a !important;
		cursor: pointer;
	}

	/* Footer: Clear all + Save, pinned to the sheet bottom. */
	.ueb-shop__form--js .ueb-filters__actions,
	.ueb-filters__actions {
		display: flex;
		gap: 12px;
		position: sticky;
		bottom: 0;
		padding-top: 4px;
		background: #ffffff;
	}

	.ueb-filters__apply-label--default {
		display: none;
	}
	.ueb-filters__apply-label--save {
		display: inline;
	}

	/* Both footer buttons share the row; Figma rounds them fully (32px). */
	.ueb-shop .ueb-filters__apply,
	.ueb-shop .ueb-filters__clear-btn {
		flex: 1 1 0;
		min-width: 0;
		height: 42px;
		padding: 0 16px;
		border-radius: 32px;
		font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
		font-size: 16px;
	}

	.ueb-shop .ueb-filters__apply {
		box-shadow: 0 10px 15px -3px rgba(129, 59, 159, 0.2),
			0 4px 6px -4px rgba(129, 59, 159, 0.2);
	}

	/* Outline "Clear all" — assert colours across every state. */
	.ueb-shop .ueb-filters__clear-btn,
	.ueb-shop .ueb-filters__clear-btn:link,
	.ueb-shop .ueb-filters__clear-btn:visited,
	.ueb-shop .ueb-filters__clear-btn:hover,
	.ueb-shop .ueb-filters__clear-btn:focus,
	.ueb-shop .ueb-filters__clear-btn:active {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background-color: #ffffff !important;
		color: #3a124d !important;
		border: 1px solid #3a124d !important;
		text-decoration: none !important;
		font-weight: 400;
	}

	/* Stop the page behind the popup from scrolling. */
	body.ueb-filters-open {
		overflow: hidden;
	}
}

@keyframes ueb-filters-fade {
	to {
		opacity: 1;
	}
}

@keyframes ueb-filters-slide {
	to {
		transform: translateY(0);
	}
}
