/*
Theme Name: STEM EDU
Description: Custom Theme for STEM EDU Website based on wireframe.
Version: 1.0.2
Author: Antigravity
*/

:root {
  --primary: #2563eb;
  --primary-light: #60a5fa;
  --primary-dark: #1d4ed8;
  --green: #10b981;
  --green-hover: #059669;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-blue-light: #f0f9ff;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);

  /* Global Typography Tokens */
  --fs-h1: 2.75rem;
  --fs-h2: 2.5rem;
  --fs-h3: 1.5rem;
  --fs-h4: 1.25rem;
  --fs-h5: 1.1rem;
  --fs-h6: 1rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-subtitle: 0.75rem;

  --fw-bold: 700;
  --fw-semibold: 600;
  --fw-medium: 500;
  --fw-regular: 400;
}

@media (max-width: 992px) {
  :root {
    --fs-h1: 2.25rem;
    --fs-h2: 2.25rem;
    --fs-h3: 1.35rem;
    --fs-h4: 1.15rem;
  }
}
@media (max-width: 768px) {
  :root {
    --fs-h1: 1.85rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.25rem;
    --fs-h4: 1.1rem;
    --fs-body: 0.95rem;
    --fs-small: 0.8rem;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: clip;
  max-width: 100vw;
}

body, input, button, textarea, select {
  font-family: var(--font-main);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
}
body {
  color: var(--text-main);
  line-height: 1.6;
  background-color: #ffffff;
  font-size: var(--fs-body);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-blue { color: var(--primary); }
.text-green { color: var(--green); }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 48px;
  border-radius: 99px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary-light);
}
.btn-outline:hover {
  background: var(--bg-blue-light);
  border-color: var(--primary);
}
.btn-green {
  background: var(--green);
  color: white;
}
.btn-green:hover {
  background: var(--green-hover);
  box-shadow: var(--shadow-md);
}

/* Header */
.site-header {
  min-height: 70px;
  padding: 5px 0;
  border-bottom: 1px solid #f1f5f9;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 900;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}
.site-logo {
  display: flex;
  align-items: center;
}
.site-logo img {
  height: 40px;
  max-width: 100%;
}
.desktop-header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-navigation.desktop-nav ul {
  display: flex;
  gap: 32px;
}
.main-navigation a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}
.main-navigation a:hover, .main-navigation a.active {
  color: var(--primary);
}
.header-search-box {
  display: flex;
}
.header-search-box .search-form {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  height: 48px;
  overflow: hidden;
}
.header-search-box .search-field {
  border: none;
  padding: 0 16px;
  height: 48px;
  outline: none;
  width: 200px;
}
.header-search-box .search-submit {
  background: transparent;
  border: none;
  padding: 0 16px;
  height: 48px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-controls {
  display: none;
}
/* Canvas Menu Base (Mobile) */
.mobile-canvas-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 20px;
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  overflow-y: auto;
}
.mobile-canvas-menu.active {
  right: 0;
}

.canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}
.canvas-logo {
  height: 30px;
}
.canvas-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}
.canvas-search {
  margin-bottom: 20px;
}
.canvas-search .search-form {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.canvas-search .search-field {
  width: 100%;
  border: none;
  padding: 10px 15px;
  outline: none;
}
.canvas-search .search-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 15px;
}
/* Canvas Navigation */
.canvas-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.canvas-navigation li {
  border-bottom: 1px solid #f1f5f9;
}
.canvas-navigation a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-main);
}
.canvas-navigation .sub-menu {
  display: none;
  padding-left: 15px;
  background: #f8fafc;
  border-radius: 8px;
  margin-bottom: 10px;
  border: none;
}
.canvas-navigation li.menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.canvas-navigation li.menu-item-has-children > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  transition: transform 0.3s;
}
.canvas-navigation li.active > a::after {
  transform: rotate(180deg);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(120deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 60px 0;
  margin-bottom: 0;
}
.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-content {
  flex: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dbeafe;
  color: var(--primary-dark);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-badge i { color: var(--primary); }
.hero-content h1 {
  font-weight: var(--fw-bold);
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-main);
  font-size: var(--fs-h1);
}
.hero-content p {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: var(--fs-body);
  max-width: 90%;
}
.hero-actions {
  display: flex;
  gap: 16px;
}
.hero-image-wrapper {
  flex: 1;
  position: relative;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 400px;
}
.stats-card {
  position: absolute;
  background: white;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stats-card.top-right {
  top: -24px;
  right: -24px;
}
.stats-card.bottom-left {
  bottom: -24px;
  left: -24px;
}
.stats-card .stats-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-blue-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.stats-card .stats-info strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}
.stats-card .stats-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Stats Section */
.products-stats {
  padding: 30px 0 50px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .icon {
  width: 64px;
  height: 64px;
  background: var(--bg-blue-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-item p {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Section Common */
.section-subtitle {
  color: var(--primary);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-size: var(--fs-subtitle);
}
.section-title {
  color: var(--text-main);
  font-weight: var(--fw-bold);
  margin-bottom: 24px;
  font-size: var(--fs-h2);
}

/* Featured Products */
.featured-products {
  padding: 50px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}
.slider-nav {
  display: flex;
  gap: 12px;
}
.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}
.nav-btn:hover {
  background: var(--bg-light);
  color: var(--primary);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.swiper-wrapper {
  align-items: stretch !important;
}
.swiper-slide {
  height: auto !important;
  display: flex;
}
.product-card {
  width: 100%;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid #f1f5f9;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-image {
  position: relative;
  height: 220px;
  background: #f8fafc;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}
.bg-blue { background: var(--primary); }
.bg-green { background: var(--green); }
.bg-purple { background: #8b5cf6; }
.bg-orange { background: #f59e0b; }
.product-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Solutions Section */
.solutions-section {
  padding: 60px 0;
  background: var(--bg-light);
}
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 48px;
}
.tab-btn {
  padding: 12px 24px;
  border-radius: 99px;
  border: none;
  background: white;
  color: var(--text-muted);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  cursor: pointer;
  transition: 0.3s;
  box-shadow: var(--shadow-sm);
}
.tab-btn:hover {
  color: var(--primary);
}
.tab-btn.active {
  background: var(--primary);
  color: white;
}
.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.solution-text h3 {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  margin-bottom: 16px;
}
.solution-text p {
  color: var(--text-muted);
  font-size: var(--fs-body);
  margin-bottom: 32px;
}
.feature-list {
  margin-bottom: 40px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--text-main);
}
.feature-list li i {
  color: var(--green);
  font-size: 1.25rem;
  margin-top: 4px;
}
.solution-image img {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 400px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* About Us Section */
.about-section {
  padding: 60px 0;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pillar-card {
  background: white;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
  text-align: center;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  height: auto;
  align-self: stretch;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pillar-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-blue-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin: 0 auto 20px;
}
.pillar-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  text-wrap: balance;
}
.pillar-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
}

/* CTA Section */
.cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #e0f2fe 0%, #dcfce3 100%);
}
.cta-box {
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.cta-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}
.cta-box h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-box p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.cta-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}
.cta-form input {
  flex: 1;
  padding: 0 24px;
  border-radius: 99px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  outline: none;
}
.cta-form input:focus {
  box-shadow: 0 0 0 3px var(--bg-blue-light);
}
.cta-form .btn {
  padding: 16px 32px;
}
.cta-contact {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.cta-contact strong {
  color: var(--primary);
}

/* Footer */
.site-footer {
  padding: 40px 0 24px;
  border-top: 1px solid #e2e8f0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.5fr;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-col p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 100%;
}
.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.footer-col ul, .contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.footer-col ul a:hover {
  color: var(--primary);
}
.footer-bottom {
  text-align: center;
  padding-top: 40px !important;
  margin-top: 40px !important;
  border-top: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    background-color: #f8fafc;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.category-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}
.category-card:hover {
    transform: translateY(-10px);
}
.cat-image {
    width: 100%;
    height: 220px;
}
.cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.cat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.cat-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}
.cat-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}
.cat-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.badge-outline {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #64748b;
    background: #fff;
}
.cat-link {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
}
.cat-link i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}
.cat-link:hover i {
    transform: translateX(5px);
}

.bg-light-blue { background-color: #f0f9ff; }
.bg-light-green { background-color: #f0fdf4; }
.bg-light-purple { background-color: #faf5ff; }

.text-primary { color: var(--primary); }
.text-green { color: #22c55e; }
.text-purple { color: #a855f7; }

/* Floating Bubbles */
.floating-bubbles {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  z-index: 999;
}
.bubble-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  border: none;
  text-decoration: none;
  margin-top: 15px; /* Spacing between buttons */
  transition: transform 0.2s, background 0.2s;
}
.bubble-btn:hover {
  transform: scale(1.1);
  color: white;
}
.zalo-btn { 
  background: #0068ff; 
  animation: pulseZalo 2s infinite; 
}
.hotline-btn { 
  background: #ef4444; 
}
.hotline-btn i {
  animation: ringHotline 2s infinite ease-in-out;
}
.scroll-top-btn { 
  background: var(--primary); 
}
.scroll-top-btn:hover i {
  animation: arrowHover 0.6s infinite ease-in-out alternate;
}

@keyframes pulseZalo {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 104, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 104, 255, 0); }
}
@keyframes ringHotline {
  0%, 100% { transform: rotate(0); }
  10%, 30%, 50%, 70%, 90% { transform: rotate(-15deg) scale(1.1); }
  20%, 40%, 60%, 80% { transform: rotate(15deg) scale(1.1); }
}
@keyframes arrowHover {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.scroll-top-wrapper {
  height: 0;
  margin-top: 0;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
}
.scroll-top-wrapper .scroll-top-btn {
  transform: scale(0);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  margin-top: 0;
  pointer-events: none;
}

.floating-bubbles.scrolled .scroll-top-wrapper {
  height: 50px;
  margin-top: 15px;
  opacity: 1;
  pointer-events: auto;
}
.floating-bubbles.scrolled .scroll-top-btn {
  transform: scale(1);
  pointer-events: auto;
}


.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}
.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.menu-overlay.active {
    display: block;
    opacity: 1;
}
.mobile-break { display: none; }

@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
  }
  .hero-section {
    padding: 40px 0;
  }
  .solution-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .site-header { padding: 15px 0; }
  .header-container { flex-direction: row; justify-content: space-between; align-items: center; }
  .mobile-menu-toggle { display: block; }
  .site-header .btn-primary { display: none; }
  
  .main-navigation {
    position: fixed;
    top: 0; right: -300px;
    width: 250px; height: 100vh;
    background: white;
    z-index: 999;
    padding: 30px 20px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
  }
  .main-navigation.active { right: 0; }
  .main-navigation ul {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .mobile-break { display: block; }
  
  .hero-content h1 { font-size: var(--fs-h1); }
  .hero-content p { font-size: var(--fs-body); }
  .section-title { font-size: var(--fs-h2); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-image img { height: 300px; }
  .stats-card { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
  .section-header.text-center { align-items: center; }
  .categories-title { font-size: 1.25rem !important; }
  .about-title { font-size: 1.15rem !important; }
  
  /* Products Carousel */
  .products-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap;
    gap: 15px;
    padding-bottom: 10px;
  }
  .product-card {
    flex: 0 0 calc(50% - 7.5px);
    scroll-snap-align: start;
  }
  
  .stats-grid, .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Solutions Tabs Sticky Top */
  .solutions-section .text-center { margin-bottom: 20px; }
  .solutions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: calc(100% + 48px);
    margin: 0 -24px;
    padding: 10px 24px;
    gap: 10px;
    position: sticky;
    top: 65px;
    background: var(--bg-light);
    z-index: 800;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex: 1 1 0;
    padding: 8px 5px;
    font-size: 0.8rem;
    line-height: 1.3;
    text-align: center;
    border-radius: 20px;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .solution-content {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .solution-text h3 { margin-bottom: 10px; }
  .feature-list li { margin-bottom: 10px; }
  
  .floating-bubbles { bottom: 80px; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid .footer-col:nth-child(1) { grid-column: span 1; }
  .site-footer { padding-bottom: 100px; }
  .footer-col p { max-width: 100%; }
  .cta-form { flex-direction: column; }
  .cta-box h2 { font-size: 1.75rem; }
  .cta-form input { padding: 16px 24px; height: 50px; }
}
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .pillars-grid, .categories-grid {
    grid-template-columns: 1fr;
  }
}

/* --- OVERRIDES FOR NEW FEEDBACK --- */



/* Container Padding */
.container {
  max-width: 1400px;
  padding: 0 30px;
}

/* Home Products Swiper Override */
.home-products-swiper .swiper-slide {
  height: auto;
}

/* --- MEGAMENU PHÂN PHỐI CHÍNH HÃNG --- */
.menu-item-has-children {
  position: relative;
}
.desktop-nav .menu-item:has(.brand-megamenu) {
  position: static; /* Let megamenu anchor to header-container */
}
.brand-megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  transform: translateY(25px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  padding: 20px;
  z-index: 999;
  border: 1px solid #e2e8f0;
}
.menu-item:hover > .brand-megamenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(10px);
}
.brand-megamenu-inner {
  display: grid;
  grid-template-columns: repeat(8, 1fr); /* 8 columns = 2 rows for 16 items */
  gap: 15px;
}
.brand-megamenu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px 10px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  transition: 0.3s;
  text-decoration: none !important;
}
.brand-megamenu-item:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.brand-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.brand-logo img {
  max-height: 100%;
  max-width: 100px;
  object-fit: contain;
}
.brand-name-fallback {
  font-weight: 800;
  color: var(--primary);
  font-size: 1rem;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.brand-info .brand-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.brand-info .brand-country {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.brand-info .brand-country i {
  margin-right: 4px;
  color: #94a3b8;
}
@media (max-width: 992px) {
  .brand-megamenu {
    display: none !important;
  }
}

/* --- SINGLE PRODUCT ADJUSTMENTS --- */
.product-brand-meta, .product-status-meta {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.product-brand-meta strong, .product-status-meta strong {
  color: var(--text-main);
  margin-right: 4px;
}
.status-instock {
  color: #10b981;
  font-weight: 600;
}
.status-outofstock {
  color: #ef4444;
  font-weight: 600;
}
.status-onbackorder {
  color: #f59e0b;
  font-weight: 600;
}
.contact-price-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: 0.3s;
}
.contact-price-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.product-tags-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}
.product-tag-pill {
  display: inline-block;
  padding: 6px 12px;
  background: #f1f5f9;
  color: var(--text-muted);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: 0.3s;
  border: 1px solid #e2e8f0;
}
.product-tag-pill:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --- RELATED PRODUCTS --- */
.stem-related-products {
  margin-top: 60px;
  border-top: 1px solid #e2e8f0;
  padding-top: 40px;
}
.stem-related-products .section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--text-main);
}
.related-products-swiper {
  position: relative;
  padding: 10px 0 30px;
}
.related-prev, .related-next {
  color: var(--primary);
  background: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.related-prev:after, .related-next:after {
  font-size: 1.2rem;
  font-weight: bold;
}

/* WooCommerce Single Product Gallery */
.woocommerce-product-gallery {
  position: relative;
}
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #f8fafc;
}
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child a {
  display: block;
  width: 100%;
  height: 100%;
}
.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
}

/* Flexbox for thumbnails */
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  padding: 0;
  list-style: none;
}
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li {
  width: calc(25% - 7.5px) !important;
  float: none !important;
  cursor: pointer;
}
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: 0.3s;
}
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img.flex-active,
.woocommerce-product-gallery .flex-control-nav.flex-control-thumbs li img:hover {
  border-color: var(--primary);
  opacity: 1;
}
.product-prev.swiper-button-disabled,
.product-next.swiper-button-disabled,
.blog-prev.swiper-button-disabled,
.blog-next.swiper-button-disabled {
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Products Grid Override (5 items) */
.products-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.product-card {
  padding: 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.product-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  width: 100%;
  height: auto !important;
  flex-shrink: 0;
}
.product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  display: flex;
  flex-direction: column;
  padding: 15px 5px 0 5px;
  flex-grow: 1;
}
.product-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.product-title {
  font-size: 0.95rem;
  line-height: 1.4;
  height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--text-main);
}
.product-hover-action {
  opacity: 0;
  transition: opacity 0.3s ease;
  margin-top: 10px;
  margin-bottom: 5px;
}
.product-card:hover .product-hover-action {
  opacity: 1;
}
.btn-product-hover {
  display: block;
  text-align: center;
  background-color: #e0f2fe;
  color: #0284c7;
  padding: 8px 0;
  border-radius: 99px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  transition: 0.3s;
}
.btn-product-hover:hover {
  background-color: #bae6fd;
}

/* Blog Section */
.blog-section {
  padding: 60px 0;
  background: #ffffff;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-5px);
}
.blog-image {
  position: relative;
  height: 160px;
}
.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-date {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.blog-date strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--primary);
}
.blog-date span {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
}
.blog-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.blog-cat {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}
.blog-title {
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 15px;
  height: 42px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.blog-title a {
  color: var(--dark);
  text-decoration: none;
}
.blog-title a:hover {
  color: var(--primary);
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

/* Footer Social & Contact */
.footer-social .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 50%;
  margin-right: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
}
.footer-social .social-icon:hover {
  background: var(--primary);
  transform: translateY(-2px);
}
.footer-contact-info p {
  line-height: 1.5;
  margin-bottom: 5px;
}
.footer-contact-info ul li {
  margin-bottom: 5px;
}
.footer-contact-info ul li a {
  color: var(--text-muted);
  text-decoration: none;
}
.footer-contact-info ul li a:hover {
  color: var(--primary);
}

@media (max-width: 991px) {
  .desktop-header-right {
    display: none;
  }
  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .mobile-search-toggle, .mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-hover-action {
    opacity: 1;
  }
  
  .solutions-section h2.section-title { margin-bottom: 10px; }
  .solutions-section .section-subtitle { margin-bottom: 5px; }
  .solution-image img { max-height: 180px; aspect-ratio: 16/9; }
  .solution-content { gap: 15px; }
  .solution-features li { margin-bottom: 5px; }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* SECTION PADDINGS OVERRIDE */
section.featured-products,
section.solutions-section,
section.blog-section,
section.about-section,
section.cta-section {
  padding: 60px 0;
}

/* Custom Nav Fixes */
.main-navigation .sub-menu li a[href*="toan"],
.canvas-navigation .sub-menu li a[href*="toan"] {
    display: none !important;
}

/* ========================================= */
/* WOOCOMMERCE SHOP PAGE (BRIGHT & CLEAN)    */
/* ========================================= */

.stem-shop-page {
    background-color: var(--bg-light);
    padding-bottom: 60px;
}
.stem-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}
.shop-hero-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.05);
    text-align: center;
}
.shop-hero-text .page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0 0 15px 0;
}
.shop-hero-breadcrumb {
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 99px;
    font-size: 0.95rem;
    color: var(--text-main);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.shop-hero-breadcrumb a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}
.shop-hero-breadcrumb a:hover {
    color: var(--primary);
}

.stem-shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.stem-shop-sidebar {
    position: sticky;
    top: 90px;
}
.shop-sidebar-inner {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}
.shop-widget {
    margin-bottom: 30px;
}
.shop-widget:last-child {
    margin-bottom: 0;
}
.shop-widget .widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}
.shop-widget .widget-title i {
    color: var(--primary);
}
.shop-category-pills {
    list-style: none;
    padding: 0;
    margin: 0;
}
.shop-category-pills li {
    margin-bottom: 12px;
}
.cat-pill {
    display: block;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid #e2e8f0;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--primary);
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    border-color: var(--primary);
}

/* Toolbar */
.shop-toolbar {
    background: #fff;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
}
.shop-result-count {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}
.shop-ordering select {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    background: #f8fafc;
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

/* Products Grid */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.stem-product-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.stem-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}
.product-image-wrap {
    display: block;
    background: #f8fafc;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.product-image-wrap img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    transition: transform 0.6s ease;
}
.stem-product-card:hover .product-image-wrap img {
    transform: scale(1.08);
}
.product-info-wrap {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-info-wrap .product-category {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-info-wrap .product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.4;
    flex-grow: 1;
}
.product-info-wrap .product-title a {
    color: var(--text-main);
}
.product-info-wrap .product-title a:hover {
    color: var(--primary);
}
.product-info-wrap .product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}
.product-info-wrap .product-price del {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
    margin-right: 8px;
}
.stem-btn-add-to-cart {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
    color: #fff;
    padding: 12px;
    border-radius: 99px;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.stem-btn-add-to-cart:hover {
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
    color: #fff;
}

/* Pagination */
.shop-pagination {
    margin-top: 40px;
    grid-column: 1 / -1;
}
.shop-pagination .woocommerce-pagination {
    display: flex;
    justify-content: center;
}
.shop-pagination .page-numbers {
    display: flex;
    list-style: none;
    gap: 8px;
}
.shop-pagination .page-numbers li a,
.shop-pagination .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--text-main);
    font-weight: 600;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}
.shop-pagination .page-numbers li a:hover {
    background: var(--bg-blue-light);
    color: var(--primary);
    border-color: var(--primary-light);
}
.shop-pagination .page-numbers li span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .stem-shop-layout {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .stem-shop-layout {
        grid-template-columns: 1fr;
    }
    .stem-shop-sidebar {
        position: static;
        margin-bottom: 30px;
    }
    .shop-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .shop-toolbar {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}
@media (max-width: 576px) {
    .shop-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================= */
/* SINGLE PRODUCT PAGE (CLEAN & MODERN)      */
/* ========================================= */
.stem-single-page {
    background-color: var(--bg-light);
    padding-bottom: 80px;
}
.shop-breadcrumb-section {
    padding: 20px 0;
    margin-bottom: 30px;
}
.shop-breadcrumb-section a {
    color: var(--text-muted);
    font-weight: 600;
}
.shop-breadcrumb-section a:hover {
    color: var(--primary);
}

.stem-single-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.single-product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Left: Gallery */
.single-product-gallery {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}
.gallery-inner {
    overflow: hidden;
    border-radius: 12px;
}
.gallery-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.single-product-gallery:hover .gallery-inner img {
    transform: scale(1.05);
}

/* Right: Summary */
.single-product-summary {
    display: flex;
    flex-direction: column;
}
.product-badges {
    margin-bottom: 15px;
}
.badge-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.product_title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 20px 0;
    line-height: 1.3;
}
.product-price-wrap {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}
.product-price-wrap del {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-right: 10px;
}
.product-short-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Features Grid */
.product-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 35px;
}
.feature-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.3s ease;
}
.feature-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}
.feature-item i {
    font-size: 1.2rem;
}
.text-blue { color: #3b82f6; }
.text-green { color: #10b981; }
.text-purple { color: #8b5cf6; }
.text-orange { color: #f59e0b; }

/* Add to cart form */
.product-add-to-cart-wrap {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}
.product-add-to-cart-wrap form.cart {
    display: flex;
    gap: 15px;
    align-items: center;
}
.product-add-to-cart-wrap div.quantity {
    display: flex;
    align-items: center;
}
.product-add-to-cart-wrap div.quantity input.qty {
    width: 60px;
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
}
.product-add-to-cart-wrap button.single_add_to_cart_button {
    flex-grow: 1;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, #0284c7 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}
.product-add-to-cart-wrap button.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Tabs */
.single-product-tabs-section {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}
.woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #f1f5f9;
}
.woocommerce-tabs ul.tabs li {
    margin: 0;
}
.woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: 12px 24px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 1.1rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.woocommerce-Tabs-panel {
    color: var(--text-muted);
    line-height: 1.8;
}
.woocommerce-Tabs-panel h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
}
/* About Us Overrides */
.about-us-page .eco-card {
    transition: all 0.3s ease;
}
.about-us-page .eco-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary) !important;
}
.about-us-page .level-box {
    transition: all 0.3s ease;
}
.about-us-page .level-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary) !important;
}

/* --- MOBILE MULTI-LAYER MENU --- */
.mobile-canvas-menu {
  overflow-x: hidden;
  overflow-y: auto;
}
.canvas-navigation {
  position: relative;
  width: 100%;
  overflow: hidden;
  min-height: 50vh;
}
.canvas-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Sub-menus absolute positioning for slide */
.canvas-navigation ul.sub-menu {
  position: absolute;
  top: 0;
  left: 100%;
  width: 100%;
  background: #fff;
  z-index: 10;
  height: auto;
  min-height: 100%;
  display: none;
}
.canvas-navigation ul.sub-menu.active {
  display: block;
}
/* Slide wrapper class toggled by JS */
.canvas-navigation.sliding > ul.menu {
  transform: translateX(-100%);
}

/* Layer Back Button */
.layer-back-btn {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: #f8fafc;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px solid #e2e8f0;
}
.layer-back-btn i {
  margin-right: 10px;
}

/* Submenu toggle icon overriding default dropdown */
.canvas-navigation .menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.canvas-navigation .menu-item-has-children > a::after {
  content: '\f054'; /* FontAwesome chevron-right */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Brand Items inside Mobile Canvas */
.canvas-navigation .brand-mobile-item a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
}
.canvas-navigation .brand-mobile-item .mobile-brand-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-right: 12px;
  color: var(--primary);
  font-size: 1.2rem;
}

/* ==========================================================================
   BLOG & SINGLE POST MODERN DESIGN (SIDEBAR LAYOUT)
   ========================================================================== */
/* Blog Hero */
.blog-hero {
  position: relative;
  padding: 40px 0 30px;
  background: linear-gradient(135deg, var(--bg-blue-light) 0%, #ffffff 100%);
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 50px;
}
.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.blog-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.blog-hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Main Layout */
.blog-main-wrapper {
  padding-bottom: 80px;
}
.blog-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.blog-content-area {
  flex: 1;
  min-width: 0;
}
.blog-sidebar {
  width: 350px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Sidebar Widgets */
.widget {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #f1f5f9;
}
.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
  position: relative;
  padding-bottom: 10px;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

/* Search Widget */
.sidebar-search-form {
  display: flex;
  background: var(--bg-light);
  border-radius: 30px;
  padding: 5px 15px;
  align-items: center;
  border: 1px solid #e2e8f0;
  transition: border-color 0.3s;
}
.sidebar-search-form:focus-within {
  border-color: var(--primary);
}
.sidebar-search-field {
  border: none;
  background: transparent;
  padding: 10px;
  outline: none;
  width: 100%;
}
.sidebar-search-submit {
  background: transparent;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.1rem;
}

/* Categories Widget */
.widget-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget-categories li {
  margin-bottom: 12px;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 12px;
}
.widget-categories li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.widget-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.3s;
}
.widget-categories a:hover, .widget-categories li.active a {
  color: var(--primary);
}
.widget-categories .count {
  background: var(--bg-light);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Recent Posts Widget */
.widget-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.widget-post-list li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f1f5f9;
}
.widget-post-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}
.widget-post-thumb {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.widget-post-info {
  flex: 1;
}
.widget-post-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 5px;
  display: block;
}
.widget-post-title:hover {
  color: var(--primary);
}
.widget-post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Blog Grid */
.blog-grid-modern {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.modern-blog-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f5f9;
}
.modern-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.card-thumbnail {
  position: relative;
  height: 240px;
  overflow: hidden;
}
.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.modern-blog-card:hover .card-thumbnail img {
  transform: scale(1.05);
}
.fallback-thumb {
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
}
.card-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.card-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  display: flex;
  gap: 15px;
}
.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.4;
}
.card-title a {
  color: var(--text-main);
  transition: color 0.3s ease;
}
.card-title a:hover {
  color: var(--primary);
}
.card-excerpt {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}
.card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 15px;
}
.card-read-more {
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.card-read-more i {
  transition: transform 0.3s ease;
}
.card-read-more:hover i {
  transform: translateX(5px);
}
.blog-pagination {
  margin-top: 50px;
  text-align: center;
}
.blog-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  gap: 10px;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}
.blog-pagination .page-numbers.current, .blog-pagination .page-numbers:hover {
  background: var(--primary);
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-layout {
    flex-direction: column;
  }
  .blog-sidebar {
    width: 100%;
    position: static;
  }
}
@media (max-width: 768px) {
  .blog-grid-modern {
    grid-template-columns: 1fr;
  }
  .blog-hero-title {
    font-size: 2rem;
  }
}

/* ==========================================================================
   SINGLE POST MODERN DESIGN
   ========================================================================== */
.single-hero {
  position: relative;
  padding: 60px 0 40px;
  background: #0f172a;
  color: #fff;
  overflow: hidden;
  text-align: center;
}
.single-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  filter: blur(5px);
  transform: scale(1.1);
}
.single-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(15,23,42,0.3) 0%, rgba(15,23,42,0.95) 100%);
}
.single-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.single-category-badge a {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.single-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 25px;
}
.single-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.single-content-wrapper {
  padding: 60px 0;
}
.single-layout {
  display: flex;
  gap: 50px;
  align-items: flex-start;
}
.single-main-content {
  flex: 1;
  min-width: 0;
  background: #fff;
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.entry-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;
}
.entry-content h2, .entry-content h3 {
  color: var(--text-main);
  margin: 40px 0 20px;
  font-weight: 800;
  scroll-margin-top: 100px;
}
.entry-content p {
  margin-bottom: 20px;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 30px 0;
}
.entry-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.entry-content li {
  margin-bottom: 10px;
}

/* Sidebar & TOC */
.single-sidebar {
  width: 350px;
  flex-shrink: 0;
}
.sidebar-sticky {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.stemedu-toc-container {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.toc-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 15px;
}
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 60vh;
  overflow-y: auto;
}
.toc-list li {
  margin-bottom: 12px;
}
.toc-list a {
  color: var(--text-muted);
  font-size: 1rem;
  display: block;
  transition: color 0.3s;
  font-weight: 500;
}
.toc-list a:hover {
  color: var(--primary);
}
.toc-level-3 {
  padding-left: 20px;
  position: relative;
}
.toc-level-3::before {
  content: '-';
  position: absolute;
  left: 5px;
  color: #cbd5e1;
}
.toc-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: block;
}

.single-tags, .single-share {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.tag-label {
    font-weight: 700;
    margin-right: 10px;
}
.tag-list a {
    display: inline-block;
    background: var(--bg-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 5px;
    margin-bottom: 5px;
}
.tag-list a:hover {
    background: var(--primary);
    color: #fff;
}
.share-label {
    font-weight: 700;
    margin-right: 15px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  margin-right: 10px;
  transition: transform 0.3s;
}
.share-btn:hover {
  transform: translateY(-3px);
  color: #fff;
}
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.linkedin { background: #0077b5; }

/* Related Posts */
.related-posts-section {
    padding: 80px 0;
    background: var(--bg-light);
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-main);
}
.related-grid {
    grid-template-columns: repeat(3, 1fr);
}

.stemedu-toc-container.offcanvas-active {
  display: block !important;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  margin: 0;
  border-radius: 20px 20px 0 0;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
  animation: slideUp 0.3s ease forwards;
}

.mobile-toc-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.mobile-toc-overlay.active {
  display: block;
}

@media (max-width: 1024px) {
  .single-layout {
    flex-direction: column;
  }
  .single-sidebar {
    width: 100%;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .single-title {
    font-size: 2rem;
  }
  .single-main-content {
      padding: 25px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* New TOC styles */
.stemedu-toc-container { background: var(--bg-light); padding: 25px; border-radius: 16px; margin-bottom: 40px; }
.stemedu-toc-container .toc-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; margin-bottom: 15px; cursor: pointer; transition: all 0.3s; }
.stemedu-toc-container h3 { font-size: 1.2rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 10px; }
.stemedu-toc-container h3 i { color: var(--primary); }
.toc-list { list-style: none; padding: 0; margin: 0; transition: max-height 0.3s ease, opacity 0.3s ease; overflow: hidden; }
.toc-list.collapsed { max-height: 0; opacity: 0; margin-top: 0; }
.toc-level-2 { font-weight: 600; margin-bottom: 8px; }
.toc-level-3 { padding-left: 15px; margin-bottom: 6px; font-size: 0.95rem; }

/* ==========================================================================
   FIXED TOC STYLES
   ========================================================================== */
/* In-post TOC */
#stemedu-toc {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    font-family: inherit;
}
.toc-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; margin-bottom: 15px; cursor: pointer; transition: all 0.3s; }
.toc-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: transform 0.3s;
}

/* Nested List Structure */
.toc-body { transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease; overflow: hidden; }
#stemedu-toc.collapsed .toc-body { max-height: 0; opacity: 0; margin: 0; }
#stemedu-toc.collapsed .toc-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 10px; margin-bottom: 15px; cursor: pointer; transition: all 0.3s; }
.toc-list, .toc-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}
.toc-item {
    margin-bottom: 8px;
}

.toc-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
    line-height: 1.4;
    display: block;
    flex: 1;
}
.toc-link:hover, .toc-link.active {
    color: var(--primary);
    font-weight: 600;
}
.toc-sublist-toggle {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 2px 8px;
}
.toc-sublist-toggle i {
    transition: transform 0.3s;
}
.toc-item.expanded > .toc-item-inner > .toc-sublist-toggle i {
    transform: rotate(45deg); /* Turns plus into cross */
}
.toc-sublist {
    padding-left: 15px;
    margin-top: 5px;
    border-left: 1px solid #e2e8f0;
    margin-left: 8px;
    display: none; /* hidden by default */
}
.toc-item.expanded > .toc-sublist {
    display: block;
}

/* Floating Bubble */




/* Offcanvas Floating TOC */
.fixed-toc-panel {
    position: fixed;
    top: 0;
    right: -350px; /* Hidden offscreen */
    width: 320px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}
.fixed-toc-panel.active {
    right: 0;
}
.fixed-toc-header {
    padding: 20px;
    background: var(--bg-light);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fixed-toc-header h3 {
    margin: 0;
    font-size: 1.1rem;
}
.close-toc-panel {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
}
.fixed-toc-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.mobile-toc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mobile-toc-overlay.active {
    opacity: 1;
    visibility: visible;
}

.toc-item-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding-left: 15px;
}
.mobile-toc-btn { 
    position: fixed; 
    top: 50%; 
    left: 0; 
    right: auto;
    width: auto; 
    height: auto; 
    border-radius: 0 8px 8px 0;
    background: var(--primary); 
    color: #fff; 
    border: none; 
    font-size: 1rem; 
    font-weight: 600; 
    box-shadow: 3px 0 10px rgba(0,0,0,0.15); 
    z-index: 1000; 
    cursor: pointer; 
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    justify-content: center; 
    padding: 15px 5px; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(-50%) translateX(-20px); 
    transition: all 0.3s ease; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    writing-mode: vertical-lr; 
    text-orientation: mixed; 
}
.mobile-toc-btn i { 
    margin-bottom: 8px; 
    writing-mode: horizontal-tb; 
}
.mobile-toc-btn.show-bubble { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(-50%) translateX(0); 
}

.toc-list, .toc-sublist {
    list-style: none !important;
    list-style-type: none !important;
}
.toc-item {
    list-style: none !important;
    list-style-type: none !important;
}
.toc-item::before, .toc-item-inner::before {
    display: none !important;
    content: none !important;
}
