/**
 * Top Vendors — mobile-only horizontal rail
 */

@media (max-width: 991.98px) {
  .homepage-vendors-mobile {
    width: 100%;
    overflow: hidden;
  }

  .homepage-vendors-mobile__banner-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 14px 10px;
    margin-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .homepage-vendors-mobile__banner-scroll::-webkit-scrollbar {
    display: none;
  }

  .homepage-vendors-mobile__banner {
    flex: 0 0 calc(100% - 28px);
    scroll-snap-align: center;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  }

  .homepage-vendors-mobile__banner img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72px;
    object-fit: cover;
    cursor: pointer;
  }

  .homepage-vendors-mobile__scroll {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    padding: 4px 16px 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .homepage-vendors-mobile__scroll::-webkit-scrollbar {
    display: none;
  }

  .homepage-vendors-mobile__item {
    flex: 0 0 min(72vw, 292px);
    width: min(72vw, 292px);
    max-width: 292px;
    scroll-snap-align: start;
    min-width: 0;
    display: flex;
  }

  .homepage-vendors-mobile-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.14);
    border: 1px solid #fed7aa;
    border-top: 3px solid #f97316;
  }

  .homepage-vendors-mobile-card__media {
    aspect-ratio: 16 / 10;
    background: #f1f5f9;
    overflow: hidden;
  }

  .homepage-vendors-mobile-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .homepage-vendors-mobile-card__body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 auto;
  }

  .homepage-vendors-mobile-card__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.25;
    color: #9a3412;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .homepage-vendors-mobile-card__category {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
    color: #64748b;
  }

  .homepage-vendors-mobile-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
  }

  .homepage-vendors-mobile-card__loc,
  .homepage-vendors-mobile-card__rating {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }

  .homepage-vendors-mobile-card__loc {
    color: #475569;
    flex: 1 1 auto;
  }

  .homepage-vendors-mobile-card__loc i {
    color: #ea580c;
    flex-shrink: 0;
  }

  .homepage-vendors-mobile-card__loc {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .homepage-vendors-mobile-card__rating {
    color: #334155;
    flex-shrink: 0;
  }

  .homepage-vendors-mobile-card__rating i {
    color: #f59e0b;
    font-size: 0.625rem;
  }

  .homepage-vendors-mobile-card__rating-count {
    font-weight: 500;
    color: #64748b;
  }

  .homepage-vendors-mobile-ad {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.12);
    border: 1px solid #fde68a;
    border-top: 3px solid #f59e0b;
    cursor: pointer;
  }

  .homepage-vendors-mobile-ad__media {
    flex: 1 1 auto;
    min-height: 140px;
    max-height: 168px;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
  }

  .homepage-vendors-mobile-ad__media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .homepage-vendors-mobile-ad__body {
    padding: 10px 12px 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .homepage-vendors-mobile-ad__badge {
    align-self: flex-start;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #b45309;
    font-family: 'Inter', sans-serif;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .homepage-vendors-mobile-ad__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .homepage-vendors-mobile-ad__cta {
    font-family: 'Inter', sans-serif;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .homepage-vendors-mobile-ad__cta i {
    font-size: 0.6rem;
  }

  .homepage-vendors-desktop {
    display: none !important;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .homepage-vendors-mobile__item {
    flex: 0 0 min(72vw, 300px);
    width: min(72vw, 300px);
    max-width: 300px;
  }
}

@media (min-width: 992px) {
  .homepage-vendors-mobile {
    display: none !important;
  }

  .homepage-discover-panel--spotlight-vendors .homepage-discover-panel__head--spotlight {
    padding-bottom: 12px;
    margin-bottom: 4px;
    border-bottom: 2px solid rgba(253, 186, 116, 0.55);
  }

  .homepage-vendors-spotlight {
    padding: 16px 14px 14px;
  }
}

@media (max-width: 575.98px) {
  .homepage-vendors-mobile__item {
    flex: 0 0 min(68vw, 292px);
    width: min(68vw, 292px);
  }

  .homepage-vendors-mobile__scroll {
    scroll-padding-inline: 16px;
  }
}
