/* Coșul lateral (se deschide după „Adaugă în coș” și din butonul COȘ) și bara spre transport gratuit și cadou,
   comună cu pagina coșului. */

/* Bara spre transport gratuit și cadou. */
.als-goal { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px; border: 1.5px solid var(--als-ink); border-radius: var(--als-radius); background: #fff; }
.als-goal__text { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.35; }
.als-goal__bar { position: relative; height: 12px; border-radius: 999px; background: #E3E6E8; }
.als-goal__fill { display: block; height: 100%; max-width: 100%; border-radius: 999px; background: var(--als-navy); transition: width .3s var(--als-ease); }
.als-goal__mark { position: absolute; top: -4px; width: 3px; height: 20px; margin-left: -1.5px; background: var(--als-ink); }
.als-goal__mark--end { left: auto; right: 0; margin: 0; }
.als-goal__labels { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; line-height: 1.35; }
.als-goal__label { text-align: left; }
.als-goal__label--gift { display: flex; align-items: center; gap: 8px; text-align: right; }
.als-goal__label--gift img { flex: none; width: 56px; height: 56px; object-fit: contain; }

@media (max-width: 600px) {
	.als-goal { padding: 18px; }
	.als-goal__labels { flex-direction: column; align-items: stretch; }
	.als-goal__label--gift { justify-content: space-between; text-align: left; }
}

/* Bara, varianta scurtă din coșul lateral. */
.als-goal--compact { gap: 10px; padding: 14px 16px; border-width: 1px; }
.als-goal--compact .als-goal__text { font-size: 15px; }
.als-goal--compact .als-goal__bar { height: 8px; }
.als-goal--compact .als-goal__mark { top: -3px; height: 14px; width: 2px; }

/* Coșul lateral. */
.als-drawer--cart .als-drawer__panel { width: min(440px, 92vw); }
.als-drawer--cart .als-drawer__body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; padding-top: 16px; padding-bottom: 0; overflow: hidden; }
.als-mini > .als-goal { flex: none; }
.als-mini { gap: 16px; }
.als-mini[aria-busy="true"] { opacity: .6; }
/* Bara de derulare a produselor stă la marginea sertarului, nu peste prețuri. */
.als-mini__lines { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; margin: 0 calc(-1 * var(--als-gutter)) 0 0; padding: 0 var(--als-gutter) 0 0; list-style: none; }
.als-mini__line:first-child { border-top: 1px solid var(--als-line); }
.als-mini__line:last-child { border-bottom: 0; }
.als-mini__line { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--als-line); }
.als-mini__thumb { --box: 64px; flex: 0 0 var(--box); height: var(--box); display: grid; place-items: center; overflow: hidden; border-radius: var(--als-radius); background: var(--p-ground, #F1F2EE); }
.als-mini__thumb img { width: auto; height: auto; max-width: var(--box); max-height: var(--box); }
.als-mini__thumb.is-cutout img { max-width: calc(var(--box) - 10px); max-height: calc(var(--box) - 10px); }
.als-mini__info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.als-mini__name { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--als-ink); text-decoration: none; }
a.als-mini__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.als-mini__note { font-size: 14px; line-height: 1.35; color: var(--als-ink-soft); }
.als-mini__qty { display: inline-flex; align-items: center; align-self: flex-start; margin-top: 4px; border: 1.5px solid var(--als-ink); border-radius: var(--als-radius); }
.als-mini__qty button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--als-ink); font: inherit; font-size: 20px; cursor: pointer; }
.als-mini__qty button:disabled { opacity: .35; cursor: default; }
.als-mini__qty span { min-width: 28px; text-align: center; font-weight: 700; }
.als-mini__price { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 16px; font-weight: 700; text-align: right; }
.als-mini__price s { font-size: 13px; font-weight: 500; color: var(--als-muted); }
.als-mini__price small { font-size: 13px; font-weight: 600; color: var(--als-ok); }
.als-mini__remove { min-height: 44px; padding: 0; border: 0; background: none; color: var(--als-muted); font: inherit; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.als-mini__foot { flex: none; display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding: 14px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--als-line); box-shadow: 0 -10px 16px -14px rgba(38, 49, 59, .35); }
.als-mini__row { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.als-mini__row.is-minus strong { color: var(--als-ok); }
.als-mini__row.is-total { font-size: 19px; font-weight: 700; }
.als-mini__checkout { width: 100%; margin-top: 6px; }
.als-mini__view { align-self: center; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--als-ink); text-underline-offset: 3px; }
.als-mini__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 12px 0; }
.als-mini__empty-title { margin: 0; font-size: 20px; font-weight: 700; }

@media (max-height: 560px) {
	.als-drawer--cart .als-drawer__body { overflow-y: auto; padding-bottom: 16px; }
	.als-mini__lines { flex: none; overflow: visible; margin-right: 0; padding-right: 0; }
	.als-mini__foot { box-shadow: none; }
}
@media (max-width: 600px) {
	.als-mini__foot { gap: 6px; }
	.als-mini__row { font-size: 15px; }
	.als-mini__view { min-height: 40px; }
}

/* Scheletul (doar când nu există nimic pregătit): rânduri gri, nu alb. */
.als-mini__skeleton { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.als-mini__skeleton span { display: block; height: 64px; border-radius: var(--als-radius); background: linear-gradient(90deg, #EEF0EF 25%, #F6F7F6 50%, #EEF0EF 75%); background-size: 200% 100%; animation: als-mini-shine 1.2s linear infinite; }
.als-mini__skeleton span:last-child { height: 120px; }
@keyframes als-mini-shine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .als-mini__skeleton span { animation: none; } }
