/* Atlas Fence — archive chrome only (filters / quick access / SEO).
   Product listing layout lives in atlas-archive-table.css — do not fight it here. */

html.atlas-archive {
	--atlas-amber: #e89a2e;
	--atlas-amber-deep: #c2410c;
	--atlas-ink: #1c1917;
	--atlas-muted: #57534e;
	--atlas-line: #e7e5e4;
	--atlas-paper: #fafaf9;
	--atlas-maroon: #9d003d;
}

html.atlas-archive .atlas-hide-jet-filter {
	display: none !important;
}

html.atlas-archive.atlas-vat-on .atlas-ept-price {
	color: var(--atlas-amber-deep);
}

/* Experts — sidebar only; never show the tall top listing */
html.atlas-archive .elementor-element-458c4e3,
html.atlas-archive .elementor-element-7121bc3 {
	display: none !important;
}

html.atlas-archive .elementor-element-f0cea20 {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

html.atlas-archive .atlas-experts {
	margin-bottom: 10px;
	border: 1px solid var(--atlas-line);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
}

/* Quick access */
.atlas-quick-access {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid #f0e6d8;
	border-radius: 14px;
	background: linear-gradient(135deg, #fffaf3 0%, #fff 55%, #f8faf9 100%);
}

.atlas-quick-access__title {
	font-size: 0.88rem;
	font-weight: 800;
	color: var(--atlas-ink);
	white-space: nowrap;
}

.atlas-quick-access__title::before {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-left: 8px;
	border-radius: 50%;
	background: var(--atlas-amber);
	box-shadow: 0 0 0 3px rgba(232, 154, 46, 0.18);
	vertical-align: middle;
}

.atlas-quick-access__list {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	flex: 1;
}

.atlas-quick-access__chip {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 13px;
	border: 1px solid #e8e0d4;
	border-radius: 999px;
	background: #fff;
	color: #44403c;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
}

.atlas-quick-access__chip:hover {
	border-color: #f0b45a;
	background: #fff8ee;
	color: var(--atlas-amber-deep);
}

.atlas-quick-access__chip.is-active {
	border-color: transparent;
	background: linear-gradient(135deg, #e89a2e, #d4781a);
	color: #fff;
}

/* Sidebar filters */
.atlas-side-filters {
	margin-top: 12px;
	border: 1px solid var(--atlas-line);
	border-radius: 14px;
	background: #fff;
	overflow: hidden;
}

.atlas-filter-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 12px;
	background: linear-gradient(180deg, #faf7f2 0%, #fff 100%);
	border-bottom: 1px solid var(--atlas-line);
}

.atlas-filter-tools__vat {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
}

.atlas-filter-tools__vat input {
	accent-color: #00af9c;
}

.atlas-vat-badge {
	font-size: 0.7rem;
	font-weight: 700;
	color: #9a3412;
	background: #ffedd5;
	border-radius: 999px;
	padding: 4px 9px;
}

.atlas-filter-tools__weight {
	appearance: none;
	border: 0;
	margin-right: auto;
	padding: 7px 12px;
	border-radius: 999px;
	background: #ffe9f0;
	color: var(--atlas-maroon);
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
}

.atlas-side-filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	cursor: pointer;
	user-select: none;
}

.atlas-side-filters__head strong {
	font-size: 0.92rem;
	font-weight: 800;
}

.atlas-side-filters__clear {
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 0.75rem;
	font-weight: 700;
	cursor: pointer;
	color: var(--atlas-amber-deep);
}

.atlas-side-filters__toggle {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 12px;
	border: 1px solid #e7e5e4;
	border-radius: 999px;
	background: #fafaf9;
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
}

.atlas-side-filters__toggle::after {
	content: '';
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
	transition: transform 0.2s ease;
}

.atlas-side-filters.is-open .atlas-side-filters__toggle {
	background: #fff7ed;
	border-color: #fdba74;
	color: var(--atlas-amber-deep);
}

.atlas-side-filters.is-open .atlas-side-filters__toggle::after {
	transform: rotate(-135deg);
	margin-top: 3px;
}

.atlas-side-filters__body {
	display: grid;
	grid-template-rows: 0fr;
	padding: 0 12px;
	transition: grid-template-rows 0.25s ease, padding 0.25s ease;
}

.atlas-side-filters__body-inner {
	overflow: hidden;
	min-height: 0;
}

.atlas-side-filters.is-open .atlas-side-filters__body {
	grid-template-rows: 1fr;
	padding: 4px 12px 14px;
	border-top: 1px solid var(--atlas-line);
}

.atlas-filter-group {
	margin-bottom: 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--atlas-line);
}

.atlas-filter-group:last-child {
	border-bottom: 0;
	margin-bottom: 0;
}

.atlas-filter-group__title {
	margin: 10px 0 6px;
	font-size: 0.8rem;
	font-weight: 800;
	color: #78716c;
}

.atlas-filter-group__list {
	display: grid;
	gap: 3px;
	max-height: 168px;
	overflow: auto;
}

.atlas-filter-option {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 7px;
	padding: 6px 8px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.82rem;
	margin: 0;
}

.atlas-filter-option:hover {
	background: #fafaf9;
}

.atlas-filter-option:has(input:checked) {
	background: #fff7ed;
}

.atlas-filter-option em {
	font-style: normal;
	font-size: 0.7rem;
	color: var(--atlas-muted);
	background: #f5f5f4;
	border-radius: 999px;
	padding: 1px 7px;
}

.atlas-filter-empty {
	margin: 8px 0;
	font-size: 0.82rem;
	color: var(--atlas-muted);
}

/* Weight modal */
.atlas-weight-modal[hidden] {
	display: none !important;
}

.atlas-weight-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.atlas-weight-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.atlas-weight-modal__panel {
	position: relative;
	z-index: 1;
	width: min(440px, 100%);
	max-height: 92vh;
	overflow: auto;
	background: #fff;
	border-radius: 16px 16px 0 0;
	padding: 0 0 18px;
}

@media (min-width: 768px) {
	.atlas-weight-modal {
		align-items: center;
	}
	.atlas-weight-modal__panel {
		border-radius: 16px;
	}
}

.atlas-weight-modal__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid #cacaca;
	position: sticky;
	top: 0;
	background: #fff;
}

.atlas-weight-modal__head strong {
	flex: 1;
}

.atlas-weight-modal__x {
	appearance: none;
	border: 0;
	background: transparent;
	font-size: 1.4rem;
	cursor: pointer;
}

.atlas-weight-form {
	display: grid;
	gap: 14px;
	padding: 18px 16px 8px;
}

.atlas-weight-form label {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 0.84rem;
	font-weight: 600;
}

.atlas-weight-input {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.atlas-weight-input input {
	width: 180px;
	height: 36px;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	padding: 0 12px 0 36px;
	text-align: left;
	direction: ltr;
}

.atlas-weight-input em {
	position: absolute;
	left: 10px;
	font-style: normal;
	font-size: 0.75rem;
	color: #999;
}

.atlas-weight-submit {
	appearance: none;
	border: 0;
	width: 100%;
	height: 48px;
	border-radius: 8px;
	background: var(--atlas-maroon);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.atlas-weight-result {
	margin: 8px 16px 0;
	display: grid;
}

.atlas-weight-result div {
	display: flex;
	justify-content: space-between;
	padding: 12px 16px;
	background: #f9f9f9;
	border: 1px solid #efefef;
}

html.atlas-weight-open {
	overflow: hidden;
}

html.atlas-archive .elementor-element-2915ae0:has(.jet-listing-not-found) {
	display: none !important;
}

/* SEO */
html.atlas-archive .elementor-element-3a50228,
html.atlas-archive .box-text-descr {
	max-width: 1280px;
	margin: 1.25rem auto 2rem;
	padding: 0 12px;
}

html.atlas-archive .atlas-cat-desc {
	background: #fff;
	border: 1px solid var(--atlas-line);
	border-radius: 12px;
	padding: 1rem 1.1rem;
}

html.atlas-archive .atlas-cat-desc.is-collapsed .atlas-cat-desc__body {
	max-height: 200px;
	overflow: hidden;
	mask-image: linear-gradient(#000 55%, transparent 100%);
	-webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
}

html.atlas-archive .atlas-cat-desc__toggle {
	display: inline-flex;
	margin-top: 0.75rem;
	padding: 0.55rem 1rem;
	border: 1px solid var(--atlas-line);
	border-radius: 8px;
	background: var(--atlas-paper);
	color: var(--atlas-amber-deep);
	font-weight: 700;
	font-size: 0.88rem;
	cursor: pointer;
}

@media (max-width: 900px) {
	html.atlas-archive,
	html.atlas-archive body {
		overflow-x: hidden;
	}

	html.atlas-archive .atlas-ept-mount,
	html.atlas-archive .elementor-element-b220543,
	html.atlas-archive .elementor-element-a92b652 {
		max-width: 100% !important;
		overflow-x: hidden !important;
	}

	.atlas-quick-access {
		flex-direction: column;
		align-items: stretch;
	}

	.atlas-quick-access__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.atlas-quick-access__chip {
		flex: 0 0 auto;
	}
}

@media (max-width: 640px) {
	html.atlas-archive .atlas-cat-desc.is-collapsed .atlas-cat-desc__body {
		max-height: 150px;
	}

	.atlas-weight-form label {
		grid-template-columns: 1fr;
	}

	.atlas-weight-input input {
		width: 100%;
	}
}
