/* Demo "product-kit" (/kits). Base: fl-phone.css.
   data-state: start | i1 | i2 | i3 | priced | added */

.lla-kt { --lla-brand: #4f46e5; --lla-cursor-ring: rgba(79, 70, 229, .55); }

.lla-kt__chip--sum { left: 22px; top: 130px; }
.lla-kt__chip--sum .bi { color: #4f46e5; }
.lla-kt__chip--stock { left: 30px; top: 470px; animation-delay: -2.5s; }
.lla-kt__chip--stock .bi { color: #16a34a; }

/* Tarjeta "Se descontó de tu inventario" */
.lla-kt__deduct { left: 310px; top: 60px; width: 240px; }
.lla-kt[data-state="added"] .lla-kt__deduct { opacity: 1; transform: none; }
.lla-kt__deduct-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 11px; }
.lla-kt__deduct-list li { display: flex; justify-content: space-between; gap: 8px; color: var(--lla-muted); }
.lla-kt__deduct-list b { color: var(--lla-text); font-variant-numeric: tabular-nums; }

.lla-kt__cart { position: relative; font-size: 13px; }
.lla-kt__badge {
  position: absolute; top: -5px; right: -7px; display: flex; align-items: center; justify-content: center;
  width: 13px; height: 13px; border-radius: 50%; background: var(--lla-brand); color: #fff; font-size: 8px; font-weight: 700;
  transform: scale(0); transition: transform .3s var(--lla-ease);
}
.lla-kt[data-state="added"] .lla-kt__badge { transform: scale(1); }

.lla-kt__photo { display: flex; align-items: center; justify-content: center; height: 104px; margin: 8px 12px 0; border-radius: 14px; background: linear-gradient(160deg, #eef2ff, #fce7f3); }
.lla-kt__box { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 16px; background: #fff; box-shadow: 0 8px 18px rgba(30, 41, 59, .15); }
.lla-kt__box .bi { font-size: 34px; color: #db2777; }

.lla-kt__body { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; }
.lla-kt__name { font-size: 14px !important; font-weight: 800; }

/* Precio: aparece con el de por separado tachado */
.lla-kt__price { display: flex; align-items: baseline; gap: 8px; opacity: 0; transform: translateY(4px); transition: opacity .35s var(--lla-ease), transform .35s var(--lla-ease); }
.lla-kt__price strong { color: var(--lla-brand) !important; font-size: 16px !important; font-weight: 800; }
.lla-kt__price s { color: var(--lla-muted); font-size: 11px; }
.lla-kt:is([data-state="priced"], [data-state="added"]) .lla-kt__price { opacity: 1; transform: none; }

/* Bloque "Este kit incluye" */
.lla-kt__includes { display: flex; flex-direction: column; gap: 5px; padding: 8px 10px; border: 1px solid var(--lla-border); border-radius: 10px; }
.lla-kt__inc-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11px; white-space: nowrap; }
.lla-kt__inc-head b { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.lla-kt__save { flex: 0 0 auto; white-space: nowrap; line-height: 1.5; font-style: normal; background: var(--lla-ok); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 9.5px; font-weight: 700; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--lla-ease); }
.lla-kt:is([data-state="priced"], [data-state="added"]) .lla-kt__save { opacity: 1; transform: none; }

.lla-kt__item { display: flex; align-items: center; gap: 7px; font-size: 11px; opacity: 0; transform: translateX(-8px); transition: opacity .35s var(--lla-ease), transform .35s var(--lla-ease); }
.lla-kt__item em { margin-left: auto; font-style: normal; color: var(--lla-muted); font-size: 10px; }
.lla-kt__ic { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; color: #fff; }
.lla-kt__ic--mug { background: #f59e0b; }
.lla-kt__ic--shirt { background: #16a34a; }
.lla-kt__ic--book { background: #4f46e5; }
.lla-kt:not([data-state="start"]) .lla-kt__item--1,
.lla-kt:is([data-state="i2"], [data-state="i3"], [data-state="priced"], [data-state="added"]) .lla-kt__item--2,
.lla-kt:is([data-state="i3"], [data-state="priced"], [data-state="added"]) .lla-kt__item--3 { opacity: 1; transform: none; }

/* "Por separado": la suma sube con cada producto */
.lla-kt__sep { display: flex; justify-content: space-between; gap: 6px; border-top: 1px dashed var(--lla-border); padding-top: 5px; font-size: 10.5px; color: var(--lla-muted); }
.lla-kt__sum { display: inline-grid; font-weight: 700; color: var(--lla-text); }
.lla-kt__sum > span { grid-area: 1 / 1; text-align: right; opacity: 0; transition: opacity .3s var(--lla-ease); }
.lla-kt[data-state="start"] .lla-kt__s0,
.lla-kt[data-state="i1"] .lla-kt__s1,
.lla-kt[data-state="i2"] .lla-kt__s2,
.lla-kt:is([data-state="i3"], [data-state="priced"], [data-state="added"]) .lla-kt__s3 { opacity: 1; }
.lla-kt:is([data-state="priced"], [data-state="added"]) .lla-kt__s3 { text-decoration: line-through; color: var(--lla-muted); }

.lla-kt__add { margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .lla-kt__item, .lla-kt__price, .lla-kt__save, .lla-kt__sum > span { transition: none; }
}
