/**
 * Helper styles for the ERTH Elementor widgets (free version).
 * Loaded on the frontend and inside the Elementor editor preview.
 */

/* Editor notices */
.erth-widget-notice {
	direction: rtl;
	margin: 0;
	padding: 18px 20px;
	border: 1px dashed #C8A24A;
	border-radius: 12px;
	background: #FBF8F0;
	color: #173C34;
	font-family: Alexandria, Cairo, system-ui, sans-serif;
	font-size: 14px;
	text-align: center;
}

/* Hero widget */
.erth-hero {
	position: relative;
}

.erth-hero .hero__slide {
	position: relative;
	display: none;
	min-height: 640px;
	background-size: cover;
	background-position: center;
}

.erth-hero .hero__slide.is-active {
	display: block;
}

.erth-hero__overlay {
	position: absolute;
	inset: 0;
	background-color: #0E241D;
	opacity: .42;
	z-index: 1;
}

.erth-hero .hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: inherit;
	gap: 16px;
	padding: 90px 0;
}

.erth-hero .hero__eyebrow {
	letter-spacing: .14em;
	font-size: 13px;
	font-weight: 600;
	color: #C8A24A;
	text-transform: uppercase;
}

.erth-hero .hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(30px, 5vw, 60px);
	line-height: 1.2;
	font-weight: 700;
}

.erth-hero .hero__sub {
	margin: 0;
	max-width: 560px;
	color: rgba(255, 255, 255, .88);
	font-size: 17px;
	line-height: 1.8;
}

.erth-hero .hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.erth-hero .btn--outline-light {
	border: 1.5px solid rgba(255, 255, 255, .8);
	color: #fff;
	background: transparent;
}

.erth-hero .btn--outline-light:hover {
	background: #fff;
	color: #173C34;
}

.erth-hero .hero__dots {
	position: absolute;
	inset-inline: 0;
	bottom: 22px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.erth-hero .hero__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .5);
	cursor: pointer;
	transition: .25s;
}

.erth-hero .hero__dot.is-active {
	width: 26px;
	border-radius: 6px;
	background: #C8A24A;
}

.erth-hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	backdrop-filter: blur(4px);
	cursor: pointer;
	transition: .25s;
}

.erth-hero__arrow:hover {
	background: #C8A24A;
}

.erth-hero__arrow svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.erth-hero__arrow--prev {
	inset-inline-start: 18px;
}

.erth-hero__arrow--next {
	inset-inline-end: 18px;
}

/* Categories widget */
.erth-cats .cats__track {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: visible;
}

.erth-cats .cat__img {
	display: block;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
}

.erth-cats .cat__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s;
}

.erth-cats .cat a:hover .cat__img img {
	transform: scale(1.06);
}

.erth-cats .cat__name {
	display: block;
	margin-top: 10px;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
}

/* Products widget */
.erth-products .products {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.erth-products .card {
	position: relative;
}

/* Collections widget */
.erth-collections .coll__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.erth-collections .coll--lg {
	grid-column: span 2;
}

@media (max-width: 900px) {
	.erth-collections .coll__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.erth-collections .coll__grid,
	.erth-collections .coll--lg {
		grid-template-columns: 1fr;
		grid-column: auto;
	}

	.erth-hero .hero__content {
		padding: 60px 0;
	}
}

/* Newsletter widget */
.erth-news .news__msg {
	margin: 10px 0 0;
	color: #173C34;
	font-weight: 600;
}

/* Elementor editor: keep theme container behaviour predictable */
.elementor-editor-active .erth-hero .hero__slide {
	background-color: #173C34;
}
