/* Coșul lateral (components/core/cart.php + assets/js/mini-cart.js) și numărul din header. */
.cds-mc {
	position: fixed;
	inset: 0;
	z-index: 100002;
	visibility: hidden;
	pointer-events: none;
	transition: visibility 0s linear .3s; /* rămâne vizibil cât se închide animat */
}
.cds-mc.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.cds-mc__backdrop { position: absolute; inset: 0; background: rgba(16, 24, 18, .45); opacity: 0; transition: opacity .25s ease; }
.cds-mc.is-open .cds-mc__backdrop { opacity: 1; }
.cds-mc__panel {
	position: absolute; top: 0; right: 0; bottom: 0;
	width: 100%; max-width: 440px;
	display: flex; flex-direction: column;
	background: var(--cds-white); color: var(--cds-brand-30);
	box-shadow: -12px 0 40px rgba(0, 0, 0, .12);
	transform: translateX(100%); transition: transform .28s cubic-bezier(.3, .7, .3, 1);
	outline: none;
}
.cds-mc.is-open .cds-mc__panel { transform: translateX(0); }
html.cds-mc-lock { overflow: hidden !important; }

/* cap */
.cds-mc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--cds-gray-93); }
.cds-mc__title { margin: 0; font-size: 18px; font-weight: 800; color: var(--cds-brand-29); text-transform: uppercase; letter-spacing: .02em; }
.cds-mc__count { font-weight: 600; color: var(--cds-brand-48); }
.cds-mc__close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -8px -8px -8px 0; border: 0; border-radius: 50%; background: none; color: var(--cds-brand-29); cursor: pointer; }
.cds-mc__close:hover { background: var(--cds-gray-96); }

/* transport gratuit */
.cds-mc__free { padding: 14px 20px; background: var(--cds-gray-96); border-bottom: 1px solid var(--cds-gray-93); }
.cds-mc__free-txt { margin: 0 0 8px; font-size: 15.5px; line-height: 1.4; color: var(--cds-brand-30); }
.cds-mc__free-txt strong { color: var(--cds-brand-29); }
.cds-mc__bar { height: 6px; border-radius: 99px; background: var(--cds-gray-90); overflow: hidden; }
.cds-mc__bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--cds-brand-46); transition: width .45s ease; }
.cds-mc__free.is-reached .cds-mc__bar span { background: var(--cds-brand-52); }

/* listă */
.cds-mc__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px; }
.cds-mc__items { list-style: none; margin: 0; padding: 0; }
.cds-mc__item { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; margin: 0; padding: 16px 30px 16px 0; border-bottom: 1px solid var(--cds-gray-93); transition: opacity .2s ease, transform .2s ease; }
.cds-mc__item:last-child { border-bottom: 0; }
.cds-mc__item.is-busy { opacity: .6; }
.cds-mc__item.is-removing { opacity: 0; transform: translateX(16px); }
.cds-mc__thumb { width: 72px; height: 72px; border-radius: 12px; background: var(--cds-gray-96); overflow: hidden; }
.cds-mc__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cds-mc__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cds-mc__name { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--cds-brand-29); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cds-mc__name a { color: inherit !important; text-decoration: none !important; }
.cds-mc__unit { margin: 0; font-size: 12.5px; color: var(--cds-brand-48); }
.cds-mc__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.cds-mc__qty { display: inline-flex; align-items: center; border: 1px solid var(--cds-stone-88); border-radius: 99px; background: var(--cds-white); }
.cds-mc__qty button { width: 34px; height: 34px; border: 0; background: none; color: var(--cds-brand-29); font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; border-radius: 50%; }
.cds-mc__qty button:hover:not(:disabled) { background: var(--cds-gray-96); }
.cds-mc__qty button:disabled { opacity: .3; cursor: default; }
.cds-mc__n { min-width: 22px; text-align: center; font-size: 14.5px; font-weight: 800; color: var(--cds-brand-29); }
.cds-mc__item.is-pending .cds-mc__line { opacity: .45; }
.cds-mc__line { font-size: 15px; color: var(--cds-brand-29); white-space: nowrap; transition: opacity .15s; }
.cds-mc__remove { position: absolute; top: 12px; right: -6px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--cds-gray-60); cursor: pointer; }
.cds-mc__remove:hover { color: var(--cds-red-42); background: var(--cds-gray-94-3); }

/* skeleton (doar la prima deschidere) */
.cds-mc__skeleton { display: grid; gap: 14px; padding: 16px 0; }
.cds-mc__skeleton[hidden] { display: none; }
.cds-mc__sk { height: 88px; border-radius: 12px; background: linear-gradient(90deg, var(--cds-gray-96) 25%, var(--cds-gray-96) 37%, var(--cds-gray-96) 63%); background-size: 400% 100%; animation: cdsMcSk 1.2s ease infinite; }
@keyframes cdsMcSk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* gol */
.cds-mc__empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 12px; text-align: center; color: var(--cds-brand-48); }
.cds-mc__empty[hidden] { display: none; }
.cds-mc__empty svg { color: var(--cds-gray-80); }
.cds-mc__empty p { margin: 0; font-size: 15px; }

/* subsol */
.cds-mc__foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--cds-gray-93); background: var(--cds-white); box-shadow: 0 -8px 20px rgba(0, 0, 0, .04); }
.cds-mc__foot[hidden] { display: none; }
.cds-mc__totals { margin: 0 0 14px; display: grid; gap: 6px; }
.cds-mc__totals div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.cds-mc__totals dt { color: var(--cds-brand-48); }
.cds-mc__totals dd { margin: 0; color: var(--cds-brand-30); font-weight: 600; text-align: right; }
.cds-mc__totals .cds-mc__grand { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--cds-gray-93); font-size: 16px; }
.cds-mc__totals .cds-mc__grand dt, .cds-mc__totals .cds-mc__grand dd { color: var(--cds-brand-29); font-weight: 800; }
.cds-mc__btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 20px; border-radius: 12px; background: var(--cds-brand-29); color: var(--cds-white) !important; font-size: 15.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; text-decoration: none !important; transition: background .15s; }
.cds-mc__btn:hover { background: var(--cds-brand-46); }
.cds-mc__btn--ghost { width: auto; min-height: 44px; background: var(--cds-white); color: var(--cds-brand-29) !important; border: 1.5px solid var(--cds-brand-29); text-transform: none; letter-spacing: 0; }
.cds-mc__btn--ghost:hover { background: var(--cds-gray-96); }
.cds-mc__continue { display: block; width: 100%; margin-top: 8px; padding: 8px; border: 0; background: none; color: var(--cds-brand-48); font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cds-mc__error { position: absolute; left: 20px; right: 20px; bottom: 20px; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--cds-red-42); color: var(--cds-white); font-size: 13.5px; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.cds-mc__error[hidden] { display: none; }

@media (max-width: 480px) {
	.cds-mc__head, .cds-mc__free, .cds-mc__body, .cds-mc__foot { padding-left: 16px; padding-right: 16px; }
	.cds-mc__item { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
	.cds-mc__thumb { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
	.cds-mc__panel, .cds-mc__backdrop, .cds-mc__item, .cds-mc__bar span { transition: none; }
	.cds-mc__sk { animation: none; }
}

/* numărul de produse din header (desktop + mobil) */
