/* ==========================================================================
   Shop Detail page (/shop/<id>/)
   Основан на дизайне store-detail-responsive-ui (Figma).
   Все правила скоупим под .shop-detail-page, чтобы не задеть глобальные стили.
   ========================================================================== */

.shop-detail-page {
  --sd-bg: #f3f7fc;
  --sd-surface: #ffffff;
  --sd-text: #17223b;
  --sd-muted: #73839a;
  --sd-muted-2: #92a0b3;
  --sd-border: #cfe0fb;
  --sd-border-soft: #e2ebf7;
  --sd-blue: #087eef;
  --sd-blue-soft: #ecf5ff;
  --sd-violet: #6d3efb;
  --sd-green: #25b96e;
  --sd-green-soft: #e8fbf1;
  --sd-orange: #f19712;
  --sd-orange-soft: #fff3df;
  --sd-shadow: 0 18px 36px rgba(26, 72, 128, 0.10);
  --sd-shadow-soft: 0 10px 24px rgba(26, 72, 128, 0.08);
  --sd-radius-lg: 16px;
  --sd-radius-md: 12px;
  --sd-radius-sm: 10px;
  background: var(--sd-bg);
  color: var(--sd-text);
  padding-bottom: 48px;
}

.shop-detail-page .container {
  max-width: 1120px;
}

/* ----- Hero ----- */
.shop-detail__hero {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #d6e4f5;
}

.shop-detail__hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-detail__hero-photo--placeholder {
  background:
    linear-gradient(135deg, rgba(8, 126, 239, 0.15), rgba(109, 62, 251, 0.18)),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.55), transparent 50%),
    linear-gradient(135deg, #c8dafd, #d8c6ff);
}

/* ----- Head card ----- */
.shop-detail__head {
  background: var(--sd-surface);
  border-bottom: 1px solid var(--sd-border-soft);
}

.shop-detail__head-inner {
  position: relative;
  padding: 0 0 24px;
}

.shop-detail__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--sd-muted);
  margin: 10px 0 14px;
}

.shop-detail__breadcrumb a {
  color: var(--sd-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.shop-detail__breadcrumb a:hover {
  color: var(--sd-blue);
}

.shop-detail__breadcrumb span {
  color: var(--sd-muted-2);
}

.shop-brand-card {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: -70px;
  min-height: 88px;
}

.shop-brand-card__logo {
  width: 116px;
  height: 116px;
  flex: 0 0 auto;
  border-radius: 18px;
  border: 5px solid #fff;
  background: #fff;
  box-shadow: 0 12px 28px rgba(10, 37, 80, 0.23);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-brand-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-brand-card__title-area {
  padding-bottom: 17px;
  min-width: 0;
  flex: 1 1 auto;
}

.shop-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-badge {
  min-height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-badge i {
  font-size: 13px;
}

.shop-badge--dark {
  background: rgba(11, 27, 48, 0.85);
  color: #fff;
  backdrop-filter: blur(10px);
}

.shop-badge--blue {
  background: linear-gradient(135deg, #087eef, #6d3efb);
  color: #fff;
}

.shop-badge--green {
  color: var(--sd-green);
  background: var(--sd-green-soft);
  border: 1px solid #c5efd8;
}

.shop-meta-line {
  margin: 18px 0 18px 134px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--sd-muted);
  font-size: 13px;
  font-weight: 600;
}

.shop-meta-line__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shop-meta-line__item i {
  width: 14px;
  text-align: center;
  color: var(--sd-muted-2);
}

.shop-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.shop-title-row__main {
  min-width: 0;
}

.shop-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--sd-text);
  word-break: break-word;
}

.shop-slogan {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--sd-muted);
  font-weight: 600;
}

.shop-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.shop-btn {
  min-height: 40px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--sd-radius-sm);
  border: 1px solid var(--sd-border);
  background: #fff;
  color: var(--sd-text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.shop-btn:hover {
  border-color: var(--sd-blue);
  color: var(--sd-blue);
}

.shop-btn:active {
  transform: translateY(1px);
}

.shop-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.78;
}

.shop-btn--primary {
  background: linear-gradient(135deg, #087eef, #2457f2);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(46, 77, 214, 0.25);
}

.shop-btn--primary:hover {
  color: #fff;
  filter: brightness(1.04);
}

.shop-btn--primary[aria-disabled="true"]:hover {
  filter: none;
}

.shop-btn--ghost {
  background: #fff;
  color: #273554;
}

.shop-btn--icon {
  width: 40px;
  padding: 0;
  flex: 0 0 auto;
}

.shop-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--sd-border-soft);
  padding-top: 18px;
}

.shop-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-sm);
  background: #fff;
  color: #466182;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.shop-tab:hover {
  border-color: var(--sd-blue);
  color: var(--sd-blue);
}

.shop-tab.is-active {
  border-color: var(--sd-blue);
  background: var(--sd-blue);
  color: #fff;
}

/* ----- Body / Layout ----- */
.shop-detail__body {
  padding: 24px 0 0;
}

.shop-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

.shop-detail__content {
  min-width: 0;
}

.shop-detail__side {
  position: sticky;
  top: 90px;
}

/* Paused alert */
.shop-paused-alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--sd-radius-md);
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ----- Cards ----- */
.shop-card {
  border: 1px solid var(--sd-border);
  background: var(--sd-surface);
  border-radius: var(--sd-radius-md);
  padding: 22px;
  margin-bottom: 14px;
}

.shop-card__title {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--sd-text);
}

.shop-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.shop-card__head .shop-card__title {
  margin: 0;
}

/* ----- About card ----- */
.shop-about__text {
  color: #263a5a;
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 500;
  white-space: pre-line;
  word-wrap: break-word;
}

.shop-card--about.is-collapsed .shop-about__text {
  max-height: 168px;
  overflow: hidden;
  position: relative;
}

.shop-card--about.is-collapsed .shop-about__text::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70px;
  background: linear-gradient(0deg, #fff, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.shop-card__collapse {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sd-blue);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.shop-card__collapse:hover {
  text-decoration: underline;
}

/* ----- Features grid ----- */
.shop-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.shop-feature-card {
  border: 1px solid var(--sd-border);
  background: var(--sd-surface);
  border-radius: var(--sd-radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 96px;
}

.shop-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.shop-feature-icon--green {
  color: var(--sd-green);
  background: var(--sd-green-soft);
}

.shop-feature-icon--blue {
  color: var(--sd-blue);
  background: var(--sd-blue-soft);
}

.shop-feature-icon--violet {
  color: var(--sd-violet);
  background: #f2efff;
}

.shop-feature-icon--orange {
  color: var(--sd-orange);
  background: var(--sd-orange-soft);
}

.shop-feature-icon--grey {
  color: var(--sd-muted-2);
  background: #eef1f6;
}

.shop-feature-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--sd-text);
}

.shop-feature-card span:last-child {
  display: block;
  color: var(--sd-muted);
  font-size: 12px;
  margin-top: 2px;
}

/* ----- Reviews block (overrides for nested partials) ----- */
.shop-card--reviews .reviews-block__list {
  margin: 0;
}

.shop-reviews-empty {
  margin-top: 12px;
  min-height: 178px;
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-md);
  background: #f8fbff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 26px;
}

.shop-reviews-empty__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sd-blue);
  background: #fff;
  border: 1px solid var(--sd-border);
  margin-bottom: 13px;
  font-size: 16px;
}

.shop-reviews-empty strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--sd-text);
}

.shop-reviews-empty p {
  max-width: 350px;
  color: var(--sd-muted);
  font-size: 13px;
  margin: 10px 0 0;
}

.shop-reviews-hint {
  margin: 12px 0 0;
  color: var(--sd-muted);
  font-size: 13px;
}

.shop-reviews-hint a {
  color: var(--sd-blue);
}

/* ----- Ads section ----- */
.shop-ads-section {
  margin-top: 8px;
}

.shop-ads-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.shop-ads-section__head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--sd-text);
}

.shop-ads-section__count {
  color: var(--sd-muted);
  font-weight: 600;
  font-size: 13px;
}

.shop-ads-toolbar {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
}

.shop-ads-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--sd-border);
  background: #fff;
  border-radius: var(--sd-radius-sm);
  color: var(--sd-text);
}

.shop-ads-search i {
  color: #8ea0b9;
  font-size: 14px;
}

.shop-ads-search input {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-weight: 600;
  color: var(--sd-text);
  font-size: 14px;
  min-width: 0;
}

.shop-ads-search input::placeholder {
  color: #96a6bb;
  font-weight: 500;
}

.shop-ads-sort {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-sm);
  background: #fff;
  color: #334361;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.shop-ads-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 14px;
}

.shop-ads-chip {
  min-height: 34px;
  padding: 0 17px;
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-sm);
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #466182;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.shop-ads-chip:hover {
  border-color: var(--sd-blue);
  color: var(--sd-blue);
}

.shop-ads-chip.is-active {
  color: #fff;
  border-color: var(--sd-blue);
  background: var(--sd-blue);
}

/* ----- Products grid ----- */
.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.shop-product-card {
  position: relative;
  border: 1px solid var(--sd-border);
  background: #fff;
  border-radius: var(--sd-radius-md);
  overflow: hidden;
  min-width: 0;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.shop-product-card:hover,
.shop-product-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--sd-shadow-soft);
  border-color: var(--sd-blue);
}

.shop-product-card--native-inline {
  outline: 1px dashed rgba(8, 104, 255, 0.35);
  outline-offset: -1px;
}

.shop-product-card--native-inline .shop-product-image .shop-product-native-ad-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  z-index: 4;
  pointer-events: none;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #4b5563, #1f2937);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.shop-product-meta__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.shop-product-meta__rating--muted {
  opacity: 0.55;
}

/* Ссылка-оверлей растягивается на всю карточку, но НЕ оборачивает
   кнопку избранного — это даёт валидный HTML без вложенных интерактивов. */
.shop-product-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: inherit;
}

.shop-product-card-link:focus-visible {
  outline: 2px solid var(--sd-blue);
  outline-offset: 2px;
}

.shop-product-image {
  position: relative;
  height: 140px;
  background: #eef2f8;
  overflow: hidden;
}

.shop-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-product-image__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--sd-muted-2);
  font-size: 12px;
  background:
    linear-gradient(135deg, #eef3fb, #dde6f3),
    repeating-linear-gradient(45deg, transparent 0 8px, rgba(0, 0, 0, 0.02) 8px 16px);
}

.shop-heart {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(142, 160, 185, 0.42);
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #50617c;
  cursor: pointer;
  z-index: 3;
  transition: background 0.12s, color 0.12s, transform 0.1s;
}

.shop-heart:hover {
  background: #fff;
}

.shop-heart.is-active {
  color: #ef5571;
}

.shop-heart:active {
  transform: scale(0.93);
}

.shop-product-body {
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.shop-product-price {
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--sd-text);
}

.shop-product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #1f2b44;
  line-height: 1.35;
  min-height: 36px;
}

.shop-product-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 9px;
  color: #91a0b5;
  font-size: 12px;
  font-weight: 600;
}

.shop-product-meta__region {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.shop-product-meta__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

/* Promo inline (внутри сетки) */
.shop-promo-inline {
  grid-column: span 2;
  border-radius: var(--sd-radius-md);
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, #087eef 0%, #2457f2 45%, #743af0 100%);
  box-shadow: 0 22px 36px rgba(46, 77, 214, 0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 226px;
  text-align: left;
}

.shop-promo-inline__pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.shop-promo-inline strong {
  display: block;
  margin-top: 18px;
  max-width: 320px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
}

.shop-promo-button {
  min-height: 44px;
  padding: 0 18px;
  margin-top: 18px;
  border-radius: var(--sd-radius-sm);
  background: #fff;
  color: var(--sd-blue);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.1s, box-shadow 0.15s;
}

.shop-promo-button:hover {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.shop-promo-button--block {
  width: 100%;
  justify-content: center;
}

/* ----- Load more / pagination ----- */
.shop-load-more-wrap {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--sd-muted);
  font-size: 12px;
  font-weight: 600;
}

.shop-load-more-btn {
  min-height: 40px;
  min-width: 160px;
  padding: 0 18px;
  border: 1px solid var(--sd-border);
  border-radius: var(--sd-radius-sm);
  background: #fff;
  color: var(--sd-blue);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.shop-load-more-btn:hover {
  border-color: var(--sd-blue);
}

.shop-load-more-info {
  color: var(--sd-muted);
}

/* Empty state */
.shop-empty-state {
  text-align: center;
  padding: 36px 16px;
  border: 1px dashed var(--sd-border);
  border-radius: var(--sd-radius-md);
  color: var(--sd-muted);
  background: #f8fbff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.shop-empty-state i {
  font-size: 28px;
  color: var(--sd-muted-2);
}

/* ----- Side promo card ----- */
.shop-promo-card {
  padding: 28px;
  min-height: 235px;
  color: #fff;
  background: linear-gradient(135deg, #087eef 0%, #2457f2 45%, #743af0 100%);
  border-radius: var(--sd-radius-md);
  box-shadow: 0 22px 36px rgba(46, 77, 214, 0.25);
}

.shop-promo-card__pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.shop-promo-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.shop-promo-card p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.45;
  opacity: 0.92;
}

/* ----- Contacts card ----- */
.shop-card--contacts .shop-contacts-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px 18px;
}

.shop-card--contacts .shop-contacts-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--sd-text);
  padding: 8px 0;
  border-bottom: 1px solid var(--sd-border-soft);
}

.shop-card--contacts .shop-contacts-list li:last-child {
  border-bottom: 0;
}

.shop-card--contacts .shop-contacts-list i {
  color: var(--sd-blue);
  width: 20px;
  text-align: center;
}

.shop-card--contacts .shop-contacts-list a {
  color: var(--sd-text);
  text-decoration: none;
  word-break: break-all;
}

.shop-card--contacts .shop-contacts-list a:hover {
  color: var(--sd-blue);
}

/* ----- Chat picker modal ----- */
.shop-chat-picker-modal {
  border: 0;
  padding: 0;
  background: transparent;
}

.shop-chat-picker-modal::backdrop {
  background:
    radial-gradient(circle at 20% 0%, rgba(8, 126, 239, 0.25), transparent 46%),
    radial-gradient(circle at 80% 100%, rgba(109, 62, 251, 0.20), transparent 40%),
    rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
}

.shop-chat-picker-modal[open] {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-chat-picker-modal__box {
  width: min(720px, calc(100vw - 24px));
  max-height: min(82vh, 760px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f9fcff 100%);
  border-radius: 18px;
  border: 1px solid rgba(167, 189, 224, 0.72);
  box-shadow:
    0 32px 70px rgba(11, 31, 67, 0.30),
    0 8px 24px rgba(8, 126, 239, 0.14);
  padding: 16px;
}

.shop-chat-picker-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.shop-chat-picker-modal__head .modal-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.shop-chat-picker-modal__close {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(167, 189, 224, 0.9);
  border-radius: 11px;
  background: #fff;
  color: #4f5f7a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shop-chat-picker-modal__close:hover {
  border-color: var(--sd-blue);
  color: var(--sd-blue);
  box-shadow: 0 8px 18px rgba(8, 126, 239, 0.18);
}

.shop-chat-picker-modal__close:active {
  transform: translateY(1px);
}

.shop-chat-picker-modal__list {
  margin-top: 14px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 2px 6px 2px 0;
}

.shop-chat-picker-modal__list::-webkit-scrollbar {
  width: 10px;
}

.shop-chat-picker-modal__list::-webkit-scrollbar-track {
  background: #eef4ff;
  border-radius: 999px;
}

.shop-chat-picker-modal__list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #85b9f4, #538de9);
  border-radius: 999px;
}

.shop-chat-picker-modal__item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 1px solid #d7e7fb;
  border-radius: 12px;
  padding: 12px 13px 11px;
  text-decoration: none;
  background:
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.shop-chat-picker-modal__item:hover {
  border-color: var(--sd-blue);
  box-shadow:
    0 14px 30px rgba(8, 126, 239, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transform: translateY(-1px);
}

.shop-chat-picker-modal .modal-subtitle {
  margin: 0;
  color: var(--sd-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.shop-chat-picker-modal__count {
  font-size: 12px;
  font-weight: 700;
  color: #2b4f88;
  background: #e9f3ff;
  border: 1px solid #cde2fd;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.shop-chat-picker-modal__title {
  display: block;
  color: var(--sd-text);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.shop-chat-picker-modal__meta {
  display: block;
  margin-top: 5px;
  color: #53637e;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.shop-chat-picker-modal__content {
  min-width: 0;
}

.shop-chat-picker-modal__thumb {
  width: 78px;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  background: #e8effb;
  border: 1px solid #d0def4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.shop-chat-picker-modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-chat-picker-modal__thumb-placeholder {
  font-size: 11px;
  color: #667a9d;
  font-weight: 700;
}

@media (max-width: 720px) {
  .shop-chat-picker-modal__box {
    width: calc(100vw - 12px);
    max-height: 88vh;
    border-radius: 14px;
    padding: 12px;
  }

  .shop-chat-picker-modal__head .modal-title {
    font-size: 18px;
  }

  .shop-chat-picker-modal__title {
    font-size: 15px;
  }

  .shop-chat-picker-modal__meta {
    font-size: 12px;
  }

  .shop-chat-picker-modal .modal-subtitle {
    font-size: 13px;
  }

  .shop-chat-picker-modal__item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 11px;
  }

  .shop-chat-picker-modal__thumb {
    width: 64px;
    height: 54px;
  }
}

/* ============================
   Responsive
   ============================ */

@media (max-width: 1180px) {
  .shop-detail__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .shop-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-promo-inline {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .shop-detail__hero {
    height: 220px;
  }

  .shop-detail__layout {
    grid-template-columns: 1fr;
  }

  .shop-detail__side {
    position: static;
    order: -1;
  }

  .shop-promo-card {
    min-height: auto;
    padding: 22px;
  }

  .shop-title-row,
  .shop-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-actions {
    justify-content: stretch;
  }

  .shop-actions .shop-btn {
    width: 100%;
  }

  .shop-actions .shop-btn--icon {
    width: 100%;
  }

  .shop-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .shop-detail__hero {
    height: 180px;
  }

  .shop-brand-card {
    margin-top: -49px;
    align-items: flex-start;
    gap: 12px;
    min-height: 74px;
    flex-wrap: wrap;
  }

  .shop-brand-card__logo {
    width: 88px;
    height: 88px;
    border-width: 4px;
    border-radius: 16px;
  }

  .shop-brand-card__title-area {
    padding-top: 56px;
    padding-bottom: 0;
    width: 100%;
    flex: 1 1 100%;
  }

  .shop-badges {
    gap: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .shop-badge {
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .shop-meta-line {
    margin: 14px 0;
    gap: 10px;
    font-size: 12px;
  }

  .shop-title {
    font-size: 26px;
  }

  .shop-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding-top: 14px;
  }

  .shop-tab {
    padding: 0 6px;
    font-size: 12px;
  }

  .shop-card {
    padding: 16px;
    border-radius: 14px;
  }

  .shop-card__title {
    font-size: 20px;
  }

  .shop-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-ads-toolbar {
    grid-template-columns: 1fr;
  }

  .shop-ads-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-right: -12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .shop-ads-chips::-webkit-scrollbar {
    display: none;
  }

  .shop-ads-chip {
    flex: 0 0 auto;
  }

  .shop-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shop-product-image {
    height: 130px;
  }

  .shop-promo-inline {
    grid-column: 1 / -1;
    min-height: 190px;
    padding: 24px;
  }
}

@media (max-width: 420px) {
  .shop-detail__hero {
    height: 150px;
  }

  .shop-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-features-grid {
    grid-template-columns: 1fr;
  }

  .shop-products-grid {
    grid-template-columns: 1fr;
  }

  .shop-product-image {
    height: 200px;
  }

  .shop-promo-inline {
    grid-column: 1 / -1;
  }
}
