/* ================================================
   HOSE CLAMPS SPECIFICATIONS PAGE
   Glassmorphism Data Tables, Layouts & Swipe Gallery
   ================================================ */

/* ── PAGE HERO ── */
.spec-hero {
  padding: clamp(60px, 10vw, 120px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.spec-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}
.spec-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, var(--bg) 80%);
}
.spec-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff, var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.spec-hero p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* ── SPECIFICATIONS LAYOUT ── */
.spec-page {
  max-width: 1200px;
  margin: 0 auto;
}

/* Glass Panels for tables */
.spec-panel {
  background: rgba(8, 16, 32, 0.5);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 40px);
  margin-bottom: 40px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.spec-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
  border-bottom: 1px solid var(--line-accent);
  padding-bottom: 16px;
}
.spec-panel-title svg {
  stroke: var(--accent-soft);
  width: 24px;
  height: 24px;
}

/* ── DATA TABLES (Glassmorphism) ── */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) rgba(255, 255, 255, 0.05);
  margin-top: 15px;
}
.table-responsive::-webkit-scrollbar {
  height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.glass-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  min-width: 600px;
}
.glass-table th, .glass-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.glass-table th {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
  white-space: nowrap;
}
.glass-table th:first-child { border-top-left-radius: 8px; }
.glass-table th:last-child { border-top-right-radius: 8px; }

.glass-table tbody tr {
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.01);
}
.glass-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 0 0 20px rgba(37, 99, 235, 0.05);
}
.glass-table td {
  color: var(--text-secondary);
  line-height: 1.6;
}
.glass-table td strong {
  color: var(--text);
  font-weight: 600;
}

/* ── TWO COLUMN LISTS ── */
.spec-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.spec-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s;
}
.spec-list-item:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: var(--line-accent);
  color: var(--text);
  transform: translateX(4px);
}
.spec-list-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-bright);
  flex-shrink: 0;
}

/* ── HORIZONTAL SWIPE GALLERY SECTION ── */
.interested-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) clamp(50px, 7vw, 80px);
}
.interested-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-accent);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.interested-title {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.gallery-controls {
  display: flex;
  gap: 10px;
}
.glass-btn-round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-accent);
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-soft);
  cursor: pointer;
  transition: all 0.3s;
}
.glass-btn-round:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}
.gallery-container {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  scroll-snap-type: x mandatory;
}
.gallery-track::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari/Edge */
}
.interested-card {
  flex: 0 0 180px; /* Increased from 160px to accommodate larger image */
  background: rgba(8, 16, 32, 0.45);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 0; /* Remove padding so image container fills card */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 180px;
}
.interested-card:hover {
  border-color: rgba(37, 99, 235, 0.5);
  background: rgba(8, 16, 32, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 20px rgba(37, 99, 235, 0.1);
}
.interested-card.active-card {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}
.interested-img-wrap {
  width: 100%; /* Fill the card completely */
  height: 180px; /* Fill full height of card */
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: #ffffff;
}
.interested-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px 16px 48px; /* Room at bottom so overlay text doesn't block the product */
  transition: transform 0.3s ease;
}
.interested-card:hover .interested-img-wrap,
.interested-card.active-card .interested-img-wrap {
  transform: scale(1.05);
}
.interested-card span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(2, 6, 16, 0.95) 0%, rgba(8, 16, 32, 0.7) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 8px; /* Comfort spacing for overlays */
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  text-align: center;
  transition: all 0.3s ease;
  z-index: 2; /* Keep above image */
}
.interested-card:hover span,
.interested-card.active-card span {
  color: #ffffff;
  background: linear-gradient(to top, rgba(37, 99, 235, 0.95) 0%, rgba(29, 78, 216, 0.8) 100%);
  border-top-color: rgba(255, 255, 255, 0.25);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .spec-panel { padding: 20px 16px; }
  .spec-panel-title { font-size: 18px; }
  .glass-table { font-size: 13px; }
  .glass-table th, .glass-table td { padding: 12px 14px; }
  .spec-hero h1 { font-size: 28px; }
  
  .interested-section {
    padding: 0 16px 40px;
  }
  .interested-header {
    margin-bottom: 18px;
  }
  .interested-card {
    flex: 0 0 140px;
    padding: 0;
    min-height: 140px;
  }
  .interested-img-wrap {
    width: 100%;
    height: 140px;
  }
  .interested-img-wrap img {
    padding: 10px 10px 38px;
  }
  .interested-card span {
    font-size: 10.5px;
    padding: 8px 4px;
  }
}
