/* ============================================================
   SKYTECH — Products Page Stylesheet
   products.css — Multi-tab product catalogue layout
   ============================================================ */

/* ─── PAGE BODY ──────────────────────────────────────────── */
.products-page {
  background: var(--black);
}

/* ─── PAGE HERO STRIP ────────────────────────────────────── */
.prod-page-hero {
  position: relative;
  padding: 140px 0 56px;
  overflow: hidden;
}

.prod-page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(204,0,0,0.12) 0%, transparent 60%),
    linear-gradient(rgba(10,10,10,0) 0%, var(--black) 100%);
  z-index: 0;
}

.prod-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(204,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.prod-page-hero .container { position: relative; z-index: 1; }

.prod-page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--grey);
  margin-bottom: 20px;
}

.prod-page-breadcrumb a {
  color: var(--yellow);
  text-decoration: none;
  transition: color 0.2s;
}

.prod-page-breadcrumb a:hover { color: #fff; }

.prod-page-breadcrumb i.fa-chevron-right { font-size: 0.5rem; color: var(--grey-dark); }

.prod-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.prod-page-hero p {
  font-size: 1rem;
  color: var(--grey);
  max-width: 580px;
}

/* ─── MAIN LAYOUT ────────────────────────────────────────── */
.prod-page-main {
  padding: 40px 0 80px;
}

.prod-page-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* ─── SIDEBAR ────────────────────────────────────────────── */
.prod-sidebar {
  position: sticky;
  top: 96px;
}

.prod-sidebar-title {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--grey);
  padding: 0 0 12px;
  border-bottom: 1px solid var(--dark-4);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prod-tab-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prod-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
  width: 100%;
  position: relative;
}

.prod-tab-btn:hover {
  background: var(--dark-2);
  border-color: var(--dark-4);
}

.prod-tab-btn.active {
  background: linear-gradient(135deg, rgba(204,0,0,0.15), rgba(204,0,0,0.05));
  border-color: rgba(204,0,0,0.4);
}

.prod-tab-btn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), var(--yellow));
  border-radius: 0 2px 2px 0;
}

.tab-num {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--grey-dark);
  min-width: 22px;
}

.prod-tab-btn.active .tab-num { color: var(--yellow); }

.tab-icon {
  width: 28px;
  height: 28px;
  background: var(--dark-3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--grey);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.prod-tab-btn.active .tab-icon,
.prod-tab-btn:hover .tab-icon {
  background: rgba(204,0,0,0.2);
  color: var(--red);
}

.tab-label {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey);
  flex: 1;
  line-height: 1.3;
}

.prod-tab-btn.active .tab-label { color: var(--white); }
.prod-tab-btn:hover .tab-label { color: var(--grey-light); }

.tab-arrow {
  font-size: 0.6rem;
  color: var(--grey-dark);
  transition: transform 0.2s ease, color 0.2s ease;
}

.prod-tab-btn.active .tab-arrow { color: var(--red); transform: translateX(3px); }

/* Mobile dropdown (hidden on desktop) */
.prod-mobile-select { display: none; }

/* ─── CONTENT PANELS ─────────────────────────────────────── */
.prod-content { min-width: 0; }

.prod-panel {
  display: none;
  animation: panelFadeIn 0.35s ease;
}

.prod-panel.active { display: block; }

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panel header */
.prod-panel-header {
  margin-bottom: 32px;
}

.prod-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red);
  background: rgba(204,0,0,0.1);
  border: 1px solid rgba(204,0,0,0.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.prod-panel-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.prod-panel-header p {
  font-size: 0.95rem;
  color: var(--grey);
  line-height: 1.7;
  max-width: 680px;
}

/* Panel hero image */
.prod-panel-hero {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  background: #0c0c0c;
}

.prod-panel-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.prod-panel-hero:hover img { transform: scale(1.04); }

/* contain-fit images */
.prod-panel-hero.drone-img-wrap img,
.prod-panel-hero.lrf-img-wrap img,
.prod-panel-hero.bt-img-wrap img,
.prod-panel-hero.lds-img-wrap img {
  object-fit: contain;
  padding: 32px 48px;
}

.prod-panel-hero-label {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.7);
  padding: 5px 14px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── INLINE GALLERY VIEWER ──────────────────────────────── */
.prod-gallery-viewer {
  margin-bottom: 32px;
  border: 1px solid var(--dark-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #111113;
}

.prod-gallery-main {
  display: flex;
  align-items: stretch;
  background: #0b0b0d;
  position: relative;
}

.gallery-main-img-wrap {
  flex: 1;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gallery-main-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  padding: 28px 32px;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}

.gallery-main-img-wrap img.fade-out {
  opacity: 0;
  transform: scale(0.97);
}

.gallery-img-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.75);
  padding: 6px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255,215,0,0.2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  backdrop-filter: blur(4px);
}

.gallery-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--grey);
  background: rgba(0,0,0,0.65);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--dark-4);
}

/* Prev / Next */
.gallery-nav {
  width: 52px;
  height: 100%;
  background: rgba(0,0,0,0.25);
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  flex-shrink: 0;
  user-select: none;
}

.gallery-nav:hover {
  background: rgba(204,0,0,0.55);
  color: #fff;
}

/* Thumbnail grid (5 columns) */
.prod-thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0f0f11;
  padding: 12px 14px;
  gap: 8px;
}

.prod-thumb {
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.22s ease;
  background: #1a1a1c;
}

.prod-thumb img {
  width: 100%;
  height: 58px;
  object-fit: contain;
  padding: 5px;
  filter: brightness(0.6) saturate(0.8);
  transition: filter 0.22s ease;
  display: block;
  background: #1a1a1c;
}

.prod-thumb span {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.5px;
  color: var(--grey-dark);
  padding: 4px 2px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.prod-thumb:hover { border-color: rgba(255,215,0,0.45); transform: translateY(-2px); }
.prod-thumb.active { border-color: var(--yellow); box-shadow: 0 0 10px rgba(255,215,0,0.18); }
.prod-thumb.active img, .prod-thumb:hover img { filter: brightness(1) saturate(1); }
.prod-thumb.active span { color: var(--yellow); }

/* ─── SPEC CARDS GRID ────────────────────────────────────── */
.prod-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.prod-spec-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-4);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.prod-spec-card:hover {
  border-color: rgba(204,0,0,0.3);
  transform: translateY(-3px);
}

.prod-spec-card i {
  font-size: 1.4rem;
  color: var(--yellow);
  margin-bottom: 12px;
  display: block;
}

.prod-spec-card h4 {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.prod-spec-card p {
  font-size: 0.84rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ─── CTA BUTTONS ────────────────────────────────────────── */
.prod-panel-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 8px;
}

/* ─── PAGE FOOTER ────────────────────────────────────────── */
.prod-page-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--dark-4);
  padding: 24px 0;
}

.prod-page-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.prod-footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.prod-footer-tagline {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--grey);
  font-weight: 400;
  letter-spacing: 0;
}

.prod-footer-links {
  display: flex;
  gap: 20px;
}

.prod-footer-links a {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--grey);
  text-decoration: none;
  transition: color 0.2s;
}

.prod-footer-links a:hover { color: var(--yellow); }

.prod-footer-copy {
  font-size: 0.78rem;
  color: var(--grey-dark);
}

/* ─── RESPONSIVE — Tablet ≤ 1024px ──────────────────────── */
@media (max-width: 1024px) {
  .prod-page-layout {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }

  .gallery-main-img-wrap { height: 340px; }

  .prod-thumb-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ─── RESPONSIVE — Tablet ≤ 860px ───────────────────────── */
@media (max-width: 860px) {
  .prod-page-layout {
    grid-template-columns: 1fr;
  }

  /* Sidebar switches to mobile select on small screens */
  .prod-sidebar {
    position: static;
  }

  .prod-tab-nav { display: none; }
  .prod-sidebar-title { display: none; }

  .prod-mobile-select {
    display: block;
    width: 100%;
    background: var(--dark-2);
    border: 1px solid rgba(204,0,0,0.4);
    border-radius: var(--radius);
    color: var(--white);
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
    outline: none;
    margin-bottom: 24px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23cc0000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
  }

  .gallery-main-img-wrap { height: 280px; }
  .gallery-nav { width: 40px; font-size: 1.8rem; }

  .prod-thumb-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 10px; }
  .prod-thumb img { height: 48px; }

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

  .prod-panel-hero { height: 280px; }
  .prod-panel-hero.drone-img-wrap img,
  .prod-panel-hero.lds-img-wrap img { padding: 20px; }
}

/* ─── RESPONSIVE — Mobile ≤ 500px ───────────────────────── */
@media (max-width: 500px) {
  .prod-page-hero { padding: 120px 0 40px; }
  .prod-page-hero h1 { font-size: 1.5rem; }

  .gallery-main-img-wrap { height: 230px; }
  .gallery-img-label { font-size: 0.65rem; padding: 5px 12px; }

  .prod-thumb-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; padding: 8px; }
  .prod-thumb img { height: 42px; }
  .prod-thumb span { font-size: 0.45rem; }

  .gallery-nav { width: 34px; font-size: 1.5rem; }

  .prod-panel-hero { height: 230px; }

  .prod-panel-cta { flex-direction: column; }
  .prod-panel-cta .btn { text-align: center; justify-content: center; }

  .prod-page-footer-inner { flex-direction: column; align-items: flex-start; }
  .prod-footer-links { flex-wrap: wrap; gap: 12px; }
}
