/**
 * SWEB — Tabel de comenzi [sweb_orders] + ActionButton.
 * Calibrat din Figma (Table #16417:19184): header #FEFAF0, rânduri #FFFDF9, radius 12px.
 */
.sweb-table {
	--sweb-table-cols: 1.2fr 1fr 1fr 1.4fr 1fr;
	border: 1px solid #DFD5CF;
	border-radius: 12px;
	overflow: hidden;
	font-family: 'Inter', sans-serif;
	background: #FFFDF9;
}

.sweb-table__head,
.sweb-table__row {
	display: grid;
	grid-template-columns: var(--sweb-table-cols);
	align-items: center;
}

.sweb-table__head {
	background: #FEFAF0;
	border-bottom: 1px solid #DFD5CF;
}
.sweb-table__head .sweb-table__cell {
	font-weight: 600;
	color: #4E220B;
}

.sweb-table__row {
	border-bottom: 1px solid #DFD5CF;
}
.sweb-table__row:last-child { border-bottom: none; }

.sweb-table__cell {
	padding: 16px;
	font-size: 14px;
	color: #4E220B;
}
.sweb-table__cell--actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.sweb-table--empty {
	padding: 32px;
	text-align: center;
	color: #8D6C5A;
}

/* ActionButton */
.sweb-actionbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #DFD5CF;
	background: #FEFAF0;
	color: #4E220B;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}
.sweb-actionbtn:hover { background: #DFD5CF; }
.sweb-actionbtn--repeat {
	background: var(--sweb-c-primary, #D35A0C);
	color: #fff;
	border-color: transparent;
}
.sweb-actionbtn--repeat:hover { filter: brightness(0.94); background: var(--sweb-c-primary, #D35A0C); }

/* Responsive: pe mobil, rândurile devin carduri */
@media (max-width: 768px) {
	.sweb-table__head { display: none; }
	.sweb-table__row {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 12px 8px;
	}
	.sweb-table__cell { padding: 4px 8px; display: flex; justify-content: space-between; gap: 12px; }
	.sweb-table__cell::before {
		content: attr(data-label);
		font-weight: 600;
		color: #8D6C5A;
	}
	.sweb-table__cell--actions::before { content: none; }
}

/* -------------------------------------------------------------------------- *
 * Promo banner [sweb_promo]
 * -------------------------------------------------------------------------- */
.sweb-promo {
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 16px + 1.111vw, 32px);
}
.sweb-promo__card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"body media"
		"btn  media";
	align-items: start;
	column-gap: clamp(16px, 5.33px + 2.963vw, 48px);
	row-gap: clamp(14px, 11.33px + 0.7407vw, 22px);
	min-height: clamp(240px, 190px + 13.89vw, 390px);
	padding: clamp(24px, 16px + 2.222vw, 48px);
	border-radius: 16px;
	border: 1px solid #EEE4DA;
	background: #FEFAF0 center/cover no-repeat;
	background-image: url('../../img/texture-cream.jpg');
	overflow: hidden;
}
.sweb-promo__body {
	grid-area: body;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: clamp(14px, 11.33px + 0.7407vw, 22px);
	max-width: 46ch;
	z-index: 1;
}
.sweb-promo__title {
	margin: 0;
	font-family: var(--sweb-font-title, 'Freeman', sans-serif);
	font-size: clamp(36px, 24px + 3.333vw, 72px);
	line-height: 1;
	letter-spacing: -0.02em;
	color: #4E220B;
}
.sweb-promo__lines { display: flex; flex-direction: column; gap: 10px; }
.sweb-promo__line {
	padding-left: 12px;
	border-left: 4px solid var(--sweb-c-primary, #D35A0C);
	font-family: 'Inter', sans-serif;
	font-size: clamp(14px, 13.33px + 0.1852vw, 16px);
	line-height: 1.3;
	color: #4E220B;
}
.sweb-promo__btn {
	grid-area: btn;
	align-self: start;
	justify-self: start;
	margin-top: 4px;
	font-family: var(--sweb-font-title, 'Freeman', sans-serif);
	font-size: clamp(18px, 13.33px + 1.296vw, 32px);
	padding: 12px 24px;
	border-radius: 12px;
}
.sweb-promo__media {
	grid-area: media;
	align-self: center;
	justify-self: end;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	max-width: 100%;
}
.sweb-promo__media img {
	max-width: 100%;
	max-height: clamp(200px, 153.3333px + 12.963vw, 340px);
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 12px 24px rgba(78, 34, 11, 0.28));
}

/* Slider / carusel (progress + săgeți) */
.sweb-promo__slider {
	display: flex;
	align-items: center;
	gap: clamp(24px, 16px + 2.222vw, 48px);
}
.sweb-promo__progress {
	flex: 1 1 auto;
	height: 2px;
	border-radius: 99px;
	background: #D4B9AC;
	overflow: hidden;
}
.sweb-promo__progress-fill {
	display: block;
	width: 24%;
	height: 100%;
	background: var(--sweb-c-primary, #D35A0C);
	border-radius: 99px;
}
.sweb-promo__arrows { display: flex; gap: 16px; }
.sweb-promo__arrow,
.sweb-promo__arrow:hover,
.sweb-promo__arrow:focus,
.sweb-promo__arrow:active {
	width: 40px; height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0 !important;
	outline: 0 !important;
	border-radius: 8px;
	background: var(--sweb-c-primary, #D35A0C) !important;
	color: #fff !important;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: none !important;
}
.sweb-promo__arrow:hover { filter: brightness(0.94); }

@media (max-width: 760px) {
	/* Mobil (1:1 Figma): stivuire titlu → poză → buton (butonul SUB poză). */
	.sweb-promo__card {
		grid-template-columns: 1fr;
		grid-template-areas:
			"body"
			"media"
			"btn";
		justify-items: center;
		text-align: center;
	}
	.sweb-promo__body { align-items: center; }
	.sweb-promo__media { max-width: 80%; justify-self: center; }
	.sweb-promo__line { border-left: 0; padding-left: 0; }
	.sweb-promo__btn { align-self: center; justify-self: stretch; text-align: center; }
}

/* === Sagetile promo/carousel: mereu patrat 40px + radius 4px in TOATE starile (override reset.css [type=button]) — arrows 40x40 (recuperat din Customizer) === */
.sweb-promo__arrow, .sweb-promo__arrow:hover, .sweb-promo__arrow:focus, .sweb-promo__arrow:active, .sweb-promo__arrow:focus-visible,
.sweb-carousel__arrow, .sweb-carousel__arrow:hover, .sweb-carousel__arrow:focus, .sweb-carousel__arrow:active, .sweb-carousel__arrow:focus-visible {
	box-sizing: border-box !important;
	flex: 0 0 40px !important;
	width: 40px !important; min-width: 40px !important; max-width: 40px !important;
	height: 40px !important; min-height: 40px !important; max-height: 40px !important;
	aspect-ratio: 1 / 1 !important;
	padding: 0 !important;
	border-radius: 4px !important;
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
}
