:root[data-store-template="vitrine"] { scroll-behavior: auto; }
.store-shell.store-layout-vitrine {
  --mercado-gutter: clamp(1rem, 3.25vw, 4rem);
  width: 100%;
  max-width: 108rem;
  padding-inline: var(--mercado-gutter);
}
.mercado-header { width: 100%; }
.mercado-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 1.7fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.5rem);
  min-height: 5.25rem;
  padding-block: .65rem;
}
.mercado-masthead .store-brand { margin: 0; max-width: 100%; justify-self: start; }
.mercado-masthead .store-brand strong { font-size: clamp(1.5rem, 2.3vw, 2.5rem); line-height: 1; font-weight: 750; letter-spacing: -.065em; }
.mercado-masthead .store-brand img { width: 42px; height: 42px; }
.mercado-masthead .store-search { max-width: none; }
.mercado-masthead .store-search input {
  min-height: 44px;
  padding: .7rem 1.15rem;
  background: var(--store-soft);
  border: 1px solid var(--store-line);
  border-radius: .25rem;
}
.mercado-actions { display: flex; align-items: center; justify-content: flex-end; gap: clamp(.7rem, 1.5vw, 1.75rem); }
.mercado-actions > a { display: grid; place-items: center; min-height: 44px; font-size: .875rem; font-weight: 600; text-decoration: none; }
.mercado-actions > a:hover { text-decoration: underline; }
.mercado-actions .store-bag { min-height: 44px; padding: .42rem .7rem .42rem 1rem; border-radius: .25rem; border: 0; background: var(--store-ink); color: var(--store-bg); }
.mercado-actions .store-bag span { color: inherit; background: transparent; border: 1px solid currentColor; }
.mercado-departments {
  display: flex;
  gap: clamp(.75rem, 2.3vw, 2.5rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  border-top: 1px solid var(--store-line);
}
.mercado-departments button {
  flex: none;
  max-width: min(25rem, 85vw);
  min-height: 46px;
  padding: .45rem 0;
  border: 0;
  border-top: 3px solid transparent;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  background: transparent;
  font-size: .9rem;
}
.mercado-departments button[aria-pressed="true"] { border-color: var(--store-ink); font-weight: 700; }
.mercado-departments button:focus-visible { outline-offset: -4px; }
.mercado-campaign {
  display: grid;
  grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
  min-height: clamp(25rem, 34vw, 39rem);
  background: var(--store-accent);
  color: var(--store-accent-ink);
}
.mercado-campaign-copy {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 3.5rem);
  overflow-wrap: anywhere;
}
.mercado-tagline { margin: 0 0 clamp(1.15rem, 2vw, 2.25rem); font-size: .8rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.mercado-campaign h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.6rem, 4.8vw, 5.65rem);
  line-height: .98;
  letter-spacing: -.065em;
  font-weight: 800;
  text-wrap: balance;
}
.mercado-description {
  max-width: 32ch;
  margin-top: clamp(1rem, 1.8vw, 1.7rem);
  font-size: clamp(1rem, 1.12vw, 1.17rem);
  line-height: 1.48;
  white-space: pre-line;
}
.mercado-catalog-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: .75rem;
  text-decoration-thickness: 2px;
  font-weight: 700;
}
.mercado-catalog-link:focus-visible { outline-color: currentColor; }
.mercado-poster {
  display: grid;
  position: relative;
  align-items: end;
  justify-items: end;
  isolation: isolate;
  border: 0;
  padding: clamp(1rem, 2.3vw, 2.5rem);
  background: var(--store-soft);
  color: var(--store-ink);
  text-decoration: none;
  min-width: 0;
}
.mercado-poster:focus-visible { outline: 3px solid var(--store-ink); outline-offset: -6px; }
.mercado-cover { position: absolute; inset: 0; z-index: -1; }
.mercado-cover picture, .mercado-cover img { display: block; width: 100%; height: 100%; }
.mercado-cover img { object-fit: cover; object-position: 63% 50%; }
.mercado-product-poster .mercado-cover img { object-fit: contain; object-position: center; }
.mercado-poster-label, .mercado-product-tag {
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: .8rem 1.2rem;
  color: var(--store-ink);
  background: var(--store-bg);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}
.mercado-poster:hover .mercado-poster-label, .mercado-poster:hover .mercado-product-tag strong { text-decoration: underline; text-underline-offset: .24rem; }
.mercado-product-tag { display: grid; gap: .12rem; border: 0; }
.mercado-product-tag::before { content: ""; position: absolute; inset: 0; }
.mercado-product-tag:focus-visible { outline-color: var(--store-ink); }
.mercado-product-tag span { font-size: .85rem; font-weight: 500; }
.mercado-type-poster { grid-template-columns: 1fr; min-height: 18rem; }
.mercado-type-poster .mercado-campaign-copy { padding-inline: clamp(1.5rem, 5vw, 6.25rem); }
.mercado-type-poster h1 { max-width: 22ch; }

.mercado-catalog {
  padding-block: clamp(2.4rem, 4.6vw, 5rem);
  scroll-margin-block: 1rem;
}
.mercado-catalog-toolbar, .mercado-catalog-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .4rem .85rem;
  min-width: 0;
}
.mercado-catalog-toolbar {
  justify-content: space-between;
  align-items: center;
  padding-block: .95rem;
  border-top: 2px solid var(--store-ink);
  margin-bottom: .6rem;
}
.mercado-catalog-title h2 { font-size: clamp(2rem, 3.5vw, 3.8rem); letter-spacing: -.06em; line-height: 1.05; font-weight: 750; overflow-wrap: anywhere; }
.mercado-catalog-title > span { color: var(--store-muted); font-size: .875rem; }
.mercado-catalog-toolbar .store-sort { min-width: 9rem; }
.mercado-catalog-toolbar .store-sort select { min-height: 44px; padding: .6rem .65rem; border-radius: .25rem; }
.mercado-shelf + .mercado-shelf { margin-top: 2.5rem; }
.mercado-shelf h3 { margin: 0 0 .85rem; font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.mercado-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.7rem, 1.3vw, 1.5rem); }
.mercado-product-grid .store-product-image { aspect-ratio: 1.12; border-radius: 0; }
.mercado-product-grid .store-product-image img { background: var(--store-soft); }
.mercado-product-grid .store-product-image > img { transition: none; }
.mercado-product-grid .store-product-image:hover > img { transform: none; }
.mercado-product-grid .store-product-copy { padding: .85rem 0 1.1rem; }
.mercado-product-grid .store-product-copy > small { font-size: .8rem; }
.mercado-product-grid .store-product-name { font-weight: 650; line-height: 1.25; }
.mercado-product-grid .store-product-price { font-size: 1rem; }
.mercado-product-grid .store-card-action { margin-top: 0; padding: .6rem 0; background: transparent; border: 0; min-height: 44px; text-decoration: underline; text-underline-offset: .22em; align-self: start; }
.mercado-product-grid .store-empty { grid-column: 1 / -1; }
.store-layout-vitrine:has(#store-search:not(:placeholder-shown)) .mercado-campaign { display: none; }

@media (min-width: 681px) and (max-width: 920px) {
  .mercado-masthead { grid-template-columns: minmax(0, 1fr) minmax(12rem, 1.3fr) auto; }
  .mercado-masthead .store-brand strong { font-size: 1.45rem; }
  .mercado-campaign { min-height: 22rem; }
  .mercado-campaign h1 { font-size: clamp(2.15rem, 4.25vw, 2.7rem); }
  .mercado-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .mercado-masthead { grid-template-columns: minmax(0, 1fr) auto; gap: .5rem .75rem; padding-block: .65rem; }
  .mercado-masthead .store-brand img { width: 34px; height: 34px; }
  .mercado-masthead .store-search { grid-column: 1 / -1; grid-row: 2; }
  .mercado-actions { gap: .65rem; }
  .mercado-actions .store-bag { padding: .4rem .6rem; }
  .mercado-departments { gap: 1.3rem; }
  .mercado-campaign {
    display: flex;
    flex-direction: column;
    margin-inline: calc(-1 * var(--mercado-gutter));
    min-height: 0;
  }
  .mercado-poster { order: -1; min-height: clamp(16.5rem, 71vw, 25rem); }
  .mercado-cover img { object-position: 67% 48%; }
  .mercado-campaign-copy { padding: 1.45rem var(--mercado-gutter) 1.65rem; }
  .mercado-tagline { margin-bottom: .6rem; font-size: .75rem; }
  .mercado-campaign h1 { font-size: clamp(2.4rem, 9.7vw, 3.9rem); max-width: 19ch; }
  .mercado-description { margin-top: .7rem; max-width: 40ch; }
  .mercado-type-poster .mercado-campaign-copy { padding: 2.25rem var(--mercado-gutter); }
  .mercado-catalog-toolbar { gap: 1rem; }
  .mercado-catalog-title { gap: .3rem .6rem; }
  .mercado-catalog-toolbar .store-sort { min-width: 0; max-width: 100%; }
  .mercado-catalog-toolbar .store-sort select { font-size: .875rem; }
  .mercado-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
}
@media (max-width: 365px) {
  .mercado-actions { gap: .45rem; }
  .mercado-masthead .store-brand { gap: .35rem; }
  .mercado-masthead .store-brand strong { font-size: 1.2rem; }
  .mercado-actions .store-bag { gap: .4rem; }
}
