.merchant-profile-page {
  padding: 30px 0 50px;
}

.merchant-profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding: 28px;
  border: 1px solid #eceff1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(31, 45, 61, .07);
}

.merchant-profile-logo {
  display: flex;
  flex: 0 0 130px;
  width: 130px;
  height: 130px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #eceff1;
  border-radius: 50%;
  background: #f7f8f9;
  color: #008a91;
  font-size: 46px;
}

.merchant-profile-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.merchant-profile-data {
  min-width: 0;
}

.merchant-profile-data h1 {
  margin: 0 0 12px;
  color: #333;
  font-size: 28px;
  font-weight: 700;
}

.merchant-profile-data p {
  max-width: 760px;
  margin: 0;
  color: #666;
  font-size: 16px;
  line-height: 1.9;
}

.merchant-products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eceff1;
}

.merchant-products-head h2 {
  margin: 0;
  color: #333;
  font-size: 22px;
  font-weight: 700;
}

.merchant-products-head span {
  min-width: 34px;
  padding: 6px 10px;
  border-radius: 18px;
  background: #f0f1f2;
  color: #555;
  text-align: center;
}

.merchant-products-empty {
  padding: 35px 15px;
  color: #777;
  text-align: center;
}

.merchant-pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 25px;
}

.merchant-pagination a {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3e5e7;
  border-radius: 5px;
  background: #fff;
  color: #008a91;
}

.merchant-pagination a.active,
.merchant-pagination a:hover {
  border-color: #008a91;
  background: #008a91;
  color: #fff;
}

.category-merchants {
  padding: 26px 0 10px;
}

.category-merchants-head {
  margin-bottom: 20px;
}

.category-merchants-head h2 {
  position: relative;
  margin: 0;
  padding-bottom: 9px;
  color: #303535;
  font-family: "Tajawal", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
}

.category-merchants-head h2:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 38px;
  height: 2px;
  border-radius: 2px;
  background: #13a89e;
}

.category-merchants-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.category-merchant-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #f5f8f8;
  color: #343a3a;
  box-shadow: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.category-merchant-card:hover {
  border-color: #d8e9e8;
  background: #eef6f5;
  color: #0d8f87;
  box-shadow: none;
}

.category-merchant-logo {
  display: flex;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e7eeee;
  border-radius: 50%;
  background: #fff;
  color: #13a89e;
  font-size: 19px;
}

.category-merchant-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-merchant-name {
  min-width: 0;
  overflow: hidden;
  font-family: "Tajawal", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .merchant-profile-card {
    display: block;
    padding: 22px 18px;
    text-align: center;
  }

  .merchant-profile-logo {
    width: 110px;
    height: 110px;
    margin: 0 auto 18px;
    font-size: 40px;
  }

  .merchant-profile-data h1 {
    font-size: 24px;
  }

  .category-merchants {
    padding-top: 20px;
  }

  .category-merchants-head {
    margin-bottom: 16px;
  }

  .category-merchants-head h2 {
    font-size: 19px;
  }

  .category-merchants-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .category-merchant-card {
    gap: 8px;
    padding: 8px;
  }

  .category-merchant-logo {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .category-merchant-name {
    display: block;
    font-size: 13px;
  }
}
