/* Magazin Veruvis — elemente comune: butoane, iconița coșului din header, coșul lateral. */

:root {
	--vm-ink: #0b0f14;
	--vm-ink-2: #3a4456;
	--vm-muted: #5f6b7a;
	--vm-line: rgba(11, 15, 20, .1);
	--vm-line-2: rgba(11, 15, 20, .16);
	--vm-brand: #5a9999;
	--vm-brand-deep: #3f7878;
	--vm-brand-accent: #7fb5b5;
	--vm-bone: #eaf2f2;
	--vm-bone-2: #f4f8f8;
	--vm-sage: #b9d0be;
	--vm-sky: #bedddf;
	--vm-peach: #f9cba2;
	--vm-rose: #e2a1ab;
	--vm-lavender: #aa83a3;
	--vm-cream: #e3e4c7;
	--vm-danger: #b4232f;
	--vm-ok: #2f7a4b;
	--vm-r: 20px;
	--vm-r-sm: 12px;
	--vm-shadow: 0 1px 2px rgba(11, 15, 20, .04), 0 12px 32px -12px rgba(11, 15, 20, .18);
	--vm-ease: cubic-bezier(.2, .7, .2, 1);
}

.vm-ico { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; }

/* ---------- butoane ---------- */
body .vm-btn,
body a.vm-btn,
body button.vm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 12px 22px !important; border-radius: 999px !important; border: 1.5px solid transparent;
	font: inherit; font-size: 16px !important; font-weight: 600 !important; line-height: 1.2 !important; letter-spacing: 0 !important; text-transform: none !important;
	text-decoration: none !important; cursor: pointer; white-space: nowrap;
	transition: background-color .2s var(--vm-ease), color .2s var(--vm-ease), border-color .2s var(--vm-ease), transform .2s var(--vm-ease), box-shadow .2s var(--vm-ease);
	box-shadow: none;
}
.vm-btn .vm-ico { width: 18px; height: 18px; }
.vm-btn:active { transform: translateY(1px); }
body .vm-btn.vm-btn--primary, body a.vm-btn.vm-btn--primary, body button.vm-btn.vm-btn--primary { background: var(--vm-brand-deep) !important; color: #fff !important; border-color: var(--vm-brand-deep); }
body .vm-btn.vm-btn--primary:hover, body a.vm-btn.vm-btn--primary:hover, body button.vm-btn.vm-btn--primary:hover { background: var(--vm-ink) !important; border-color: var(--vm-ink); color: #fff !important; }
body .vm-btn.vm-btn--ghost, body a.vm-btn.vm-btn--ghost, body button.vm-btn.vm-btn--ghost { background: #fff !important; color: var(--vm-ink) !important; border-color: var(--vm-line-2); }
body .vm-btn.vm-btn--ghost:hover, body a.vm-btn.vm-btn--ghost:hover, body button.vm-btn.vm-btn--ghost:hover { border-color: var(--vm-brand-deep); color: var(--vm-brand-deep) !important; }
.vm-btn--block { width: 100%; }
.vm-btn[disabled], .vm-btn.is-loading { opacity: .6; pointer-events: none; }

/* ---------- iconița coșului din header ---------- */
.vm-hcart {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 12px; color: var(--vm-ink) !important;
	box-shadow: inset 0 0 0 1px rgba(11, 15, 20, .15); background: #fff; text-decoration: none !important;
	transition: background-color .2s, color .2s, box-shadow .2s; flex: 0 0 auto;
}
.vm-hcart:hover { background: var(--vm-brand-deep); color: #fff !important; box-shadow: inset 0 0 0 1px var(--vm-brand-deep); }
.vm-hcart .vm-ico { width: 21px; height: 21px; }
.vrv-cluster-desktop .vm-hcart { width: 42px; height: 42px; border-radius: 999px; }
.vm-hcart__n {
	position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
	border-radius: 999px; background: var(--vm-brand-deep); color: #fff; font-size: 11px; font-weight: 700;
	line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff;
}
.vm-hcart[data-count="0"] .vm-hcart__n { display: none; }
.vm-hcart.is-bump .vm-hcart__n { animation: vm-bump .45s var(--vm-ease); }
@keyframes vm-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- coșul lateral ---------- */
.vm-drawer-open { overflow: hidden; }
.vm-drawer { position: fixed; inset: 0; z-index: 100000; pointer-events: none; }
.vm-drawer__overlay { position: absolute; inset: 0; background: rgba(11, 15, 20, .45); opacity: 0; transition: opacity .3s var(--vm-ease); }
.vm-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
	background: #fff; box-shadow: -24px 0 60px -20px rgba(11, 15, 20, .35);
	transform: translateX(100%); transition: transform .38s var(--vm-ease);
	display: flex; flex-direction: column; color: var(--vm-ink); font-size: 16px;
}
.vm-drawer.is-open { pointer-events: auto; }
.vm-drawer.is-open .vm-drawer__overlay { opacity: 1; }
.vm-drawer.is-open .vm-drawer__panel { transform: none; }
.vm-drawer__content { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.vm-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--vm-line); }
.vm-drawer__title { margin: 0 !important; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--vm-ink); }
.vm-drawer__count { display: inline-flex; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--vm-bone); color: var(--vm-brand-deep); font-size: 14px; align-items: center; justify-content: center; }
.vm-drawer__close { width: 42px; height: 42px; border-radius: 999px; border: 0; background: var(--vm-bone) !important; color: var(--vm-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.vm-drawer__close:hover { background: var(--vm-ink) !important; color: #fff; }
.vm-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 16px 22px 8px; overscroll-behavior: contain; }
.vm-drawer__foot { border-top: 1px solid var(--vm-line); padding: 18px 22px 22px; display: grid; gap: 10px; background: #fff; }
.vm-drawer__sum { display: flex; justify-content: space-between; align-items: baseline; margin: 0 !important; font-size: 17px; }
.vm-drawer__sum strong { font-size: 20px; }
.vm-drawer__note { margin: 0 0 4px !important; font-size: 14px; color: var(--vm-muted); line-height: 1.45; }
.vm-drawer__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 28px; gap: 6px; }
.vm-drawer__empty p { margin: 0 0 10px !important; color: var(--vm-muted); }
.vm-drawer__emptyicon { width: 72px; height: 72px; border-radius: 999px; background: var(--vm-bone); color: var(--vm-brand-deep); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.vm-drawer__emptyicon .vm-ico { width: 32px; height: 32px; }
.vm-drawer__empty .vm-drawer__emptytitle { font-size: 20px; font-weight: 700; color: var(--vm-ink); margin: 0 !important; }
.vm-drawer__loading { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--vm-muted); }
.vm-drawer__error { margin: 12px 22px 0; padding: 12px 14px; border-radius: var(--vm-r-sm); background: #fbeaec; color: var(--vm-danger); font-size: 14px; }

.vm-mini { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.vm-mini__item { position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 34px 16px 0; border-bottom: 1px solid var(--vm-line); margin: 0 !important; }
.vm-mini__item:last-child { border-bottom: 0; }
.vm-mini__item.is-busy { opacity: .5; pointer-events: none; }
.vm-mini__thumb { display: block; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--vm-bone); }
.vm-mini__thumb img, .vm-mini__img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; border-radius: 0 !important; margin: 0 !important; }
.vm-mini__img--none { display: flex !important; align-items: center; justify-content: center; color: var(--vm-brand-deep); }
.vm-mini__info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vm-mini__name { margin: 0 !important; font-weight: 600; font-size: 16px; line-height: 1.3; }
.vm-mini__name a { color: var(--vm-ink) !important; text-decoration: none !important; }
.vm-mini__name a:hover { color: var(--vm-brand-deep) !important; }
.vm-mini__meta { margin: 0 !important; font-size: 14px; color: var(--vm-muted); }
.vm-mini__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.vm-mini__price { font-weight: 700; white-space: nowrap; }
.vm-mini__qtyfixed { font-size: 14px; color: var(--vm-muted); }
.vm-mini__remove { position: absolute; top: 14px; right: 0; width: 30px; height: 30px; border-radius: 999px; border: 0; background: transparent !important; color: var(--vm-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.vm-mini__remove:hover { background: var(--vm-bone) !important; color: var(--vm-danger); }
.vm-mini__remove .vm-ico { width: 16px; height: 16px; }

/* ---------- selector de cantitate ---------- */
.vm-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--vm-line-2); border-radius: 999px; background: #fff; height: 48px; }
.vm-qty button { width: 44px; height: 100%; border: 0; background: transparent !important; color: var(--vm-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; border-radius: 999px; }
.vm-qty button:hover { color: var(--vm-brand-deep); }
.vm-qty button[disabled] { opacity: .35; cursor: default; }
.vm-qty .vm-ico { width: 16px; height: 16px; }
.vm-qty__val { min-width: 28px; text-align: center; font-weight: 600; }
.vm-qty--sm { height: 36px; }
.vm-qty--sm button { width: 34px; }

/* ---------- livrare gratuită ---------- */
.vm-freeship { padding: 12px 14px; border-radius: var(--vm-r-sm); background: var(--vm-bone); margin: 0 0 6px; }
.vm-freeship__msg { margin: 0 0 8px !important; display: flex; gap: 10px; align-items: center; font-size: 14px; line-height: 1.4; color: var(--vm-ink); }
.vm-freeship__msg .vm-ico { color: var(--vm-brand-deep); width: 20px; height: 20px; }
.vm-freeship__bar { display: block; height: 6px; border-radius: 999px; background: rgba(63, 120, 120, .16); overflow: hidden; }
.vm-freeship__bar > span { display: block; height: 100%; border-radius: 999px; background: var(--vm-brand-deep); transition: width .5s var(--vm-ease); }
.vm-freeship.is-done { background: #e8f3ec; }
.vm-freeship.is-done .vm-freeship__bar > span { background: var(--vm-ok); }

/* ---------- notificare scurtă ---------- */
.vm-toast {
	position: fixed; left: 50%; bottom: 24px; z-index: 100001; transform: translate(-50%, 20px);
	background: var(--vm-ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
	box-shadow: var(--vm-shadow); opacity: 0; transition: opacity .25s, transform .25s var(--vm-ease); pointer-events: none; max-width: calc(100% - 32px);
}
.vm-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.vm-toast.is-error { background: var(--vm-danger); }

/* ---------- eticheta de previzualizare ---------- */
.vm-preview-badge {
	position: fixed; left: 16px; bottom: 16px; z-index: 99990; padding: 8px 14px; border-radius: 999px;
	background: #fff4d6; color: #5c4400 !important; font-size: 13px; font-weight: 600; text-decoration: none !important;
	box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .35); border: 1px solid #f0d58c;
}

@media (max-width: 1023px) {
	.vm-preview-badge { left: 50%; transform: translateX(-50%); bottom: 84px; white-space: nowrap; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.vm-drawer__panel, .vm-drawer__overlay, .vm-toast, .vm-freeship__bar > span { transition: none; }
}
.vm-drawer p { padding-bottom: 0; }
