/* ==========================================================================
   Nexora Enhancements — block styles
   ========================================================================== */

:root {
	--nexora-accent: #2563eb;
	--nexora-dark: #0f172a;
	--nexora-muted: #64748b;
	--nexora-radius: 10px;
	--nexora-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

/* ---------- Shared ---------- */
.nexora-btn {
	display: inline-block;
	background: var(--nexora-accent);
	color: #fff !important;
	padding: 0.7em 1.6em;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.15s ease, transform 0.15s ease;
}
.nexora-btn:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}
.nexora-section-title {
	margin: 0 0 1rem;
}
.nexora-empty,
.nexora-hint {
	color: var(--nexora-muted);
	font-style: italic;
}

/* ---------- Hero Slider ---------- */
.nexora-hero-slider {
	position: relative;
	overflow: hidden;
}
.nexora-hero-slide {
	position: relative;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	color: #fff;
}
.nexora-hero-slide__overlay,
.nexora-banner__overlay,
.nexora-slide-editor__overlay {
	position: absolute;
	inset: 0;
	background: #000;
	pointer-events: none;
}
.nexora-hero-slide__content {
	position: relative;
	z-index: 1;
	max-width: 640px;
	padding: 2rem clamp(1.5rem, 6vw, 5rem);
}
.nexora-hero-slide__content h2 {
	color: #fff;
	font-size: clamp(1.8rem, 4vw, 3.2rem);
	margin: 0 0 0.5em;
}
.nexora-hero-slide__content p {
	font-size: 1.1rem;
	margin: 0 0 1.4em;
}
.nexora-hero-slider .swiper-button-prev,
.nexora-hero-slider .swiper-button-next {
	color: #fff;
}
.nexora-hero-slider .swiper-pagination-bullet-active {
	background: #fff;
}

/* Editor slide manager */
.nexora-slide-editor {
	position: relative;
	background-size: cover;
	background-position: center;
	background-color: var(--nexora-dark);
	color: #fff;
	margin-bottom: 8px;
	border-radius: var(--nexora-radius);
	overflow: hidden;
}
.nexora-slide-editor__toolbar {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 6px;
	align-items: center;
	padding: 8px;
	background: rgba(0, 0, 0, 0.55);
	font-size: 12px;
}
.nexora-slide-editor__content {
	position: relative;
	z-index: 1;
	padding: 2rem;
	max-width: 640px;
}
.nexora-slide-editor__content h2 {
	color: #fff;
}
.nexora-add-slide {
	margin-top: 4px;
}

/* ---------- Icon Box ---------- */
.nexora-icon-box {
	padding: 1.5rem;
	border-radius: var(--nexora-radius);
}
.nexora-icon-box.has-align-center {
	text-align: center;
}
.nexora-icon-box__icon {
	margin-bottom: 0.75rem;
}
.nexora-icon-box h3 {
	margin: 0 0 0.35em;
	font-size: 1.15rem;
}
.nexora-icon-box p {
	margin: 0;
	color: var(--nexora-muted);
}
.nexora-icon-box__link {
	color: inherit;
	text-decoration: none;
	display: block;
}

/* ---------- Banner ---------- */
.nexora-banner {
	position: relative;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	background-color: var(--nexora-dark);
	border-radius: var(--nexora-radius);
	overflow: hidden;
	color: #fff;
}
.nexora-banner__content {
	position: relative;
	z-index: 1;
	padding: 2rem clamp(1.5rem, 5vw, 4rem);
	width: 100%;
}
.nexora-banner.is-align-center .nexora-banner__content {
	text-align: center;
}
.nexora-banner.is-align-right .nexora-banner__content {
	text-align: right;
}
.nexora-banner__sub {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.8rem;
	margin-bottom: 0.4em;
	opacity: 0.85;
}
.nexora-banner h2 {
	color: #fff;
	margin: 0 0 0.8em;
	font-size: clamp(1.5rem, 3vw, 2.4rem);
}

/* ---------- Countdown ---------- */
.nexora-countdown {
	text-align: center;
	padding: 1.5rem;
}
.nexora-countdown__units {
	display: flex;
	justify-content: center;
	gap: 0.9rem;
	flex-wrap: wrap;
}
.nexora-countdown__unit {
	min-width: 72px;
	background: var(--nexora-dark);
	color: #fff;
	border-radius: var(--nexora-radius);
	padding: 0.7rem 0.5rem;
}
.nexora-countdown__value {
	display: block;
	font-size: 1.7rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.nexora-countdown__label {
	display: block;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.7;
}
.nexora-countdown__expired {
	font-weight: 600;
}

/* ---------- FAQ ---------- */
.nexora-faq__item {
	border: 1px solid #e2e8f0;
	border-radius: var(--nexora-radius);
	margin-bottom: 0.6rem;
	overflow: hidden;
	background: #fff;
}
.nexora-faq__q {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem 1.2rem;
	background: none;
	border: 0;
	font: inherit;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}
.nexora-faq__chevron {
	font-size: 1.2rem;
	color: var(--nexora-accent);
	flex-shrink: 0;
}
.nexora-faq__a {
	padding: 0 1.2rem 1rem;
	color: var(--nexora-muted);
}
.nexora-faq.is-editor .nexora-faq__a {
	padding-top: 0.25rem;
}

/* ---------- Testimonials ---------- */
.nexora-testimonials.swiper {
	padding-bottom: 2.2rem;
}
.nexora-testimonial {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: var(--nexora-radius);
	box-shadow: var(--nexora-shadow);
	padding: 1.4rem;
	height: 100%;
}
.nexora-testimonial__head {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin-bottom: 0.6rem;
}
.nexora-testimonial__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	background: #e2e8f0;
	display: inline-block;
}
.nexora-testimonial__avatar.is-placeholder {
	width: 48px;
	height: 48px;
}
.nexora-testimonial__role {
	display: block;
	font-size: 0.8rem;
	color: var(--nexora-muted);
}
.nexora-testimonial__controls {
	margin-left: auto;
	display: flex;
	gap: 4px;
}
.nexora-stars .is-on {
	color: #f59e0b;
}
.nexora-stars span:not(.is-on) {
	color: #e2e8f0;
}
.nexora-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(var(--nexora-cols, 3), 1fr);
	gap: 1rem;
	margin-bottom: 0.8rem;
}

/* ---------- Pricing ---------- */
.nexora-pricing {
	position: relative;
	border: 1px solid #e2e8f0;
	border-radius: var(--nexora-radius);
	padding: 2rem 1.6rem;
	text-align: center;
	background: #fff;
	max-width: 380px;
}
.nexora-pricing.is-featured {
	border-color: var(--nexora-accent);
	box-shadow: var(--nexora-shadow);
}
.nexora-pricing__badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--nexora-accent);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 4px 12px;
	border-radius: 999px;
}
.nexora-pricing__price .amount {
	font-size: 2.4rem;
	font-weight: 800;
}
.nexora-pricing__price .period {
	color: var(--nexora-muted);
}
.nexora-pricing__features {
	list-style: none;
	margin: 1.2rem 0;
	padding: 0;
}
.nexora-pricing__features li {
	padding: 0.45rem 0;
	border-bottom: 1px dashed #e2e8f0;
	display: flex;
	justify-content: center;
	gap: 6px;
}

/* ---------- Product grid / categories ---------- */
.nexora-product-grid__items,
.nexora-cat-grid__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--nexora-cols, 4), 1fr);
	gap: 1.2rem;
}
.nexora-product-card {
	border: 1px solid #e2e8f0;
	border-radius: var(--nexora-radius);
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.15s ease;
}
.nexora-product-card:hover {
	box-shadow: var(--nexora-shadow);
}
.nexora-product-card__media {
	display: block;
	position: relative;
}
.nexora-product-card__media img {
	width: 100%;
	height: auto;
	display: block;
}
.nexora-badge--sale {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #dc2626;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 3px 10px;
	border-radius: 999px;
}
.nexora-product-card__body {
	padding: 0.9rem;
}
.nexora-product-card__title {
	display: block;
	font-weight: 600;
	color: var(--nexora-dark);
	text-decoration: none;
	margin-bottom: 0.3rem;
}
.nexora-product-card__price {
	margin: 0.3rem 0 0.6rem;
	font-weight: 700;
}
.nexora-product-card__actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	align-items: center;
}
.nexora-quick-view-btn {
	background: none;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	padding: 0.35em 1em;
	font-size: 0.85em;
	cursor: pointer;
}
.nexora-quick-view-btn:hover {
	border-color: var(--nexora-accent);
	color: var(--nexora-accent);
}
.nexora-cat-card a {
	display: block;
	text-align: center;
	text-decoration: none;
	color: var(--nexora-dark);
}
.nexora-cat-card__media img {
	width: 100%;
	height: auto;
	border-radius: var(--nexora-radius);
	display: block;
}
.nexora-cat-card__name {
	display: block;
	font-weight: 600;
	margin-top: 0.5rem;
}
.nexora-cat-card__count {
	font-size: 0.8rem;
	color: var(--nexora-muted);
}

/* ---------- Quick view modal ---------- */
.nexora-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}
.nexora-modal.is-open {
	display: block;
}
.nexora-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
}
.nexora-modal__dialog {
	position: relative;
	background: #fff;
	max-width: 760px;
	margin: 6vh auto;
	border-radius: var(--nexora-radius);
	padding: 2rem;
	max-height: 88vh;
	overflow: auto;
}
.nexora-modal__close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: 0;
	font-size: 1.6rem;
	cursor: pointer;
	line-height: 1;
}
.nexora-quick-view {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.6rem;
}
.nexora-quick-view__image img {
	width: 100%;
	height: auto;
	border-radius: var(--nexora-radius);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.nexora-product-grid__items,
	.nexora-cat-grid__items,
	.nexora-testimonials__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 560px) {
	.nexora-product-grid__items,
	.nexora-cat-grid__items,
	.nexora-testimonials__grid,
	.nexora-quick-view {
		grid-template-columns: 1fr;
	}
}
