/* Imagens reais nos cards de produto */
.produto-foto-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0D1117;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 46%, rgba(45, 212, 191, 0.14) 0%, transparent 55%),
    linear-gradient(160deg, #060e0f 0%, #0a1218 50%, #0e1614 100%);
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
}

.produto-foto-wrapper img {
  display: block;
  flex-shrink: 0;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  object-position: center;
}

.corner {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.corner.tl { top: 10px; left: 10px;  border-top:    1.5px solid rgba(45,212,191,0.5); border-left:   1.5px solid rgba(45,212,191,0.5); }
.corner.tr { top: 10px; right: 10px; border-top:    1.5px solid rgba(45,212,191,0.5); border-right:  1.5px solid rgba(45,212,191,0.5); }
.corner.bl { bottom: 10px; left: 10px;  border-bottom: 1.5px solid rgba(45,212,191,0.5); border-left:   1.5px solid rgba(45,212,191,0.5); }
.corner.br { bottom: 10px; right: 10px; border-bottom: 1.5px solid rgba(45,212,191,0.5); border-right:  1.5px solid rgba(45,212,191,0.5); }

.pcard .img.produto-foto-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcard .img.produto-foto-wrapper img {
  position: static;
  inset: auto;
  padding: 0;
  background: transparent;
  flex-shrink: 0;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  width: auto !important;
  height: auto !important;
}

.pcard .img:not(.produto-foto-wrapper) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #06120f;
  padding: 8px;
}

/* Destaques dinâmicos (admin) */
.site-highlights {
  padding-top: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
}

.site-highlight-carousel {
  position: relative;
}

.site-highlight-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 0;
}

.site-highlight-slide.is-active {
  display: grid;
}

.site-highlight-copy h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: var(--w-light);
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.site-highlight-copy p {
  color: var(--txt-mid);
  font-size: 16px;
  font-weight: var(--w-light);
  margin-top: 16px;
  line-height: 1.7;
  max-width: 480px;
}

.site-highlight-copy .btn {
  margin-top: 24px;
}

.site-highlight-visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  aspect-ratio: 16/10;
}

.site-highlight-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-highlight-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 24px;
}

.site-highlight-dots {
  display: flex;
  gap: 8px;
}

.site-highlight-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.site-highlight-dot.is-active {
  background: var(--teal);
  border-color: var(--teal);
}

/* Catálogo dinâmico — produtos.php */
.catalog-section {
  padding: var(--sec-pad) 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.catalog-filters {
  position: sticky;
  top: 96px;
  padding: 28px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line);
}

.catalog-filters h3 {
  font-size: 13px;
  font-weight: var(--w-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--txt-mid);
  margin: 0 0 14px;
}

.catalog-filters .filtro-section + .filtro-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.catalog-filters input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 14, 20, 0.6);
  border: 1px solid var(--line-strong);
  color: var(--txt-hi);
  font-family: inherit;
  font-size: 14px;
}

.catalog-filters input[type="text"]:focus {
  outline: none;
  border-color: var(--teal);
}

.catalog-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--txt-mid);
  font-weight: var(--w-light);
  cursor: pointer;
}

.catalog-check input {
  margin-top: 3px;
  accent-color: var(--teal);
}

.catalog-main-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.catalog-active-filters {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-active-filters.has-items {
  display: flex;
}

.catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 100px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.25);
  font-size: 12px;
  color: var(--txt-hi);
}

.catalog-badge button {
  color: var(--teal);
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}

.catalog-sort select {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--txt-hi);
  font-family: inherit;
  font-size: 14px;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.catalog-grid .catalog-pcard {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.catalog-empty,
.catalog-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--txt-mid);
  font-weight: var(--w-light);
}

.catalog-error {
  color: #f87171;
}

.catalog-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--txt-mid);
  font-size: 14px;
}

.catalog-filters-mobile {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1001;
  padding: 14px 18px;
  border-radius: 100px;
  background: var(--grad-sig);
  color: #06120f;
  font-weight: var(--w-display);
  font-size: 14px;
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.25);
}

.catalog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1000;
}

.catalog-overlay.is-open {
  display: block;
}

@media (max-width: 980px) {
  .site-highlight-slide {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 0;
  }

  .site-highlight-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filters {
    position: fixed;
    left: -100%;
    top: 80px;
    bottom: 0;
    width: min(300px, 88vw);
    z-index: 1002;
    overflow-y: auto;
    transition: left 0.3s var(--ease);
    border-radius: 0 20px 20px 0;
  }

  .catalog-filters.is-open {
    left: 0;
  }

  .catalog-filters-mobile {
    display: inline-flex;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) and (min-width: 981px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Página de produto */
.product-detail {
  padding: 0 0 100px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: start;
}

.product-detail-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.product-detail-frame.produto-foto-wrapper {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0D1117;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 50% 46%, rgba(45, 212, 191, 0.14) 0%, transparent 55%),
    linear-gradient(160deg, #060e0f 0%, #0a1218 50%, #0e1614 100%);
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
}

.product-detail-frame.produto-foto-wrapper img {
  flex-shrink: 0;
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.product-detail-frame:not(.produto-foto-wrapper) img {
  display: block;
  width: 100%;
  height: auto;
}

.product-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--txt-mid);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.25s;
}

.product-back:hover {
  color: var(--teal);
}

.product-back .ind {
  transform: rotate(180deg);
}

.product-fabricante {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.product-fabricante img {
  max-height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.product-fabricante span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--txt-low);
}

.product-detail-desc {
  color: var(--txt-mid);
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--w-light);
  line-height: 1.75;
  background: transparent;
}

/* Sobrescreve tipografia legada (Menlo, Poppins, inline do admin) */
.product-detail-desc,
.product-detail-desc div,
.product-detail-desc p,
.product-detail-desc li,
.product-detail-desc span,
.product-detail-desc td,
.product-detail-desc th {
  font-family: var(--font) !important;
  white-space: normal !important;
  background: transparent !important;
  border-color: var(--line-strong) !important;
}

.product-detail-desc div {
  padding: 0 !important;
  margin: 0 0 0.65em !important;
  border: none !important;
  border-radius: 0 !important;
  color: inherit !important;
}

.product-detail-desc strong,
.product-detail-desc b {
  color: var(--txt-hi);
  font-weight: var(--w-display);
}

.product-detail-desc h1,
.product-detail-desc h2,
.product-detail-desc h3,
.product-detail-desc h4 {
  color: var(--txt-hi);
  font-family: var(--font) !important;
  font-weight: var(--w-display);
  margin: 1.4em 0 0.6em;
  letter-spacing: -0.02em;
}

.product-detail-desc h1 { font-size: clamp(24px, 2.4vw, 32px); }
.product-detail-desc h2 { font-size: clamp(20px, 2vw, 26px); }
.product-detail-desc h3 { font-size: clamp(18px, 1.6vw, 22px); }

.product-detail-desc p {
  margin-bottom: 1em;
}

.product-detail-desc ul,
.product-detail-desc ol {
  margin: 1em 0;
  padding-left: 1.4em;
}

.product-detail-desc li {
  margin-bottom: 0.45em;
}

.product-detail-desc a {
  color: var(--teal);
  text-decoration: none;
}

.product-detail-desc a:hover {
  text-decoration: underline;
}

.product-detail-desc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 14px;
}

.product-detail-desc table th,
.product-detail-desc table td {
  border: 1px solid var(--line-strong);
  padding: 10px 12px;
  text-align: left;
}

.product-detail-desc table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--txt-hi);
}

.product-detail-desc img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1em 0;
}

.product-detail-desc blockquote {
  border-left: 3px solid var(--teal);
  margin: 1.2em 0;
  padding: 0.6em 1em;
  background: rgba(255, 255, 255, 0.03);
  color: var(--txt-mid);
}

.product-detail-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 32px 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #000;
}

.product-detail-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-detail-cta {
  margin-top: 36px;
}

.product-detail-cta .btn-primary {
  display: inline-flex;
}

@media (max-width: 980px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-detail {
    padding-bottom: 72px;
  }
}
