#plataformas { scroll-margin-top: 6rem; }

.catalog-tab { text-transform: uppercase; }

.contact-line .whatsapp-contact {
  display: flex;
  min-height: 3.15rem;
  margin-top: .55rem;
  border-color: #116343;
  background: #126b48;
  color: #fff;
  font-size: 1rem;
}

.contact-line .whatsapp-contact:hover {
  background: #0c5236;
  color: #fff;
}

.delivery-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin: 1.55rem 0 0;
  padding: 0;
  list-style: none;
}

.platform {
  display: grid;
  grid-template-rows: 5.15rem minmax(2.1rem, auto);
  height: 100%;
  overflow: hidden;
  border: 1px solid rgb(42 22 15 / .15);
  border-radius: .95rem;
  color: #202020;
  text-align: center;
  text-decoration: none;
}

.platform-mark {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.platform-mark img {
  flex: none;
  width: 4.65rem;
  height: auto;
  border-radius: .55rem;
}

.platform-label {
  display: grid;
  place-items: center;
  padding: .35rem .25rem;
  border-top: 1px solid rgb(42 22 15 / .14);
  font-size: .875rem;
  font-weight: 750;
  line-height: 1.2;
}

.platform-ifood { background: #d72928; color: #fff; }
.platform-ifood .platform-mark img { width: 16.5rem; max-width: none; }
.platform-ifood .platform-label { background: #b51c21; }
.platform-99food { background: #ffdd00; }
.platform-keeta { background: #ffe51f; }
.platform-keeta .platform-label { background: #11cb99; }
.platform:hover .platform-label, .platform:focus-visible .platform-label {
  text-decoration: underline;
  text-underline-offset: .17em;
}

.catalog-card-copy {
  display: grid;
  min-width: 0;
  gap: .4rem;
}

.catalog-card-with-photo {
  grid-template-columns: clamp(3.5rem, 11vw, 4.5rem) minmax(0, 1fr);
  align-items: center;
  gap: .8rem;
}

.catalog-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #f0ebe5;
  cursor: zoom-in;
}

.catalog-thumbnail::after {
  content: "+";
  position: absolute;
  right: .2rem;
  bottom: .2rem;
  display: grid;
  width: 1.15rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 700 .95rem/1 var(--display);
}

.catalog-product-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-photo-dialog {
  width: min(36rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
}

.catalog-photo-dialog::backdrop { background: rgb(29 19 12 / .72); }

.catalog-photo-panel { padding: clamp(.8rem, 3vw, 1.25rem); }

.catalog-photo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .75rem;
}

.catalog-photo-header h2 { margin: 0; font: 800 clamp(1rem, 4vw, 1.35rem)/1.15 var(--display); }
.catalog-photo-header .button { padding: .45rem .7rem; }

#catalog-photo-large {
  display: block;
  width: 100%;
  max-height: min(65dvh, 30rem);
  object-fit: contain;
  border-radius: .65rem;
  background: #f0ebe5;
}

.catalog-category-photo {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 2;
  max-height: 17rem;
  margin-top: .85rem;
  border-radius: .65rem;
  object-fit: cover;
}

@media (max-width: 23rem) {
  .delivery-platforms { grid-template-columns: 1fr; gap: .4rem; }
  .platform { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 4.25rem; }
  .platform-mark img { width: 3.9rem; }
  .platform-ifood .platform-mark img { width: 14rem; }
  .platform-label { border-top: 0; border-inline-start: 1px solid rgb(42 22 15 / .14); }
}
