/* Marketplace home. Other storefront and account screens use their own styles. */
.home-page {
  background: #fffdfb;
}

.home-page .announcement {
  background: #fff4ef;
  color: #665b56;
}
.home-page .announcement b { color: #282421; }
.home-page .announcement a { color: #a71027; }
.home-page .announcement a span { color: #c5152e; }

.home-page .hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: stretch;
  gap: 30px;
  min-height: 0;
  margin-top: 26px;
  padding: 20px;
  border: 1px solid #fae5df;
  border-radius: 30px;
  background: #fff3ed;
}
.home-page .hero-copy {
  align-self: center;
  min-width: 0;
  padding: 20px 4px 20px 24px;
}
.home-page .hero-copy > .eyebrow {
  margin: 0 0 15px;
  color: #b51b31;
}
.home-page .hero h1 {
  max-width: 520px;
  margin: 0;
  color: #211e1d;
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.04;
  letter-spacing: -.065em;
}
.home-page .hero h1 span { color: #d9152b; }
.home-page .hero-lead {
  max-width: 430px;
  margin: 16px 0 24px;
  color: #655b57;
  font-size: 15px;
  line-height: 1.55;
}
.home-page .hero-visual {
  min-width: 0;
  min-height: 350px;
  overflow: hidden;
  border-radius: 22px;
  background: #ead5c8;
}
.home-page .hero-food-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}
.home-page .location-bar {
  width: min(100%, 480px);
  min-height: 62px;
  gap: 11px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border: 1px solid #f0e3df;
  border-radius: 15px;
  background: #fff;
  box-shadow: none;
}
.home-page .location-icon {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fff0f0;
  color: #c4152c;
}
.home-page .location-copy .label { color: #837873; font-size: 10px; }
.home-page .location-copy strong { font-size: 13px; }
.home-page .location-change {
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 5px;
  color: #bd122a;
  font-size: 12px;
}
.home-page .search-form {
  width: min(100%, 480px);
  min-height: 60px;
  gap: 10px;
  padding: 5px 5px 5px 15px;
  border: 1px solid #e9d6cf;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px #7a31240a;
}
.home-page .search-form:focus-within {
  border-color: #bd122a;
  box-shadow: 0 0 0 3px #d9152b18;
}
.home-page .search-icon { display: flex; flex: 0 0 21px; transform: none; }
.home-page .search-form input { width: 100%; min-width: 0; height: 46px; font-size: 16px; }
.home-page .search-form input::placeholder { color: #817c79; font-size: 14px; }
.home-page .search-form button {
  flex: 0 0 auto;
  width: auto;
  min-width: 88px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 11px;
  background: #d9152b;
  font-size: 13px;
}

.home-page .section { padding-top: 48px; padding-bottom: 0; }
.home-page .section-heading {
  align-items: end;
  gap: 16px;
  margin-bottom: 20px;
}
.home-page .section-heading > div { min-width: 0; }
.home-page .section-heading .eyebrow { margin-bottom: 8px; }
.home-page .section-heading h2,
.home-page .home-partners-heading h2 {
  margin: 0;
  color: #24211f;
  font-size: clamp(25px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -.045em;
}
.home-page .section-heading .text-link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: #bd122a;
  font-size: 13px;
}
.home-page .category-grid { gap: 12px; }
.home-page .category-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  min-height: 90px;
  padding: 14px;
  border: 1px solid #f0e7e2;
  border-radius: 19px;
  box-shadow: none;
}
.home-page .category-card::after { display: none; }
.home-page .category-card:hover { border-color: #e4c6c0; transform: translateY(-2px); }
.home-page .category-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #ffffffbf;
}
.home-page .category-icon svg { width: 36px; height: 36px; }
.home-page .category-card strong { font-size: 13px; line-height: 1.3; }
.home-page .category-arrow { position: static; margin-left: auto; font-size: 13px; }
.home-page .category-pizza { background: #fff0ed; }
.home-page .category-hamburguer { background: #fff7e6; }
.home-page .category-pastel { background: #fff3e7; }
.home-page .category-acai { background: #f6f0fb; }
.home-page .category-bebidas { background: #edf8f3; }

.home-page .section-stores { padding-top: 46px; }
.home-page .store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 14px;
}
.home-page .store-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid #ede8e5;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 24px #3c2b2108;
}
.home-page .store-card:only-child { width: 100%; max-width: 700px; }
.home-page .store-card:hover { border-color: #e2c6c1; box-shadow: 0 10px 28px #3c2b2110; transform: translateY(-2px); }
.home-page .store-visual { height: 100%; min-height: 150px; }
.home-page .store-visual::before,
.home-page .store-visual::after,
.home-page .store-visual-lines { display: none; }
.home-page .store-card-logo {
  width: 72px;
  height: 72px;
  padding: 5px;
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 5px 20px #25140e2b;
}
.home-page .store-emoji {
  width: 74px;
  height: 74px;
  border-width: 4px;
  font-size: 38px;
  transform: none;
}
.home-page .store-card-body { align-self: center; min-width: 0; padding: 18px 20px; }
.home-page .store-card-heading { gap: 10px; }
.home-page .store-card-heading > div { min-width: 0; }
.home-page .store-card h3 { overflow-wrap: anywhere; font-size: 16px; line-height: 1.3; }
.home-page .store-card p { margin-top: 5px; color: #746d68; font-size: 12px; line-height: 1.4; }
.home-page .store-card-meta { flex-wrap: wrap; margin-top: 14px; font-size: 11px; line-height: 1.45; }
.home-page .store-card .rating { flex-shrink: 0; white-space: normal; text-align: center; }
.home-page .store-card-mobile-details { display: none; }
.home-page .home-empty-stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px;
  border: 1px solid #ede8e5;
  border-radius: 20px;
  background: #fff;
  color: #625b56;
  font-size: 14px;
}
.home-page .home-empty-stores a { color: #bd122a; font-weight: 750; }

.home-page .home-partners { padding-top: 70px; padding-bottom: 70px; }
.home-page .home-partners-heading { margin-bottom: 20px; }
.home-page .home-partners-heading .eyebrow { margin-bottom: 8px; }
.home-page .home-partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-page .home-partner-card {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 165px;
  padding: 24px;
  border: 1px solid #f2ded7;
  border-radius: 20px;
  background: #fff2ec;
}
.home-page .home-partner-courier { border-color: #ede7e2; background: #f8f6f3; }
.home-page .home-partner-label { margin: 0 0 9px; color: #b2192e; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.home-page .home-partner-card h3 { max-width: 290px; margin: 0; color: #292320; font-size: 19px; line-height: 1.25; letter-spacing: -.025em; }
.home-page .home-partner-card div > p:last-child { margin: 9px 0 0; color: #6f645f; font-size: 13px; line-height: 1.5; }
.home-page .home-partner-card a {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #b9142a;
  font-size: 12px;
  font-weight: 800;
}

@media (min-width: 761px) and (max-width: 1050px) {
  .home-page .category-card { flex-direction: column; justify-content: center; gap: 7px; padding: 12px 6px; }
  .home-page .category-arrow { display: none; }
  .home-page .location-copy strong { overflow-wrap: anywhere; white-space: normal; line-height: 1.3; }
  .home-page .search-icon { display: none; }
  .home-page .home-partner-card { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 760px) {
  .home-page { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .home-page .shell { width: min(calc(100% - 32px), 600px); min-width: 0; }
  .home-page .hero {
    grid-template-columns: minmax(0, 1fr) 90px;
    grid-template-areas: 'location location' 'eyebrow eyebrow' 'title photo' 'lead photo' 'search search';
    gap: 0 12px;
    margin-top: 16px;
    padding: 14px;
    border-radius: 22px;
  }
  .home-page .hero-copy { display: contents; }
  .home-page .hero-copy > .eyebrow { grid-area: eyebrow; margin: 17px 0 9px; font-size: 9px; }
  .home-page .hero h1 { grid-area: title; align-self: end; font-size: clamp(27px, 7vw, 34px); line-height: 1.06; }
  .home-page .hero-lead { grid-area: lead; align-self: start; margin: 7px 0 16px; font-size: 12px; line-height: 1.4; }
  .home-page .hero-visual { grid-area: photo; align-self: center; width: 90px; height: 90px; min-height: 0; border-radius: 18px; }
  .home-page .hero-food-photo { min-height: 0; }
  .home-page .location-bar { grid-area: location; width: 100%; min-height: 58px; margin: 0; }
  .home-page .location-copy strong { overflow-wrap: anywhere; white-space: normal; font-size: 12px; line-height: 1.3; }
  .home-page .search-form { grid-area: search; width: 100%; min-width: 0; min-height: 56px; }
  .home-page .search-form button { min-width: 74px; min-height: 44px; padding: 0 13px; font-size: 12px; }
  .home-page .search-form input { height: 44px; }
  .home-page .search-form input::placeholder { font-size: 13px; }
  .home-page .section { padding-top: 26px; }
  .home-page .section-heading { align-items: center; gap: 10px; margin-bottom: 14px; }
  .home-page .section-heading .eyebrow { display: none; }
  .home-page .section-heading h2,
  .home-page .home-partners-heading h2 { font-size: 20px; line-height: 1.2; }
  .home-page .section-heading .text-link { min-height: 44px; font-size: 12px; }
  .home-page .category-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 1px 8px;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .home-page .category-grid::-webkit-scrollbar { display: none; }
  .home-page .category-card {
    flex: 0 0 68px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 90px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    scroll-snap-align: start;
  }
  .home-page .category-card:hover { transform: none; }
  .home-page .category-icon { width: 62px; height: 62px; flex: 0 0 62px; border-radius: 20px; }
  .home-page .category-pizza .category-icon { background: #fff0ed; }
  .home-page .category-hamburguer .category-icon { background: #fff5df; }
  .home-page .category-pastel .category-icon { background: #fff1e2; }
  .home-page .category-acai .category-icon { background: #f4edfa; }
  .home-page .category-bebidas .category-icon { background: #e9f5ef; }
  .home-page .category-icon svg { width: 42px; height: 42px; }
  .home-page .category-card strong { font-size: 11px; white-space: nowrap; }
  .home-page .category-arrow { display: none; }
  .home-page .section-stores { padding-top: 18px; }
  .home-page .store-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .home-page .store-card { grid-template-columns: 80px minmax(0, 1fr); min-height: 108px; gap: 12px; padding: 12px; border-radius: 18px; }
  .home-page .store-visual { width: 80px; height: 80px; min-height: 80px; border-radius: 14px; }
  .home-page .store-visual-tag,
  .home-page .store-card-meta { display: none; }
  .home-page .store-card-logo { width: 61px; height: 61px; padding: 4px; border: 0; border-radius: 12px; box-shadow: none; }
  .home-page .store-emoji { width: 60px; height: 60px; border: 0; background: transparent; box-shadow: none; }
  .home-page .store-card-body { padding: 0; }
  .home-page .store-card h3 { font-size: 15px; }
  .home-page .store-card p { font-size: 11px; }
  .home-page .store-card .rating { padding: 4px; font-size: 10px; }
  .home-page .store-card-mobile-details { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 8px; color: #746e69; font-size: 10px; line-height: 1.4; }
  .home-page .store-card-state { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
  .home-page .store-card-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
  .home-page .store-card-state.is-closed { color: #855f46; }
  .home-page .home-partners { padding-top: 38px; padding-bottom: 36px; }
  .home-page .home-partners-heading { margin-bottom: 14px; }
  .home-page .home-partner-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .home-page .home-partner-card { flex-direction: column; align-items: flex-start; gap: 6px; min-height: 0; padding: 18px; border-radius: 18px; }
  .home-page .home-partner-card h3 { font-size: 16px; }
  .home-page .home-partner-card div > p:last-child { font-size: 12px; }
}

@media (max-width: 360px) {
  .home-page .hero { grid-template-columns: minmax(0, 1fr) 76px; }
  .home-page .hero-visual { width: 76px; height: 76px; border-radius: 15px; }
  .home-page .hero h1 { font-size: 24px; }
  .home-page .hero h1 span { white-space: nowrap; }
  .home-page .search-icon { display: none; }
  .home-page .search-form button { min-width: 66px; padding: 0 10px; }
  .home-page .section-heading h2 { font-size: 18px; }
  .home-page .store-card { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
  .home-page .store-visual { width: 68px; height: 68px; min-height: 68px; }
  .home-page .store-card-logo { width: 52px; height: 52px; }
  .home-page .store-card h3 { font-size: 14px; }
  .home-page .store-card-heading { display: block; }
  .home-page .store-card .rating { display: inline-block; margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .category-card,
  .home-page .store-card { transition: none; }
}
