/* Ovindo Products Catalog */
.ovd-catalog {
	--ovd-primary: #2F8FE0;
	--ovd-primary-dark: #1D6FBD;
	--ovd-ink: #0B1B2B;
	--ovd-text: #3A4250;
	--ovd-muted: #5B6472;
	--ovd-line: #E2E6EC;
	--ovd-soft: #F1F5F9;
	--ovd-tint: #E8F2FC;
	display: block;
	color: var(--ovd-ink);
	scroll-margin-top: 100px;
}
.ovd-catalog--sidebar {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
.ovd-main { min-width: 0; container-type: inline-size; }
.ovd-catalog *, .ovd-catalog *::before, .ovd-catalog *::after { box-sizing: border-box; }
.ovd-catalog a { text-decoration: none; box-shadow: none; }
.ovd-catalog ul { list-style: none; margin: 0; padding: 0; }
.ovd-catalog ul li { margin: 0; padding: 0; }
.ovd-catalog ul li::before { display: none; }

/* Sidebar */
.ovd-side {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	background: #fff;
	border: 1px solid var(--ovd-line);
	border-radius: 6px;
	padding: 18px 12px;
}
.ovd-side__group + .ovd-side__group, .ovd-panel > .ovd-side__group { border-top: 1px solid var(--ovd-line); padding-top: 18px; }
.ovd-panel { display: flex; flex-direction: column; gap: 18px; }
.ovd-panel--top { gap: 12px; margin-bottom: 16px; }
.ovd-panel--top > .ovd-pills { border-top: 0; padding-top: 0; }

/* Sticky sidebar on desktop (layout="sidebar"). */
@media (min-width: 861px) {
	.ovd-sticky .ovd-side {
		position: sticky;
		top: var(--ovd-sticky-top, 100px);
		max-height: calc(100vh - var(--ovd-sticky-top, 100px) - 16px);
		overflow-y: auto;
		overflow-x: hidden;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}
	/* JS fallback when a theme wrapper blocks CSS sticky. */
	.ovd-sticky.ovd-js-sticky .ovd-side { position: relative; top: 0; will-change: transform; }
}

/* Mobile-only pieces are hidden on desktop. */
.ovd-toolbar, .ovd-panel__head, .ovd-panel__foot, .ovd-panel__label, .ovd-backdrop { display: none; }
.ovd-side__label {
	margin: 0 0 8px;
	padding: 0 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ovd-muted);
}
.ovd-side__list { display: flex; flex-direction: column; gap: 2px; }
.ovd-cat, .ovd-type {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ovd-ink);
	transition: background .15s ease;
}
.ovd-cat { justify-content: space-between; }
.ovd-cat:hover, .ovd-type:hover { background: var(--ovd-soft); color: var(--ovd-ink); }
.ovd-cat.is-active { background: var(--ovd-ink); color: #fff; font-weight: 700; }
.ovd-cat.is-active .ovd-count { color: #8FB8E6; }
.ovd-type { font-size: 13.5px; color: var(--ovd-text); min-height: 36px; }
.ovd-type__name { flex: 1; }
.ovd-type.is-active { background: var(--ovd-tint); color: var(--ovd-primary-dark); font-weight: 700; }
.ovd-dot {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1.5px solid #96A3B5;
	background: #fff;
}
.ovd-type.is-active .ovd-dot { border: 4px solid var(--ovd-primary); }
.ovd-count { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--ovd-muted); }
.ovd-type.is-active .ovd-count { color: var(--ovd-primary-dark); }

/* Heading */
.ovd-head { margin-bottom: 6px; }
.ovd-head__title { margin: 0 0 6px; font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--ovd-ink); }
.ovd-head__desc { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--ovd-text); max-width: 680px; }
.ovd-showing { margin: 0 0 18px; font-size: 13.5px; color: var(--ovd-muted); }
.ovd-showing strong { color: var(--ovd-ink); }

/* Grid + card */
.ovd-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	align-items: stretch;
}
.ovd-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ovd-line);
	border-radius: 6px;
	overflow: hidden;
	transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ovd-card:hover { border-color: var(--ovd-primary); box-shadow: 0 14px 30px rgba(11, 27, 43, .12); transform: translateY(-4px); }
.ovd-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: var(--ovd-img-ratio, 4 / 3);
	background: var(--ovd-img-bg, #fff);
	border-bottom: 1px solid var(--ovd-line);
	padding: var(--ovd-img-pad, 12px);
	overflow: hidden;
}
.ovd-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: var(--ovd-img-fit, contain);
	object-position: center;
	margin: 0 !important;
	transform: scale(var(--ovd-img-zoom, 1));
	transform-origin: center;
}
.ovd-img-nodivider .ovd-card__media { border-bottom: 0; }
/* "Original" ratio: each photo keeps its own shape (card heights may differ). */
.ovd-img-auto .ovd-grid { align-items: start; }
.ovd-img-auto .ovd-card__media { aspect-ratio: auto; }
.ovd-img-auto .ovd-card__img { height: auto; }
.ovd-img-auto .ovd-card__ph { aspect-ratio: 4 / 3; }
.ovd-card__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--ovd-soft); color: #96A3B5; }
.ovd-card__ph .ovd-ico { width: 30px; height: 30px; }
.ovd-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ovd-primary-dark);
	background: #fff;
	border: 1px solid #CFE2F6;
	padding: 4px 9px;
	border-radius: 3px;
	pointer-events: none;
}
.ovd-card__body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 0; flex: 1; }
.ovd-card__brand { font-size: 12px; color: var(--ovd-muted); }
.ovd-card__title { margin: 0 !important; font-size: 16px !important; font-weight: 700; line-height: 1.3 !important; }
.ovd-card__title a { color: var(--ovd-ink); }
.ovd-card__title a:hover { color: var(--ovd-primary); }

/* Specs row */
.ovd-specs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin: 14px 0 0 !important;
	padding: 12px 0 !important;
	border-top: 1px solid #EEF1F4;
	border-bottom: 1px solid #EEF1F4;
}
.ovd-spec { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ovd-text); white-space: nowrap; }
.ovd-spec .ovd-ico { flex-shrink: 0; width: 15px; height: 15px; color: var(--ovd-primary); }

/* Buttons */
.ovd-actions { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px 18px; }
.ovd-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	border-radius: 4px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;
	transition: background .15s ease, color .15s ease;
}
.ovd-btn--primary { background: var(--ovd-primary); color: #fff !important; padding: 12px 14px; }
.ovd-btn--primary:hover { background: var(--ovd-primary-dark); }
.ovd-btn--primary .ovd-ico { width: 17px; height: 17px; }
.ovd-btn--link { color: var(--ovd-primary) !important; padding: 8px; }
.ovd-btn--link:hover { color: var(--ovd-primary-dark) !important; }

/* Pager + misc */
.ovd-pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ovd-pager__n {
	display: flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 12px;
	border: 1px solid var(--ovd-line); border-radius: 4px; background: #fff;
	font-weight: 700; color: var(--ovd-ink);
}
.ovd-pager__n:hover { border-color: var(--ovd-primary); color: var(--ovd-primary); }
.ovd-pager__n.is-active { background: var(--ovd-ink); border-color: var(--ovd-ink); color: #fff; }
.ovd-empty { padding: 40px; text-align: center; color: var(--ovd-muted); background: #fff; border: 1px dashed var(--ovd-line); border-radius: 6px; }
.ovd-catalog .screen-reader-text, .ovd-single .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ovd-catalog a:focus-visible, .ovd-single a:focus-visible { outline: 2px solid var(--ovd-primary); outline-offset: 2px; }

/* ---------- Top pills layout ---------- */
.ovd-bar { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 18px; }
.ovd-tabs, .ovd-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ovd-pills { padding-top: 14px; border-top: 1px solid var(--ovd-line); }
.ovd-tab, .ovd-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	border-radius: 999px;
	white-space: nowrap;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ovd-tab {
	padding: 10px 20px;
	background: #fff;
	border: 1px solid var(--ovd-line);
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ovd-ink);
}
.ovd-tab:hover { border-color: var(--ovd-ink); color: var(--ovd-ink); }
.ovd-tab.is-active { background: var(--ovd-ink); border-color: var(--ovd-ink); color: #fff; }
.ovd-tab.is-active .ovd-count { color: #8FB8E6; }
.ovd-pill {
	padding: 9px 16px;
	background: #fff;
	border: 1px solid #D5DBE3;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ovd-text);
}
.ovd-pill:hover { border-color: var(--ovd-primary); color: var(--ovd-primary-dark); }
.ovd-pill.is-active { background: var(--ovd-tint); border-color: var(--ovd-primary); color: var(--ovd-primary-dark); font-weight: 700; }
.ovd-pill.is-active .ovd-count { color: var(--ovd-primary-dark); }

/* ---------- Grid columns (follow the catalog's own width) ---------- */
.ovd-grid.ovd-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ovd-grid.ovd-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ovd-grid.ovd-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container (max-width: 1040px) {
	.ovd-grid.ovd-cols-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 760px) {
	.ovd-grid.ovd-cols-4, .ovd-grid.ovd-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@container (max-width: 500px) {
	.ovd-grid.ovd-cols-4, .ovd-grid.ovd-cols-3, .ovd-grid.ovd-cols-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
	.ovd-catalog--sidebar { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.ovd-side { position: static; padding: 14px 12px; }
	/* Sidebar becomes wrapped chips: everything visible, nothing to swipe. */
	.ovd-side__list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
	.ovd-cat, .ovd-type { border: 1px solid var(--ovd-line); white-space: nowrap; }
	.ovd-cat.is-active { border-color: var(--ovd-ink); }
	.ovd-type.is-active { border-color: var(--ovd-primary); }
	.ovd-type .ovd-dot { display: none; }
	.ovd-cat { gap: 10px; }

	/* Categories: equal-width segmented buttons across the full width. */
	.ovd-tabs {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
		gap: 8px;
	}
	.ovd-tab { width: 100%; justify-content: center; gap: 6px; padding: 10px 6px; font-size: 13.5px; }

	/* Types: wrap onto as many rows as needed, so every option is visible. */
	.ovd-pills { flex-wrap: wrap; gap: 8px; }
	.ovd-pill { padding: 9px 13px; font-size: 13px; }
	.ovd-head__title { font-size: 22px; }
}
@media (max-width: 500px) {
	.ovd-card__body { padding: 16px 16px 0; }
	.ovd-actions { padding: 14px 16px 16px; }
}

/* ---------- Product detail page ---------- */
.ovd-detail {
	--ovd-primary: #2F8FE0; --ovd-primary-dark: #1D6FBD; --ovd-ink: #0B1B2B; --ovd-text: #3A4250;
	--ovd-muted: #5B6472; --ovd-line: #E2E6EC; --ovd-soft: #F1F5F9;
	max-width: 1200px; margin: 0 auto; padding: 24px 0 56px; color: var(--ovd-ink);
}
.ovd-detail *, .ovd-detail *::before, .ovd-detail *::after { box-sizing: border-box; }
.ovd-detail a { text-decoration: none; box-shadow: none; }
.ovd-crumbs { font-size: 13px; color: var(--ovd-muted); margin-bottom: 20px; }
.ovd-crumbs a { color: var(--ovd-muted); }
.ovd-crumbs a:hover { color: var(--ovd-primary); }
.ovd-crumbs [aria-current] { color: var(--ovd-ink); font-weight: 600; }
.ovd-detail__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.ovd-detail__media {
	display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
	background: #fff; border: 1px solid var(--ovd-line); border-radius: 6px; padding: 20px;
}
.ovd-detail__img { width: 100%; height: 100%; object-fit: contain; margin: 0 !important; }
.ovd-detail__info { display: flex; flex-direction: column; gap: 6px; }
.ovd-detail__badge { position: static; align-self: flex-start; margin-bottom: 6px; }
.ovd-detail__title { margin: 0 !important; font-size: 32px !important; line-height: 1.2 !important; font-weight: 800; color: var(--ovd-ink); }
.ovd-detail .ovd-specs { list-style: none; margin: 14px 0 0 !important; padding: 14px 0 !important; border-top: 1px solid var(--ovd-line); border-bottom: 1px solid var(--ovd-line); gap: 8px 22px; }
.ovd-detail .ovd-spec { font-size: 15px; }
.ovd-detail .ovd-spec .ovd-ico { width: 18px; height: 18px; }
.ovd-detail .ovd-specs li::before { display: none; }
.ovd-detail__excerpt { margin: 14px 0 0; font-size: 15px; line-height: 1.7; color: var(--ovd-text); }
.ovd-detail .ovd-actions { flex-direction: row; flex-wrap: wrap; gap: 12px; padding: 20px 0 0; }
.ovd-detail .ovd-btn--primary { padding: 12px 22px; }
.ovd-detail .ovd-btn--link { border: 1px solid var(--ovd-primary); padding: 12px 22px; }
.ovd-detail__content { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--ovd-line); font-size: 15px; line-height: 1.75; color: var(--ovd-text); }
.ovd-detail__back { margin-top: 32px; font-weight: 700; }
.ovd-detail__back a { color: var(--ovd-primary); }
.ovd-detail .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 860px) {
	.ovd-detail { padding: 16px 16px 40px; }
	.ovd-detail__top { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.ovd-detail__title { font-size: 26px !important; }
}

/* ---------- Category overview cards [ovindo_categories] ---------- */
.ovd-catcard .ovd-card__title { font-size: 20px !important; }
.ovd-catcard__desc { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--ovd-text); }
.ovd-catcard .ovd-actions { padding-top: 18px; }

/* ---------- Short button labels (used by compact phone cards) ---------- */
.ovd-lbl-short { display: none; }

/* ---------- 2 columns on phones: compact cards ---------- */
@container (max-width: 500px) {
	.ovd-grid.ovd-m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ovd-m2 .ovd-card:hover { transform: none; }
	.ovd-m2 .ovd-card__media { padding: calc(var(--ovd-img-pad, 12px) / 2); }
	.ovd-m2 .ovd-card__badge { top: 6px; left: 6px; font-size: 9px; padding: 2px 6px; letter-spacing: .03em; }
	.ovd-m2 .ovd-card__body { padding: 10px 10px 0; gap: 2px; }
	.ovd-m2 .ovd-card__brand { font-size: 11px; }
	.ovd-m2 .ovd-card__title { font-size: 14px !important; }
	.ovd-m2 .ovd-specs { flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 8px !important; padding: 8px 0 !important; }
	.ovd-m2 .ovd-spec { font-size: 12px; white-space: normal; }
	.ovd-m2 .ovd-spec .ovd-ico { width: 13px; height: 13px; }
	.ovd-m2 .ovd-actions { padding: 10px; gap: 2px; }
	.ovd-m2 .ovd-btn { font-size: 12.5px; }
	.ovd-m2 .ovd-btn--primary { padding: 10px 8px; gap: 6px; }
	.ovd-m2 .ovd-btn--primary .ovd-ico { width: 15px; height: 15px; }
	.ovd-m2 .ovd-lbl { display: none; }
	.ovd-m2 .ovd-lbl-short { display: inline; }
}

/* ---------- Spec filters ---------- */
.ovd-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 14px;
	margin: 0 0 16px;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--ovd-line);
	border-radius: 8px;
}
.ovd-filter { display: flex; flex-direction: column; gap: 6px; min-width: 170px; flex: 1 1 170px; max-width: 260px; }
.ovd-filter--actions { flex: 0 0 auto; min-width: 0; justify-content: flex-end; }
.ovd-filter__label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ovd-muted); }
.ovd-filter__select {
	width: 100%;
	min-height: 44px;
	padding: 10px 36px 10px 12px;
	border: 1px solid #D5DBE3;
	border-radius: 6px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	font: inherit;
	font-size: 14px;
	color: var(--ovd-ink);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.ovd-filter__select:hover { border-color: var(--ovd-primary); }
.ovd-filter__select:focus-visible { outline: 2px solid var(--ovd-primary); outline-offset: 1px; }
.ovd-filter--actions { flex-direction: row; align-items: flex-end; gap: 10px; }
.ovd-filters__apply { padding: 12px 24px; border: 0; cursor: pointer; font-family: inherit; }
.ovd-filters__reset { background: var(--ovd-ink); color: #fff !important; padding: 12px 22px; }
.ovd-filters__reset:hover { background: #1c2f44; }
.ovd-filters .ovd-btn--primary { padding: 12px 20px; }

/* ---------- Pagination extras ---------- */
.ovd-pager { align-items: center; justify-content: center; }
.ovd-pager__gap { min-width: 24px; text-align: center; color: var(--ovd-muted); }
.ovd-pager__step { padding: 0 16px; }

@container (max-width: 560px) {
	.ovd-filters { padding: 12px; gap: 10px; }
	.ovd-filter { flex: 1 1 calc(50% - 10px); min-width: 0; max-width: none; }
	.ovd-filter--actions { flex-basis: 100%; }
	.ovd-pager__txt { display: none; }
}

/* ---------- Range slider (min – max) ---------- */
.ovd-filter--range { flex: 1 1 240px; max-width: 320px; }
.ovd-range { position: relative; height: 28px; margin: 4px 11px 0; }
.ovd-range__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: #D5DBE3; }
.ovd-range__fill { position: absolute; top: 0; bottom: 0; left: var(--a, 0%); right: calc(100% - var(--b, 100%)); border-radius: 2px; background: var(--ovd-primary); }
.ovd-range input[type="range"] {
	position: absolute; left: -11px; top: 0; width: calc(100% + 22px); height: 28px; margin: 0; padding: 0;
	background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.ovd-range input[type="range"]:focus { outline: none; }
.ovd-range input[type="range"]::-webkit-slider-runnable-track { height: 28px; background: transparent; border: 0; }
.ovd-range input[type="range"]::-moz-range-track { height: 28px; background: transparent; border: 0; }
.ovd-range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none; pointer-events: auto; cursor: pointer;
	width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
	background: #fff; border: 2px solid var(--ovd-primary); box-shadow: 0 1px 3px rgba(11, 27, 43, .2);
}
.ovd-range input[type="range"]::-moz-range-thumb {
	pointer-events: auto; cursor: pointer; width: 18px; height: 18px; border-radius: 50%;
	background: #fff; border: 2px solid var(--ovd-primary); box-shadow: 0 1px 3px rgba(11, 27, 43, .2);
}
.ovd-range input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ovd-primary); outline-offset: 2px; }
.ovd-range input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--ovd-primary); outline-offset: 2px; }
.ovd-range__vals { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ovd-text); font-variant-numeric: tabular-nums; }

/* Filters inside the sidebar (layout="sidebar"). */
.ovd-filters--side { flex-direction: column; align-items: stretch; margin: 0; padding: 18px 8px 0; border: 0; border-top: 1px solid var(--ovd-line); border-radius: 0; background: transparent; }
.ovd-filters--side .ovd-filter { max-width: none; flex: 0 0 auto; }
.ovd-filters--side .ovd-filter--actions { justify-content: flex-start; }
@media (max-width: 860px) {
	.ovd-filters--side { padding: 14px 0 0; }
}

/* ---------- Phones: filters live in a bottom sheet ---------- */
.ovd-portal { position: static; width: 0; height: 0; }
@media (max-width: 860px) {
	.ovd-catalog.has-panel .ovd-showing { display: none; }
	.ovd-catalog.has-panel .ovd-side { gap: 0; }
	.ovd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
	.ovd-toolbar__btn {
		gap: 8px; padding: 10px 16px; background: #fff; border: 1px solid #D5DBE3; border-radius: 999px;
		color: var(--ovd-ink) !important; font-family: inherit; cursor: pointer;
	}
	.ovd-toolbar__btn .ovd-ico { width: 18px; height: 18px; color: var(--ovd-primary); }
	.ovd-toolbar__count {
		display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
		border-radius: 10px; background: var(--ovd-primary); color: #fff; font-size: 11.5px; font-weight: 700;
	}
	.ovd-toolbar__info { font-size: 13.5px; color: var(--ovd-muted); }
	.ovd-toolbar__info strong { color: var(--ovd-ink); }

	.ovd-panel {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 100001;
		max-height: 85vh; overflow-y: auto; overscroll-behavior: contain;
		gap: 18px; margin: 0; padding: 0 16px; background: #fff;
		border-radius: 16px 16px 0 0; box-shadow: 0 -12px 40px rgba(11, 27, 43, .25);
		transform: translateY(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s;
		color: var(--ovd-ink);
	}
	.ovd-panel.is-open { transform: none; visibility: visible; transition: transform .25s ease; }
	.ovd-panel > .ovd-side__group { border-top: 0; padding-top: 0; }
	.ovd-panel__head {
		display: flex; align-items: center; justify-content: space-between;
		position: sticky; top: 0; z-index: 2; margin: 0 -16px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--ovd-line);
	}
	.ovd-panel__title { font-size: 17px; font-weight: 800; }
	.ovd-panel__close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--ovd-ink); cursor: pointer; }
	.ovd-panel__foot {
		display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 2; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
		background: #fff; border-top: 1px solid var(--ovd-line);
	}
	.ovd-panel__foot .ovd-btn { flex: 1; border: 0; font-family: inherit; cursor: pointer; padding: 12px 14px; }
	.ovd-panel__foot .ovd-filters__reset { flex: 0 0 auto; }
	.ovd-panel .ovd-filters, .ovd-panel .ovd-filters--side { margin: 0; padding: 0; border: 0; background: none; flex-direction: column; align-items: stretch; gap: 18px; }
	.ovd-panel .ovd-filter { flex: 0 0 auto; max-width: none; min-width: 0; }
	.ovd-panel .ovd-filter--actions { display: none; }
	.ovd-panel .ovd-pills { padding-top: 0; border-top: 0; }
	.ovd-panel .ovd-panel__label { display: block; margin: 0 0 -8px; padding: 0; }
	.ovd-backdrop { position: fixed; inset: 0; z-index: 100000; background: rgba(11, 27, 43, .5); }
	.ovd-backdrop.is-open { display: block; }
	html.ovd-lock, html.ovd-lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.ovd-panel, .ovd-panel.is-open { transition: none; }
}

/* ---------- Spec filter bar above the products (sidebar layout) ---------- */
.ovd-filterbar { margin: 0 0 16px; }
.ovd-filterbar .ovd-filters { margin: 0; }
.ovd-filterbar .ovd-filter--range { max-width: 340px; }
@media (max-width: 860px) {
	.ovd-catalog.has-panel .ovd-filterbar { display: none; }
}

/* ---------- Protect sliders and dropdowns from theme input styles ---------- */
.ovd-catalog .ovd-range input[type="range"],
.ovd-portal .ovd-range input[type="range"] {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	min-height: 0 !important;
	height: 28px !important;
	padding: 0 !important;
	margin: 0 !important;
	outline: none;
}
.ovd-catalog .ovd-filter__select,
.ovd-portal .ovd-filter__select { box-shadow: none !important; line-height: 1.3 !important; height: auto !important; margin: 0 !important; }

/* Desktop: hide the (mobile-only) panel inside the sidebar when it has nothing to show. */
@media (min-width: 861px) {
	.ovd-side .ovd-panel:not(:has(.ovd-side__group)):not(:has(.ovd-filters)) { display: none; }
}

/* ---------- Results bar: count + sort ---------- */
.ovd-results { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 18px; }
.ovd-results .ovd-showing { margin: 0; }
.ovd-results .ovd-toolbar__btn { display: none; }
.ovd-sort { display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; }
.ovd-sort__label { font-size: 13px; font-weight: 600; color: var(--ovd-muted); white-space: nowrap; }
.ovd-sort .ovd-sort__select { width: auto; min-width: 200px; min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 13.5px; }
@media (max-width: 860px) {
	.ovd-results { flex-wrap: nowrap; margin-bottom: 14px; }
	.ovd-results .ovd-toolbar__btn { display: inline-flex; flex-shrink: 0; }
	.ovd-sort { min-width: 0; }
	.ovd-sort__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
	.ovd-sort .ovd-sort__select { min-width: 0; max-width: 100%; min-height: 44px; border-radius: 999px; }
	.ovd-catalog:not(.has-panel) .ovd-results .ovd-showing { display: block; }
}
