
.product-cables {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.product-cables .product-cable-svg {
  position: absolute;
  overflow: visible;
}

.product-cables .cable-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-cables .cable-bg {
  stroke: rgba(0, 212, 255, 0.1);
  stroke-width: 2px;
}

.product-cables .cable-flow {
  stroke: var(--accent);
  stroke-width: 2.5px;
  stroke-dasharray: 10 90;
  stroke-dashoffset: 100;
  animation: productCableFlow 2.5s linear infinite;
  filter: drop-shadow(0 0 8px var(--glow-soft));
}

.product-cable-1 { width: 45%; height: 100px; top: 18%; left: -2%; transform: rotate(-2deg); }
.product-cable-2 { width: 42%; height: 105px; bottom: 25%; right: -2%; transform: rotate(3deg); }
.product-cable-3 { width: 70px; height: 300px; top: 35%; right: 8%; transform: rotate(1deg); }

.product-cable-1 .cable-flow { animation-delay: 0s; }
.product-cable-2 .cable-flow { animation-delay: 0.4s; }
.product-cable-3 .cable-flow { animation-delay: 0.2s; }

@keyframes productCableFlow {
  to { stroke-dashoffset: 0; }
}

.product-main {
  position: relative;
  z-index: 1;
  padding-top: 100px;
}

.product-hero {
  padding: 60px 0 80px;
}

.product-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.product-breadcrumb.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.product-breadcrumb a:hover { color: var(--accent); }
.product-breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
.product-breadcrumb .current { color: var(--accent); }

.product-hero-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.product-hero-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-hero-title .accent { color: var(--accent); }

.product-hero-title .product-detail-title-sep {
  font-weight: 600;
  color: var(--text-dim);
  margin-right: 0.35em;
}

.product-hero-title .product-detail-title-name {
  color: var(--accent);
  margin-left: 0;
}

.product-hero-desc {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 700px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s 0.1s var(--ease-out), transform 0.7s 0.1s var(--ease-out);
}

.product-hero-desc.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Listing / category page ----- */
.product-list-section {
  padding: 24px 0 90px;
}

.product-list-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
}

.product-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.sidebar-title {
  font-family: var(--font-head);
  font-size: 1rem;
  margin-bottom: 12px;
}

.category-list {
  list-style: none;
  margin-bottom: 20px;
}

.category-list li a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.category-list li a:hover,
.category-list li a.active {
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
}

.sidebar-stat {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.product-thumb {
  aspect-ratio: 16/9;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: 18px;
}

.product-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--accent);
  margin-bottom: 10px;
}

.product-card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.product-card-desc {
  color: var(--text-dim);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.product-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.product-card-link:hover { text-decoration: underline; }

.product-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.product-pagination a,
.product-pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.product-pagination a:hover,
.product-pagination .active {
  color: var(--accent);
  border-color: rgba(0, 212, 255, 0.35);
  background: rgba(0, 212, 255, 0.08);
}

/* ----- Detail page (demo) ----- */
.product-media { padding: 40px 0 80px; }
.product-media-hero { margin-bottom: 32px; opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.product-media-hero.visible { opacity: 1; transform: translateY(0); }

/* ----- Product media (carousel) ----- */
.product-detail-media { display: block; }
.product-main-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.main-media-item { display: none; }
.main-media-item.is-active { display: block; }

.main-media-item img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}

.product-main-video {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #000;
  display: block;
}

.product-main-iframe {
  width: 100%;
  height: 520px;
  display: block;
}

.product-main-iframe iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.product-thumb-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.thumb-carousel-arrow {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.thumb-carousel-arrow:hover {
  color: var(--accent);
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-1px);
}

.thumb-carousel-track {
  flex: 1;
  overflow-x: auto;
  display: flex;
  gap: 12px;
  padding: 6px 2px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.thumb-carousel-track::-webkit-scrollbar {
  display: none;
}

.media-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb.is-active {
  border-color: rgba(0, 212, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.14);
  transform: translateY(-2px);
}

.media-thumb-video { position: relative; }

.thumb-video-preview {
  position: relative;
  width: 100%;
  height: 100%;
}

.thumb-video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  padding: 8px 10px;
}

.media-placeholder { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); }
.media-main img, .media-main video { width: 100%; height: auto; display: block; }
.media-main video { max-height: 60vh; object-fit: cover; }

.product-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; opacity: 0; transform: translateY(30px); transition: opacity 0.7s 0.15s var(--ease-out), transform 0.7s 0.15s var(--ease-out); }
.product-gallery.visible { opacity: 1; transform: translateY(0); }

.gallery-item { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); aspect-ratio: 4/3; transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s; }
.gallery-item:hover { border-color: rgba(0, 212, 255, 0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; display: block; }

.media-video { position: relative; }
.video-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 12px; background: rgba(0, 0, 0, 0.7); font-size: 0.8rem; color: var(--text-dim); }

.product-detail { padding: 60px 0 100px; background: var(--bg-card); }
.product-detail-grid { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: start; }
.product-detail-nav { position: sticky; top: 120px; opacity: 0; transform: translateX(-20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.product-detail-nav.visible { opacity: 1; transform: translateX(0); }

.detail-nav-inner { display: flex; flex-direction: column; gap: 4px; }
.detail-nav-link { display: block; padding: 12px 16px; color: var(--text-dim); text-decoration: none; font-size: 0.95rem; border-radius: 10px; border-left: 3px solid transparent; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.detail-nav-link:hover { color: var(--text); background: rgba(0, 212, 255, 0.06); }
.detail-nav-link.active { color: var(--accent); border-left-color: var(--accent); background: rgba(0, 212, 255, 0.08); }

.detail-block { scroll-margin-top: 100px; padding-bottom: 56px; opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.detail-block.visible { opacity: 1; transform: translateY(0); }
.detail-block-title { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.detail-block-body { color: var(--text-dim); line-height: 1.75; }
.detail-list { list-style: none; margin-bottom: 20px; }
.detail-list li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.detail-list li::before { content: ''; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.download-links a { color: var(--accent); text-decoration: none; }
.download-links a:hover { text-decoration: underline; }

.specs-table-wrap { overflow: hidden; border-radius: 12px; border: 1px solid var(--border); }
.product-detail .spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.product-detail .spec-table th, .product-detail .spec-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.product-detail .spec-table th { background: var(--bg-elev); color: var(--text); font-size: 0.85rem; }
.product-detail .spec-table td { color: var(--text-dim); }
.product-detail .spec-table td:last-child { color: var(--accent); }

.product-cta { padding: 80px 0 100px; }
.product-cta-inner { text-align: center; max-width: 560px; margin: 0 auto; padding: 48px 40px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.product-cta-inner.visible { opacity: 1; transform: translateY(0); }
.product-cta-inner h2 { font-family: var(--font-head); font-size: 1.75rem; margin-bottom: 12px; }
.product-cta-inner p { color: var(--text-dim); margin-bottom: 28px; }
.product-cta-inner .btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--bg); font-weight: 700; text-decoration: none; border-radius: 12px; }
.product-cta-inner .btn:hover { transform: translateY(-3px); box-shadow: 0 12px 40px var(--glow-soft); }

@media (max-width: 1100px) {
  .product-list-layout { grid-template-columns: 1fr; }
  .product-sidebar { position: static; }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-nav { position: static; margin-bottom: 32px; }
  .detail-nav-inner { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .detail-nav-link { border-left: none; border-bottom: 2px solid transparent; }
  .detail-nav-link.active { border-left: none; border-bottom-color: var(--accent); }
  .product-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .product-main { padding-top: 88px; }
  .product-hero { padding: 40px 0 56px; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-cta-inner { padding: 36px 24px; }
}
