/* SDFood — tela de categorias desktop */
@media (min-width: 769px) {
  html body.sd-desktop.is-category-view #main {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 58px) !important;
    padding: 0 !important;
    background: #fff !important;
  }

  html body.sd-desktop.is-category-view .sd-category-list-page {
    width: min(100% - 64px, 980px) !important;
    min-height: calc(100vh - 58px) !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    padding: 24px 0 72px !important;
    color: #000000 !important;
    font-family: "Inter", sans-serif !important;
  }

  html body.sd-desktop.is-category-view .sd-category-searchbar {
    display: none !important;
  }

  html body.sd-desktop.is-category-view .sd-category-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  html body.sd-desktop.is-category-view .sd-category-accordion {
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-accordion summary {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    color: #000000 !important;
    font: 700 24px/1.15 "Inter", sans-serif !important;
    cursor: pointer !important;
  }

  html body.sd-desktop.is-category-view .sd-category-accordion summary::-webkit-details-marker {
    display: none !important;
  }

  html body.sd-desktop.is-category-view .sd-category-accordion-chevron {
    width: 18px !important;
    height: 18px !important;
    stroke: #000000 !important;
    fill: none !important;
    stroke-width: 2 !important;
    transition: transform .2s ease !important;
  }

  html body.sd-desktop.is-category-view .sd-category-accordion[open] .sd-category-accordion-chevron {
    transform: rotate(180deg) !important;
  }

  html body.sd-desktop.is-category-view .sd-category-accordion-options {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    z-index: 5 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
    gap: 4px !important;
    width: 360px !important;
    padding: 10px !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14) !important;
  }

  html body.sd-desktop.is-category-view .sd-category-accordion-option {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 8px !important;
    border-radius: 8px !important;
    color: #000000 !important;
    font: 400 13px/1.2 "Inter", sans-serif !important;
    cursor: pointer !important;
  }

  html body.sd-desktop.is-category-view .sd-category-accordion-option:hover {
    background: #f5f5f5 !important;
    color: #000000 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-tabs {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    align-items: center !important;
    gap: 0 !important;
    width: 168px !important;
    min-width: 168px !important;
    height: 36px !important;
    padding: 3px !important;
    box-sizing: border-box !important;
    border: 1px solid #e4e4e4 !important;
    border-radius: 11px !important;
    background: #f4f4f4 !important;
    isolation: isolate !important;
    overflow: hidden !important;
  }

  html body.sd-desktop.is-category-view .sd-category-tabs .sd-ios-segmented-thumb {
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    width: calc(50% - 3px) !important;
    height: calc(100% - 6px) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .13), 0 0 0 1px rgba(0, 0, 0, .05) !important;
    pointer-events: none !important;
    transform: translateX(0) !important;
    transition: transform .22s cubic-bezier(.2, .75, .25, 1) !important;
  }

  html body.sd-desktop.is-category-view .sd-category-tabs.is-items .sd-ios-segmented-thumb {
    transform: translateX(100%) !important;
  }

  html body.sd-desktop.is-category-view .sd-category-tabs .sd-category-seg,
  html body.sd-desktop.is-category-view .sd-category-tabs button {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 28px !important;
    padding: 0 8px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #000000 !important;
    font: 500 12px/1 "Inter", sans-serif !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: color .18s ease, font-weight .18s ease !important;
  }

  html body.sd-desktop.is-category-view .sd-category-tabs .sd-category-seg[aria-selected="true"],
  html body.sd-desktop.is-category-view .sd-category-tabs button.is-active {
    color: #000000 !important;
    font-weight: 600 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-tabs .sd-category-seg:focus-visible {
    outline: 2px solid rgba(0, 0, 0, .35) !important;
    outline-offset: -2px !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr) 36px !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 120px !important;
    box-sizing: border-box !important;
    padding: 14px !important;
    border: 1px solid #e9e9e9 !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store:hover {
    border-color: #f3f4f6 !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .07) !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store.is-closed {
    opacity: .68 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-item {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 78px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 16px !important;
    min-height: 112px !important;
    box-sizing: border-box !important;
    padding: 16px 18px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .06) !important;
    cursor: pointer !important;
  }

  html body.sd-desktop.is-category-view .sd-category-item:hover {
    border-color: #f3f4f6 !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .1) !important;
  }

  html body.sd-desktop.is-category-view .sd-category-item-img {
    width: 78px !important;
    height: 78px !important;
    overflow: hidden !important;
    border: 1px solid #eaeaea !important;
    border-radius: 14px !important;
    background: #faf9fc !important;
  }

  html body.sd-desktop.is-category-view .sd-category-item-img img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  html body.sd-desktop.is-category-view .sd-category-item .sd-category-copy {
    min-width: 0 !important;
    padding: 0 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-item h3 {
    overflow: hidden !important;
    margin: 0 !important;
    color: #000000 !important;
    font: 700 16px/1.25 "Inter", sans-serif !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body.sd-desktop.is-category-view .sd-category-item p {
    overflow: hidden !important;
    margin: 5px 0 0 !important;
    color: #000000 !important;
    font: 400 13px/1.3 "Inter", sans-serif !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body.sd-desktop.is-category-view .sd-category-item .sd-category-item-desc {
    color: #000000 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-item strong {
    display: block !important;
    margin-top: 8px !important;
    color: #000000 !important;
    font: 700 15px/1.2 "Inter", sans-serif !important;
  }

  html body.sd-desktop.is-category-view .sd-category-item strong del {
    margin-right: 5px !important;
    color: #a6a6a6 !important;
    font-weight: 400 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-item .sd-category-offer-row {
    margin-top: 8px !important;
  }

  html body.sd-desktop.is-category-view .sd-category-logo {
    width: 88px !important;
    height: 88px !important;
    overflow: hidden !important;
    border: 1px solid #eaeaea !important;
    border-radius: 14px !important;
    background: #faf9fc !important;
  }

  html body.sd-desktop.is-category-view .sd-category-logo .sd-category-logo-img,
  html body.sd-desktop.is-category-view .sd-category-logo .store-cover {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px !important;
    object-fit: cover !important;
  }

  html body.sd-desktop.is-category-view .sd-category-copy {
    min-width: 0 !important;
    padding: 0 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-name-row h3 {
    overflow: hidden !important;
    margin: 0 !important;
    color: #000000 !important;
    font: 700 16px/1.25 "Inter", sans-serif !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  html body.sd-desktop.is-category-view .sd-category-meta,
  html body.sd-desktop.is-category-view .sd-category-delivery {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 7px 0 0 !important;
    color: #000000 !important;
    font: 400 14px/1.2 "Inter", sans-serif !important;
  }

  html body.sd-desktop.is-category-view .sd-category-star {
    color: #f5b301 !important;
    font-size: 15px !important;
  }

  html body.sd-desktop.is-category-view .sd-category-offer-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 9px 0 0 !important;
    padding: 0 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-offer-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: #000000 !important;
    font: 600 13px/1.2 "Inter", sans-serif !important;
  }

  html body.sd-desktop.is-category-view .sd-category-offer-badge.is-promo {
    align-self: flex-start !important;
    box-sizing: border-box !important;
    padding: 4px 8px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: #f9f9f9 !important;
    color: #000000 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  html body.sd-desktop.is-category-view .sd-promo-star {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    color: #000000 !important;
    font-size: 13px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
  }

  html body.sd-desktop.is-category-view .sd-category-offer-badge.is-promo .sd-promo-star {
    display: inline-flex !important;
    font-size: 13px !important;
    line-height: 1 !important;
    color: #f5a524 !important;
    background: none !important;
    filter: none !important;
  }

  html body.sd-desktop.is-category-view .sd-category-offer-badge img {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
  }

  /* Cupom na categoria replica a home desktop (verde + asset oficial). */
  html body.sd-desktop.is-category-view .sd-category-offer-badge.is-coupon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 5px !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 6px !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
    font: 600 14px/1.15 Inter, sans-serif !important;
    box-shadow: none !important;
  }
  html body.sd-desktop.is-category-view .sd-category-offer-badge.is-coupon img {
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    object-fit: contain !important;
  }

  html body.sd-desktop.is-category-view .sd-category-favorite {
    display: grid !important;
    place-items: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border: 1px solid #e4e4e4 !important;
    border-radius: 50% !important;
    background: #fff !important;
    cursor: pointer !important;
  }

  html body.sd-desktop.is-category-view .sd-category-favorite svg {
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: #000000 !important;
    stroke-width: 1.7 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-favorite.is-favorite svg {
    fill: #000000 !important;
    stroke: #000000 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-empty {
    margin: 54px auto !important;
    color: #000000 !important;
    font: 400 14px/1.4 "Inter", sans-serif !important;
    text-align: center !important;
  }

  /* Itens: cards desktop compactos, sem o efeito de lista do mobile. */
  html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) .sd-category-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    overflow: hidden !important;
    padding: 0 0 14px !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .06) !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) .sd-category-item-img {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 148px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #faf9fc !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) .sd-category-item-img img {
    border-radius: 0 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) .sd-category-item .sd-category-copy {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    padding: 12px 14px 0 !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) .sd-category-item h3 {
    font-size: 15px !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) .sd-category-item p {
    margin-top: 5px !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) .sd-category-item .sd-category-item-desc {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    white-space: normal !important;
  }

  html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) .sd-category-item strong {
    margin-top: auto !important;
    padding-top: 10px !important;
  }

  @media (max-width: 860px) {
    html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-store) {
      grid-template-columns: minmax(0, 1fr) !important;
    }
  }

  html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) .sd-category-item .sd-category-offer-row {
    padding: 0 !important;
  }

  @media (max-width: 1040px) {
    html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) {
      grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
  }

  @media (max-width: 860px) {
    html body.sd-desktop.is-category-view .sd-category-store-list:has(.sd-category-item) {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }
}
