.shop-banner {
  position: relative;
  height: 220px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.shop-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.34) 100%
  );
}

.shop-banner-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  max-width: 760px;
  margin: 0 auto;
  color: white;
}

.shop-banner-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 12px 0 10px;
}

.shop-banner-content p {
  max-width: 640px;
  font-size: 0.98rem;
  line-height: 1.5;
}

.shop-banner-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.shop-banner-stats .badge {
  padding: 8px 14px;
  font-size: 0.88rem;
}

.shop-sidebar {
  display: grid;
  gap: 22px;
}

.shop-profile-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(232, 244, 237, 0.8), #fff 52%),
    #fff;
}

.shop-profile-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 84px;
  background: linear-gradient(135deg, rgba(11, 128, 77, 0.16), rgba(9, 120, 177, 0.12));
}

.shop-profile-card .shop-profile-top {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding-top: 22px;
}

.shop-profile-top h3 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  letter-spacing: -0.03em;
}

.shop-profile-top p {
  color: var(--text-soft);
}

.shop-profile-card .seller-avatar {
  width: 82px;
  height: 82px;
  border: 4px solid white;
  box-shadow: var(--shadow-sm);
}

.shop-profile-card .seller-stats {
  margin: 22px 0;
  padding: 16px;
  border-radius: 22px;
  background: var(--surface-alt);
}

.shop-profile-card .seller-actions {
  display: grid;
  gap: 10px;
}

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

.shop-featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 32px;
}

.shop-featured-grid .product-card {
  border-radius: 22px;
}

.shop-featured-grid .product-card-media {
  aspect-ratio: 1.5 / 1;
}

.shop-featured-grid .product-card-body {
  padding: 14px 16px 16px;
}

.shop-featured-grid .product-card-title {
  font-size: 1.25rem;
  line-height: 1.08;
  margin-bottom: 8px;
}

.shop-featured-grid .product-card-price {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.shop-featured-grid .product-card-meta {
  font-size: 0.9rem;
}

.shop-featured-grid .product-card-heart {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
  top: 14px;
  right: 14px;
}

.shop-featured-grid .product-card-badges {
  top: 14px;
  left: 14px;
}

.shop-featured-grid .product-card-actions {
  margin-top: 12px;
}

.shop-featured-grid .product-card-actions .btn {
  min-height: 44px;
  padding: 12px 18px;
  font-size: 0.95rem;
}

.shop-listings-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}

.shop-listing-title {
  font-size: 2.2rem;
}

.shop-view-toggle {
  display: flex;
  gap: 10px;
}

.active-toggle {
  border-color: var(--green);
  color: var(--green);
}

.shop-directory-hero {
  max-width: 780px;
}

.shop-directory-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 22px;
}

.shop-directory-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.shop-directory-header {
  margin-bottom: 18px;
}

.shop-directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shop-directory-grid > .empty-state {
  grid-column: 1 / -1;
}

.shop-directory-card {
  overflow: hidden;
}

.shop-directory-link {
  display: grid;
  color: inherit;
  height: 100%;
}

.shop-directory-media {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 148px;
  background: #eef2f0;
}

.shop-directory-media img {
  width: 100%;
  height: 100%;
  min-height: 148px;
  object-fit: cover;
}

.shop-directory-placeholder {
  grid-column: 1 / -1;
}

.shop-directory-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.shop-directory-heading {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.shop-directory-heading h2 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.shop-directory-heading p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

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

.shop-directory-stats span {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .shop-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-directory-toolbar,
  .shop-directory-search {
    grid-template-columns: 1fr;
  }

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

  .shop-listings-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-banner {
    height: 190px;
    border-radius: 24px;
  }

  .shop-banner-content {
    padding: 18px;
  }

  .shop-banner-content h1 {
    font-size: 2rem;
  }

  .shop-banner-content p {
    font-size: 0.92rem;
  }
}

@media (max-width: 640px) {
  .shop-featured-grid,
  .shop-directory-grid {
    grid-template-columns: 1fr;
  }
}
