/* Savuros - Meniul Zilei — stiluri frontend */

/* ===== Timer ===== */
.savuros-mz-timer {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-weight: 700;
}
.savuros-mz-timer-label {
	color: #4a4a4a;
	font-weight: 600;
	font-size: 16px;
	white-space: nowrap;
}
.savuros-mz-timer-clock {
	display: inline-flex;
	align-items: baseline;
	gap: 10px;
}
.savuros-mz-timer .mz-unit {
	color: var(--mz-timer-color, #e8a33d);
	font-weight: 800;
	font-size: 24px;
	line-height: 1;
	white-space: nowrap;
}
.savuros-mz-timer .mz-suffix {
	font-size: .65em;
	font-weight: 700;
	margin-left: 1px;
}
.savuros-mz-timer .mz-sep {
	color: var(--mz-timer-color, #e8a33d);
	opacity: .5;
	font-size: 22px;
	font-weight: 700;
}
.savuros-mz-timer-ended {
	color: #999;
	font-weight: 600;
	font-size: 16px;
}

@media (max-width: 560px) {
	.savuros-mz-timer .mz-unit { font-size: 20px; }
	.savuros-mz-timer .mz-sep { font-size: 18px; }
}

/* ===== Header (titlu + timer) ===== */
.savuros-mz-home-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}
.savuros-mz-title {
	margin: 0;
	line-height: 1.1;
	/* font-family/size/weight/color vin inline din setări */
}

/* ===== Containerul cu border punctat (cerut explicit de client) ===== */
.savuros-mz-home-box {
	border: 2px dashed #e8a33d;
	border-radius: 16px;
	padding: 28px 22px;
	position: relative;
}

/* ===== Grilă produse (sub 4 / fără slider) ===== */
.savuros-mz-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}
.savuros-mz-grid.savuros-mz-center {
	justify-content: center;
}
.savuros-mz-grid .savuros-mz-card {
	flex: 1 1 0;
	min-width: 0;
	max-width: calc( 25% - 18px );
}

/* ===== Cardul de produs ===== */
.savuros-mz-card {
	text-align: center;
}
.savuros-mz-card-thumb {
	position: relative;
	display: block;
	margin-bottom: 14px;
}
.savuros-mz-card-thumb img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}
.savuros-mz-badge {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(0,0,0,.12);
	white-space: nowrap;
}
.savuros-mz-cat {
	color: #8a8a8a;
	font-size: 13px;
	margin-bottom: 4px;
}
.savuros-mz-name {
	font-size: 16px;
	font-weight: 700;
	color: #c0392b;
	margin-bottom: 6px;
	line-height: 1.3;
}
.savuros-mz-name a {
	color: inherit;
	text-decoration: none;
}
.savuros-mz-price {
	font-weight: 700;
	color: #1a1a1a;
}
.savuros-mz-price .woocommerce-Price-amount {
	color: inherit;
}

/* ===== Slider (Swiper) — activ când > 4 produse ===== */
.savuros-mz-slider .swiper {
	width: 100%;
}
.savuros-mz-slider .swiper-slide {
	height: auto;
	box-sizing: border-box;
}
.savuros-mz-slider .swiper-button-next,
.savuros-mz-slider .swiper-button-prev {
	color: #e8a33d;
	opacity: 0;
	transition: opacity .25s ease;
}
/* Săgețile apar doar când mouse-ul e peste widget */
.savuros-mz-slider:hover .swiper-button-next,
.savuros-mz-slider:hover .swiper-button-prev {
	opacity: 1;
}
/* Pe dispozitive fără hover (touch/mobil) le lăsăm mereu vizibile */
@media (hover: none) {
	.savuros-mz-slider .swiper-button-next,
	.savuros-mz-slider .swiper-button-prev {
		opacity: 1;
	}
}
/* Săgețile dezactivate (capăt de slider) rămân ascunse chiar și la hover */
.savuros-mz-slider:hover .swiper-button-disabled {
	opacity: .35;
}
.savuros-mz-slider .swiper-pagination-bullet-active {
	background: #e8a33d;
}

/* ===== Mesaj gol ===== */
.savuros-mz-empty {
	color: #999;
	margin-top: 10px;
}

/* ===== Notă stoc ===== */
.savuros-mz-stock-note {
	margin: 12px 0 0;
	font-size: 13px;
	color: #8a8a8a;
	font-style: italic;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
	.savuros-mz-grid .savuros-mz-card { max-width: calc( 50% - 12px ); }
}
@media (max-width: 560px) {
	.savuros-mz-grid .savuros-mz-card { max-width: 100%; }
	.savuros-mz-home-header { justify-content: center; text-align: center; }
}
