/* Padrão de cards de loja para categorias especiais (Beleza etc.) — somente desktop.
   Escopo: body.sd-extra-shop (lojas especiais). Não afeta mobile nem lojas de comida. */
@media (min-width: 769px) {
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .products,
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .products.products-grid-modern {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 22px 18px !important;
    align-items: stretch !important;
    overflow: visible !important;
    padding: 4px 0 8px !important;
  }

  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 0 14px !important;
    border: 1px solid #eaeaea !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04) !important;
    overflow: hidden !important;
    text-align: left !important;
    cursor: pointer;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern:hover {
    transform: translateY(-3px) !important;
    border-color: #d9d9d9 !important;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .28) !important;
  }

  /* Foto */
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-media {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #f5f5f5 !important;
    overflow: hidden !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-media > img,
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    background: #f5f5f5 !important;
    transition: transform .5s ease !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern:hover .pc-img {
    transform: scale(1.05) !important;
  }

  /* Selo de oferta */
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern.has-promotion .pc-media::before {
    content: "Oferta";
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: #000000;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
  }

  /* Botão adicionar: sacola redonda sobre a foto */
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-add-cutout {
    position: absolute !important;
    right: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    left: auto !important;
    z-index: 3 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-add-cutout::before,
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-add-cutout::after { display: none !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-add-button {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #000000 !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    display: grid !important;
    place-items: center !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18) !important;
    transition: background .2s ease, color .2s ease, transform .2s ease !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-add-button:hover {
    background: #000000 !important;
    color: #fff !important;
    transform: scale(1.06) !important;
  }

  /* Textos alinhados na mesma margem */
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-name,
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-description,
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-encomenda-colors,
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-foot {
    margin-left: 14px !important;
    margin-right: 14px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
  }

  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-name {
    display: block !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin-top: 14px !important;
    margin-bottom: 0 !important;
    color: #000000 !important;
    font-size: 15px !important;
    line-height: 20px !important;
    font-weight: 600 !important;
    overflow: hidden !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-name .pc-entrega-icon { display: none !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-name > span {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin-top: 4px !important;
    margin-bottom: 0 !important;
    color: #000000 !important;
    font-size: 13px !important;
    line-height: 18px !important;
    overflow: hidden !important;
  }

  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-encomenda-colors {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 16px !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-encomenda-color-label { display: none !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-encomenda-color-dots {
    display: flex !important;
    gap: 5px !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-encomenda-color-dot {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 1px #fff, 0 0 0 2px #d9d9d9 !important;
  }

  /* Rodapé: preço grande + avaliação */
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-foot {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-top: auto !important;
    padding-top: 12px !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-price-wrap,
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-price-main {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-price-icon { display: none !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-price-main strong {
    color: #000000 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: -.01em !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern.has-promotion .pc-price-main strong { color: #c62828 !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-price-wrap s,
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-price-wrap del {
    color: #a6a6a6 !important;
    font-size: 12px !important;
  }

  /* Destaque visual desktop solicitado para títulos e promoções. */
  html body.sd-desktop.is-shop-view #main#main .shop-view .product-card-modern .pc-name,
  html body.sd-desktop.is-shop-view #main#main .shop-view .product-card-modern .pc-name > span {
    font-family: Inter, sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 22px !important;
  }
  html body.sd-desktop.is-shop-view #main#main .shop-view .product-card-modern.has-promotion .pc-price-main strong {
    color: #c62828 !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-rating {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #000000 !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-rating strong {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #000000 !important;
  }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-star { color: #f5b301 !important; font-size: 13px !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-star-empty { color: #cbcbcb !important; }
}

/* ===== v3 — Card padrão compacto: foto → cores → título → preço → avaliação.
   Descrição só aparece ao abrir o produto. Somente desktop, lojas especiais. ===== */
@media (min-width: 769px) {
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern { padding: 0 0 12px !important; gap: 0 !important; height: auto !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-media { order: 1 !important; aspect-ratio: 1 / 1 !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-encomenda-colors { order: 2 !important; min-height: 0 !important; margin-top: 10px !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-name { order: 3 !important; min-height: 0 !important; max-height: none !important; margin-top: 8px !important; font-size: 14px !important; line-height: 18px !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-encomenda-colors:empty { display: none !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-description, html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-badge { display: none !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-foot { order: 4 !important; flex-direction: column !important; align-items: flex-start !important; gap: 4px !important; margin-top: 6px !important; padding-top: 0 !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-price-wrap { flex-wrap: wrap !important; align-items: baseline !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-price-main strong { font-size: 16px !important; }
  html body.sd-extra-shop.is-shop-view #main#main .shop-view .menu-section .product-card-modern.product-card-modern.product-card-modern .pc-rating:empty { display: none !important; }
}

@media (min-width: 769px) {
  html body.is-shop-view #main#main#main .shop-view .shop-layout .menu-section article.product-card-modern,
  html body.is-shop-view #main#main#main .shop-view .shop-layout .menu-section article.product-card-modern:hover,
  html body.is-shop-view #main#main#main .shop-view .shop-layout .menu-section article.product-card-modern:active {
    border: 0 !important;
    box-shadow: none !important;
  }
}
