/* =========================================================
   MIRIDEA · «Разработка интернет-магазина» — дополнение к dorabotka.css
   Первый экран: живой магазин (товар → корзина → оплата). Только transform/opacity.
   ========================================================= */
.m-shop { position: relative; padding: 16px; border-radius: 12px 28px 12px 28px; background: #fff; box-shadow: 0 34px 80px -44px rgba(24,78,174,.6), 0 0 0 1px var(--line); }
.m-shop::before { content: ""; position: absolute; left: -30px; bottom: -30px; width: 200px; height: 200px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(160,104,248,.3), transparent 70%); }
.m-shop__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.m-shop__logo { width: 64px; height: 14px; border-radius: 4px; background: linear-gradient(90deg,var(--red),var(--pink)); }
.m-shop__search { flex: 1; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--soft); font-size: 12px; line-height: 30px; color: var(--mute); }
.m-shop__cart { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(140deg,#a068f8,#3f55c3); }
.m-shop__cart svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.m-shop__cart.is-bump { animation: m-shop-bump .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes m-shop-bump { 40% { transform: scale(1.18); } }
.m-shop__badge { position: absolute; right: -6px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.m-shop__filters { display: flex; gap: 6px; margin-bottom: 12px; }
.m-shop__filters span { padding: 5px 10px; border-radius: 6px 12px 6px 12px; background: var(--soft); font-size: 11.5px; font-weight: 600; color: var(--mute); }
.m-shop__filters span.on { background: #39404b; color: #fff; }
.m-shop__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.m-shop__item { position: relative; padding: 8px; border-radius: 8px 16px 8px 16px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .35s, transform .45s cubic-bezier(.22,1,.36,1); }
.m-shop__item.is-act { transform: translateY(-5px); box-shadow: 0 0 0 1.5px #a068f8, 0 18px 30px -20px rgba(63,85,195,.8); }
.m-shop__img { position: relative; height: 82px; margin-bottom: 8px; border-radius: 6px 12px 6px 12px; overflow: hidden; }
.m-shop__img i { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255,255,255,.35); }
.m-shop__item:nth-child(1) .m-shop__img { background: linear-gradient(140deg,#ffd1dc,#f93c3c); }
.m-shop__item:nth-child(2) .m-shop__img { background: linear-gradient(140deg,#c9d6ff,#3f55c3); }
.m-shop__item:nth-child(3) .m-shop__img { background: linear-gradient(140deg,#e3d4ff,#a068f8); }
.m-shop__item:nth-child(2) .m-shop__img i { border-radius: 10px; transform: rotate(18deg); }
.m-shop__item:nth-child(3) .m-shop__img i { width: 0; height: 0; margin: -22px 0 0 -24px; border-radius: 0; background: none; border-left: 24px solid transparent; border-right: 24px solid transparent; border-bottom: 40px solid rgba(255,255,255,.4); }
.m-shop__item b { display: block; width: 80%; height: 7px; margin-bottom: 5px; border-radius: 4px; background: #d7dce8; }
.m-shop__item em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink); }
.m-shop__buy { display: block; margin-top: 7px; padding: 5px 0; border-radius: 6px; background: var(--soft); font-size: 10.5px; font-weight: 700; text-align: center; color: #3f55c3; transition: background .3s, color .3s; }
.m-shop__item.is-act .m-shop__buy { background: linear-gradient(120deg,var(--red),var(--pink)); color: #fff; }
.m-shop__fly { position: absolute; z-index: 5; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(249,60,60,.2); opacity: 0; pointer-events: none;
  transition: transform .7s cubic-bezier(.5,-0.3,.4,1), opacity .2s; }
.m-shop__foot { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.m-shop__foot p { margin: 0; font-size: 11.5px; color: var(--mute); }
.m-shop__foot strong { display: block; font-size: 20px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-shop__bars { display: flex; align-items: flex-end; gap: 4px; height: 42px; }
.m-shop__bars i { width: 10px; height: 100%; border-radius: 3px; background: linear-gradient(180deg,#a068f8,#3f55c3); transform-origin: 50% 100%; transform: scaleY(var(--h,.3)); transition: transform .8s cubic-bezier(.22,1,.36,1); }
.m-shop__bars i:last-child { background: linear-gradient(180deg,var(--red),var(--pink)); }
.m-shop__toast { position: absolute; z-index: 6; right: -14px; top: 64px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px 16px 8px 16px; background: #fff;
  box-shadow: 0 20px 40px -18px rgba(24,34,60,.6), 0 0 0 1px var(--line); font-size: 13px; color: var(--ink); white-space: nowrap;
  opacity: 0; transform: translateY(-10px) scale(.96); transition: opacity .4s, transform .55s cubic-bezier(.34,1.56,.64,1); }
.m-shop__toast.is-on { opacity: 1; transform: none; }
.m-shop__toast i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #1f9a52; color: #fff; font-style: normal; font-weight: 700; }
.m-shop__toast small { display: block; font-size: 11px; color: var(--mute); }
@media (max-width: 560px) { .m-shop__toast { right: 8px; left: 8px; top: auto; bottom: 70px; } .m-shop__img { height: 60px; } .m-shop__filters span:nth-child(n+4) { display: none; } }
@media (prefers-reduced-motion: reduce) { .m-shop * { transition: none !important; animation: none !important; } }
