

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



.shop-banner {
  margin-bottom: 20px;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.shop-banner img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}



.shop-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  margin-bottom: 28px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  border-radius: var(--radius-lg, 20px);
  box-shadow: var(--shadow-sm);
}

.shop-head__avatar {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  background: #fff;
}

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

.shop-head__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle, #ebedf0);
  color: var(--text-muted, #666);
  font-size: 34px;
  font-weight: 800;
}

.shop-head__info {
  flex: 1 1 auto;
  min-width: 0;
}

.shop-head__name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.shop-head__verified {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e6f7e6;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}


.shop-level {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  background: #64748b;
}

.shop-level__icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.shop-level--novice {
  background: #64748b;
}

.shop-level--bronze {
  background: #b08d57;
}

.shop-level--silver {
  background: #94a3b8;
}

.shop-level--gold {
  background: #d4af37;
}

.shop-head__desc {
  margin: 0 0 14px;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted, #666);
  overflow-wrap: anywhere;
}



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

.shop-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
  padding: 10px 16px;
  background: var(--bg-subtle, #ebedf0);
  border-radius: var(--radius-sm, 14px);
}

.shop-stat__value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main, #0a0a0a);
}

.shop-stat__label {
  font-size: 11px;
  color: var(--text-muted, #666);
}

.shop-stat--muted .shop-stat__value {
  color: var(--text-muted, #666);
}



.shop-section-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 800;
}

.shop-products-grid {
  margin-bottom: 36px;
}


.shop-products-grid.grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
}

.shop-empty {
  padding: 32px;
  text-align: center;
  border-radius: var(--radius-lg, 20px);
}

.shop-empty .muted {
  margin-bottom: 12px;
}



.product-card__seller-shop {
  flex: 0 0 auto;
  color: #047857;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}

.product-card__seller-shop:hover,
.product-card__seller-shop:focus-visible {
  color: #065f46;
}

.product-seller-card__shop-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-seller-card__shop-link:hover {
  color: #065f46;
}



@media (max-width: 640px) {
  .shop-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
    gap: 12px;
  }

  .shop-head__name {
    justify-content: center;
    font-size: 21px;
  }

  .shop-head__desc {
    font-size: 13px;
  }

  .shop-stats {
    justify-content: center;
  }

  .shop-stat {
    flex: 1 1 calc(50% - 10px);
    min-width: 0;
    align-items: center;
    text-align: center;
  }

  .shop-banner img {
    max-height: 160px;
  }
}


.shop-products-grid .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-lg, 20px);
  position: relative;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-line, #eeefec);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(14, 15, 17, .04));
  opacity: 0;
  transform: translateY(20px);
  animation: cardFadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition:
    transform var(--motion-slow, 320ms) var(--motion-ease, ease),
    opacity var(--motion-base, 220ms) var(--motion-ease, ease),
    box-shadow var(--motion-slow, 320ms) var(--motion-ease, ease),
    border-color var(--motion-base, 220ms) var(--motion-ease, ease);
  will-change: transform, opacity, box-shadow;
}

@media (hover: hover) and (min-width: 769px) {
  .shop-products-grid .product-card:hover {
    border-color: rgba(14, 15, 17, 0.18);
    box-shadow: 0 3px 12px rgba(14, 15, 17, 0.06);
  }
}

.shop-products-grid .product-card__image {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md, 14px);
  overflow: hidden;
  background: #f1f1f4;
  height: 200px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.shop-products-grid .product-card-carousel__circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  transform: none;
  top: 0;
  left: 0;
  background: transparent;
}

.shop-products-grid .product-card-carousel__circle .product-card-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
  top: 0;
  left: 0;
}

.shop-products-grid .product-card-carousel__circle--placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-products-grid .product-card-carousel__circle--placeholder span {
  font-size: 12px;
  color: var(--text-muted);
}

.shop-products-grid .product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  pointer-events: none;
}

.shop-products-grid .product-card__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill, 999px);
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(14, 15, 17, .05));
}

.shop-products-grid .product-card__badge--hot {
  background: #e0432b;
  color: #fff;
}

.shop-products-grid .product-card__badge--premium {
  background: var(--color-ink, #0e0f11);
  color: var(--color-accent, #c8ff2a);
}

.shop-products-grid .product-card__badge--promo {
  background: var(--color-surface, #fff);
  color: var(--color-ink, #0e0f11);
  border: 1px solid var(--color-line, #eeefec);
  box-shadow: none;
}

.shop-products-grid .product-card__actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.shop-products-grid .product-card__action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-line, rgba(14, 15, 17, 0.08));
  background: #fff;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(14, 15, 17, .05));
  text-decoration: none;
}

.shop-products-grid .product-card__action-btn:hover {
  background: var(--color-ink, #0e0f11);
  color: #fff;
  border-color: var(--color-ink, #0e0f11);
  box-shadow: 0 0 0 2px rgba(14, 15, 17, 0.1);
}

.shop-products-grid .product-card__action-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

.shop-products-grid .product-card__body {
  padding: 16px 12px 12px;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
}

.shop-products-grid .product-card__title {
  margin-bottom: 0;
}

.shop-products-grid .product-card__bottom {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  text-align: center;
}

.shop-products-grid .product-card__discount-slot {
  min-height: 2.5em;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.shop-products-grid .product-card__discount-hint {
  font-size: 11px;
  line-height: 1.25;
  max-width: 100%;
}

.shop-products-grid .product-card__meta,
.shop-products-grid .product-card__title,
.shop-products-grid .product-card__price {
  width: 100%;
  text-align: center;
}

@media (max-width: 768px) {
  .shop-products-grid .product-card {
    gap: 0;
    contain: layout style paint;
    will-change: transform;
  }

  .shop-products-grid .product-card__image {
    height: auto;
    aspect-ratio: 1;
    border-radius: 16px;
  }

  .shop-products-grid .product-card-carousel__circle .product-card-carousel__img {
    object-fit: contain;
  }

  .shop-products-grid .product-card__body {
    padding: 6px 4px 0;
  }

  .shop-products-grid .product-card__meta {
    margin-bottom: 0;
    font-size: 10px;
    line-height: 1.25;
  }

  .shop-products-grid .product-card__title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.3;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }

  .shop-products-grid .product-card__bottom {
    padding-top: 6px;
  }

  .shop-products-grid .product-card__discount-slot {
    min-height: 2.25em;
  }

  .shop-products-grid .product-card__price {
    font-size: 14px;
  }

  .shop-products-grid .product-card__actions {
    top: 6px;
    right: 6px;
    gap: 6px;
  }

  .shop-products-grid .product-card__action-btn {
    width: 32px;
    height: 32px;
  }

  .shop-products-grid .product-card__action-btn svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .shop-products-grid .product-card__actions {
    top: 8px;
    right: 8px;
    gap: 8px;
  }

  .shop-products-grid .product-card__action-btn {
    width: 36px;
    height: 36px;
  }

  .shop-products-grid .product-card__action-btn svg {
    width: 16px;
    height: 16px;
  }
}
