/* TÔPERTO 15T12 - VITRINE MOBILE-FIRST ESTILO DELIVERY */

:root {
  --lfy-red: #ea1d2c;
  --lfy-red-dark: #c91422;
  --lfy-orange: #ff8a00;
  --lfy-bg: #f7f7f7;
  --lfy-card: #ffffff;
  --lfy-text: #111827;
  --lfy-muted: #667085;
  --lfy-border: #e9e9e9;
  --lfy-soft: #fff1f2;
  --lfy-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--lfy-bg);
  color: var(--lfy-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#localfyCidadeVitrineApp,
.lfy-delivery-page {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 12px 42px;
  overflow-x: hidden;
}

.lfy-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 -12px;
  padding: 12px;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
  backdrop-filter: blur(12px);
}

.lfy-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--lfy-text);
  text-decoration: none;
}

.lfy-brand-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--lfy-red);
  color: #fff;
  font-size: 19px;
  font-weight: 950;
}

.lfy-brand strong {
  display: block;
  color: #111827;
  font-size: 17px;
  line-height: 1;
  font-weight: 950;
}

.lfy-brand small {
  display: block;
  margin-top: 3px;
  color: var(--lfy-muted);
  font-size: 11px;
  line-height: 1.2;
}

.lfy-top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
}

.lfy-top-search input {
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.lfy-top-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.lfy-top-pills::-webkit-scrollbar {
  display: none;
}

.lfy-top-pills span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #ececec;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 850;
}

.lfy-categories-section {
  padding: 18px 0 12px;
}

.lfy-section-title h1 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.9px;
  font-weight: 950;
}

.lfy-section-title p {
  margin: 7px 0 0;
  color: var(--lfy-muted);
  font-size: 13px;
}

.lfy-category-grid {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 1px 6px;
  scrollbar-width: none;
}

.lfy-category-grid::-webkit-scrollbar {
  display: none;
}

.lfy-category-card {
  flex: 0 0 98px;
  min-height: 96px;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(15, 23, 42, .05);
}

.lfy-category-card.active {
  border-color: #ffb5bd;
  background: linear-gradient(180deg, #fff, #fff7f8);
}

.lfy-category-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  margin: 0 auto 8px;
  border-radius: 14px;
  background: var(--lfy-soft);
  font-size: 21px;
}

.lfy-category-card strong {
  display: block;
  color: #101828;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 950;
}

.lfy-category-card small {
  display: block;
  margin-top: 5px;
  color: var(--lfy-muted);
  font-size: 10px;
  line-height: 1.15;
}

.lfy-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 8px 0 14px;
}

.lfy-banner {
  position: relative;
  overflow: hidden;
  min-height: 102px;
  border-radius: 20px;
  padding: 18px;
  color: #fff;
  box-shadow: var(--lfy-shadow);
}

.lfy-banner::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -46px;
  width: 120px;
  height: 120px;
  border-radius: 38px;
  background: rgba(255,255,255,.22);
  transform: rotate(18deg);
}

.lfy-banner.red {
  background: linear-gradient(135deg, #f71932 0%, #ff4056 58%, #ff6b78 100%);
}

.lfy-banner.orange {
  background: linear-gradient(135deg, #ff8a00 0%, #ff941a 58%, #ffb45a 100%);
}

.lfy-banner h2 {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0;
  font-size: 18px;
  line-height: 1.08;
  letter-spacing: -.45px;
  font-weight: 950;
}

.lfy-banner p {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 7px 0 0;
  color: rgba(255,255,255,.94);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 650;
}

.lfy-filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 4px 0 14px;
}

.lfy-filter-row select {
  width: 100%;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  padding: 0 13px;
  outline: none;
  font-size: 12px;
  font-weight: 800;
}

.lfy-store-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}

.lfy-store-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.8px;
  font-weight: 950;
}

.lfy-store-heading p {
  margin: 6px 0 0;
  color: var(--lfy-muted);
  font-size: 12.5px;
}

.lfy-store-heading a {
  flex: 0 0 auto;
  color: var(--lfy-red);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  padding-top: 4px;
}

.lfy-store-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.lfy-store-card {
  position: relative;
  overflow: hidden;
  min-height: 228px;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.lfy-store-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.lfy-store-cover {
  position: relative;
  height: 98px;
  overflow: hidden;
  background: linear-gradient(135deg, #f71932 0%, #ff6a3d 100%);
}

.lfy-store-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lfy-store-cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,.92);
  font-size: 34px;
}

.lfy-status {
  position: absolute;
  top: 11px;
  right: 11px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #16a34a;
  font-size: 10.5px;
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(0,0,0,.10);
}

.lfy-status.closed {
  color: #6b7280;
}

.lfy-store-logo {
  position: absolute;
  left: 16px;
  top: 62px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 4px solid #fff;
  border-radius: 17px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 18px rgba(15, 23, 42, .12);
}

.lfy-store-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lfy-store-logo span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #fff5f6;
  font-size: 28px;
}

.lfy-store-body {
  position: relative;
  z-index: 2;
  padding: 42px 16px 15px;
}

.lfy-store-body h3 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -.35px;
  font-weight: 950;
}

.lfy-store-meta-main {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.lfy-store-meta-main span {
  color: var(--lfy-muted);
  font-size: 11.5px;
  font-weight: 750;
}

.lfy-store-meta-main span:not(:last-child)::after {
  content: "•";
  margin-left: 5px;
  color: #c0c4cc;
}

.lfy-store-body p {
  margin: 8px 0 0;
  color: var(--lfy-muted);
  font-size: 12.5px;
  line-height: 1.35;
  min-height: 17px;
}

.lfy-store-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.lfy-store-footer span,
.lfy-store-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #344054;
  font-size: 11.5px;
  font-weight: 900;
  text-decoration: none;
}

.lfy-store-footer a {
  position: relative;
  z-index: 3;
  color: #101828;
  background: #eef0f3;
}

.lfy-empty {
  grid-column: 1 / -1;
  padding: 28px 18px;
  border: 1px dashed #d8d8d8;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}

.lfy-empty h1,
.lfy-empty h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lfy-empty p {
  margin: 0;
  color: var(--lfy-muted);
  font-size: 13px;
}

@media (min-width: 700px) {
  #localfyCidadeVitrineApp,
  .lfy-delivery-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .lfy-filter-row {
    display: flex;
    justify-content: flex-end;
  }

  .lfy-filter-row select {
    width: auto;
    min-width: 190px;
  }

  .lfy-banner-grid {
    grid-template-columns: 1.1fr .9fr;
  }

  .lfy-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .lfy-store-card {
    min-height: 245px;
  }

  .lfy-store-cover {
    height: 112px;
  }

  .lfy-store-logo {
    top: 72px;
    width: 68px;
    height: 68px;
  }

  .lfy-store-body {
    padding-top: 48px;
  }
}

@media (min-width: 1024px) {
  #localfyCidadeVitrineApp,
  .lfy-delivery-page {
    padding-left: 0;
    padding-right: 0;
  }

  .lfy-topbar {
    grid-template-columns: 350px 1fr auto;
    gap: 18px;
    align-items: center;
    min-height: 82px;
    margin-left: calc((100vw - min(1180px, calc(100vw - 28px))) / -2);
    margin-right: calc((100vw - min(1180px, calc(100vw - 28px))) / -2);
    padding-left: calc((100vw - min(1180px, calc(100vw - 28px))) / 2);
    padding-right: calc((100vw - min(1180px, calc(100vw - 28px))) / 2);
  }

  .lfy-top-search {
    width: min(100%, 430px);
    justify-self: center;
  }

  .lfy-top-pills {
    justify-content: flex-end;
  }

  .lfy-categories-section {
    padding-top: 26px;
  }

  .lfy-section-title h1 {
    font-size: 34px;
  }

  .lfy-category-card {
    flex-basis: 118px;
    min-height: 112px;
  }

  .lfy-banner {
    min-height: 138px;
    border-radius: 24px;
    padding: 22px;
  }

  .lfy-banner h2 {
    font-size: 22px;
  }

  .lfy-banner p {
    font-size: 14px;
  }

  .lfy-store-heading h2 {
    font-size: 32px;
  }

  .lfy-store-grid {
    gap: 18px;
  }

  .lfy-store-card {
    min-height: 252px;
    border-radius: 20px;
  }

  .lfy-store-cover {
    height: 118px;
  }

  .lfy-store-logo {
    left: 20px;
    top: 74px;
    width: 74px;
    height: 74px;
    border-radius: 20px;
    border-width: 5px;
  }

  .lfy-store-body {
    padding: 50px 20px 18px;
  }

  .lfy-store-body h3 {
    font-size: 18px;
  }
}

/* PATCH 15T12B - fallback mais bonito para loja sem imagem */
.lfy-store-cover-fallback {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.34), transparent 28%),
    linear-gradient(135deg, #ea1d2c 0%, #ff6b35 100%);
  color: #fff;
  font-size: 42px;
}

.lfy-store-cover-fallback::after {
  content: "TÔPERTO";
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
}

.lfy-store-logo span {
  background: #fff1f2;
  color: #ea1d2c;
  font-size: 30px;
}

.lfy-store-card {
  max-width: 100%;
}

@media (max-width: 640px) {
  .lfy-banner-grid {
    display: none;
  }

  .lfy-categories-section {
    padding-top: 14px;
  }

  .lfy-section-title h1 {
    font-size: 23px;
  }

  .lfy-category-card {
    flex: 0 0 88px;
    min-height: 86px;
    padding: 10px 7px;
  }

  .lfy-category-icon {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .lfy-category-card small {
    display: none;
  }

  .lfy-store-card {
    min-height: 214px;
  }

  .lfy-store-cover {
    height: 88px;
  }

  .lfy-store-logo {
    top: 54px;
    width: 58px;
    height: 58px;
  }

  .lfy-store-body {
    padding-top: 38px;
  }
}



/* TÔPERTO 10A - atalhos mobile 5x2 estilo app de delivery */
.lfy-category-more {
  display: none;
}

@media (max-width: 640px) {
  .lfy-categories-section {
    padding: 12px 0 10px;
  }

  .lfy-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }

  .lfy-section-title h1 {
    font-size: 19px;
    letter-spacing: -.55px;
  }

  .lfy-section-title p {
    display: none;
  }

  .lfy-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px 7px;
    overflow: visible;
    padding: 8px 0 4px;
  }

  .lfy-category-grid:not(.is-expanded) .lfy-category-card:nth-of-type(n + 11) {
    display: none;
  }

  .lfy-category-card {
    width: 100%;
    min-width: 0;
    min-height: 74px;
    padding: 7px 3px 6px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
  }

  .lfy-category-card.active {
    background: #fff1f2;
    box-shadow: inset 0 0 0 1px #ffc3ca;
  }

  .lfy-category-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 6px;
    border-radius: 16px;
    background: #fff;
    font-size: 22px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
  }

  .lfy-category-card.active .lfy-category-icon {
    background: #fff;
  }

  .lfy-category-card strong {
    max-width: 100%;
    color: #111827;
    font-size: 10.5px;
    line-height: 1.05;
    letter-spacing: -.15px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .lfy-category-card small {
    display: none;
  }

  .lfy-category-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 34px;
    margin: 4px 0 0;
    border: 1px solid #ececec;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 900;
  }
}


/* TÔPERTO 17B - atalhos marketplace adicionais */
@media (max-width:640px){
  .lfy-category-grid{
    grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
    gap:8px !important;
  }

  .lfy-category-card{
    min-width:0 !important;
    padding:9px 4px !important;
  }

  .lfy-category-card strong{
    font-size:10.5px !important;
    line-height:1.05 !important;
  }

  .lfy-category-card small{
    display:none !important;
  }

  .lfy-category-icon{
    font-size:21px !important;
  }

  .lfy-category-card[data-cat="brinquedos-pet-shop"] strong{
    font-size:9.5px !important;
  }
}

/* TÔPERTO 17C - ordem comercial marketplace */
@media (max-width:640px){
  .lfy-category-grid{
    grid-template-columns:repeat(5, minmax(0, 1fr)) !important;
    gap:8px !important;
  }

  .lfy-category-card{
    min-width:0 !important;
    padding:9px 4px !important;
  }

  .lfy-category-card strong{
    font-size:10.5px !important;
    line-height:1.05 !important;
  }

  .lfy-category-card small{
    display:none !important;
  }

  .lfy-category-icon{
    font-size:21px !important;
  }

  .lfy-category-card[data-cat="brinquedos-pet-shop"] strong{
    font-size:9.5px !important;
  }
}