/* =====================================================================
   Loja 24K no computador (a partir de 1024 px): faixa escura com selos,
   cabeçalho com busca larga, menu com "Todas as categorias" e a home na
   ordem categorias → campanhas → mais vendidos. O celular não muda.
   ===================================================================== */
.topbar__selos,
.search__btn,
.hbtn__sub,
.main-nav__todas {
  display: none;
}

@media (min-width: 1024px) {
  /* ---------- Faixa do topo ---------- */
  .topbar {
    background: #14110d !important;
    color: #e8dfcb !important;
    border: 0 !important;
  }

  .topbar .topbar__inner {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    gap: 24px;
    min-height: 34px;
    padding-block: 0 !important;
    font-size: 0.74rem !important;
  }

  .topbar .topbar__inner > span,
  .topbar .topbar__inner b {
    color: #e8dfcb !important;
  }

  .topbar .topbar__inner b {
    color: var(--gold, #e3bf4c) !important;
  }

  /* Avisos do painel: no computador fica só o primeiro, à esquerda */
  .topbar .topbar__inner > span:not(:first-child) {
    display: none !important;
  }

  .topbar__selos {
    display: flex;
    gap: 22px;
    margin-left: auto;
  }

  .topbar__selos span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    color: #e8dfcb;
  }

  .topbar__selos svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--gold, #e3bf4c);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* ---------- Cabeçalho ---------- */
  .head {
    background: #fffdf8 !important;
    border-bottom: 1px solid rgba(168, 132, 44, 0.18) !important;
    box-shadow: none !important;
  }

  .head .head__row {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    min-height: 84px;
    padding-block: 10px !important;
  }

  .head .head__menu-btn {
    display: none !important;
  }

  .head .brand__logo {
    max-height: 58px !important;
    width: auto !important;
  }

  .head .brand__name {
    font-size: 1.15rem !important;
    letter-spacing: 0.12em;
  }

  .head .head__search-row {
    width: 100%;
    max-width: 640px;
    justify-self: center;
  }

  .head .search {
    position: relative;
    display: flex !important;
    align-items: center;
    height: 46px;
    padding: 0 0 0 16px !important;
    overflow: hidden;
    border: 1.5px solid rgba(168, 132, 44, 0.45) !important;
    border-radius: 999px !important;
    background: #fff !important;
  }

  .head .search > svg {
    display: none;
  }

  .head .search input {
    flex: 1;
    height: 100%;
    padding: 0 12px 0 4px !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 0.92rem !important;
    box-shadow: none !important;
  }

  .search__btn {
    display: grid;
    flex: 0 0 56px;
    place-items: center;
    align-self: stretch;
    border: 0;
    background: linear-gradient(135deg, #b8902f, #8a6a1f);
    color: #fff;
    cursor: pointer;
  }

  .search__btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
  }

  .search__btn:hover {
    filter: brightness(1.08);
  }

  .head .head__actions {
    display: flex !important;
    align-items: center;
    gap: 26px;
  }

  .head .hbtn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 9px;
    color: var(--fg) !important;
  }

  .head .hbtn svg {
    width: 25px !important;
    height: 25px !important;
  }

  .head .hbtn__label {
    display: flex !important;
    flex-direction: column;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.15;
  }

  .hbtn--account .hbtn__sub {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
  }

  .head .hbtn .badge {
    background: var(--gold-deep, #8a6a1f) !important;
  }

  /* ---------- Menu ---------- */
  .head .main-nav {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 6px !important;
    min-height: 46px;
    padding: 0 !important;
    border-top: 1px solid rgba(168, 132, 44, 0.14);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .head .main-nav a {
    padding: 8px 12px !important;
    font-size: 0.86rem !important;
    font-weight: 600 !important;
    white-space: nowrap;
    color: var(--fg) !important;
  }

  .head .main-nav a:hover,
  .head .main-nav a.on {
    color: var(--gold-deep, #8a6a1f) !important;
  }

  .head .main-nav .main-nav__todos {
    display: none !important;
  }

  .head .main-nav .main-nav__todas {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    padding: 8px 16px 8px 0 !important;
    border-right: 1px solid rgba(168, 132, 44, 0.25);
    font-weight: 700 !important;
  }

  .main-nav__todas svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .head .main-nav .main-nav__ofertas {
    color: #b0412f !important;
    font-weight: 800 !important;
  }

  /* ---------- Home: ordem e espaços ---------- */
  .landing-home .h24 {
    display: flex;
    flex-direction: column;
  }

  .landing-home .h24 > [aria-labelledby="h24-cats-t"] { order: 1; }
  .landing-home .h24 > [aria-labelledby="h24-promos-t"] { order: 2; }
  .landing-home .h24 > [aria-labelledby="h24-best-t"] { order: 3; }
  .landing-home .h24 > [aria-labelledby="h24-new-t"] { order: 4; }
  .landing-home .h24 > [aria-labelledby="h24-off-t"] { order: 5; }
  .landing-home .h24 > .landing-section--care { order: 6; }
  .landing-home .h24 > #marcas-home { order: 7; }
  .landing-home .h24 > * { order: 8; }

  .landing-home .h24-sec {
    margin-top: 36px !important;
  }

  /* Categorias: bolinhas menores, numa faixa só, sem título */
  .landing-home [aria-labelledby="h24-cats-t"] {
    margin-top: 22px !important;
  }

  .landing-home [aria-labelledby="h24-cats-t"] .h24-head {
    display: none !important;
  }

  .landing-home .h24-circ {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .landing-home .h24-circ > li {
    flex: 1 0 92px;
    max-width: 120px;
  }

  .landing-home .h24-circ__item {
    gap: 8px !important;
  }

  .landing-home .h24-circ__bola {
    width: 76px !important;
    height: 76px !important;
  }

  .landing-home .h24-circ__bola svg {
    width: 32px !important;
    height: 32px !important;
  }

  .landing-home .h24-circ__nome {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
  }

  /* Campanhas: as duas lado a lado, logo depois das categorias */
  .landing-home [aria-labelledby="h24-promos-t"] .h24-head {
    display: none !important;
  }

  .landing-home .h24-promos {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px !important;
  }

  .landing-home .h24-promo.h24-promo--img {
    border-radius: 14px !important;
  }

  /* Cards de produto: até 6 por linha, compactos */
  .landing-home .h24-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  .landing-home .h24-grid > .h24-card {
    min-width: 0 !important;
    width: auto !important;
  }

  .landing-home .h24-card {
    border-radius: 12px !important;
  }

  .landing-home .h24-card__body {
    gap: 4px !important;
    padding: 10px 12px 12px !important;
  }

  .landing-home .h24-card__brand {
    font-size: 0.66rem !important;
  }

  .landing-home .h24-card__name {
    font-size: 0.86rem !important;
    line-height: 1.3 !important;
  }

  .landing-home .h24-card__price b {
    font-size: 1.05rem !important;
  }

  .landing-home .h24-card__btn {
    min-height: 36px !important;
    font-size: 0.82rem !important;
  }

  .landing-home .h24-head h2 {
    font-size: 1.55rem !important;
  }

  /* Destaque e marcas um pouco mais compactos */
  .landing-home .landing-section--care {
    margin-top: 36px !important;
  }

  .landing-home .h24-brands {
    gap: 18px !important;
  }
}

@media (min-width: 1440px) {
  .head .head__search-row {
    max-width: 720px;
  }
}

/* ---------- Catálogo no computador ---------- */
@media (min-width: 1024px) {
  body:has(.c24) .site-main {
    background: #faf7f1 !important;
  }

  .c24 {
    padding-top: 22px !important;
    padding-bottom: 48px;
  }

  .c24 .c24-topo {
    align-items: flex-end;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(168, 132, 44, 0.18);
  }

  .c24 .c24-titulo {
    font-size: 2.3rem !important;
  }

  .c24 .c24-ordem select {
    border-color: rgba(168, 132, 44, 0.35) !important;
  }

  .c24 .c24-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    margin-top: 22px;
  }

  /* Filtros num painel branco que acompanha a rolagem */
  .c24 .c24-filtros {
    position: sticky;
    top: 16px;
    padding: 18px 18px 8px !important;
    border: 1px solid rgba(168, 132, 44, 0.2) !important;
    border-radius: 16px !important;
    background: #fff !important;
  }

  .c24 .c24-grid.h24-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  /* Cards iguais aos da home */
  .c24 .h24-card {
    border-radius: 12px !important;
  }

  .c24 .h24-card__body {
    gap: 4px !important;
    padding: 10px 12px 12px !important;
  }

  .c24 .h24-card__name {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
  }

  .c24 .h24-card__price b {
    font-size: 1.08rem !important;
  }

  .c24 .h24-card__btn {
    min-height: 38px !important;
    font-size: 0.84rem !important;
  }
}

@media (min-width: 1280px) {
  .c24 .c24-grid.h24-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ---------- Página do produto no computador ---------- */
@media (min-width: 1024px) {
  body.page-pd .site-main {
    background: #faf7f1 !important;
  }

  body.page-pd .wrap.pd-page {
    width: 100% !important;
    max-width: min(100%, 1380px) !important;
    margin-inline: auto !important;
    padding-top: 20px !important;
    padding-bottom: 32px !important;
  }

  body.page-pd .site-main,
  body.page-pd main.site-main {
    padding-bottom: 0 !important;
  }

  body.page-pd .stickybuy {
    display: none !important;
  }

  /* Avaliações: cartão branco da mesma altura da descrição */
  body.page-pd .pd-reviews {
    padding: 22px 24px !important;
    background: #fff !important;
  }

  body.page-pd .pd-abaixo {
    align-items: stretch !important;
  }

  body.page-pd .crumbs {
    margin-bottom: 16px !important;
    font-size: 0.8rem !important;
  }

  /* Foto e informações lado a lado, num painel só */
  body.page-pd .pd.pd-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 40px !important;
    align-items: start !important;
    padding: 28px !important;
    border: 1px solid rgba(168, 132, 44, 0.18) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(42, 37, 32, 0.05) !important;
  }

  body.page-pd .pd-gallery {
    position: sticky;
    top: 16px;
    width: 100% !important;
    max-width: 580px !important;
    justify-self: stretch;
    margin: 0 !important;
  }

  body.page-pd .pd-gallery img,
  body.page-pd .pd-gallery .pfoto,
  body.page-pd .pd-gallery [class*="main"] {
    width: 100% !important;
    max-width: none !important;
  }

  body.page-pd .pd-info {
    display: flex !important;
    flex-direction: column;
    gap: 14px !important;
    padding: 4px 0 0 !important;
  }

  body.page-pd .pd-info__head {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.page-pd .pd__meta {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 !important;
  }

  body.page-pd .pd-info__rating {
    margin: 0 !important;
    font-size: 0.86rem;
  }

  body.page-pd .pd-info__title {
    margin: 4px 0 6px !important;
    font-size: 2.1rem !important;
    line-height: 1.15 !important;
  }

  body.page-pd .pd__cat {
    letter-spacing: 0.14em;
  }

  body.page-pd .pd__brand img {
    max-height: 30px !important;
    width: auto !important;
  }

  body.page-pd .pd__box {
    margin: 0 !important;
  }

  /* Caixa de compra */
  body.page-pd .pd__box {
    padding: 22px 24px !important;
    border: 1px solid rgba(168, 132, 44, 0.22) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #fffdf8, #fbf5e8) !important;
    box-shadow: none !important;
  }

  body.page-pd .pd__price-main {
    margin: 2px 0 !important;
  }

  body.page-pd .pd__price-main b {
    font-size: 2.3rem !important;
  }

  body.page-pd .pd__buy {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px !important;
    margin-top: 16px !important;
  }

  body.page-pd .pd__buy .pd__opcoes {
    grid-column: 1 / -1;
  }

  body.page-pd .pd__buy .qty {
    height: 52px;
    margin: 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
  }

  body.page-pd .pd__cta-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px !important;
    margin: 0 !important;
  }

  body.page-pd .pd__cta {
    min-height: 52px !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
  }

  /* "Adicionar ao carrinho": botão de contorno dourado, não um link solto */
  body.page-pd .pd__cta--cart {
    border: 1.5px solid var(--gold-deep, #8a6a1f) !important;
    background: #fff !important;
    color: var(--gold-deep, #8a6a1f) !important;
  }

  body.page-pd .pd__cta--cart:hover {
    background: #fbf3df !important;
  }

  body.page-pd .pd__wa {
    margin-top: 14px !important;
    justify-content: center;
  }

  /* Selos: uma linha de três */
  body.page-pd .pd__notes {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.page-pd .pd__notes > div {
    padding: 12px !important;
    border-radius: 12px !important;
    font-size: 0.78rem !important;
  }

  /* Descrição e avaliações lado a lado */
  body.page-pd .pd-abaixo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 22px;
    align-items: start;
    margin-top: 26px;
  }

  body.page-pd .pd-abaixo > * {
    margin: 0 !important;
    border-radius: 16px !important;
  }

  body.page-pd .pd-desc {
    padding: 22px 24px !important;
    background: #fff !important;
  }

  body.page-pd .pd-desc__txt {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Relacionados com os mesmos cards da home */
  body.page-pd .pd-related {
    margin-top: 36px !important;
  }

  body.page-pd .pd-related__grid.h24-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  body.page-pd .pd-related__grid .h24-card {
    min-width: 0 !important;
    width: auto !important;
    border-radius: 12px !important;
  }

  body.page-pd .pd-related__grid .h24-card__body {
    padding: 10px 12px 12px !important;
  }

  body.page-pd .pd-related__grid .h24-card__name {
    font-size: 0.86rem !important;
  }

  body.page-pd .pd-related__grid .h24-card__btn {
    min-height: 36px !important;
    font-size: 0.82rem !important;
  }
}

@media (min-width: 1024px) {
  /* Foto do produto na largura da coluna (havia um limite antigo de 500 px) */
  body.page-pd .pd-gallery__frame {
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
  }
}

/* ---------- Carrinho no computador ---------- */
@media (min-width: 1024px) {
  /* Número do carrinho preso ao ícone, sem cobrir o texto */
  .head .hbtn {
    position: relative;
  }

  .head .hbtn .badge {
    position: absolute !important;
    top: -6px !important;
    left: 16px !important;
    right: auto !important;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.66rem !important;
    line-height: 18px;
  }

  body.page-cart .site-main {
    background: #faf7f1 !important;
  }

  body.page-cart .wrap.cart-page {
    width: 100% !important;
    max-width: min(100%, 1380px) !important;
    margin-inline: auto !important;
    padding-top: 24px !important;
    padding-bottom: 40px !important;
  }

  body.page-cart .cart {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 28px !important;
    align-items: start !important;
  }

  body.page-cart .cart__list-head {
    display: flex !important;
    justify-content: space-between;
    padding: 0 20px 10px !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  body.page-cart .citems {
    display: grid;
    gap: 12px;
  }

  body.page-cart .citem {
    display: grid !important;
    grid-template-columns: 112px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: center;
    margin: 0 !important;
    padding: 16px 20px !important;
    border: 1px solid rgba(168, 132, 44, 0.18) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  body.page-cart .citem__img,
  body.page-cart .citem__img img {
    width: 112px !important;
    height: 112px !important;
    border-radius: 12px !important;
    object-fit: cover;
  }

  body.page-cart .citem__name {
    font-size: 1rem !important;
    font-weight: 700 !important;
  }

  body.page-cart .citem__total {
    font-size: 1.15rem !important;
  }

  body.page-cart .citem__ctl {
    margin-top: 10px;
  }

  /* Resumo fixo na lateral */
  body.page-cart .summary {
    position: sticky;
    top: 16px;
    padding: 22px !important;
    border: 1px solid rgba(168, 132, 44, 0.22) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(42, 37, 32, 0.05) !important;
  }

  body.page-cart .summary .btn--block {
    min-height: 50px;
    border-radius: 12px !important;
  }

  /* Sugestões com os mesmos cards da home */
  body.page-cart .cart-suggest {
    margin-top: 40px !important;
  }

  body.page-cart .cart-suggest__grid.h24-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 14px !important;
    overflow: visible !important;
  }

  body.page-cart .cart-suggest__grid .h24-card {
    min-width: 0 !important;
    width: auto !important;
    border-radius: 12px !important;
  }

  body.page-cart .cart-suggest__grid .h24-card__body {
    padding: 10px 12px 12px !important;
  }

  body.page-cart .cart-suggest__grid .h24-card__name {
    font-size: 0.86rem !important;
  }

  body.page-cart .cart-suggest__grid .h24-card__btn {
    min-height: 36px !important;
    font-size: 0.82rem !important;
  }
}
