/* Desktop home store cards — scoped, does not touch the rest of the home. */
@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores-head,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores {
    box-sizing: border-box;
    width: min(920px, calc(100% - 48px));
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores-head h2 {
    margin: 0;
    font-family: Inter, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #000000;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores-head span {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #000000;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 16px !important;
    row-gap: 12px !important;
    justify-content: stretch !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 84px !important;
    height: auto !important;
    padding: 12px 14px !important;
    border: 1px solid #eaeaea !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-cover,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-foto-moldura,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-foto-moldura > img {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    flex: 0 0 56px !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-copy > h3 {
    display: block !important;
    margin: 0 !important;
    font-family: Inter, sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #000000 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .store-meta,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .store-card-category,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .store-card-foot,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .sd-card-sep {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-family: Inter, sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #000000 !important;
    white-space: nowrap !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-open,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-desktop-store-info,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-card-tags,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-store-coupon-line,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-store-offer-badges {
    display: none !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-card-category::before,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-card-foot::before {
    content: none !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-rating-inline,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-rating-star {
    color: #f5a623 !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-card-foot .sd-store-time-icon {
    width: 12px !important;
    height: 12px !important;
    margin-right: 4px !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-copy > .store-badges {
    display: flex !important;
    margin-top: 2px !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-badge,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-badge.promotion,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-badge.coupon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    border: 1px solid #000000 !important;
    background: #000000 !important;
    color: #fff !important;
    font-family: Inter, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-badge-icon {
    width: 11px !important;
    height: 11px !important;
    filter: brightness(0) invert(1) !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-badge.promotion .store-badge-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 12px !important;
    height: 12px !important;
    flex: 0 0 12px !important;
    color: #f5b301 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    background: none !important;
    filter: none !important;
  }
}


/* Final desktop-only overrides. Mobile remains untouched. */
@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores-head,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores {
    width: min(860px, calc(100% - 48px)) !important;
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 20px !important;
    row-gap: 12px !important;
    justify-content: center !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    min-height: 100px !important;
    height: auto !important;
    padding: 12px 14px !important;
    border: 1px solid #eaeaea !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06) !important;
    transform: none !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 0 !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-copy > h3 {
    order: 1 !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line {
    order: 2 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    column-gap: 6px !important;
    row-gap: 2px !important;
    width: 100% !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .store-card-foot {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-top: 1px !important;
    justify-content: flex-start !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-sep {
    display: none !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-copy > .store-badges {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin: 3px 0 0 !important;
    min-height: 20px !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-copy > .store-badges .store-badge,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-copy > .store-badges .store-badge.promotion,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-copy > .store-badges .store-badge.coupon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    min-height: 20px !important;
    padding: 2px 8px !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 6px !important;
    background: #f2f2f2 !important;
    color: #000000 !important;
    font-family: Inter, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-copy > .store-badges .store-badge-icon,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-copy > .store-badges .store-badge-coupon-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
    color: #000000 !important;
    filter: none !important;
    object-fit: contain !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .store-meta,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .store-rating-inline,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .store-rating-count,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .store-card-category,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .store-card-foot,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .store-card-foot-time {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-filter-shell .sd-desktop-filter:hover:not(.is-active) {
    border-color: #eaeaea !important;
    background: #fff !important;
    color: #000000 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05) !important;
    transform: none !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card:hover,
  html body.sd-desktop.is-home-view #main .home-page > .stores:not(.sd-hidden-section):has(> .store-card) > .store-card:hover {
    border-color: #eaeaea !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06) !important;
    transform: none !important;
  }

}

@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-card-meta-line .sd-card-sep {
    display: none !important;
  }
}

@media (min-width: 769px) {
  /* The card has a forced display rule, so hidden must explicitly win. */
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card[hidden] {
    display: none !important;
  }

  /* Same neutral border language as the store action buttons. */
  html body.sd-desktop #main .home-page > .sd-desktop-filter-shell .sd-desktop-filter,
  html body.sd-desktop.is-shop-view .store-minimal-btn,
  html body.sd-desktop.is-shop-view .store-hero-actions-row button {
    border: 1px solid #e3e3e3 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
  }

  html body.sd-desktop #main .home-page > .sd-desktop-filter-shell .sd-desktop-filter.is-active {
    border-color: #f3f4f6 !important;
    background: #f2f2f2 !important;
    color: #000000 !important;
  }

  html body.sd-desktop.is-shop-view .store-badge-status.open,
  html body.sd-desktop.is-shop-view .store-badge-status.closed,
  html body.sd-desktop.is-shop-view .store-badge-status.paused {
    border: 1px solid #e3e3e3 !important;
    border-radius: 9px !important;
    background: #faf9fc !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop #main .home-page > .sd-desktop-filter-shell .sd-desktop-filter,
  html body.sd-desktop.is-shop-view .store-badge-status,
  html body.sd-desktop.is-shop-view .store-minimal-btn,
  html body.sd-desktop.is-shop-view .store-hero-actions-row button,
  html body.sd-desktop.is-shop-view .store-minimal-actions-bar button {
    border: 1px solid #e6e6e6 !important;
    border-radius: 12px !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop.is-shop-view .store-badge-status.open {
    border: 1px solid #cfe8d5 !important;
    border-radius: 12px !important;
    background: #eff8f0 !important;
    color: #247a3e !important;
    font-weight: 500 !important;
  }
  html body.sd-desktop.is-shop-view .store-badge-status.open svg {
    color: #247a3e !important;
    fill: currentColor !important;
  }
}

/* Store detail typography: categories and internal search match Share weight. */
@media (min-width: 769px) {
  html body.sd-desktop.is-shop-view .store-tabs-bar .store-tab-link,
  html body.sd-desktop.is-shop-view .store-tabs-bar .store-tab-link.active,
  html body.sd-desktop.is-shop-view .store-tabs-bar .store-tab-link.is-active,
  html body.sd-desktop.is-shop-view .sd-shop-search-field input,
  html body.sd-desktop.is-shop-view .sd-shop-search-field input::placeholder {
    font-family: Inter, sans-serif !important;
    font-weight: 400 !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop.is-shop-view .store-tabs-bar .store-tab-link,
  html body.sd-desktop.is-shop-view .store-tabs-bar .store-tab-link.active,
  html body.sd-desktop.is-shop-view .store-tabs-bar .store-tab-link.is-active,
  html body.sd-desktop.is-shop-view .sd-shop-search-field input,
  html body.sd-desktop.is-shop-view .sd-shop-search-field input::placeholder {
    font-weight: 500 !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop.is-shop-view #main .sd-shop-search-field input,
  html body.sd-desktop.is-shop-view #main .sd-shop-search-field input::placeholder {
    font-weight: 500 !important;
  }
}

/* Store reference typography: 14px regular, dark text like Share. */
@media (min-width: 769px) {
  html body.sd-desktop.is-shop-view .store-tabs-bar .store-tab-link,
  html body.sd-desktop.is-shop-view .store-tabs-bar .store-tab-link.active,
  html body.sd-desktop.is-shop-view .store-tabs-bar .store-tab-link.is-active {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #000 !important;
  }
  html body.sd-desktop.is-shop-view .store-tabs-bar .store-tab-link:hover {
    color: #000 !important;
  }
  html body.sd-desktop.is-shop-view #main .sd-shop-search-field input {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #000000 !important;
  }
  html body.sd-desktop.is-shop-view #main .sd-shop-search-field input::placeholder {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #000000 !important;
  }
}

/* Home desktop reference: logo matches the full height of the adjacent copy. */
@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .store-cover,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card .sd-foto-moldura {
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    flex: 0 0 92px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card > .sd-foto-moldura > img.store-cover,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card > img.store-cover {
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    flex: 0 0 92px !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores > .store-card > .sd-foto-moldura {
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    flex: 0 0 92px !important;
    overflow: hidden !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main#main .home-page > .sd-desktop-online-stores > .store-card > .sd-foto-moldura,
  html body.sd-desktop.is-home-view #main#main .home-page > .sd-desktop-online-stores > .store-card > .sd-foto-moldura > img.store-cover {
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    flex-basis: 92px !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main#main .home-page > .sd-desktop-online-stores > .store-card {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    align-items: center !important;
  }
}

/* Desktop login parity with the Share card: full white panel, standard border, no X. */
@media (min-width: 769px) {
  html body.sd-desktop #overlay.sd-auth-overlay {
    background: rgba(0, 0, 0, .18) !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay > .drawer.sd-drawer-lateral {
    box-sizing: border-box !important;
    width: min(420px, 100vw) !important;
    max-width: 420px !important;
    height: 100% !important;
    min-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid #e3e3e3 !important;
    border-right: 0 !important;
    border-radius: 18px 0 0 18px !important;
    box-shadow: -12px 0 34px rgba(0, 0, 0, .14) !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-page {
    width: 100% !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
    background: #fff !important;
  }
  html body.sd-desktop #overlay.sd-auth-overlay .sd-auth-close,
  html body.sd-desktop #overlay.sd-auth-overlay #closeDrawer {
    display: none !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop #overlay:has(#authForm).sd-auth-overlay {
    background: rgba(0, 0, 0, .18) !important;
  }
  html body.sd-desktop #overlay:has(#authForm).sd-auth-overlay > .drawer.sd-drawer-lateral {
    width: min(420px, 100vw) !important;
    max-width: 420px !important;
    height: 100% !important;
    min-height: 100vh !important;
    background: #fff !important;
    border: 1px solid #e3e3e3 !important;
    border-right: 0 !important;
    border-radius: 18px 0 0 18px !important;
    box-shadow: -12px 0 34px rgba(0, 0, 0, .14) !important;
  }
  html body.sd-desktop #overlay:has(#authForm).sd-auth-overlay .sd-auth-close,
  html body.sd-desktop #overlay:has(#authForm).sd-auth-overlay #closeDrawer {
    display: none !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop #overlay:has(#authForm).sd-auth-overlay > .drawer.sd-drawer-lateral {
    min-width: 0 !important;
    width: 420px !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop #overlay:has(#authForm).sd-auth-overlay .sd-signup-step:not([hidden]) {
    display: grid !important;
    gap: 15px !important;
  }
  html body.sd-desktop #overlay:has(#authForm).sd-auth-overlay .sd-signup-step[hidden] {
    display: none !important;
  }
  html body.sd-desktop #overlay:has(#authForm).sd-auth-overlay .sd-auth-google {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }
  html body.sd-desktop #overlay:has(#authForm).sd-auth-overlay .sd-google-icon {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }
}

@media (min-width: 769px) {
  /* Store rating in the header: yellow star and clickable target. */
  html body.sd-desktop.is-shop-view .store-hero-category-rating {
    color: #000000 !important;
    cursor: pointer !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }
  html body.sd-desktop.is-shop-view .store-hero-category-rating .store-rating-star,
  html body.sd-desktop.is-shop-view .store-hero-rating-badge .star-icon {
    color: #8a5700 !important;
  }
  html body.sd-desktop #sdRateSheet .rating-star,
  html body.sd-desktop #sdRateSheet .sd-rate-star {
    color: #8a5700 !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  /* Icons and decorative lines use no #000000 outline or focus frame. */
  html body.sd-desktop.is-shop-view .store-action-icon,
  html body.sd-desktop.is-shop-view .store-minimal-icon,
  html body.sd-desktop.is-shop-view .store-minimal-icon svg,
  html body.sd-desktop.is-shop-view .store-quick-btn .chevron {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  html body.sd-desktop.is-shop-view .store-quick-btn::before,
  html body.sd-desktop.is-shop-view .store-quick-btn::after,
  html body.sd-desktop.is-shop-view .store-minimal-btn::before,
  html body.sd-desktop.is-shop-view .store-minimal-btn::after {
    display: none !important;
    content: none !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  html body.sd-desktop .topbar-left .nav button,
  html body.sd-desktop .topbar-left .nav button:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }
}

@media (min-width: 769px) {
  /* Keep the header from shifting when entering or leaving a store. */
  html body.sd-desktop {
    scrollbar-gutter: stable !important;
  }
  html body.sd-desktop .topbar {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Product cards stay open without the dark backdrop. */
  html body.sd-desktop .sd-prod-backdrop {
    background: transparent !important;
    opacity: 1 !important;
  }

  /* Profile icons and menu separators: neutral, borderless treatment. */
  html body.sd-desktop #overlay .sd-profile-screen .sd-profile-icon,
  html body.sd-desktop #overlay .sd-profile-screen .sd-profile-icon svg,
  html body.sd-desktop #overlay .sd-profile-screen .sd-profile-icon svg *,
  html body.sd-desktop #overlay .sd-profile-screen .sd-profile-summary-icon,
  html body.sd-desktop #overlay .sd-profile-screen .sd-profile-summary-icon svg,
  html body.sd-desktop #overlay .sd-profile-screen .sd-profile-summary-icon svg * {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    stroke: #111827 !important;
  }
  html body.sd-desktop #overlay .sd-profile-screen .sd-profile-icon svg *,
  html body.sd-desktop #overlay .sd-profile-screen .sd-profile-summary-icon svg * {
    fill: none !important;
    color: #111827 !important;
  }
  html body.sd-desktop #overlay .sd-profile-screen .sd-profile-menu-item,
  html body.sd-desktop #overlay .sd-profile-screen .sd-profile-menu-item::before,
  html body.sd-desktop #overlay .sd-profile-screen .sd-profile-menu-item::after {
    border: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }
}

@media (min-width: 769px) {
  html {
    scrollbar-gutter: stable !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop #sdProductSheet .sd-prod-backdrop {
    background: transparent !important;
    opacity: 1 !important;
  }
}

@media (min-width: 769px) {
  /* Lateral sheets open without dimming the page behind them. */
  html body.sd-desktop .sd-rate-backdrop,
  html body.sd-desktop .sd-prod-backdrop,
  html body.sd-desktop .sd-delivery-detail-backdrop,
  html body.sd-desktop .sd-share-backdrop,
  html body.sd-desktop .sd-panel-backdrop,
  html body.sd-desktop #overlay.sd-auth-overlay,
  html body.sd-desktop #overlay.sd-profile-overlay,
  html body.sd-desktop #overlay.sd-delivery-overlay,
  html body.sd-desktop #overlay.sd-checkout-overlay,
  html body.sd-desktop #overlay.sd-desktop-panel:not(.hidden) {
    background: transparent !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop .sd-rate-sheet .sd-rate-backdrop,
  html body.sd-desktop .sd-rate-sheet.sd-store-info-sheet .sd-rate-backdrop,
  html body.sd-desktop #sdShareSheet .sd-rate-backdrop,
  html body.sd-desktop #sdRateSheet .sd-rate-backdrop {
    background: transparent !important;
    opacity: 1 !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop .sd-rate-sheet .sd-rate-backdrop,
  html body.sd-desktop .sd-rate-sheet.sd-store-info-sheet .sd-rate-backdrop,
  html body.sd-desktop #sdShareSheet .sd-rate-backdrop,
  html body.sd-desktop #sdRateSheet .sd-rate-backdrop {
    background: transparent !important;
    background-color: transparent !important;
  }
}

@media (min-width: 769px) {
  html body.sd-desktop #sdStoreInfoSheet.sd-rate-sheet .sd-rate-backdrop,
  html body.sd-desktop #sdStoreInfoSheet .sd-rate-backdrop {
    background: transparent !important;
    background-color: transparent !important;
    opacity: 1 !important;
  }
}


/* Desktop: seções separadas de lojas promocionais e demais lojas. */
@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores-head,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores {
    box-sizing: border-box !important;
    width: min(900px, calc(100% - 48px)) !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores-head {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores-head > span {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    text-align: right !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-promo-stores-head {
    margin-top: 18px !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-promo-stores {
    margin-bottom: 22px !important;
  }

  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores[hidden],
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores-head[hidden] {
    display: none !important;
  }
}


/* Uma única loja ocupa a linha toda, para o contador alinhar com o cartão. */
@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
  }
}


@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores.sd-desktop-all-stores {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)) !important;
  }
}


/* Seção com uma única loja: cartão e contador compactos e alinhados. */
@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores.sd-desktop-single-store,
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores-head.sd-desktop-single-store-head {
    width: min(440px, calc(100% - 48px)) !important;
    max-width: 440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores.sd-desktop-single-store {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}


/* Preserva sempre duas colunas; um único cartão ocupa a linha e fica centralizado, em tamanho normal. */
@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores {
    width: min(860px, calc(100% - 48px)) !important;
    max-width: 860px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores-head {
    width: min(860px, calc(100% - 48px)) !important;
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-online-stores.sd-desktop-single-store > .store-card {
    grid-column: 1 / -1 !important;
    width: min(440px, 100%) !important;
    justify-self: center !important;
  }
}


/* Loja fechada: vermelho, igual ao estado móvel; não herdar o roxo do tema. */
@media (min-width: 769px) {
  html body.sd-desktop.is-shop-view .store-badge-status.closed,
  html body.sd-desktop.is-shop-view .sd-head-ifood .sd-head-status.is-closed {
    border-color: #fecaca !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
  }

  html body.sd-desktop.is-shop-view .store-badge-status.closed svg,
  html body.sd-desktop.is-shop-view .store-badge-status.closed svg *,
  html body.sd-desktop.is-shop-view .sd-head-ifood .sd-head-status.is-closed svg,
  html body.sd-desktop.is-shop-view .sd-head-ifood .sd-head-status.is-closed svg * {
    color: #dc2626 !important;
    fill: #dc2626 !important;
    stroke: #dc2626 !important;
  }
}


/* Promoções e Lojas: mesma largura, alinhamento e dimensões de card no desktop. */
@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main#main .home-page > .sd-desktop-promo-stores-head,
  html body.sd-desktop.is-home-view #main#main .home-page > .sd-desktop-all-stores-head,
  html body.sd-desktop.is-home-view #main#main .home-page > .sd-desktop-promo-stores {
    box-sizing: border-box !important;
    width: min(900px, calc(100vw - 48px)) !important;
    max-width: 900px !important;
    margin-left: 0 !important;
    margin-right: -60px !important;
  }

  html body.sd-desktop.is-home-view #main#main .home-page > .sd-desktop-promo-stores {
    grid-template-columns: repeat(2, minmax(0, 420px)) !important;
    justify-content: center !important;
    column-gap: 20px !important;
    row-gap: 12px !important;
  }

  html body.sd-desktop.is-home-view #main#main .home-page > .sd-desktop-promo-stores > .store-card {
    box-sizing: border-box !important;
    row-gap: 0 !important;
    min-height: 88px !important;
    height: auto !important;
    max-height: none !important;
  }
}


/* Home desktop: o fundo decorativo de 100vw ultrapassa a largura útil quando há scrollbar vertical.
   Recorta apenas o excedente da página; os carrosséis internos continuam roláveis. */
@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main {
    overflow-x: clip !important;
  }
}


/* Loja fechada no desktop: identidade visual mais discreta; status e ações continuam legíveis. */
@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page .store-card.is-closed {
    opacity: .56 !important;
    filter: grayscale(.26) !important;
  }

  /* Mesmo formato, altura e tipografia do badge Aberta; somente a paleta muda. */
  html body.sd-desktop.is-shop-view .store-badge-status.closed {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 24px !important;
    box-sizing: content-box !important;
    padding: 3px 9px !important;
    border: 1px solid #fecaca !important;
    border-radius: 12px !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
    font: 500 14px/1.2 Inter, sans-serif !important;
    white-space: nowrap !important;
  }

  html body.sd-desktop.is-shop-view .store-badge-status.closed svg {
    flex: 0 0 15px !important;
    width: 15px !important;
    height: 15px !important;
    color: #dc2626 !important;
    fill: currentColor !important;
    stroke: currentColor !important;
  }
}


/* Home desktop: painel Extras aberto pelo atalho ao lado de Mais vendidos. */
@media (min-width: 769px) {
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-extras-panel[hidden] {
    display: none !important;
  }
  html body.sd-desktop.is-home-view #main .home-page > .sd-desktop-extras-panel:not([hidden]) {
    display: block !important;
    box-sizing: border-box !important;
    width: min(860px, calc(100% - 48px)) !important;
    max-width: 860px !important;
    margin: 16px auto 26px !important;
    padding: 18px !important;
    border: 1px solid #ebebeb !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .05) !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-head {
    margin: 0 0 14px !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-head h2 {
    margin: 0 !important;
    color: #000000 !important;
    font: 700 20px/1.25 Inter, sans-serif !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-head p {
    margin: 4px 0 0 !important;
    color: #000000 !important;
    font: 400 13px/1.4 Inter, sans-serif !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-card {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    min-height: 96px !important;
    padding: 12px !important;
    border: 1px solid #eaeaea !important;
    border-radius: 14px !important;
    background: #fff !important;
    color: #000000 !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-card:hover,
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-card:focus-visible {
    border-color: #f3f4f6 !important;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .08) !important;
    outline: none !important;
    transform: translateY(-1px) !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-art {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 72px !important;
    width: 72px !important;
    height: 60px !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    background: #f5f5f5 !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-art img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-copy {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-copy strong {
    color: #000000 !important;
    font: 600 14px/1.25 Inter, sans-serif !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-copy small {
    color: #000000 !important;
    font: 400 11px/1.3 Inter, sans-serif !important;
  }
  html body.sd-desktop.is-home-view #main .sd-desktop-extras-arrow {
    flex: 0 0 auto !important;
    color: #000000 !important;
    font: 400 22px/1 Inter, sans-serif !important;
  }
}
