/* Design das categorias especiais no desktop: mesma linguagem visual da prévia mobile. */
@media (min-width: 769px) {
  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .products.products-grid-modern,
  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .products {
    align-items: stretch;
    gap: 18px 14px;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    padding: 0 !important;
    border: 1px solid #f0f0f2 !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: hidden !important;
    text-align: left !important;
    scroll-snap-align: none !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque:hover {
    transform: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08) !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-media {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 11px 11px 0 0 !important;
    background: #fff !important;
    overflow: hidden !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-img,
  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-media > img {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background: #fff !important;
    border-radius: 11px 11px 0 0 !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-name {
    flex: 0 0 auto !important;
    min-height: 40px !important;
    max-height: 40px !important;
    margin: 8px 10px 0 !important;
    padding: 0 !important;
    color: #374151 !important;
    font-size: 15px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 5px !important;
    overflow: hidden !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-name > span {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-foot {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex: 0 0 auto !important;
    min-height: 54px !important;
    width: auto !important;
    margin: 0 10px !important;
    padding: 0 !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-price-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    margin: 8px 0 2px !important;
    padding: 0 !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-price-main {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-price-main strong {
    color: #1a1a1a !important;
    font-size: 16px !important;
    line-height: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-price-old {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-price-old del {
    color: #9ca3af !important;
    font-size: 12px !important;
    font-weight: 400 !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-rating {
    margin: 2px 0 8px !important;
    padding: 0 !important;
    min-height: 18px !important;
  }

  html body.sd-extra-shop.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-add-cutout {
    z-index: 4 !important;
  }
}

/* Paleta e opções de cores da vitrine Beleza no PC. */
@media (min-width: 769px) {
  html body.sd-extra-catalog.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque {
    border: 0 !important; border-radius: 0 !important; background: transparent !important; overflow: visible !important; box-shadow: none !important;
  }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-media {
    aspect-ratio: 4 / 5 !important; border-radius: 14px !important; background: #f3f3f5 !important; overflow: hidden !important;
  }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-img,
  html body.sd-extra-catalog.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-media > img {
    object-fit: cover !important; object-position: center top !important; border-radius: 14px !important; background: #f3f3f5 !important;
  }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-destaque .pc-name {
    height: auto !important; max-height: 42px !important; margin: 10px 0 0 !important; color: #2b2b2b !important; font-size: 14px !important; line-height: 1.35 !important; font-weight: 400 !important;
  }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-destaque .pc-foot { margin-top: 5px !important; padding-right: 38px !important; }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-destaque .pc-price-main strong { color: #1f1f1f !important; font-size: 16px !important; font-weight: 400 !important; }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-destaque .pc-rating { display: flex !important; align-items: center !important; gap: 4px !important; margin-top: 5px !important; color: #666 !important; font-size: 12px !important; }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-destaque .pc-rating .pc-star { color: #000000 !important; }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-destaque .pc-encomenda-colors { display: flex !important; align-items: center !important; gap: 8px !important; margin: 6px 0 0 !important; color: #777 !important; font-size: 11px !important; }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-destaque .pc-encomenda-color-dots { display: flex !important; gap: 6px !important; }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-destaque .pc-encomenda-color-dot { display: block !important; width: 13px !important; height: 13px !important; border: 0 !important; border-radius: 50% !important; background: var(--pc-product-color) !important; box-shadow: 0 0 0 1px rgba(0,0,0,.08) !important; }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-destaque .pc-encomenda-color-dot.is-white { background: #f2f2f2 !important; box-shadow: inset 0 0 0 1px #d6d6d6 !important; }
}

/* Card de detalhes Beleza: seleção de cor e número/modelo. */
.sd-prod-color-options, .sd-prod-size-options { margin: 12px 0 0; }
.sd-prod-color-caption { display:block; margin-bottom:7px; color:#000000; font:600 13px/1.3 Inter, sans-serif; }
.sd-prod-color-list { display:flex; flex-wrap:wrap; gap:8px; }
.sd-prod-color-swatch { min-width:54px; min-height:38px; padding:6px 9px; border:1px solid #e3e3e3; border-radius:10px; background:#fff; color:#000000; cursor:pointer; }
.sd-prod-color-swatch.is-selected { border-color:#000000; box-shadow:0 0 0 2px rgba(0, 0, 0, .12); color:#000000; }
.sd-prod-color-thumb-wrap { display:flex; align-items:center; gap:6px; }
.sd-prod-color-thumb-fallback { width:16px; height:16px; border-radius:50%; background:var(--sd-prod-color,#000000); box-shadow:inset 0 0 0 1px rgba(0,0,0,.12); }
.sd-prod-color-name { font:500 12px/1.2 Inter, sans-serif; }
.sd-prod-size-options select { width:100%; min-height:42px; padding:0 12px; border:1px solid #dddddd; border-radius:10px; background:#fff; color:#000000; font:500 14px Inter, sans-serif; }

/* Vitrine compacta estilo moda/e-commerce. */
@media (min-width: 769px) {
  html body.sd-extra-catalog.is-shop-view #main .shop-view .menu-section .products.products-grid-modern {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px 14px !important;
  }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-media {
    aspect-ratio: 1 / 1.18 !important;
  }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .menu-section .product-card-modern.product-card-destaque .pc-name {
    font-size: 13px !important; line-height: 1.28 !important; max-height: 34px !important; margin-top: 7px !important;
  }
  html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-destaque .pc-encomenda-colors { margin-top: 4px !important; }
}

/* Sem borda, sombra ou elevação ao passar o mouse nos cards de Beleza. */
html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:hover,
html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:active,
html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:focus,
html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:focus-visible {
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
}

/* O texto/descrição também não recebe sombra ou destaque no hover. */
html body.sd-extra-shop.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:hover .pc-name,
html body.sd-extra-shop.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:hover .pc-name *,
html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:hover .pc-name,
html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:hover .pc-name * {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  background: transparent !important;
  border: 0 !important;
}

/* Acabamento final dos cards: borda fixa, sem sombra em nenhum estado. */
html body.sd-extra-shop.is-shop-view #main .shop-view .product-card-modern.product-card-destaque,
html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-modern.product-card-destaque,
html body.sd-extra-shop.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:hover,
html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:hover,
html body.sd-extra-shop.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:active,
html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-modern.product-card-destaque:active {
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* Borda permanente em todos os cards de produto da categoria especial. */
html body.sd-extra-shop.is-shop-view #main .shop-view .product-card-modern,
html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-modern,
html body.sd-extra-shop.is-shop-view #main .shop-view .product-card-modern:hover,
html body.sd-extra-catalog.is-shop-view #main .shop-view .product-card-modern:hover {
  border: 1px solid #d8dbe2 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Fallback sem depender do wrapper #main: borda fixa realmente visível. */
html body.sd-extra-shop.is-shop-view .shop-view .product-card-modern,
html body.sd-extra-catalog.is-shop-view .shop-view .product-card-modern,
html body.sd-extra-shop.is-shop-view .shop-view .product-card-modern:hover,
html body.sd-extra-catalog.is-shop-view .shop-view .product-card-modern:hover,
html body.sd-extra-shop.is-shop-view .shop-view .product-card-modern:active,
html body.sd-extra-catalog.is-shop-view .shop-view .product-card-modern:active {
  border: 1px solid #d8dbe2 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* Seletor final baseado no estado do body, compatível com a estrutura atual da vitrine. */
html body.sd-extra-shop.is-shop-view .product-card-modern,
html body.sd-extra-catalog.is-shop-view .product-card-modern,
html body.sd-extra-shop.is-shop-view .product-card-modern:hover,
html body.sd-extra-catalog.is-shop-view .product-card-modern:hover,
html body.sd-extra-shop.is-shop-view .product-card-modern:active,
html body.sd-extra-catalog.is-shop-view .product-card-modern:active {
  border: 1px solid #d8dbe2 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

/* Último override: vence o reset global do layout desktop. */
html body.sd-extra-shop.is-shop-view article.product-card-modern.product-card-destaque,
html body.sd-extra-catalog.is-shop-view article.product-card-modern.product-card-destaque,
html body.sd-extra-shop.is-shop-view article.product-card-modern.product-card-destaque:hover,
html body.sd-extra-catalog.is-shop-view article.product-modern.product-card-destaque:hover,
html body.sd-extra-catalog.is-shop-view article.product-card-modern.product-card-destaque:hover {
  border-width: 1px !important;
  border-style: solid !important;
  border-color: #d8dbe2 !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Cards/Photocards desktop: carrossel por swipe com contador e preço correspondente. */
.sd-prod-card:has(.sd-card-product-media) .sd-card-product-media {
  position: relative !important;
  touch-action: pan-y !important;
  cursor: grab !important;
}
.sd-prod-card:has(.sd-card-product-media) .sd-card-product-media:active { cursor: grabbing !important; }
.sd-prod-card:has(.sd-card-product-media) .sd-card-photo-controls {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 3 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 48px !important;
  height: 30px !important;
  padding: 0 11px !important;
  border: 1px solid rgba(255,255,255,.82) !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, .72) !important;
  color: #fff !important;
  font: 700 12px/1 system-ui, sans-serif !important;
  box-shadow: 0 5px 18px rgba(0,0,0,.18) !important;
}
.sd-prod-card:has(.sd-card-product-media) .sd-card-photo-counter { display: block !important; white-space: nowrap !important; }
.sd-prod-card.sd-cards-accessories-detail .sd-prod-desc[hidden] { display: none !important; }
.sd-prod-card.sd-cards-accessories-detail .sd-prod-desc { min-height: 1.45em; }
@media (min-width: 769px) {
  .sd-prod-card.sd-cards-accessories-detail .sd-prod-media { height: 360px !important; min-height: 360px !important; }
}

/* Setas desktop dos destaques Cards/Photocards; não aparecem no mobile. */
@media (min-width: 769px) {
  .product-card-destaque:has(.sd-card-highlight-arrow) .pc-media { position: relative !important; }
  .sd-card-highlight-arrow {
    position: absolute !important;
    top: 50% !important;
    z-index: 5 !important;
    width: 32px !important;
    height: 32px !important;
    margin: -16px 0 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.9) !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, .78) !important;
    color: #fff !important;
    font: 400 27px/25px Arial, sans-serif !important;
    text-align: center !important;
    cursor: pointer !important;
    opacity: .92 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.2) !important;
    transition: transform .15s ease, background .15s ease !important;
  }
  .sd-card-highlight-arrow:hover { background: #000000 !important; transform: scale(1.08) !important; }
  .sd-card-highlight-prev { left: 10px !important; }
  .sd-card-highlight-next { right: 10px !important; }
}


/* Setas dentro do detalhe desktop de Cards/Photocards. */
@media (min-width: 769px) {
  .sd-prod-card:has(.sd-card-product-media) .sd-card-photo-arrow {
    position: absolute !important;
    top: 50% !important;
    z-index: 4 !important;
    width: 38px !important;
    height: 38px !important;
    margin-top: -19px !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.95) !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, .78) !important;
    color: #fff !important;
    font: 400 31px/30px Arial, sans-serif !important;
    cursor: pointer !important;
    box-shadow: 0 5px 18px rgba(0,0,0,.22) !important;
  }
  .sd-prod-card:has(.sd-card-product-media) .sd-card-photo-arrow:hover { background: #000000 !important; transform: scale(1.08) !important; }
  .sd-prod-card:has(.sd-card-product-media) .sd-card-photo-prev { left: 12px !important; }
  .sd-prod-card:has(.sd-card-product-media) .sd-card-photo-next { right: 12px !important; }
}

/* Setas desktop minimalistas: sem borda e sem contorno. */
@media (min-width: 769px) {
  .sd-prod-card:has(.sd-card-product-media) .sd-card-photo-arrow,
  .product-card-destaque:has(.sd-card-highlight-arrow) .sd-card-highlight-arrow {
    width: 30px !important;
    height: 30px !important;
    margin-top: -15px !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, .42) !important;
    color: rgba(255,255,255,.94) !important;
    font: 400 24px/27px Arial, sans-serif !important;
    box-shadow: none !important;
    opacity: .82 !important;
  }
  .sd-prod-card:has(.sd-card-product-media) .sd-card-photo-arrow:hover,
  .product-card-destaque:has(.sd-card-highlight-arrow) .sd-card-highlight-arrow:hover {
    border: 0 !important;
    outline: 0 !important;
    background: rgba(0, 0, 0, .62) !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .sd-prod-card:has(.sd-card-product-media) .sd-card-photo-prev { left: 10px !important; }
  .sd-prod-card:has(.sd-card-product-media) .sd-card-photo-next { right: 10px !important; }
}

/* Alinhamento final: centro geométrico da área da imagem, não do modal. */
@media (min-width: 769px) {
  .sd-prod-card:has(.sd-card-product-media) .sd-card-photo-arrow,
  .product-card-destaque:has(.sd-card-highlight-arrow) .sd-card-highlight-arrow {
    top: 50% !important;
    margin-top: 0 !important;
    transform: translateY(-50%) !important;
  }
  .sd-prod-card:has(.sd-card-product-media) .sd-card-photo-arrow:hover,
  .product-card-destaque:has(.sd-card-highlight-arrow) .sd-card-highlight-arrow:hover {
    transform: none !important;
  }
}

/* Ajuste fino de alinhamento vertical das setas desktop. */
@media (min-width: 769px) {
  .sd-prod-card:has(.sd-card-product-media) .sd-card-photo-arrow,
  .product-card-destaque:has(.sd-card-highlight-arrow) .sd-card-highlight-arrow {
    top: calc(50% - 21px) !important;
    margin-top: 0 !important;
    transform: none !important;
  }
}
