/* Shoplist — дизайн «Все производители» (seller-section + hiw-banner) */
.shoplist-wrap {
  padding: 24px 28px 8px;
  background: #f1f5f9;
  margin-top: 0.5rem;
  border-radius: 1rem;
}

.shoplist-hiw-banner {
  margin: 0 0 28px;
  background: linear-gradient(135deg, #1a2744 0%, #243359 100%);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  position: relative;
}
.shoplist-hiw-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(250,204,21,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.shoplist-hiw-label {
  font-size: 11px;
  font-weight: 800;
  color: #facc15;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.shoplist-hiw-title {
  font-size: 15px;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  margin-right: 28px;
}
.shoplist-hiw-steps {
  display: flex;
  gap: 0;
  flex: 1;
  flex-wrap: wrap;
}
.shoplist-hiw-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
  min-width: 140px;
  padding: 0 16px;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.shoplist-hiw-step:first-child { border-left: none; }
.shoplist-hiw-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #facc15;
  color: #1a2744;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.shoplist-hiw-step-text {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}
.shoplist-hiw-step-text strong {
  color: white;
  font-weight: 700;
  display: block;
  font-size: 12.5px;
}
.shoplist-hiw-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(250,204,21,0.12);
  border: 1px solid rgba(250,204,21,0.3);
  border-radius: 10px;
  padding: 10px 14px;
  margin-left: 24px;
  flex-shrink: 0;
  max-width: 240px;
}
.shoplist-hiw-alert-icon { font-size: 18px; flex-shrink: 0; }
.shoplist-hiw-alert-text {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.shoplist-hiw-alert-text strong { color: #facc15; font-weight: 700; }

@media (max-width: 900px) {
  .shoplist-hiw-banner { flex-wrap: wrap; }
  .shoplist-hiw-steps { width: 100%; margin-top: 12px; }
  .shoplist-hiw-alert { margin-left: 0; margin-top: 12px; max-width: none; }
}

/* Seller section */
.shoplist-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.shoplist-section-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 115px;
}
.shoplist-section-title {
  font-size: 20px;
  font-weight: 700;
  color: #21467d;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}
.shoplist-section-link {
  font-size: 13px;
  color: #21467d;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.shoplist-section-link:hover { text-decoration: underline; }
.shoplist-section-link .icon-right { margin-left: 2px; }
.shoplist-section-link-icon {
  flex-shrink: 0;
}

/* Category pills в одной строке с заголовком (как seller-cats-row в макете) */
.shoplist-cats-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0;
  margin-bottom: 0;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.shoplist-cats-row::-webkit-scrollbar { display: none; }
.shoplist-cat-pill {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 0px solid rgba(0, 0, 0, 0.12);
  background: white;
  color: #475569;
  transition: all 0.15s;
  white-space: nowrap;
  font-family: inherit;
}
.shoplist-cat-pill:hover {
  border-color: #94a3b8;
  color: #1a2744;
}
.shoplist-cat-pill.active {
  background: #21467d;
  color: white;
  border-color: #21467d;
}

.shoplist-store-chip.shoplist-chip-hidden {
  display: none !important;
}

/* Ряд магазинов: не больше N видимых ячеек (N по ширине экрана), остальное — горизонтальный скролл */
.shoplist-stores-row {
  --shoplist-store-slots: 4;
  display: flex;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  margin-bottom: 10px;
  background: white;
  border-radius: 12px;
  /* border: 1px solid #e8edf2; */
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shoplist-stores-row::-webkit-scrollbar {
  display: none;
}

@media (min-width: 480px) {
  .shoplist-stores-row { --shoplist-store-slots: 4; }
}
@media (min-width: 640px) {
  .shoplist-stores-row { --shoplist-store-slots: 5; }
}
@media (min-width: 768px) {
  .shoplist-stores-row { --shoplist-store-slots: 6; }
}
@media (min-width: 992px) {
  .shoplist-stores-row { --shoplist-store-slots: 7; }
}
@media (min-width: 1200px) {
  .shoplist-stores-row { --shoplist-store-slots: 8; }
}

.shoplist-store-chip {
  /* без flex-grow: иначе один магазин растягивается на всю ширину ряда */
  flex: 0 0 calc(100% / var(--shoplist-store-slots));
  min-width: calc(100% / var(--shoplist-store-slots));
  max-width: calc(100% / var(--shoplist-store-slots));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 1rem 6px;
  border-radius: 0;
  border: none;
  /* border-right: 1px solid #f1f5f9; */
  background: transparent;
  transition: background 0.15s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.shoplist-store-chip:first-child {
  border-radius: 12px 0 0 12px;
}
.shoplist-store-chip:last-child {
  border-radius: 0 12px 12px 0;
  border-right: none;
}
.shoplist-store-chip:only-child {
  border-radius: 12px;
}
.shoplist-store-chip:hover {
  background: #f8fafc;
}
.shoplist-store-chip.active {
  background: #f8fafc;
}

.shoplist-store-chip-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  overflow: hidden;
  flex-shrink: 0;
}
.shoplist-store-chip-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.shoplist-store-chip-tooltip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 100%;
  padding: 0 2px;
}
.shoplist-store-chip-tooltip-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2f2f2f;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shoplist-store-chip.active .shoplist-store-chip-tooltip-name {
  color: #21467d;
}
.shoplist-store-chip-tooltip-min {
  font-size: .6rem;
  font-weight: 700;
  color: #b45309;
  white-space: nowrap;
}
.shoplist-store-chip-tooltip-min.free {
  color: #16a34a;
}

/* Content area (loaded shop products) */
.shoplist-content {
  min-height: 80px;
}

/* Кнопка «Каталог магазина» под слайдером (как seller-section-footer в макете v2) */
.shoplist-catalog-footer {
  display: flex;
  justify-content: flex-end;
  /* margin-top: 16px; */
  padding-top: 12px;
  padding-bottom: 4px;
  /* border-top: 1px solid rgba(0, 0, 0, 0.07); */
}
.shoplist-catalog-btn {
  --shoplist-catalog-accent: #21467d;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 14px;
  border-radius: 100px;
  /* border: 1.5px solid #e2e8f0; */
  background: white;
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
  /* box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); */
  text-decoration: none;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}
.shoplist-catalog-btn:hover {
  border-color: #cbd5e1;
  /* box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); */
  /* transform: translateY(-1px); */
  color: #1e293b;
  text-decoration: none;
}
.shoplist-catalog-btn-count {
  color: #94a3b8;
  font-weight: 500;
  font-size: 11px;
}
.shoplist-catalog-btn:hover .shoplist-catalog-btn-count {
  color: #64748b;
}
.shoplist-catalog-btn-dot {
  color: #e2e8f0;
}
.shoplist-catalog-btn-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--shoplist-catalog-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.18s ease;
}
.shoplist-catalog-btn:hover .shoplist-catalog-btn-icon {
  opacity: 0.85;
}

@media (max-width: 580px) {
  .shoplist-section-header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    align-items: center;
    row-gap: 1rem;
  }

  .shoplist-section-title-row {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .shoplist-section-title {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
  }

  .shoplist-section-link {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
  }

  .shoplist-cats-row {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;
    margin-top: 2px;
  }
}
