.item-card {
  background: #f5f5f7;
  border-radius: 14px;
  padding: 10px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 10px 24px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.item-card__media {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 188px;
  height: 204px;
  padding: 4px;
  box-sizing: border-box;
}
.item-card__image {
  width: 88%;
  height: 88%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.item-card__image-shell {
  width: 88%;
  height: 88%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.item-card__media--hero .item-card__image-shell {
  width: 100%;
  height: 100%;
}
.item-card__image-shell--loading {
  background: #f5f5f7;
}
.item-card__image--loading {
  opacity: 0;
  visibility: hidden;
}
.item-card__image--ready {
  opacity: 1;
  visibility: visible;
  transition: opacity var(--motion-duration-medium, 220ms) var(--ease-out-apple, ease);
}
.item-card__media--hero .item-card__image--hero.item-card__image--loading,
.item-card__media--hero .item-card__image--hero.item-card__image--ready {
  width: 100%;
  height: 100%;
}
.item-card__media .app-gallery-stack {
  width: 88%;
  height: 88%;
  position: relative;
  flex-shrink: 0;
}
.item-card__image.app-gallery-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-duration-gallery) var(--motion-ease-gallery);
}
.item-card__image.app-gallery-layer.is-app-gallery-visible {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.item-card__gallery-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 2px;
  min-height: 8px;
}
.item-card__gallery-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(29, 29, 31, 0.2);
  transition:
    background-color var(--motion-duration-medium) var(--ease-out-apple),
    transform var(--motion-duration-medium) var(--ease-out-apple);
}
.item-card__gallery-dot--active {
  background: #1d1d1f;
  transform: scale(1.2);
}

/* Hero cards (navigation / generations / models / light cards) */
.item-card.item-card--hero {
  gap: 6px;
}
.item-card__media--hero {
  width: 100%;
  min-height: 220px;
  height: 220px;
  padding: 0;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.item-card__image--hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.item-card__body--hero {
  padding-top: 12px;
  padding-bottom: 12px;
}
.item-card__footer--hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.item-card__title--hero {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.item-card__placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1aa;
  font-size: 13px;
}
.item-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* Карточка: .item-card__title / .item-card__description — правила в app_typography.css */
.item-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}
/* .item-card__price: типографика в app_typography.css */
.cart-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}
.cart-total { margin-top: 10px; font-weight: 600; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
}
.btn-primary { width: 100%; background: #0071e3; color: #fff; margin-top: 10px; }
.btn-secondary { background: #e8e8ed; color: #1d1d1f; }
.order-card {
  border-radius: 10px;
  border: 1px solid #e8e8ed;
  padding: 12px;
  background: #f5f5f7;
  font-size: 14px;
  margin-bottom: 8px;
}
.order-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; font-weight: 600; }
.order-card__status { font-size: 13px; color: #6e6e73; }
.order-card__meta { font-size: 13px; color: #6e6e73; margin-bottom: 4px; }
.order-card__items { font-size: 13px; color: #374151; }

.item-card {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 12px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 10px 24px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition:
    transform var(--motion-duration-tap) var(--ease-out-apple),
    box-shadow var(--motion-duration-tap) var(--ease-out-apple),
    background-color var(--motion-duration-tap) var(--ease-out-apple);
}

.item-card__media {
  min-height: 196px;
  height: 196px;
  padding: 6px;
  box-sizing: border-box;
}

.item-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.item-card__placeholder {
  height: 100%;
  border-radius: 12px;
  border: 1px dashed #d4d4d8;
  background: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.item-card__footer {
  margin-top: 8px;
}

.item-card:active {
  transform: scale(0.98);
}

.item-card--skeleton {
  pointer-events: none;
}

.skeleton-block {
  background: var(--app-loading-shimmer-gradient, linear-gradient(90deg, #f2f2f7 0, #e5e5ea 50%, #f2f2f7 100%));
  background-size: var(--app-loading-shimmer-size, 200% 100%);
  animation: appLoadingShimmer var(--app-loading-shimmer-duration, 1.08s) ease-in-out infinite;
}

.skeleton-line {
  height: 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  /* Тот же нейтральный тон, что середина canonical shimmer (без второй анимации — меньше шума). */
  background: #ececf1;
}

.skeleton-line--title {
  width: 70%;
}

.skeleton-line--text {
  width: 90%;
}

.skeleton-line--text-short {
  width: 55%;
}

.skeleton-line--price {
  width: 40%;
  margin-top: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block {
    animation: none;
    background: #ececf1;
    background-size: auto;
  }
}
