/* =========================================================
   PRODUTO.CSS — INFRONEX CATEGORIA LOJA
========================================================= */

.product-page {
  min-height: 100vh;
  padding-top: 190px;
  padding-bottom: 100px;
  background:
    radial-gradient(circle at top right, rgba(10,132,255,.18), transparent 35%),
    radial-gradient(circle at bottom left, rgba(0,255,156,.10), transparent 30%),
    linear-gradient(135deg,#020409 0%,#071424 50%,#020409 100%);
}

.product-wrapper {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.product-visual {
  position: relative;
  z-index: 1;
}

.product-main-image {
  width: 100%;
  min-height: 420px;
  max-height: 520px;
  border-radius: 30px;
  background:
    radial-gradient(circle at center, rgba(0,255,156,.16), transparent 55%),
    linear-gradient(145deg,#07111f,#03070d);
  border: 1px solid rgba(0,255,156,.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.product-image-fallback {
  width: 100%;
  min-height: 420px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,255,156,.18), transparent 38%),
    linear-gradient(135deg, rgba(0,255,156,.10), rgba(10,132,255,.12));
}

.product-image-fallback i {
  font-size: 90px;
  color: #00FF9C;
}

.product-info {
  position: relative;
  z-index: 2;
  padding: 8px 0;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9fb0bf;
  font-size: 13px;
  margin-bottom: 18px;
}

.product-breadcrumb a {
  color: #00FF9C;
  text-decoration: none;
  font-weight: 800;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(0,255,156,.10);
  border: 1px solid rgba(0,255,156,.18);
  color: #00FF9C;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 18px;
}

.product-info h1 {
  font-size: clamp(38px,5vw,64px);
  line-height: 1;
  letter-spacing: -2.5px;
  margin: 0 0 18px;
  color: #fff;
}

.product-description {
  color: #cfd7df;
  margin-bottom: 22px;
  max-width: 720px;
  line-height: 1.8;
  font-size: 16px;
}

.product-price {
  font-size: 28px;
  font-weight: 900;
  margin: 24px 0;
  color: #fff;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.product-list {
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
  padding: 0;
}

.product-list li {
  list-style: none;
  color: #d8d8d8;
  line-height: 1.5;
}

.product-list i {
  color: #00FF9C;
  margin-right: 8px;
}

.product-specs {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.product-spec {
  padding: 18px;
  border-radius: 20px;
  background: rgba(8,14,24,.82);
  border: 1px solid rgba(0,255,156,.12);
}

.product-spec span {
  display: block;
  color: #00FF9C;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-spec strong {
  display: block;
  color: #fff;
  font-size: 16px;
}

/* =========================================================
   VITRINE INTERNA POR CATEGORIA
========================================================= */

.category-store-section {
  grid-column: 1 / -1;
  margin-top: 78px;
  padding-top: 54px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.category-header {
  max-width: 920px;
  margin-bottom: 34px;
}

.category-header span {
  display: inline-flex;
  color: #00FF9C;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.category-header h2 {
  font-size: clamp(34px,4vw,52px);
  line-height: 1;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 12px;
}

.category-header p {
  color: #cfd7df;
  line-height: 1.7;
}

.category-group {
  margin-top: 40px;
}

.category-group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.category-group-title i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #00FF9C;
  background: rgba(0,255,156,.10);
  border: 1px solid rgba(0,255,156,.16);
}

.category-group-title h3 {
  color: #fff;
  font-size: 26px;
  letter-spacing: -1px;
}

.category-products-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}

.category-product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(0,255,156,.08), transparent 38%),
    linear-gradient(145deg, rgba(8,14,24,.94), rgba(4,8,14,.98));
  border: 1px solid rgba(0,255,156,.14);
  transition: .3s ease;
}

.category-product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,255,156,.42);
  box-shadow: 0 0 32px rgba(0,255,156,.10);
}

.category-product-image {
  position: relative;
  height: 150px;
  background:
    radial-gradient(circle at 30% 20%, rgba(0,255,156,.18), transparent 38%),
    linear-gradient(135deg, rgba(0,255,156,.10), rgba(10,132,255,.12));
  overflow: hidden;
}

.category-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-product-image i {
  display: none;
}

.category-product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.category-product-body small {
  color: #00FF9C;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.category-product-body h4 {
  color: #fff;
  font-size: 21px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.category-product-body p {
  color: #cfd7df;
  line-height: 1.55;
  font-size: 14px;
  margin-bottom: 18px;
}

.category-product-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

.category-product-price {
  color: #fff;
  font-weight: 900;
  font-size: 18px;
}

.category-product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.category-product-actions a {
  min-height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
}

.buy-link {
  color: #00110a;
  background: linear-gradient(135deg,#00FF9C,#0A84FF);
}

.info-link {
  color: #fff;
  border: 1px solid rgba(10,132,255,.50);
  background: rgba(10,132,255,.08);
}

/* Relacionados */

.related-section {
  grid-column: 1 / -1;
  margin-top: 72px;
  padding-top: 54px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.related-header {
  max-width: 820px;
  margin-bottom: 30px;
}

.related-header span {
  display: inline-flex;
  color: #00FF9C;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.related-header h2 {
  font-size: clamp(34px,4vw,52px);
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 12px;
  color: #fff;
}

.related-header p {
  color: #c5c5c5;
  max-width: 680px;
  line-height: 1.7;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}

.related-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg,rgba(8,14,24,.94),rgba(4,8,14,.98));
  border: 1px solid rgba(0,255,156,.15);
  text-decoration: none;
  transition: .3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,255,156,.38);
}

.related-image {
  width: 92px;
  height: 92px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(0,255,156,.08);
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-body h3 {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.related-body p {
  color: #c5c5c5;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 12px;
}

.related-open {
  color: #00FF9C;
  font-size: 13px;
  font-weight: 900;
}

.product-not-found {
  grid-column: 1 / -1;
  padding: 60px;
  border-radius: 30px;
  background: rgba(8,14,24,.92);
  border: 1px solid rgba(0,255,156,.16);
  text-align: center;
}

.product-not-found h1 {
  color: #fff;
  font-size: 42px;
  margin-bottom: 16px;
}

.product-not-found p {
  color: #cfd7df;
  margin-bottom: 26px;
}

@media(max-width:1100px) {
  .product-wrapper {
    grid-template-columns: 1fr;
  }

  .category-products-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media(max-width:700px) {
  .product-page {
    padding-top: 150px;
  }

  .product-main-image,
  .product-main-image img,
  .product-image-fallback {
    min-height: 300px;
  }

  .product-info h1 {
    font-size: 36px;
    letter-spacing: -1.5px;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn-primary,
  .product-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .product-specs {
    grid-template-columns: 1fr;
  }

  .category-product-actions {
    grid-template-columns: 1fr;
  }

  .related-card {
    grid-template-columns: 1fr;
  }

  .related-image {
    width: 100%;
    height: 160px;
  }
}.product-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-detail-box {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
  border-radius: 28px;
  padding: 24px;
  background: linear-gradient(145deg, rgba(8,14,24,.98), rgba(4,8,14,.98));
  border: 1px solid rgba(0,255,156,.22);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}

.product-detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
}

.product-detail-image {
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,255,156,.12), rgba(10,132,255,.12));
  display: grid;
  place-items: center;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-image i {
  font-size: 78px;
  color: #00ff9c;
}

.product-detail-content span {
  color: #00ff9c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-detail-content h2 {
  color: #fff;
  font-size: 42px;
  line-height: 1;
  margin: 12px 0 16px;
}

.product-detail-content p {
  color: #cfd7df;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-detail-content ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 24px;
}

.product-detail-content li {
  list-style: none;
  color: #fff;
}

.product-detail-content li i {
  color: #00ff9c;
  margin-right: 8px;
}

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

  .product-detail-image {
    min-height: 240px;
  }

  .product-detail-content h2 {
    font-size: 32px;
  }
}