/* Vendor shop header */
.vendor-shop-section .section-title {
  margin-bottom: 18px;
}

.vendor-shop-section .section-title .ec-title {
  display: block;
  padding: 0;
  font-size: clamp(1.2rem, 3.5vw, 1.875rem);
  line-height: 1.35;
  word-break: break-word;
}

.vendor-shop-section .section-title .sub-title {
  padding: 0 16px;
  margin-top: 8px !important;
  font-size: 14px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.vendor-shop-logo-img {
  display: inline-block;
  max-height: 140px;
  max-width: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
}

/* Search */
.vendor-shop-search-wrap {
  margin: 4px 0 28px;
}

.vendor-shop-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  padding: 5px 5px 5px 16px;
  background: #fff;
  border: 1px solid #e3e8ef;
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(52, 116, 212, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vendor-shop-search-bar:focus-within {
  border-color: #3474d4;
  box-shadow: 0 4px 20px rgba(52, 116, 212, 0.16);
}

.vendor-shop-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.vendor-shop-search-icon {
  flex: 0 0 auto;
  color: #9aa5b5;
  font-size: 17px;
  line-height: 1;
}

.vendor-shop-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: 42px !important;
  line-height: 42px !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 15px;
  color: #444;
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  border-radius: 0;
  display: block;
}

.vendor-shop-search-input::placeholder {
  color: #a0a8b5;
}

.vendor-shop-search-input:focus {
  outline: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  border: 0 !important;
}

.vendor-shop-search-btn {
  flex: 0 0 auto;
  height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: #3474d4;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  width: auto;
}

.vendor-shop-search-btn:hover:not(:disabled) {
  background: #2b63b8;
}

.vendor-shop-search-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.vendor-shop-search-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 12px;
  font-size: 13px;
}

.vendor-shop-search-meta a {
  color: #3474d4;
  text-decoration: none;
  font-weight: 500;
}

.vendor-shop-search-meta a:hover {
  text-decoration: underline;
}

.vendor-shop-search-clear {
  border: 0;
  background: none;
  padding: 0;
  color: #777;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}

.vendor-shop-search-clear:hover:not(:disabled) {
  color: #444;
}

.vendor-shop-search-clear:disabled {
  opacity: 0.6;
  cursor: wait;
}

.vendor-shop-search-clear.is-hidden {
  display: none;
}

.vendor-shop-search-status {
  margin: 10px auto 0;
  max-width: 520px;
  text-align: center;
  font-size: 13px;
  color: #777;
  line-height: 1.5;
  padding: 0 12px;
}

.vendor-shop-search-status.is-hidden {
  display: none;
}

.vendor-shop-search-status a {
  color: #3474d4;
  font-weight: 500;
  text-decoration: none;
}

.vendor-shop-search-status a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 767px) {
  .vendor-shop-section.section-space-p {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .vendor-shop-section .section-title .sub-title {
    padding: 0 12px;
    font-size: 13px;
  }

  .vendor-shop-logo-img {
    max-height: 120px;
    max-width: min(88vw, 320px);
  }

  .vendor-shop-search-wrap {
    margin: 0 0 22px;
  }

  .vendor-shop-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    max-width: none;
  }

  .vendor-shop-search-field {
    background: #f4f7fb;
    border-radius: 12px;
    padding: 0 14px;
    min-height: 48px;
  }

  .vendor-shop-search-input {
    height: 48px !important;
    line-height: 48px !important;
    font-size: 16px;
  }

  .vendor-shop-search-btn {
    width: 100%;
    height: 46px;
    border-radius: 12px;
    font-size: 15px;
  }

  .vendor-shop-search-meta {
    margin-top: 10px;
    gap: 8px 16px;
  }
}

@media (max-width: 575px) {
  .vendor-shop-section .section-title .ec-title {
    padding: 0 8px;
    font-size: 1.15rem;
  }
}
