/* ===== Overlay (folosit de orice drawer: cart, meniu mobil etc.) ===== */
.lg-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.45 );
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.28s ease;
	pointer-events: none;
}

.lg-overlay.lg-drawer--open {
	opacity: 1;
	pointer-events: auto;
}

.lg-drawer__close {
	background: none;
	border: none;
	padding: 6px;
	line-height: 0;
	color: var(--lg-navy);
	display: inline-flex;
	font-size: 20px;
}

/* ===== Cart drawer - intra din dreapta ===== */
.lg-cart-drawer {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	width: 400px;
	max-width: 90vw;
	background: #fff;
	z-index: 1001;
	box-shadow: -10px 0 30px rgba( 0, 0, 0, 0.15 );
	display: flex;
	flex-direction: column;
	transform: translateX( 100% );
	transition: transform 0.32s cubic-bezier( 0.32, 0.72, 0, 1 ), visibility 0s linear 0.32s, opacity 0.32s ease;
	visibility: hidden;
	opacity: 0;
}

.lg-cart-drawer.lg-drawer--open {
	transform: translateX( 0 );
	visibility: visible;
	opacity: 1;
	transition: transform 0.32s cubic-bezier( 0.32, 0.72, 0, 1 ), visibility 0s linear 0s, opacity 0.32s ease;
}

.lg-cart-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--lg-border);
}

.lg-cart-drawer__title {
	font-weight: 700;
	font-size: 16px;
	color: var(--lg-navy);
	text-transform: uppercase;
}

.lg-cart-drawer__body {
	flex: 1;
	overflow-y: auto;
	padding: 12px 20px;
}

.lg-cart-drawer__foot {
	border-top: 1px solid var(--lg-border);
	padding: 18px 20px;
}

.lg-cart-drawer__totals {
	display: flex;
	justify-content: space-between;
	font-weight: 700;
	color: var(--lg-navy);
	margin-bottom: 14px;
}

.lg-cart-drawer__totals--discount {
	color: var(--lg-orange-2);
}

.lg-cart-drawer__totals--total {
	padding-top: 10px;
	margin-top: -4px;
	border-top: 1px solid var(--lg-border);
}

/* ===== Notificare transport gratuit ===== */
.lg-free-shipping {
	padding-bottom: 16px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--lg-border);
}

.lg-free-shipping__text {
	font-size: 13px;
	color: var(--lg-navy);
	margin: 0 0 8px;
}

.lg-free-shipping__text--done {
	color: var(--lg-orange);
	font-weight: 600;
}

.lg-free-shipping__bar {
	height: 6px;
	background: var(--lg-border);
	border-radius: 999px;
	overflow: hidden;
}

.lg-free-shipping__bar-fill {
	display: block;
	height: 100%;
	background: var(--lg-orange);
	border-radius: 999px;
	transition: width 0.3s ease;
}

/* ===== Cupon promotional ===== */
.lg-cart-coupons {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
}

.lg-cart-coupon {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	font-size: 13px;
}

.lg-cart-coupon__code {
	font-weight: 600;
	color: var(--lg-navy);
	text-transform: uppercase;
}

.lg-cart-coupon__amount {
	color: var(--lg-orange);
	font-weight: 600;
}

.lg-cart-coupon__remove {
	margin-left: auto;
	background: none;
	border: none;
	color: var(--lg-gray);
	line-height: 0;
	padding: 4px;
}

.lg-cart-coupon__remove:hover {
	color: var(--lg-orange);
}

.lg-cart-coupon-form {
	margin-bottom: 14px;
}

.lg-cart-coupon-form__row {
	display: flex;
	gap: 8px;
}

.lg-cart-coupon-form__row input {
	flex: 1;
	min-width: 0;
	border: 1px solid var(--lg-border);
	border-radius: 4px;
	padding: 0 14px;
	height: 40px;
	font-size: 13px;
	font-family: 'Rubik', Arial, sans-serif;
}

.lg-cart-coupon-form__row .lg-btn {
	height: 40px;
	white-space: nowrap;
	padding: 0 16px;
}

.lg-cart-coupon-form__message {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--lg-orange);
}

.lg-cart-coupon-form__message.is-error {
	color: #d33;
}

.lg-cart-drawer__actions {
	display: grid;
	gap: 10px;
}

.lg-cart-empty {
	text-align: center;
	color: var(--lg-gray);
	padding: 40px 0;
}

/* ===== Lista de produse din mini-cart ===== */
.lg-mini-cart-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lg-mini-cart-item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--lg-border);
	align-items: center;
}

.lg-mini-cart-item img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 4px;
}

.lg-mini-cart-item__info {
	min-width: 0;
}

.lg-mini-cart-item__name {
	display: block;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--lg-navy);
}

.lg-mini-cart-item__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 8px;
}

.lg-mini-cart-item__price {
	font-size: 13px;
	font-weight: 600;
	color: var(--lg-navy);
	white-space: nowrap;
}

.lg-mini-cart-item__remove {
	background: none;
	border: none;
	color: var(--lg-gray);
	line-height: 0;
	padding: 4px;
	font-size: 16px;
}

.lg-mini-cart-item__remove:hover {
	color: var(--lg-orange);
}

/* ===== Qty stepper ===== */
.lg-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--lg-border);
	border-radius: 20px;
	overflow: hidden;
}

.lg-qty button {
	background: none;
	border: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--lg-navy);
}

.lg-qty button:hover {
	background: var(--lg-bg);
}

.lg-qty button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.lg-qty input {
	text-align: center;
	border: none;
	border-left: 1px solid var(--lg-border);
	border-right: 1px solid var(--lg-border);
	color: var(--lg-navy);
	-moz-appearance: textfield;
}

.lg-qty input::-webkit-outer-spin-button,
.lg-qty input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.lg-qty--mini button {
	width: 26px;
	height: 28px;
}

.lg-qty--mini input {
	width: 32px;
	height: 28px;
	font-size: 12px;
}

/* ===== Butoane generice ===== */
.lg-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 20px;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	background: var(--lg-orange);
	color: #fff;
	border: 1px solid var(--lg-orange);
}

.lg-btn:hover {
	background: var(--lg-orange-2);
}

.lg-btn--outline {
	background: #fff;
	color: var(--lg-navy);
	border-color: var(--lg-border);
}

.lg-btn--outline:hover {
	background: var(--lg-bg);
}
