.header-mobile, .navbar-mobile, .footer-mobile {
  display: none !important;
}

@media screen and (max-width: 1023px) {
  .detalhe-acoes-pc-topo {
    display: none;
  }
}

body {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Top bar */
.detalhe-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  width: 100%;
  background: #FFB800;
  box-sizing: border-box;
}

a.detalhe-voltar-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

a.detalhe-voltar-btn svg {
  width: 22px;
  height: 22px;
  color: #000 !important;
  stroke: #000 !important;
  fill: none !important;
}

.detalhe-top-actions {
  display: flex;
  gap: 8px;
}

.detalhe-top-btn {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.detalhe-top-btn i {
  width: 20px;
  height: 20px;
  color: #333;
}

.detalhe-top-btn.fav-active svg {
  color: #e74c3c !important;
  stroke: #e74c3c !important;
  fill: #e74c3c !important;
}

.detalhe-top-btn.cesto-added i {
  color: #FFB800;
  stroke: #FFB800;
}

/* Modal Partilha */
.detalhe-share-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10002;
  align-items: flex-end;
  justify-content: center;
}

.detalhe-share-modal.open {
  display: flex;
}

.detalhe-share-modal-content {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 0;
}

.detalhe-share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.detalhe-share-modal-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
}

.detalhe-share-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.detalhe-share-modal-close i {
  width: 20px;
  height: 20px;
  color: #999;
}

.detalhe-share-modal-body {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.detalhe-share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 1rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.12s ease;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.detalhe-share-option:last-child {
  border-bottom: none;
}

.detalhe-share-option:active {
  background: #f9f9f9;
}

.detalhe-share-option i {
  width: 22px;
  height: 22px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detalhe-share-option span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

.detalhe-share-whatsapp i { color: #25D366; }
.detalhe-share-email i { color: #EA4335; }
.detalhe-share-sms i { color: #FFB800; }
.detalhe-share-copy i { color: #666; }

/* Imagem */
.detalhe-imagem {
  position: relative;
  width: 100%;
  max-height: 260px;
  overflow: hidden;
  background: #FFB800;
}

.detalhe-img-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 260px;
}

.detalhe-img-track::-webkit-scrollbar { display: none; }

.detalhe-img-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.detalhe-img-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.detalhe-img-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.detalhe-img-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.detalhe-img-dot.active {
  background: #fff;
  width: 16px;
}

.detalhe-voltar-btn svg,
.detalhe-voltar-btn svg path,
.detalhe-voltar-btn svg line,
.detalhe-voltar-btn svg polyline {
  stroke: #000 !important;
  color: #000 !important;
}

/* Conteúdo */
.detalhe-page {
  padding: 1rem;
  padding-bottom: calc(56px + 1rem);
}

.detalhe-layout-pc {
  display: none;
}

.detalhe-layout-pc {
  display: none;
}

.detalhe-info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.detalhe-nome {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

/* Preços */
.detalhe-precos-linha {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detalhe-preco-old {
  font-size: 0.85rem;
  color: #bbb;
  text-decoration: line-through;
}

.detalhe-preco-atual {
  font-size: 1.4rem;
  color: #FFB800;
  font-weight: 700;
}

.detalhe-desconto-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: #e74c3c;
  padding: 2px 6px;
  border-radius: 0;
}

/* Avaliações */
.detalhe-avaliacoes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detalhe-estrelas {
  display: flex;
  gap: 2px;
}

.detalhe-star {
  width: 14px;
  height: 14px;
  color: #ddd;
}

.detalhe-star.filled {
  color: #FFB800;
  fill: #FFB800;
  stroke: #FFB800;
}

.detalhe-rating-num {
  font-size: 0.82rem;
  font-weight: 700;
  color: #333;
}

.detalhe-avaliacoes-count {
  font-size: 0.75rem;
  color: #999;
}

/* Delivery */
.detalhe-delivery {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.detalhe-delivery-distancia,
.detalhe-delivery-tempo,
.detalhe-delivery-taxa {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #555;
}

.detalhe-delivery-distancia svg,
.detalhe-delivery-tempo svg,
.detalhe-delivery-taxa svg {
  width: 14px;
  height: 14px;
  color: #FFB800;
}

/* Descrição */
.detalhe-descricao-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  max-height: 8em;
  transition: max-height 0.3s ease;
}

.detalhe-descricao-wrap.expanded {
  max-height: 16em;
}

.detalhe-descricao {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.detalhe-vermais {
  background: none;
  border: none;
  color: #FFB800;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: inherit;
}

.detalhe-carac-contador {
  font-size: 0.7rem;
  color: #999;
  display: block;
  margin-top: 2px;
}

@media screen and (min-width: 1024px) {
  .detalhe-descricao-wrap {
    max-height: none;
    overflow: visible;
  }

  .detalhe-vermais {
    display: none;
  }
}

/* Ações — footer fixo mobile */
.detalhe-acoes {
  display: none;
}

@media screen and (max-width: 1023px) {
  .detalhe-acoes {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 10px 12px;
    box-sizing: border-box;
  }
}

.detalhe-qty {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.detalhe-qty-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #FFB800;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detalhe-qty-btn:active {
  background: #e6a600;
}

.detalhe-qty-val {
  width: 40px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
}

.detalhe-btn {
  flex: 1;
  padding: 0.85rem;
  border: none;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.detalhe-btn i {
  width: 16px;
  height: 16px;
}

.detalhe-btn-comprar {
  background: #000;
  color: #fff;
}

.detalhe-btn-comprar:active {
  background: #222;
}

@media screen and (min-width: 1024px) {
  .detalhe-top-bar {
    display: none;
  }

  .detalhe-imagem {
    display: none;
  }

  .detalhe-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .detalhe-layout-pc {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
  }

  .detalhe-img-pc-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
  }

  .detalhe-thumb {
    width: 64px;
    height: 64px;
    border: 2px solid transparent;
    background: #f5f5f5;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .detalhe-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .detalhe-thumb.active {
    border-color: #FFB800;
  }

  .detalhe-img-pc {
    flex: 0 0 420px;
    background: #FFB800;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .detalhe-img-pc img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .detalhe-acoes-pc {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .detalhe-acoes-pc-topo {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
  }

  .detalhe-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .detalhe-acoes {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-top: auto;
  }

  .detalhe-btn {
    border-radius: 0;
  }
}

/* Denunciar */
.detalhe-denunciar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #999;
  text-decoration: none;
  cursor: pointer;
  margin-top: 0.5rem;
  width: fit-content;
}

.detalhe-denunciar:hover {
  color: #e74c3c;
}

.detalhe-denunciar i {
  width: 14px;
  height: 14px;
}

/* Recomendados alinhados com header */
.detalhe-recomendados-pc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
