/* ==========================================================================
   Atlas Sport — "Categorii echipamente" (product category archives) + Compară
   Paired with atlas-categorii-echipamente.php, atlas-categorii-echipamente.js
   and atlas-compare.js.
   Mobile-first; the desktop layout starts at 993px, matching the theme's own
   breakpoint and the rest of the atlas-* packages.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Host container. Same story as atlas-produse: Shoptimizer's wrappers cap the
   page at 1170px and assets/css/atlas-shop-page.css fights back with
   !important, so the reset needs the body class, the heavy selector and
   !important of its own.
   -------------------------------------------------------------------------- */

.atlas-ce-page #content > div > div.col-full,
.atlas-ce-page #content > .col-full,
.atlas-ce-page .site-content .col-full,
.atlas-ce-page .site-content .shoptimizer-archive .col-full {
	max-width: none !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}
.atlas-ce-page .site-content .shoptimizer-archive { margin-bottom: 0; }
.atlas-ce-page .archive-header { padding: 0; }
.atlas-ce-page .content-area { width: 100%; clear: both; }
.atlas-ce-page .entry-header,
.atlas-ce-page .woocommerce-breadcrumb { display: none; }
.atlas-ce-page .entry-content { margin: 0; }

.atlas-ce,
.atlas-ce *,
.atlas-ce *::before,
.atlas-ce *::after { box-sizing: border-box; }

.atlas-ce {
	--ce-ink: #2B3B32;
	--ce-green: #377A57;
	--ce-green-solid: #37765A;
	--ce-green-hover: #2E6B4F;
	--ce-green-soft: #e8f1e0;
	--ce-body: #515C57;
	--ce-muted: #636E67;
	--ce-cream: #f4f8f1;
	--ce-cream-line: #e2ebda;
	--ce-band-line: #e4ece0;
	--ce-line: #eef0ec;
	--ce-card-line: #eceee9;
	--ce-field-line: #e6eae2;
	--ce-tile: #f2f5ef;
	--ce-tile-soft: #f6f8f4;
	--ce-pad: 20px;
	--ce-max: 1488px;

	width: 100%;
	margin: 0;
	background: #fff;
	color: var(--ce-body);
	font-family: 'Open Sans', Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.atlas-ce a { color: inherit; text-decoration: none; }
.atlas-ce ul { margin: 0; padding: 0; list-style: none; }
.atlas-ce li::before { content: none !important; } /* kill theme tick bullets */
.atlas-ce img { max-width: 100%; height: auto; }
.atlas-ce__svg { display: block; width: 100%; height: 100%; }
.atlas-ce section { position: relative; }
.atlas-ce p { text-wrap: pretty; }

/* --- shared type -------------------------------------------------------- */

.atlas-ce__h1 {
	margin: 0 0 10px;
	font-size: 27px;
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.026em;
	color: var(--ce-ink);
	text-wrap: balance;
}

.atlas-ce__h2 {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.26;
	letter-spacing: -.022em;
	color: var(--ce-ink);
	text-wrap: balance;
}

.atlas-ce__linkarrow {
	display: flex;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
}

/* The theme's own link and add_to_cart_button rules carry more weight than a
   single class, so the button color needs the heavier selectors and
   !important to stay white, in every state. */
.atlas-ce a.atlas-ce__cta,
.atlas-ce a.atlas-ce__cta:visited,
.atlas-ce a.atlas-ce__cta:focus,
.atlas-ce a.atlas-ce__cta.add_to_cart_button,
.atlas-ce a.atlas-ce__cta.added_to_cart,
.atlas-ce__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	background: var(--ce-green-solid);
	color: #fff !important;
	border-radius: 12px;
	padding: 13px 16px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	transition: background .15s ease;
}
.atlas-ce a.atlas-ce__cta:hover,
.atlas-ce a.atlas-ce__cta.add_to_cart_button:hover,
.atlas-ce__cta:hover { background: var(--ce-green-hover); color: #fff !important; }

/* back button, shown on the compare page */
.atlas-ce a.atlas-ce__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	padding: 9px 15px;
	background: #fff;
	border: 1.5px solid var(--ce-field-line);
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	color: var(--ce-green-hover);
	transition: border-color .12s ease, background .12s ease;
}
.atlas-ce a.atlas-ce__back:hover { border-color: var(--ce-green-solid); background: var(--ce-cream); }
.atlas-ce__backicon { display: flex; flex: 0 0 auto; width: 15px; height: 15px; }
.atlas-ce__cta--small { padding: 11px 14px; font-size: 13.5px; border-radius: 11px; }

/* --- 1. hero ------------------------------------------------------------ */

.atlas-ce__hero {
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid var(--ce-line);
}

.atlas-ce__heroglow {
	position: absolute;
	right: -140px;
	top: -190px;
	width: 420px;
	height: 420px;
	pointer-events: none;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(154, 209, 122, .22) 0%, rgba(154, 209, 122, 0) 66%);
}

.atlas-ce__heroinner {
	position: relative;
	z-index: 2;
	max-width: var(--ce-max);
	margin: 0 auto;
	padding: 22px var(--ce-pad) 26px;
}

.atlas-ce__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ce-muted);
	margin-bottom: 16px;
}
.atlas-ce__crumbs a { color: var(--ce-green); }
.atlas-ce__crumbs a:hover { text-decoration: underline; }
.atlas-ce__crumbs [aria-current] { color: var(--ce-ink); font-weight: 600; }
.atlas-ce__crumbsep { display: flex; width: 12px; height: 12px; flex: 0 0 auto; }

.atlas-ce__herorow {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.atlas-ce__lead {
	margin: 0;
	max-width: 820px;
	font-size: 15px;
	line-height: 1.65;
}

.atlas-ce__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 9px;
}

.atlas-ce__stat {
	background: var(--ce-cream);
	border: 1px solid var(--ce-cream-line);
	border-radius: 13px;
	padding: 13px 12px;
}

.atlas-ce__statvalue {
	display: block;
	font-size: 19px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.03em;
	color: var(--ce-green-solid);
}

.atlas-ce__statlabel {
	display: block;
	margin-top: 5px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
}

/* --- 2. body: sidebar + grid ------------------------------------------- */

.atlas-ce__body {
	max-width: var(--ce-max);
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

/* sidebar: desktop only; mobile gets the collapsible tree instead */
.atlas-ce__side { display: none; }

.atlas-ce__sidelabel {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .14em;
	color: var(--ce-muted);
	margin-bottom: 16px;
}

.atlas-ce__cattree {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 26px;
}

.atlas-ce__catrow {
	display: flex;
	align-items: center;
	gap: 11px;
	border-radius: 12px;
	padding: 9px 10px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--ce-ink);
	transition: background .12s ease;
}
.atlas-ce__catrow:hover { background: var(--ce-tile-soft); }
.atlas-ce__catrow.is-active { background: var(--ce-green-soft); color: var(--ce-green-hover); }

.atlas-ce__catthumb {
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	border-radius: 9px;
	object-fit: cover;
}
.atlas-ce__catthumb--ph {
	background: #eef2ea;
	color: var(--ce-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
}

.atlas-ce__catcheck {
	margin-left: auto;
	display: flex;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	color: var(--ce-green-hover);
}

.atlas-ce__subtree {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 2px 0 6px 14px;
	padding-left: 14px;
	border-left: 2px solid var(--ce-cream-line);
}

.atlas-ce__catrow--sub {
	padding: 7px 9px;
	border-radius: 9px;
	font-size: 13.5px;
	color: var(--ce-body);
}
.atlas-ce__catrow--sub .atlas-ce__catthumb { width: 26px; height: 26px; border-radius: 7px; }
.atlas-ce__catrow--sub .atlas-ce__catthumb--ph { padding: 6px; }
.atlas-ce__catrow--sub.is-active { background: var(--ce-green-soft); color: var(--ce-green-hover); }

.atlas-ce__sidecta {
	background: var(--ce-cream);
	border: 1px solid var(--ce-cream-line);
	border-radius: 16px;
	padding: 22px 20px;
}

.atlas-ce__sidectatitle {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ce-ink);
	margin-bottom: 7px;
}

.atlas-ce__sidecta p {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.6;
}

/* --- mobile category tree ----------------------------------------------- */

.atlas-ce__tree {
	background: #fbfcfa;
	border-bottom: 1px solid var(--ce-line);
	padding: 14px var(--ce-pad) 18px;
}

.atlas-ce__treebtn {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
	background: #fff;
	border: 1.5px solid var(--ce-cream-line);
	border-radius: 14px;
	font-family: inherit;
	text-align: left;
}
.atlas-ce__treebtn.is-open {
	background: var(--ce-cream);
	border-color: var(--ce-green-solid);
	border-bottom-color: var(--ce-cream-line);
	border-radius: 14px 14px 0 0;
}

.atlas-ce__treeglyph {
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background: var(--ce-green-soft);
	color: var(--ce-green-hover);
}
.atlas-ce__treebtn.is-open .atlas-ce__treeglyph { background: var(--ce-green-solid); color: #fff; }

.atlas-ce__treetext {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.atlas-ce__treeeyebrow {
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ce-muted);
}
.atlas-ce__treebtn.is-open .atlas-ce__treeeyebrow { color: var(--ce-green-hover); }

.atlas-ce__treename {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--ce-ink);
}

.atlas-ce__treecaret {
	margin-left: auto;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 7px;
	background: var(--ce-tile);
	color: var(--ce-muted);
	transition: transform .18s ease;
}
.atlas-ce__treebtn.is-open .atlas-ce__treecaret {
	background: var(--ce-green-solid);
	color: #fff;
	transform: rotate(180deg);
}

/* The class sets display:flex, which would silently beat the [hidden]
   attribute's UA default of display:none; the explicit rule keeps the
   open/close toggle working. */
.atlas-ce__treelist[hidden] { display: none !important; }

.atlas-ce__treelist {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1.5px solid var(--ce-green-solid);
	border-top: 0;
	border-radius: 0 0 14px 14px;
	margin-top: -1px;
	padding: 8px 6px 10px;
	box-shadow: 0 16px 28px rgba(20, 50, 28, .13);
}
.atlas-ce__treelist .atlas-ce__catrow { padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.atlas-ce__treelist .atlas-ce__subtree { margin: 2px 4px 6px 20px; padding-left: 12px; }
.atlas-ce__treelist .atlas-ce__catrow--sub { font-size: 13.5px; padding: 8px 9px; }

/* --- toolbar ------------------------------------------------------------ */

.atlas-ce__main {
	flex: 1 1 0;
	min-width: 0;
	background: #fff;
	padding: 0 0 26px;
}

.atlas-ce__toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px var(--ce-pad) 14px;
}

.atlas-ce__count {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--ce-muted);
}
.atlas-ce__count strong { color: var(--ce-ink); font-weight: 700; }

.atlas-ce__sort {
	display: flex;
	align-items: center;
	gap: 10px;
}

.atlas-ce__sortlabel {
	font-size: 14px;
	font-weight: 500;
	color: var(--ce-muted);
}

.atlas-ce__sortbox {
	position: relative;
	display: flex;
	align-items: center;
	background: #fbfcfa;
	border: 1.5px solid var(--ce-field-line);
	border-radius: 12px;
}

.atlas-ce__sortbox select {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 0;
	margin: 0;
	padding: 11px 38px 11px 16px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: var(--ce-ink);
	cursor: pointer;
}
.atlas-ce__sortbox select:focus { outline: 2px solid var(--ce-green-solid); outline-offset: 2px; border-radius: 12px; }

.atlas-ce__sortcaret {
	position: absolute;
	right: 14px;
	width: 16px;
	height: 16px;
	pointer-events: none;
	color: var(--ce-muted);
	display: flex;
}

/* --- product grid ------------------------------------------------------- */

.atlas-ce__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	padding: 0 var(--ce-pad);
}

.atlas-ce__prod {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ce-card-line);
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow .15s ease, border-color .15s ease;
}
.atlas-ce__prod:hover { box-shadow: 0 12px 28px rgba(20, 40, 25, .10); }
.atlas-ce__prod.is-compared {
	border: 2px solid var(--ce-green-solid);
	box-shadow: 0 10px 24px rgba(55, 118, 90, .16);
}

.atlas-ce__prodmedia {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--ce-tile-soft);
	overflow: hidden;
}

.atlas-ce__prodimg,
.atlas-ce__prodmedia img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .25s ease;
}
.atlas-ce__prod:hover .atlas-ce__prodmedia img { transform: scale(1.04); }

/* Secondary (first gallery) photo, fading in over the main one on hover. */
.atlas-ce__prodmedia img.atlas-ce__prodimg--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity .25s ease, transform .25s ease;
}
.atlas-ce__prod:hover .atlas-ce__prodimg--hover { opacity: 1; }

.atlas-ce__prodph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 7px;
	background: var(--ce-tile);
	border-bottom: 1px dashed #dfe5d9;
	color: var(--ce-muted);
}
.atlas-ce__prodph .atlas-ce__svg { width: 26px; height: 26px; }
.atlas-ce__prodphlabel {
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
}

/* "Fabricat ❤": the single product page's chip, shrunk to fit a thumbnail. */
.atlas-ce__badge {
	position: absolute;
	left: 8px;
	top: 8px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #fff;
	color: var(--ce-ink);
	border-radius: 999px;
	padding: 4px 7px 4px 9px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 4px 12px rgba(24, 60, 32, .14);
}

.atlas-ce__badgeflag {
	display: flex;
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
}

.atlas-ce__prodbody {
	padding: 12px 13px 14px;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.atlas-ce__prodcode {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ce-green);
	margin-bottom: 5px;
}

.atlas-ce__prodname {
	margin: 0 0 11px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.32;
	color: var(--ce-ink);
}

/* The whole card is the product link. */
.atlas-ce__prodlink::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
}

.atlas-ce__prodspecs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.atlas-ce__prodspec {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ce-tile-soft);
	border-radius: 8px;
	padding: 6px 9px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	color: var(--ce-body);
}

.atlas-ce__prodspecicon {
	display: flex;
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	color: var(--ce-green);
}

/* compare toggle: above the stretched link. A plain checkbox-and-text
   control, deliberately quieter than the add button below it. The theme
   styles every <button> with uppercase text and decorative pseudo-elements
   (the stray bar and "+" seen next to the labels), so those are switched
   off explicitly. */
.atlas-ce .atlas-ce__cmp {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 9px;
	width: auto;
	margin-top: auto;
	padding: 4px 0;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-align: left;
	text-transform: none !important;
	letter-spacing: normal !important;
	background: transparent;
	box-shadow: none;
	color: var(--ce-muted);
	transition: color .12s ease;
}
.atlas-ce .atlas-ce__cmp:hover { background: transparent; color: var(--ce-green-hover); }
.atlas-ce .atlas-ce__cmp.is-on { background: transparent; color: var(--ce-green-hover); }

.atlas-ce .atlas-ce__cmp::before,
.atlas-ce .atlas-ce__cmp::after,
.atlas-ce a.atlas-ce__prodadd::before,
.atlas-ce a.atlas-ce__prodadd::after {
	content: none !important;
	display: none !important;
}

.atlas-ce__cmpbox {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2px;
	background: #fff;
	border: 1.5px solid #d5dbd2;
	color: transparent;
	transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.atlas-ce__cmp.is-on .atlas-ce__cmpbox {
	background: var(--ce-green-solid);
	border-color: var(--ce-green-solid);
	color: #fff;
}

.atlas-ce__prodfoot {
	position: relative;
	z-index: 2;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f2f4f0;
}

.atlas-ce a.atlas-ce__prodadd {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 11px;
	background: var(--ce-green-solid);
	color: #fff !important;
	padding: 0 12px;
	height: 40px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	text-transform: none !important;
	letter-spacing: normal !important;
	transition: background .15s ease;
}
.atlas-ce a.atlas-ce__prodadd:hover { background: var(--ce-green-hover); color: #fff !important; }
.atlas-ce a.atlas-ce__prodadd.loading { opacity: .6; pointer-events: none; }
.atlas-ce a.atlas-ce__prodadd.added { background: var(--ce-green-hover); }

.atlas-ce__prodaddicon {
	display: flex;
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
}

/* --- pagination --------------------------------------------------------- */

.atlas-ce__pages { margin-top: 24px; padding: 0 var(--ce-pad); }

.atlas-ce__pages ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}
.atlas-ce__pages li { margin: 0; }

/* The list itself is <ul class="page-numbers">, so the item styles are
   scoped to the links/spans inside <li> — otherwise the 38px width lands on
   the ul too and the whole list wraps into a column. */
.atlas-ce__pages li > .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 11px;
	background: #fff;
	color: var(--ce-body);
	border: 1.5px solid var(--ce-field-line);
	transition: border-color .12s ease, color .12s ease;
}
.atlas-ce__pages li > .page-numbers:hover { border-color: var(--ce-green-solid); color: var(--ce-green-hover); }
.atlas-ce__pages li > .page-numbers.current {
	background: var(--ce-green-solid);
	color: #fff;
	border-color: var(--ce-green-solid);
}
.atlas-ce__pages li > .page-numbers.dots { border: 0; background: transparent; }

/* --- infinite scroll ---------------------------------------------------- */

/* The sentinel below the grid: invisible until a page is actually loading,
   but always occupying space so the IntersectionObserver has a target. */
.atlas-ce__loadmore {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 8px;
	padding: 22px var(--ce-pad);
	font-size: 14px;
	font-weight: 600;
	color: var(--ce-muted);
	opacity: 0;
	transition: opacity .15s ease;
}
.atlas-ce__loadmore.is-loading { opacity: 1; }

.atlas-ce__spinner {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	border: 2px solid var(--ce-cream-line);
	border-top-color: var(--ce-green-solid);
	border-radius: 50%;
	animation: atlasce-spin .8s linear infinite;
}

@keyframes atlasce-spin { to { transform: rotate(360deg); } }

/* With infinite scroll running, the numbered pagination is redundant; it
   stays in the HTML (crawlers still follow /page/N/) but out of sight. */
.atlas-ce__pages.is-infinite { display: none; }

/* --- empty state -------------------------------------------------------- */

.atlas-ce__empty {
	margin: 10px var(--ce-pad) 0;
	background: var(--ce-cream);
	border: 1px solid var(--ce-cream-line);
	border-radius: 16px;
	padding: 26px 22px;
	max-width: 560px;
}
.atlas-ce__empty p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; }
.atlas-ce__empty .atlas-ce__cta { display: inline-flex; }

/* --- 3. SEO band -------------------------------------------------------- */

.atlas-ce__seo {
	background: var(--ce-cream);
	border-top: 1px solid var(--ce-band-line);
	margin-top: 26px;
}

.atlas-ce__seocopy,
.atlas-ce__included { max-width: var(--ce-max); }

.atlas-ce__seo {
	padding: 28px var(--ce-pad) 32px;
}

.atlas-ce__seocopy p {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.7;
}
.atlas-ce__seocopy p:last-child { margin-bottom: 0; }

.atlas-ce__included {
	margin-top: 20px;
	background: #fff;
	border: 1px solid var(--ce-band-line);
	border-radius: 16px;
	padding: 20px 18px;
}

.atlas-ce__includedtitle {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ce-ink);
	margin-bottom: 14px;
}

.atlas-ce__included ul {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.atlas-ce__included li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
}

.atlas-ce__tick {
	display: flex;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-top: 3px;
	color: #4c9a3f;
}

/* --- 4. category description, kept at the bottom ------------------------ */

.atlas-ce__about {
	background: #fff;
	border-top: 1px solid var(--ce-line);
	padding: 28px var(--ce-pad) 36px;
}

/* The parent theme lays header.woocommerce-products-header out as a flex row
   and restyles .term-description and the image inside it (50% wide image,
   13px padded description). This section keeps those legacy class names, so
   every contested property is pinned back explicitly. */
.atlas-ce__about header.woocommerce-products-header {
	display: block !important;
	max-width: 900px;
	margin: 0 auto;
	padding: 0 !important;
	background: transparent !important;
}

.atlas-ce__about .atlas-ce__aboutlead {
	margin: 0 0 14px;
	max-width: 900px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.7;
	color: var(--ce-ink);
}

.atlas-ce__about header.woocommerce-products-header .term-description {
	max-width: 900px !important;
	margin: 0;
	padding: 0 !important;
	font-size: 15px !important;
	line-height: 1.75;
	letter-spacing: 0 !important;
	color: var(--ce-body);
	background: transparent !important;
}
.atlas-ce__about .term-description p { margin: 0 0 12px; }

.atlas-ce__about header.woocommerce-products-header img.cg-cat-image {
	display: block;
	margin-top: 20px;
	border-radius: 16px;
	width: 100%;
	max-width: 900px;
	height: auto;
}

/* --- compare page ------------------------------------------------------- */

.atlas-ce__cmpwrap {
	max-width: var(--ce-max);
	margin: 0 auto;
	padding: 26px var(--ce-pad) 44px;
}

.atlas-ce__cmptable {
	background: #fff;
	border: 1px solid var(--ce-band-line);
	border-radius: 18px;
	overflow: hidden;
}

/* --ce-cmp-n (set inline on the table) is how many products are compared. */
.atlas-ce__cmphead {
	display: grid;
	grid-template-columns: repeat(var(--ce-cmp-n, 2), 1fr);
	border-bottom: 1px solid var(--ce-band-line);
}
.atlas-ce__cmpcorner { display: none; }

.atlas-ce__cmpprod {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 14px;
}
.atlas-ce__cmpprod + .atlas-ce__cmpprod { border-left: 1px solid var(--ce-band-line); }

.atlas-ce__cmpremove {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 2;
	width: 30px;
	height: 30px;
	padding: 7px;
	border: 1px solid var(--ce-field-line);
	border-radius: 50%;
	background: #fff;
	color: var(--ce-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color .12s ease, border-color .12s ease;
}
.atlas-ce__cmpremove:hover { color: #b04a3a; border-color: #d9b8b0; }

.atlas-ce__cmpmedia {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--ce-tile-soft);
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 12px;
}
.atlas-ce__cmpimg,
.atlas-ce__cmpmedia img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.atlas-ce__cmpname {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ce-ink);
	margin-bottom: 12px;
}
.atlas-ce__cmpname:hover { color: var(--ce-green-hover); }

.atlas-ce__cmpprod .atlas-ce__cta--small { margin-top: auto; }

.atlas-ce__cmprows { display: flex; flex-direction: column; }

.atlas-ce__cmprow {
	display: grid;
	grid-template-columns: repeat(var(--ce-cmp-n, 2), 1fr);
	border-bottom: 1px solid #f2f4f0;
}
.atlas-ce__cmprow:last-child { border-bottom: 0; }

/* NOTE: named __cmprowlabel, not __cmplabel — the product cards use
   .atlas-ce__cmplabel for the "Compară" toggle text, and the uppercase +
   border-right below must never leak onto it. */
.atlas-ce__cmprowlabel {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 11px 14px 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ce-muted);
}

.atlas-ce__cmpicon {
	display: flex;
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	color: var(--ce-green);
}

.atlas-ce__cmpcell {
	padding: 0 14px 12px;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--ce-ink);
}
.atlas-ce__cmpcell + .atlas-ce__cmpcell { border-left: 1px solid var(--ce-band-line); }

.atlas-ce__cmpactions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 20px;
}
.atlas-ce .atlas-ce__cta.atlas-ce__addall {
	border: 0;
	cursor: pointer;
	font-family: inherit;
}
.atlas-ce .atlas-ce__cta.atlas-ce__addall:disabled { opacity: .65; cursor: default; }
.atlas-ce__cmpactions .atlas-ce__back { margin-bottom: 0; }

.atlas-ce__cmphint {
	margin: 18px 4px 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--ce-muted);
}
.atlas-ce__cmphint a { color: var(--ce-green); font-weight: 600; text-decoration: underline; }

/* Small tablets: two columns before the desktop layout takes over. */
@media (min-width: 600px) and (max-width: 992px) {
	.atlas-ce__grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Desktop, from the theme's 993px breakpoint up
   ========================================================================== */

@media (min-width: 993px) {

	.atlas-ce { --ce-pad: 32px; }

	/* hero */
	.atlas-ce__heroinner { padding: 38px var(--ce-pad) 34px; }
	.atlas-ce__heroglow {
		right: -160px;
		top: -240px;
		width: 620px;
		height: 620px;
	}
	.atlas-ce__crumbs { font-size: 14px; gap: 10px; margin-bottom: 22px; }
	.atlas-ce__crumbsep { width: 14px; height: 14px; }
	.atlas-ce__h1 { font-size: 42px; line-height: 1.14; letter-spacing: -.03em; margin-bottom: 12px; }
	.atlas-ce__h2 { font-size: 26px; letter-spacing: -.024em; margin-bottom: 14px; }
	.atlas-ce__lead { font-size: 17px; line-height: 1.7; }

	.atlas-ce__herorow {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 56px;
	}
	.atlas-ce__herocopy { flex: 1 1 0; min-width: 0; }
	.atlas-ce__stats { flex: 0 0 auto; display: flex; gap: 12px; }
	.atlas-ce__stat { width: 172px; border-radius: 16px; padding: 18px 20px; }
	.atlas-ce__statvalue { font-size: 26px; }
	.atlas-ce__statlabel { font-size: 13px; margin-top: 7px; }

	/* body: sidebar + grid */
	.atlas-ce__body { flex-direction: row; align-items: stretch; }

	.atlas-ce__side {
		display: block;
		flex: 0 0 auto;
		width: 300px;
		border-right: 1px solid var(--ce-line);
	}
	.atlas-ce__sidesticky {
		position: sticky;
		top: 96px;
		padding: 30px 28px 34px var(--ce-pad);
	}

	.atlas-ce__tree { display: none; }

	.atlas-ce__main { padding: 0 0 40px; }
	.atlas-ce__toolbar { padding: 30px var(--ce-pad) 22px 34px; }
	.atlas-ce__count { font-size: 15px; }

	.atlas-ce__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
		padding: 0 var(--ce-pad) 0 34px;
	}

	.atlas-ce__prod { border-radius: 18px; }
	.atlas-ce__prodmedia { aspect-ratio: 4 / 3; }
	.atlas-ce__badge { left: 12px; top: 12px; padding: 5px 8px 5px 10px; font-size: 10.5px; }
	.atlas-ce__badgeflag { width: 14px; height: 14px; }
	.atlas-ce__prodbody { padding: 18px 20px 20px; }
	.atlas-ce__prodcode { font-size: 12px; margin-bottom: 7px; }
	.atlas-ce__prodname { font-size: 18px; line-height: 1.3; margin-bottom: 10px; }
	.atlas-ce__prodspecs { gap: 7px; margin-bottom: 16px; }
	.atlas-ce__prodspec { font-size: 12px; padding: 6px 10px; }
	.atlas-ce__prodspecicon { width: 13px; height: 13px; }
	.atlas-ce .atlas-ce__cmp { font-size: 13.5px; padding: 5px 0; gap: 10px; }
	.atlas-ce__cmpbox { width: 20px; height: 20px; border-radius: 6px; }
	.atlas-ce__prodfoot { margin-top: 14px; padding-top: 14px; }
	.atlas-ce a.atlas-ce__prodadd { height: 42px; font-size: 13.5px; padding: 0 14px; }

	.atlas-ce__pages { margin-top: 32px; padding: 0 var(--ce-pad) 0 34px; }
	.atlas-ce__pages li > .page-numbers { width: 42px; height: 42px; font-size: 15px; }

	.atlas-ce__empty { margin-left: 34px; }

	/* SEO band: the two columns cap out around 1320px and sit centred */
	.atlas-ce__seo {
		margin-top: 40px;
		padding: 40px var(--ce-pad) 44px;
		display: flex;
		align-items: flex-start;
		justify-content: center;
		gap: 56px;
	}
	.atlas-ce__seocopy { flex: 1 1 0; min-width: 0; max-width: 820px; }
	.atlas-ce__seocopy p { font-size: 16px; line-height: 1.75; }
	.atlas-ce__included {
		flex: 0 0 auto;
		width: 460px;
		margin-top: 0;
		border-radius: 18px;
		padding: 26px 28px;
	}
	.atlas-ce__includedtitle { font-size: 17px; margin-bottom: 16px; }
	.atlas-ce__included li { font-size: 15px; gap: 11px; }
	.atlas-ce__tick { width: 16px; height: 16px; }

	/* bottom description: text on the left, category image on the right */
	.atlas-ce__about { padding: 40px var(--ce-pad) 56px; }
	.atlas-ce__about header.woocommerce-products-header {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 440px;
		gap: 18px 56px;
		align-items: start;
		max-width: 1240px;
	}
	.atlas-ce__about .atlas-ce__aboutlead,
	.atlas-ce__about header.woocommerce-products-header .term-description {
		grid-column: 1;
		max-width: none !important;
	}
	.atlas-ce__about header.woocommerce-products-header img.cg-cat-image {
		grid-column: 2;
		grid-row: 1 / span 2;
		margin-top: 0;
		max-width: none;
	}
	.atlas-ce__about header.woocommerce-products-header .term-description { font-size: 16px !important; }
	.atlas-ce__about .atlas-ce__aboutlead { font-size: 17px; margin-bottom: 0; }

	/* A category without an image keeps a single, narrower reading column
	   instead of leaving the right half of the grid empty. */
	.atlas-ce__about header.woocommerce-products-header:not(:has(img.cg-cat-image)) {
		grid-template-columns: 1fr;
		max-width: 900px;
	}

	/* compare page */
	.atlas-ce__cmpwrap { padding: 36px var(--ce-pad) 64px; }

	.atlas-ce__cmphead { grid-template-columns: 220px repeat(var(--ce-cmp-n, 2), 1fr); }
	.atlas-ce__cmpcorner { display: block; border-right: 1px solid var(--ce-band-line); }
	.atlas-ce__cmpprod { padding: 22px; }
	.atlas-ce__cmpprod:first-of-type { border-left: 0; }
	.atlas-ce__cmpname { font-size: 17px; }

	.atlas-ce__cmprow { grid-template-columns: 220px repeat(var(--ce-cmp-n, 2), 1fr); }
	.atlas-ce__cmprowlabel {
		grid-column: auto;
		padding: 16px 22px;
		border-right: 1px solid var(--ce-band-line);
		font-size: 12.5px;
	}
	.atlas-ce__cmpicon { width: 17px; height: 17px; }
	.atlas-ce__cmpcell { padding: 16px 22px; font-size: 15px; }
}

/* Four columns once there is honest room for them. */
@media (min-width: 1280px) {
	.atlas-ce__grid { grid-template-columns: repeat(4, 1fr); }
}