/* ================================================
   TYPES OF FASTENERS & 12-POINT SCREWS PAGE
   Glassmorphism Layout, Tables, Sidebar & Mobile
   ================================================ */

/* ── PAGE HERO ── */
.spec-hero {
  padding: clamp(70px, 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(22px, 4vw, 46px);
  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: clamp(13px, 2vw, 15px);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── TWO COLUMN LAYOUT GRID ── */
.fasteners-layout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 70px) clamp(16px, 4vw, 48px);
}

/* ── LEFT: MAIN CONTENT ── */
.fasteners-main-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0; /* prevents overflow in grid */
}

/* Glass Panels */
.spec-panel {
  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.07);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 34px);
  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: 10px;
  font-size: clamp(15px, 2.5vw, 19px);
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text);
  border-bottom: 1px solid var(--line-accent);
  padding-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.spec-panel-title svg {
  stroke: var(--accent-soft);
  width: 20px;
  height: 20px;
  fill: none;
  flex-shrink: 0;
}

/* Description Text */
.panel-text {
  color: var(--text-secondary);
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1.8;
  margin-bottom: 18px;
}
.panel-text p { margin-bottom: 14px; }
.panel-text p:last-child { margin-bottom: 0; }

/* Product Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 22px;
}
.showcase-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s;
  overflow: hidden;
}
.showcase-card:hover {
  border-color: var(--line-accent);
  background: rgba(37, 99, 235, 0.04);
}
.showcase-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}
.showcase-label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

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

.glass-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: clamp(12px, 1.8vw, 14px);
  min-width: 500px;
}
.glass-table th, .glass-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-table th {
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: clamp(10px, 1.5vw, 12px);
  white-space: nowrap;
}
.glass-table th:first-child { border-top-left-radius: 6px; }
.glass-table th:last-child { border-top-right-radius: 6px; }
.glass-table tbody tr {
  transition: background 0.25s;
  background: rgba(255,255,255,0.01);
}
.glass-table tbody tr:hover { background: rgba(37, 99, 235, 0.08); }
.glass-table td { color: var(--text-secondary); line-height: 1.5; }
.glass-table td strong { color: var(--text); font-weight: 600; }

/* ── BOLT TYPES GRID (Stockists) ── */
.bolt-types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 4px;
}
.bolt-type-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: all 0.3s;
}
.bolt-type-card:hover {
  background: rgba(37, 99, 235, 0.07);
  border-color: var(--line-accent);
  transform: translateY(-2px);
}
.bolt-type-card--full {
  grid-column: 1 / -1;
}
.bolt-type-header {
  font-size: clamp(12px, 1.8vw, 13.5px);
  font-weight: 700;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bolt-type-header::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-bright);
  flex-shrink: 0;
}
.bolt-type-body {
  font-size: clamp(11px, 1.6vw, 13px);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── RIGHT: SIDEBAR ── */
.fasteners-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
}

.fastener-sidebar-card {
  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.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
.sidebar-menu-title {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(8, 16, 32, 0.8));
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fff;
  border-bottom: 1px solid var(--line-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-menu-title i { color: var(--accent-soft); font-size: 14px; }

.sidebar-menu-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 10px 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-accent) rgba(0,0,0,0.2);
}
.sidebar-menu-list::-webkit-scrollbar { width: 4px; }
.sidebar-menu-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.15); }
.sidebar-menu-list::-webkit-scrollbar-thumb { background: var(--line-accent); border-radius: 2px; }

.sidebar-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  margin-bottom: 3px;
}
.sidebar-menu-item:last-child { margin-bottom: 0; }
.sidebar-menu-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px);
}
.sidebar-menu-item.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.2);
  border-left: 3px solid var(--accent-bright);
  box-shadow: inset 0 0 10px rgba(37, 99, 235, 0.1);
}
.sidebar-menu-item i {
  font-size: 10px;
  opacity: 0;
  transition: all 0.25s;
}
.sidebar-menu-item:hover i, .sidebar-menu-item.active i {
  opacity: 1;
  transform: translateX(2px);
  color: var(--accent-soft);
}

/* Sidebar Contact Card */
.sidebar-contact-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(8, 16, 32, 0.9));
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-accent);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-accent);
  text-align: center;
}
.sidebar-contact-card h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
  color: #fff;
}
.sidebar-contact-card p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.5;
}
.sidebar-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar-contact-btn:last-child { margin-bottom: 0; }
.sidebar-contact-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.sidebar-contact-btn-primary:hover {
  background: var(--accent-bright);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}
.sidebar-contact-btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.sidebar-contact-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ── YOU MIGHT BE INTERESTED SECTION ── */
.interested-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) clamp(50px, 7vw, 80px);
}
.interested-header {
  border-bottom: 2px solid var(--line-accent);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.interested-title {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 800;
  color: var(--accent-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.interested-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.interested-card {
  background: rgba(8, 16, 32, 0.45);
  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-sm);
  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 — TABLET & MOBILE
   ══════════════════════════════════════ */

/* Tablet: < 1024px */
@media (max-width: 1024px) {
  .fasteners-layout-grid {
    grid-template-columns: 1fr 290px;
    gap: 20px;
  }
}

/* Tablet: < 900px — stack layout */
@media (max-width: 900px) {
  .fasteners-layout-grid {
    grid-template-columns: 1fr;
    padding: 28px 16px;
  }
  .fasteners-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
  }
  .fastener-sidebar-card {
    /* Keep sidebar menu full height on tablet */
  }
  .sidebar-menu-list {
    max-height: 300px;
  }
}

/* Mobile: < 640px */
@media (max-width: 640px) {
  .fasteners-layout-grid {
    padding: 20px 14px;
    gap: 20px;
  }
  .fasteners-main-content {
    gap: 20px;
  }
  .spec-panel {
    padding: 16px 14px;
    border-radius: var(--radius);
  }
  .spec-panel-title {
    font-size: 14px;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
  }
  .spec-panel-title svg {
    width: 17px;
    height: 17px;
  }
  .glass-table {
    font-size: 12px;
    min-width: 420px;
  }
  .glass-table th, .glass-table td {
    padding: 9px 11px;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bolt-types-grid {
    grid-template-columns: 1fr;
  }
  .bolt-type-card--full {
    grid-column: 1;
  }
  /* Sidebar stack on mobile */
  .fasteners-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar-menu-list {
    max-height: 260px;
  }
  /* Interested section */
  .interested-section {
    padding: 0 14px 40px;
  }
  .interested-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
  }
  .interested-card {
    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;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .interested-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-hero h1 {
    font-size: 20px;
  }
}
