/* Product category & detail pages */

.product-page main,
.category-page main {
  display: block;
}

.product-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
  align-items: center;
  justify-content: center;
  width: min(1100px, calc(100% - 2.5rem));
  margin: 1.25rem auto 2rem;
  padding: 1rem 1.5rem 1.15rem;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(0, 105, 180, 0.35);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.product-nav a {
  color: var(--blue-light);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: 0.35rem 0.15rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.product-nav a:hover,
.product-nav a[aria-current="page"] {
  color: #ffffff;
  border-bottom-color: var(--blue);
}

.product-nav a:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .product-nav {
    width: min(1100px, calc(100% - 1.5rem));
    margin: 1rem auto 1.5rem;
    padding: 0.85rem 1rem 1rem;
    gap: 0.65rem 1.15rem;
    border-radius: 1.25rem;
  }
}

.category-hero,
.product-detail {
  background: #1a1a1a;
  color: #ffffff;
}

.category-intro {
  max-width: 720px;
  margin: 0.75rem auto 2rem;
  color: #cfcfcf;
  font-size: 1.05rem;
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.product-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 100%);
  border: 2px solid var(--blue-light);
  border-radius: 12px;
  padding: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-tile:hover {
  transform: translateY(-8px);
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(0, 105, 180, 0.35);
}

.product-tile:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 4px;
}

.product-tile img,
.product-tile video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid rgba(51, 153, 213, 0.45);
  display: block;
  margin-bottom: 0.85rem;
}

.product-tile video {
  pointer-events: none;
  background: #111;
}

.product-tile h4 {
  margin: 0 0 0.35rem;
  color: var(--blue-light);
  font-size: 1.15rem;
}

.product-tile p {
  margin: 0;
  color: #b8b8b8;
  font-size: 0.92rem;
  line-height: 1.45;
}

.product-tile-featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-a35);
}

.product-badge {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--gold-a15);
  color: #f0d78c;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.category-highlight {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--gold);
  background: var(--gold-a08);
  text-align: left;
}

.category-highlight h4 {
  margin: 0 0 0.4rem;
  color: #f0d78c;
}

.category-highlight p {
  margin: 0;
  color: #d7d7d7;
  line-height: 1.55;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
  text-align: left;
}

.product-detail-media img,
.product-detail-media video {
  width: 100%;
  border-radius: 14px;
  border: 4px solid var(--blue-light);
  box-shadow: 0 12px 28px rgba(0, 105, 180, 0.28);
  display: block;
  object-fit: cover;
}

.product-detail-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #ffffff;
  text-shadow: none;
}

.product-detail-copy .product-badge {
  margin-bottom: 0.85rem;
}

.product-detail-copy p {
  color: #d8d8d8;
  line-height: 1.65;
  font-size: 1.05rem;
}

.product-quote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--blue);
  background: rgba(0, 105, 180, 0.12);
  color: #eaf4fb;
  font-style: italic;
  font-size: 1.05rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.product-actions .btn {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
}

.btn-secondary {
  background: transparent;
  border-color: var(--blue-light);
  color: #ffffff;
  box-shadow: none;
}

.btn-secondary:hover {
  background: rgba(0, 105, 180, 0.2);
  transform: translateY(-2px);
}

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

  .product-detail-copy {
    text-align: center;
  }

  .product-quote {
    text-align: left;
  }

  .product-actions {
    justify-content: center;
  }

  .category-highlight {
    text-align: left;
  }
}

.products-status {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 1rem 1.25rem;
  color: #d7d7d7;
  text-align: center;
}
