/* Homepage nested-tabs product rows — table-like, no fight with Elementor DOM.
   Digiplus front page may have bare <body> (no .home). */

html.atlas-home .e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__items,
.e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__items {
	display: flex !important;
	flex-direction: column !important;
	gap: 0 !important;
	margin: 0 !important;
	border: 1px solid #e7e5e4;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

html.atlas-home .e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item,
.e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-bottom: 1px solid #e7e5e4 !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	min-height: 0 !important;
	height: auto !important;
	position: relative !important;
	left: auto !important;
	top: auto !important;
	transform: none !important;
}

.e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item:last-child {
	border-bottom: 0 !important;
}

.e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item:nth-child(even) {
	background: #fafafa !important;
}

/* Hide Elementor source once compact row exists — do NOT remove from DOM */
.e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item.atlas-hl-ready > .elementor,
.e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item.atlas-hl-ready > .atlas-hl-source,
.e-n-tabs .jet-listing-grid--2626 .atlas-hl-source {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Built row */
.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row {
	display: grid;
	grid-template-columns: minmax(180px, 1.6fr) minmax(220px, 2fr) minmax(110px, 0.9fr) 72px;
	align-items: center;
	gap: 10px 12px;
	padding: 10px 12px;
	box-sizing: border-box;
	width: 100%;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__name a,
.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__name .atlas-hl-link,
.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__name span {
	display: block;
	font-size: 0.88rem;
	font-weight: 800;
	line-height: 1.4;
	color: #1c1917;
	text-decoration: none;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__name a:hover,
.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__name .atlas-hl-link:hover {
	color: #a65f28;
	text-decoration: underline;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row:hover {
	background: #fffaf5;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__specs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-chip {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	min-width: 58px;
	padding: 4px 8px;
	border-radius: 8px;
	background: #f5f5f4;
	line-height: 1.2;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-chip__label {
	font-size: 0.64rem;
	font-weight: 700;
	color: #a8a29e;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-chip__value {
	font-size: 0.8rem;
	font-weight: 800;
	color: #44403c;
	direction: ltr;
	unicode-bidi: plaintext;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__price {
	text-align: left;
	font-size: 0.92rem;
	font-weight: 800;
	color: #1c1917;
	white-space: nowrap;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__price.is-call {
	color: #c2410c;
	font-size: 0.84rem;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__action {
	display: flex;
	justify-content: center;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-cart,
.e-n-tabs .jet-listing-grid--2626 .atlas-hl-call {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 34px !important;
	padding: 0 10px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	cursor: pointer;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-cart {
	background: #008749 !important;
	border: 1px solid #008749 !important;
	color: #fff !important;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-call {
	background: linear-gradient(135deg, #e89a2e, #d4781a) !important;
	color: #fff !important;
	font-size: 0.8rem !important;
}

/* Fallback BEFORE JS: hide qty + shrink giant cart so page never looks broken */
html.atlas-home .e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item:not(.atlas-hl-ready) .quantity,
html.atlas-home .e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item:not(.atlas-hl-ready) .dp-quantity-butinp {
	display: none !important;
}

html.atlas-home .e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item:not(.atlas-hl-ready) .single_add_to_cart_button,
html.atlas-home .e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item:not(.atlas-hl-ready) .add_to_cart_button {
	font-size: 0 !important;
	min-width: 42px !important;
	width: 42px !important;
	height: 34px !important;
	padding: 0 !important;
	border-radius: 8px !important;
	line-height: 34px !important;
}

html.atlas-home .e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item:not(.atlas-hl-ready) .single_add_to_cart_button::after,
html.atlas-home .e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item:not(.atlas-hl-ready) .add_to_cart_button::after {
	content: '+';
	font-size: 1.1rem;
	font-weight: 800;
	color: inherit;
}

/* Column header */
.e-n-tabs .jet-listing-grid--2626 .atlas-hl-head {
	display: grid;
	grid-template-columns: minmax(180px, 1.6fr) minmax(220px, 2fr) minmax(110px, 0.9fr) 72px;
	gap: 10px 12px;
	align-items: center;
	padding: 9px 12px;
	background: #1f1f1f;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-head span:nth-child(3) {
	text-align: left;
}

.e-n-tabs .jet-listing-grid--2626 .atlas-hl-head span:nth-child(4) {
	text-align: center;
}

.e-n-tabs > .e-n-tabs-heading {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	margin-bottom: 14px !important;
}

.e-n-tabs .e-n-tab-title {
	border-radius: 999px !important;
	padding: 8px 14px !important;
	border: 1px solid #e7e5e4 !important;
	background: #fff !important;
	font-size: 0.82rem !important;
	font-weight: 700 !important;
}

.e-n-tabs .e-n-tab-title[aria-selected='true'] {
	background: linear-gradient(135deg, #e89a2e, #d4781a) !important;
	border-color: transparent !important;
	color: #fff !important;
}

@media (max-width: 900px) {
	.e-n-tabs .jet-listing-grid--2626 .atlas-hl-head {
		display: none !important;
	}

	.e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__items {
		border: 0;
		background: transparent;
		gap: 10px !important;
	}

	.e-n-tabs .jet-listing-grid--2626 .jet-listing-grid__item {
		border: 1px solid #e7e5e4 !important;
		border-radius: 12px !important;
		overflow: hidden;
		background: #fff !important;
	}

	.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			'name name'
			'specs specs'
			'price action';
		gap: 10px;
		padding: 12px;
	}

	.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__name {
		grid-area: name;
		padding-bottom: 8px;
		border-bottom: 1px dashed #eee;
	}

	.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__specs {
		grid-area: specs;
	}

	.e-n-tabs .jet-listing-grid--2626 .atlas-hl-chip {
		flex: 1 1 calc(50% - 6px);
	}

	.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__price {
		grid-area: price;
		text-align: right;
		align-self: center;
	}

	.e-n-tabs .jet-listing-grid--2626 .atlas-hl-row__action {
		grid-area: action;
	}

	.e-n-tabs .jet-listing-grid--2626 .atlas-hl-cart,
	.e-n-tabs .jet-listing-grid--2626 .atlas-hl-call {
		min-width: 96px;
		height: 40px !important;
	}
}
