/* Реальные продуктовые фотографии для витрины */
.product-image {
  height: 121px;
  border-radius: 13px;
  background: #e9eeed;
  position: relative;
  overflow: hidden;
}

.product-image::after { display: none; }

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease;
}

.product:hover .product-image img { transform: scale(1.04); }

/* Карточки витрины 1С всегда остаются удобными для одной руки. */
.products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product {
  min-width: 0;
}

.package-option {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d8e6ea;
  border-radius: 14px;
  background: #fff;
  color: #103b55;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.package-option > span {
  width: 22px;
  height: 22px;
  border: 2px solid #0e5179;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.package-option.active { border-color: #9de62b; background: #f6ffe9; }
.package-option.active > span { background: #9de62b; border-color: #9de62b; }
.package-option div { display: grid; gap: 2px; }
.package-option small { color: #6c7c83; }

.photo-missing {
  display: grid;
  place-content: center;
  gap: 5px;
  background: #e8f0f2;
  color: #54717f;
  text-align: center;
}
.photo-missing span { font-size: 28px; line-height: 1; }
.photo-missing small { font-size: 11px; line-height: 1.15; max-width: 110px; }
.detail-photo.photo-missing { min-height: 220px; border-radius: 18px; margin-bottom: 14px; }
.detail-photo.photo-missing span { font-size: 42px; }
.detail-photo.photo-missing small { max-width: none; font-size: 13px; }

/* Галерея внутри карточки товара: листается пальцем, как витрина. */
.detail-gallery { position: relative; margin-bottom: 14px; }
.detail-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 18px;
  touch-action: pan-x;
}
.detail-gallery-track::-webkit-scrollbar { display: none; }
.detail-gallery .detail-photo {
  flex: 0 0 100%;
  width: 100%;
  height: 260px;
  margin: 0;
  object-fit: cover;
  scroll-snap-align: start;
}
.gallery-dots {
  position: absolute;
  display: flex;
  gap: 6px;
  left: 50%;
  bottom: 11px;
  transform: translateX(-50%);
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(4,35,56,.38);
}
.gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.56); }
.gallery-dots i.active { width: 18px; border-radius: 4px; background: #fff; }
