/* ============================================
   PRODUCT PAGES - Futuristic Redesign
   Left Sidebar + Rich Content + Animations
   ============================================ */

/* === Page Layout === */
.product-detail-page {
  padding-top: 90px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* === WebGL Canvas (consistent with homepage) === */
#webgl-canvas { display: none; }

.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
}
.particle-float { animation: particleFloat linear infinite; }
.particle-static { animation: particlePulse ease-in-out infinite; opacity: 0.6; }
@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  8% { opacity: 0.4; }
  50% { transform: translateY(50vh) translateX(15px); opacity: 0.3; }
  92% { opacity: 0.2; }
  100% { transform: translateY(-5vh) translateX(-8px); opacity: 0; }
}
@keyframes particlePulse {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.4; transform: scale(1.1); }
}

/* === Scroll Animations === */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate].visible { opacity: 1; transform: translate(0, 0); }

/* === Breadcrumb === */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-size: 12px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb i { font-size: 8px; color: rgba(255,255,255,0.2); }
.breadcrumb span { color: var(--accent); font-weight: 500; }

/* === Page Grid with Left Sidebar === */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  padding-bottom: 80px;
}

/* === Left Sidebar === */
.sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 10px;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.sidebar-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.sidebar-category {
  margin-bottom: 6px;
}
.sidebar-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid transparent;
}
.sidebar-category-title:hover {
  background: rgba(99,102,241,0.05);
  color: var(--text-white);
}
.sidebar-category-title.active {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.2);
  color: var(--primary-light);
}
.sidebar-category-title i {
  font-size: 10px;
  width: 20px;
  text-align: center;
  color: var(--primary-light);
}

.sidebar-products {
  display: none;
  flex-direction: column;
  padding-left: 28px;
  margin-top: 2px;
  gap: 1px;
}
.sidebar-category.open .sidebar-products {
  display: flex;
}
.sidebar-product-link {
  display: block;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}
.sidebar-product-link:hover {
  color: var(--text-white);
  background: rgba(99,102,241,0.04);
  border-left-color: var(--primary);
}
.sidebar-product-link.active {
  color: var(--accent);
  background: rgba(6,182,212,0.05);
  border-left-color: var(--accent);
  font-weight: 500;
}

/* === Main Content Area === */
.main-content {
  min-width: 0;
}

/* === Category Page Hero === */
.category-hero {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.category-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.06), transparent 70%);
  pointer-events: none;
}
.category-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
}
.category-hero p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 700px;
  margin-bottom: 20px;
}
.category-hero .btn-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* === Category Stats Bar === */
.category-stats {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cat-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}
.cat-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.cat-stat-text { font-size: 11px; color: var(--text-muted); }
.cat-stat-text strong { display: block; font-size: 14px; color: var(--text-white); font-weight: 600; }

/* === Products Grid on Category Page === */
.products-listing {
  margin-bottom: 40px;
}
.products-listing h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-white);
  margin-bottom: 18px;
}

.product-list-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: all 0.4s var(--ease);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.product-list-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-main);
  transform: scaleY(0);
  transition: transform 0.3s;
}
.product-list-card:hover::before { transform: scaleY(1); }
.product-list-card:hover {
  border-color: rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.03);
  transform: translateX(4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.product-list-img {
  width: 180px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.product-list-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-list-card:hover .product-list-img img { transform: scale(1.05); }

.product-list-info h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
}
.product-list-info p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.product-list-tags span {
  padding: 3px 8px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 4px;
  font-size: 10px;
  color: var(--primary-light);
}

.product-list-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  transition: all 0.3s;
  flex-shrink: 0;
}
.product-list-card:hover .product-list-arrow {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
  transform: translateX(4px);
}

/* === Applications Section (Animated) === */
.applications-section {
  margin-bottom: 40px;
}
.applications-section h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-white);
  margin-bottom: 18px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  animation: fadeSlideIn 0.6s ease both;
}
.app-card:nth-child(1) { animation-delay: 0.05s; }
.app-card:nth-child(2) { animation-delay: 0.1s; }
.app-card:nth-child(3) { animation-delay: 0.15s; }
.app-card:nth-child(4) { animation-delay: 0.2s; }
.app-card:nth-child(5) { animation-delay: 0.25s; }
.app-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.app-card:hover {
  border-color: rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.04);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 15px rgba(99,102,241,0.1);
}
.app-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99,102,241,0.3);
  transition: transform 0.3s;
}
.app-card:hover .app-icon { transform: scale(1.1) rotate(5deg); }
.app-card span { font-size: 13px; color: var(--text-light); font-weight: 500; }

.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

/* === Product Detail Hero === */
.product-hero {
  padding: 0 0 40px;
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: flex-start;
}

/* Gallery */
.gallery-section { position: relative; }
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  aspect-ratio: 4/3;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.gallery-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.gallery-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.4s;
}
.gallery-slide img:hover { transform: scale(1.02); }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  backdrop-filter: blur(8px);
  border: 1px solid var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 12px;
  z-index: 3;
}
.gallery-nav:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.45);
  transform: translateY(-50%) scale(1.1);
}
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 5px 10px;
  background: var(--primary);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  font-size: 11px;
  color: #fff;
  border: 1px solid var(--primary);
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 4px 0;
}
.gallery-thumbs::-webkit-scrollbar { height: 3px; }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

.thumb-item {
  width: 60px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  opacity: 0.4;
}
.thumb-item.active {
  border-color: var(--primary);
  opacity: 1;
  box-shadow: 0 0 10px rgba(99,102,241,0.3);
}
.thumb-item:hover { opacity: 0.7; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.product-hero-info { padding-top: 10px; }
.product-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
  line-height: 1.2;
}
.product-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}
.product-highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.highlight-tag {
  padding: 5px 12px;
  background: rgba(99,102,241,0.06);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 6px;
  font-size: 11px;
  color: var(--primary-light);
  font-weight: 500;
  transition: all 0.3s;
}
.highlight-tag:hover {
  background: rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-1px);
}

/* === Detail Tabs === */
.product-details-section { padding: 30px 0 40px; }
.detail-tabs {
  display: flex;
  gap: 3px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}
.tab-btn {
  padding: 9px 20px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.tab-btn.active {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 3px 12px rgba(99,102,241,0.3);
}
.tab-btn:hover:not(.active) { color: var(--text-white); }

.tab-content { display: none; animation: fadeTab 0.4s ease; }
.tab-content.active { display: block; }
@keyframes fadeTab { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Specs Table */
.specs-container {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td {
  padding: 12px 18px;
  text-align: left;
  font-size: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.specs-table th {
  background: rgba(99,102,241,0.06);
  color: var(--primary-light);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.specs-table td { color: var(--text-light); }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr { transition: background 0.2s; }
.specs-table tr:hover td { background: rgba(99,102,241,0.02); }

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.benefit-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: all 0.3s;
  animation: fadeSlideIn 0.5s ease both;
}
.benefit-card:nth-child(1) { animation-delay: 0.05s; }
.benefit-card:nth-child(2) { animation-delay: 0.1s; }
.benefit-card:nth-child(3) { animation-delay: 0.15s; }
.benefit-card:nth-child(4) { animation-delay: 0.2s; }
.benefit-card:nth-child(5) { animation-delay: 0.25s; }
.benefit-card:nth-child(6) { animation-delay: 0.3s; }

.benefit-card:hover {
  border-color: rgba(6,182,212,0.2);
  background: rgba(6,182,212,0.03);
  transform: translateY(-2px);
}
.benefit-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 3px 10px rgba(16,185,129,0.3);
}
.benefit-card span { font-size: 12px; color: var(--text-light); font-weight: 500; }

/* === Related Products === */
.related-section {
  padding: 30px 0 60px;
  border-top: 1px solid var(--glass-border);
  margin-top: 20px;
}
.related-section h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-white);
  margin-bottom: 18px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.related-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s;
  text-decoration: none;
}
.related-card:hover {
  border-color: rgba(99,102,241,0.2);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3), 0 0 15px rgba(99,102,241,0.08);
}
.related-card-img { height: 120px; overflow: hidden; position: relative; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.related-card:hover .related-card-img img { transform: scale(1.08); }
.related-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(3,0,20,0.8)); }
.related-card-info { padding: 12px 14px; }
.related-card-info h4 { font-size: 13px; font-weight: 600; color: var(--text-white); margin-bottom: 3px; }
.related-card-info span { font-size: 11px; color: var(--text-muted); }

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  cursor: zoom-out;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  transform: scale(0.9);
  transition: transform 0.4s;
}
.lightbox.active img { transform: scale(1); }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}
.lightbox-close:hover { background: var(--primary); border-color: var(--primary); }

/* === Responsive === */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .product-hero-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .product-detail-page { padding-top: 75px; }
  .category-hero { padding: 24px; }
  .product-list-card { grid-template-columns: 1fr; gap: 12px; }
  .product-list-img { width: 100%; height: 160px; }
  .product-list-arrow { display: none; }
  .detail-tabs { width: 100%; overflow-x: auto; }
  .tab-btn { white-space: nowrap; font-size: 11px; padding: 8px 14px; }
  .applications-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-main { aspect-ratio: 3/2; }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
  .category-stats { flex-direction: column; }
}

/* === Sidebar Navigation === */
.sidebar-category { position: relative; margin-bottom: 2px; }

.sidebar-category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  text-decoration: none;
}

.sidebar-category-title:hover,
.sidebar-category-title.active {
  background: rgba(37, 99, 235, 0.05);
  border-color: rgba(37, 99, 235, 0.12);
  color: var(--primary);
}

.sidebar-category-title i:first-child {
  font-size: 11px;
  width: 16px;
  color: var(--primary);
  opacity: 0.7;
}

.sidebar-category-title span { flex: 1; }

.sidebar-category-title .arrow {
  font-size: 9px;
  color: var(--text-muted);
  transition: transform 0.25s;
}

.sidebar-category:hover .sidebar-category-title .arrow,
.sidebar-category.open .sidebar-category-title .arrow {
  transform: rotate(90deg);
  color: var(--primary);
}

/* Sub-products expand inline below category */
.sidebar-products {
  display: none;
  flex-direction: column;
  padding: 2px 0 4px 22px;
  border-left: 2px solid rgba(37, 99, 235, 0.15);
  margin: 0 0 4px 20px;
  gap: 1px;
}

.sidebar-category:hover .sidebar-products,
.sidebar-category.open .sidebar-products {
  display: flex;
}

.sidebar-product-link {
  display: block;
  padding: 5px 10px;
  font-size: 11px;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all 0.2s;
  text-decoration: none;
}

.sidebar-product-link:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
  padding-left: 14px;
}

.sidebar-product-link.active {
  color: var(--primary);
  font-weight: 600;
  background: rgba(37, 99, 235, 0.07);
}

/* === Sidebar Navigation === */
.sb-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-item {
  position: relative;
}

.sb-item-title {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}

.sb-item-title i {
  margin-left: auto;
  font-size: 9px;
  color: #94a3b8;
  transition: transform 0.2s;
}

.sb-item-title:hover,
.sb-item-title.active {
  background: #eff6ff;
  color: #2563eb;
  border-left-color: #2563eb;
}

.sb-item-title:hover i,
.sb-item-title.active i {
  color: #2563eb;
}

/* Sub-items: hidden by default, show on hover OR when .open */
.sb-item-sub {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding: 4px 0 6px 16px;
  margin-left: 12px;
  border-left: 2px solid #dbeafe;
}

.sb-item:hover .sb-item-sub,
.sb-item.open .sb-item-sub {
  display: flex;
}

.sb-item:hover .sb-item-title i,
.sb-item.open .sb-item-title i {
  transform: rotate(90deg);
  color: #2563eb;
}

.sb-sub-link {
  display: block;
  padding: 5px 10px;
  font-size: 11.5px;
  color: #64748b;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
}

.sb-sub-link:hover {
  background: #2563eb;
  color: #fff;
  padding-left: 14px;
}

.sb-sub-link.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

/* === WhatsApp Button === */
.whatsapp-btn {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  z-index: 999;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}
