/**
 * SWEB — Atomi UI: badge, tag, hot level, button.
 * Calibrat din Figma: Badge #16162:10360, Tag #16254:15016, Hot level #16089:3176, Button #16066:519.
 */

/* -------------------------------------------------------------------------- *
 * Badge (statusuri / etichete) — padding 4px 6px, radius 4px, Inter 600 UPPER
 * -------------------------------------------------------------------------- */
.sweb-badge2 {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 6px;
	border-radius: 4px;
	background: #4E220B;
	color: #FEFAF0;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
}
.sweb-badge2__ic { font-size: 13px; line-height: 1; }

/* Variante de culoare */
.sweb-badge2--bestseller { background: #D73B3B; }
.sweb-badge2--canceled { background: #D73B3B; }
.sweb-badge2--processing { background: #D35A0C; letter-spacing: 0.01em; text-transform: none; }
.sweb-badge2--delivered { background: #277109; letter-spacing: 0.01em; text-transform: none; }
.sweb-badge2--new { background: #F4F4F4; color: #1A1A1A; border: 2px solid #1A1A1A; }

/* -------------------------------------------------------------------------- *
 * Tag de categorie — pill, per brand
 * -------------------------------------------------------------------------- */
.sweb-tag {
	display: inline-flex;
	align-items: center;
	padding: 8px 10px;
	border-radius: 99px;
	background: #FEFAF0;
	border: 1px solid #DFD5CF;
	color: #8D6C5A;
	font-family: 'Inter', sans-serif;
	font-weight: 500;
	font-size: 14px;
	line-height: 1;
	letter-spacing: 0.01em;
	text-decoration: none;
}
.sweb-brand--jerry.sweb-tag,
.sweb-brand--jerry .sweb-tag {
	background: #FFFFFF;
	border: 2px solid #1A1A1A;
	border-radius: 0;
	color: #525252;
	font-family: 'Afacad', sans-serif;
	font-size: 16px;
}
.sweb-brand--americana.sweb-tag,
.sweb-brand--americana .sweb-tag {
	background: #0B1432;
	border: 1px solid #2B3042;
	border-radius: 999px;
	color: #FFFCFA;
}

/* -------------------------------------------------------------------------- *
 * Hot level — cerc 32×32
 * -------------------------------------------------------------------------- */
.sweb-hot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #F4F4F4;
	border: 2px solid #1A1A1A;
	font-size: 15px;
	line-height: 1;
}
.sweb-brand--follies.sweb-hot,
.sweb-brand--follies .sweb-hot {
	background: #FEFAF0;
	border: 1px solid #D35A0C;
}

/* -------------------------------------------------------------------------- *
 * Button — padding 6px 12px, per brand (vezi și product-card.css)
 * -------------------------------------------------------------------------- */
.sweb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 6px 12px;
	border: none;
	border-radius: 6px;
	font-family: var(--sweb-font-title, 'Freeman', sans-serif);
	font-size: 16px;
	font-weight: 200;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, background 0.15s ease;
}
.sweb-btn:hover { filter: brightness(0.95); }

/* Follies */
.sweb-brand--follies .sweb-btn--primary,
.sweb-brand--follies.sweb-btn--primary { background: #D35A0C; color: #FEFAF0; }
.sweb-brand--follies .sweb-btn--primary:hover { background: #4E220B; filter: none; }
.sweb-brand--follies .sweb-btn--secondary { background: #4E220B; color: #FEFAF0; }
.sweb-brand--follies .sweb-btn--tertiary { background: #FEFAF0; color: #4E220B; border: 1px solid #4E220B; }

/* Jerry — bordură groasă, colțuri drepte, font Afacad */
.sweb-brand--jerry .sweb-btn,
.sweb-brand--jerry.sweb-btn {
	border-radius: 0;
	border: 1.5px solid #1A1A1A;
	font-family: 'Afacad', sans-serif;
}
.sweb-brand--jerry .sweb-btn--primary { background: #E3403E; color: #FFFFFF; }
.sweb-brand--jerry .sweb-btn--primary:hover { background: #F57A20; filter: none; }
.sweb-brand--jerry .sweb-btn--secondary { background: #FFFFFF; color: #1A1A1A; }

/* Americana — radius 4px, font Racing Sans One */
.sweb-brand--americana .sweb-btn,
.sweb-brand--americana.sweb-btn {
	border-radius: 4px;
	font-family: 'Racing Sans One', sans-serif;
}
.sweb-brand--americana .sweb-btn--primary { background: #3475EE; color: #FFFCFA; }
.sweb-brand--americana .sweb-btn--primary:hover { background: #3475EE; filter: none; }

/* Disabled generic */
.sweb-btn:disabled,
.sweb-btn.is-disabled { background: #B7B6B4 !important; color: #FFFFFF !important; cursor: not-allowed; }

/* Fix hello-elementor reset.css: butoanele nu devin roz (#CC3366) pe focus/active */
.sweb-brand--follies .sweb-btn--primary:focus:not(:hover),
.sweb-brand--follies .sweb-btn--primary:active:not(:hover) { background: #D35A0C; color: #FEFAF0; }
.sweb-brand--jerry .sweb-btn--primary:focus:not(:hover),
.sweb-brand--jerry .sweb-btn--primary:active:not(:hover) { background: #E3403E; color: #FFFFFF; }
.sweb-brand--americana .sweb-btn--primary:focus:not(:hover),
.sweb-brand--americana .sweb-btn--primary:active:not(:hover) { background: #3475EE; color: #FFFCFA; }

/* -------------------------------------------------------------------------- *
 * Flag — tricolor 16×16 (RO / HU)
 * -------------------------------------------------------------------------- */
.sweb-flag {
	display: inline-block;
	width: 16px;
	height: 16px;
	border-radius: 2px;
	overflow: hidden;
	vertical-align: middle;
}
.sweb-flag--ro {
	background: linear-gradient(90deg,
		#002B7F 0 33.33%,
		#FCD116 33.33% 66.66%,
		#CE1126 66.66% 100%);
}
.sweb-flag--hu {
	background: linear-gradient(180deg,
		#CD2A3E 0 33.33%,
		#EEEEEE 33.33% 66.66%,
		#436F4D 66.66% 100%);
}
.sweb-flag--en {
	background:
		linear-gradient(#CF142B, #CF142B) center / 100% 3px no-repeat,
		linear-gradient(#CF142B, #CF142B) center / 3px 100% no-repeat,
		#fff;
	border: 1px solid #E4D9CF;
}

/* Switcher de limbă (dropdown în navbar) */
.sweb-navbar__lang { position: relative; }
.sweb-navbar__lang-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent !important; border: 0 !important; box-shadow: none !important; outline: 0 !important; cursor: pointer; font: inherit; color: inherit !important; padding: 4px 6px; border-radius: 0 !important; -webkit-appearance: none; appearance: none; }
.sweb-navbar__lang-btn:hover, .sweb-navbar__lang-btn:focus { background: transparent !important; border: 0 !important; box-shadow: none !important; color: inherit !important; }
.sweb-navbar__lang-txt, .sweb-navbar__lang-chev { color: inherit !important; }
.sweb-navbar__lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 150px; background: #fff; border: 1px solid #E4D9CF; border-radius: 10px; box-shadow: 0 12px 28px rgba(78, 34, 11, 0.16); padding: 6px; display: none; z-index: 9500; }
.sweb-navbar__lang.is-open .sweb-navbar__lang-menu { display: block; }
.sweb-navbar__lang-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; text-decoration: none !important; color: #4E220B !important; font-size: 14px; white-space: nowrap; box-shadow: none !important; }
.sweb-navbar__lang-opt:hover { background: #F6EEE7; color: #4E220B !important; }
.sweb-navbar__lang-opt.is-active { font-weight: 700; background: #F1E4D9; }

/* -------------------------------------------------------------------------- *
 * Benefit — iconiță 64px + bară accent verticală + text
 * -------------------------------------------------------------------------- */
.sweb-benefits {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}
.sweb-benefit {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 64px;
}
.sweb-benefit__ic {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	flex: 0 0 64px;
	border-radius: 999px;
	background: #FEFAF0;
	border: 2px solid var(--sweb-c-primary, #D35A0C);
	font-size: 28px;
}
.sweb-benefit__bar {
	width: 6px;
	align-self: stretch;
	border-radius: 99px;
	background: var(--sweb-c-primary, #D35A0C);
}
.sweb-benefit__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.sweb-benefit__title {
	font-family: var(--sweb-font-title, 'Freeman', sans-serif);
	font-size: 18px;
	color: var(--sweb-c-text, #4E220B);
}
.sweb-benefit__text {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: var(--sweb-c-text-muted, #8D6C5A);
	max-width: 28ch;
}

/* Jerry — bară dreaptă gri, cerc bordură neagră */
.sweb-brand--jerry .sweb-benefit__ic { border-color: #1A1A1A; background: #FFFFFF; }
.sweb-brand--jerry .sweb-benefit__bar { width: 6px; background: #525252; border-radius: 0; }
/* Americana — cerc bordură roșie, bară albastră subțire */
.sweb-brand--americana .sweb-benefit__ic { border-color: #E42B2B; background: #FFFFFF; }
.sweb-brand--americana .sweb-benefit__bar { width: 2px; background: #E42B2B; }

/* -------------------------------------------------------------------------- *
 * Dropdown pill (selector limbă / meniu) — Figma Input Select #16396:18298
 * -------------------------------------------------------------------------- */
.sweb-dropdown { position: relative; display: inline-block; }
.sweb-dropdown__toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid #DFD5CF;
	border-radius: 999px;
	background: #FEFAF0;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--sweb-c-text, #4E220B);
	cursor: pointer;
}
.sweb-dropdown__chev { transition: transform 0.15s ease; font-size: 12px; }
.sweb-dropdown.is-open .sweb-dropdown__chev { transform: rotate(180deg); }
.sweb-dropdown__menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 100%;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #FFFFFF;
	border: 1px solid #DFD5CF;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(78, 34, 11, 0.12);
	display: none;
	z-index: 40;
}
.sweb-dropdown.is-open .sweb-dropdown__menu { display: block; }
.sweb-dropdown__menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: var(--sweb-c-text, #4E220B);
	text-decoration: none;
	white-space: nowrap;
}
.sweb-dropdown__menu a:hover { background: #FEFAF0; }

/* -------------------------------------------------------------------------- *
 * Coupon — panel Figma Cupon #16279:19283
 * -------------------------------------------------------------------------- */
.sweb-coupon {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
	background: #FFFDF9;
	border: 1px solid #DFD5CF;
	border-radius: 16px;
}
.sweb-coupon__title {
	margin: 0;
	font-family: var(--sweb-font-title, 'Freeman', sans-serif);
	font-size: 18px;
	color: var(--sweb-c-text, #4E220B);
}
.sweb-coupon__row { display: flex; gap: 8px; }
.sweb-coupon__input {
	flex: 1 1 auto;
	padding: 12px 14px;
	border: 1px solid #DFD5CF;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
}
.sweb-coupon__input:focus {
	outline: none;
	border-color: var(--sweb-c-primary, #D35A0C);
	box-shadow: 0 0 0 2px rgba(211, 90, 12, 0.15);
}
.sweb-coupon__btn { border-radius: 8px; }

/* -------------------------------------------------------------------------- *
 * Pop-up / modal
 * -------------------------------------------------------------------------- */
.sweb-popup-wrap { display: inline-block; }
.sweb-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sweb-popup[hidden] { display: none; }
.sweb-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 15, 5, 0.55);
	backdrop-filter: blur(2px);
}
.sweb-popup__box {
	position: relative;
	max-width: 520px;
	width: calc(100% - 32px);
	max-height: 85vh;
	overflow: auto;
	background: #FFFDF9;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
	z-index: 1;
}
.sweb-popup__close {
	position: absolute;
	top: 12px;
	right: 16px;
	border: none;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: var(--sweb-c-text-muted, #8D6C5A);
	cursor: pointer;
}
.sweb-popup__title {
	margin: 0 0 16px;
	font-family: var(--sweb-font-title, 'Freeman', sans-serif);
	font-size: 24px;
	color: var(--sweb-c-text, #4E220B);
}
