/* Vendor shop header */
.vendor-shop-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 20px;
  padding: 0 16px;
}

.vendor-shop-logo {
  margin-bottom: 14px;
}

.vendor-shop-logo-img {
  display: inline-block;
  max-height: 88px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}

.vendor-shop-name {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.15rem, 2.6vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  color: #2f3a4a;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.vendor-shop-tagline {
  position: relative;
  margin: 0 auto;
  padding-top: 14px;
  max-width: 500px;
  font-size: 14px;
  line-height: 1.65;
  color: #6b7280;
  font-weight: 400;
}

.vendor-shop-tagline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3474d4, #6ba3f0);
}

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

.vendor-shop-search-bar,
.vendor-shop-category-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-category-bar {
  margin-top: 10px;
  padding-right: 16px;
}

.vendor-shop-search-bar:focus-within,
.vendor-shop-category-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;
}

/* Category filter (products page) */
.vendor-shop-category-bar .select2-container {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
}

.vendor-shop-category-bar .select2-container--default .select2-selection--single {
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
}

.vendor-shop-category-bar .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 42px;
  font-size: 15px;
  color: #444;
}

.vendor-shop-category-bar .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #a0a8b5;
}

.vendor-shop-category-bar .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  right: 0;
}

.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-header {
    margin-bottom: 16px;
    padding: 0 12px;
  }

  .vendor-shop-name {
    font-size: 1.1rem;
  }

  .vendor-shop-tagline {
    font-size: 13px;
    padding-top: 12px;
  }

  .vendor-shop-logo-img {
    max-height: 72px;
    max-width: min(70vw, 200px);
  }

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

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

  .vendor-shop-search-bar {
    flex-direction: column;
  }

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

  .vendor-shop-category-bar {
    margin-top: 10px;
    padding: 0 14px;
  }

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

  .vendor-shop-category-bar .select2-container--default .select2-selection--single,
  .vendor-shop-category-bar .select2-container--default .select2-selection--single .select2-selection__rendered,
  .vendor-shop-category-bar .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    line-height: 48px;
  }

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

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

}
