/* =========================================
   RA2 International — Light Theme Override
   Applied via body.light-theme
   ========================================= */

/* ---- Light Theme Variables ---- */
body.light-theme {
  --navy:         #f0f6ff;
  --navy-mid:     #e4eeff;
  --navy-light:   #d0e2ff;
  --teal:         #0a6e84;
  --teal-light:   #0fa3c0;
  --green:        #1aab40;
  --green-light:  #3ddc68;
  --green-glow:   rgba(26, 171, 64, 0.12);
  --white:        #111827;       /* text becomes dark */
  --off-white:    #374151;
  --gray:         #6b7280;
  --light-bg:     #f9fbff;
  --card-bg:      rgba(255,255,255,0.85);
  --card-border:  rgba(26, 171, 64, 0.2);
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --shadow-green: 0 0 30px rgba(26, 171, 64, 0.25);

  background: #f5f8ff;
  color: #111827;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
/* ---- Body & Root Background ---- */
body.light-theme { background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 60%, #eaf5ff 100%); }

/* ---- Animated Grid (lighter) ---- */
body.light-theme .bg-grid {
  background-image:
    linear-gradient(rgba(26, 171, 64, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 171, 64, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  background-color: #f0f6ff;
}

/* ---- Header ---- */
body.light-theme #header {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 171, 64, 0.12);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
body.light-theme #header.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: rgba(26, 171, 64, 0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* ---- Logo (larger in navbar) ---- */
body.light-theme .logo-lg {
  height: 80px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  filter: none;
  transition: filter var(--transition), transform var(--transition);
}
body.light-theme .logo-lg:hover {
  filter: drop-shadow(0 2px 12px rgba(26,171,64,0.35));
  transform: scale(1.04);
}

/* ---- Nav Links ---- */
body.light-theme .nav-links a { color: #374151; }
body.light-theme .nav-links a:hover { color: var(--green); }
body.light-theme .btn-nav {
  background: var(--green);
  color: #ffffff !important;
}
body.light-theme .btn-nav:hover {
  background: var(--green-light) !important;
  color: #ffffff !important;
}

/* ---- Hamburger ---- */
body.light-theme .hamburger span { background: #374151; }

/* ---- Mobile Menu ---- */
body.light-theme .mobile-menu {
  background: #ffffff;
}
body.light-theme .mobile-menu a { color: #111827; }
body.light-theme .mobile-menu .btn-nav-mobile {
  background: var(--green);
  color: #ffffff;
}

/* ---- Hero Section ---- */
body.light-theme #hero { background: transparent; }
body.light-theme .hero-bg::after {
  background: linear-gradient(
    135deg,
    rgba(240,246,255,0.88) 0%,
    rgba(240,246,255,0.72) 50%,
    rgba(10,110,132,0.30) 100%
  );
}
body.light-theme .hero-title { color: #111827; }
body.light-theme .hero-desc { color: #374151; }
body.light-theme .hero-eyebrow span { color: var(--green); }
body.light-theme .hero-eyebrow .line { background: var(--green); }
body.light-theme .highlight {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Stats Bar */
body.light-theme .hero-stats-bar {
  background: rgba(255,255,255,0.90);
  border-top: 1px solid rgba(26,171,64,0.18);
  backdrop-filter: blur(12px);
}
body.light-theme .stat-value { color: var(--green); }
body.light-theme .stat-label { color: #6b7280; }
body.light-theme .stat-divider { background: rgba(0,0,0,0.08); }
body.light-theme .scroll-line { background: linear-gradient(to bottom, var(--green), transparent); }

/* Hero Buttons */
body.light-theme .btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(26,171,64,0.28);
}
body.light-theme .btn-primary:hover {
  background: var(--green-light);
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(26,171,64,0.38);
}
body.light-theme .btn-secondary {
  color: #374151;
  border-color: rgba(0,0,0,0.20);
}
body.light-theme .btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ---- About Section ---- */
body.light-theme #about { background: #eaf2ff; }
body.light-theme .section-title { color: #111827; }
body.light-theme .section-subtitle { color: #6b7280; }
body.light-theme .section-tag {
  background: var(--green-glow);
  border-color: var(--green);
  color: var(--green);
}
body.light-theme .feature-pill {
  background: rgba(255,255,255,0.8);
  border-color: rgba(26,171,64,0.22);
  color: #374151;
}
body.light-theme .feature-pill:hover {
  background: rgba(26,171,64,0.1);
  border-color: var(--green);
}
body.light-theme .about-badge {
  background: var(--green);
  color: #ffffff;
}

/* ---- Vision / Mission / Culture Section ---- */
.vmc-section { background: #ffffff; }
body.light-theme .vmc-section { background: #ffffff; }

.vmc-header {
  text-align: center;
  margin-bottom: 60px;
}
.vmc-header .section-subtitle { margin: 0 auto; }

.vmc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.vmc-card {
  background: #f8fbff;
  border: 1px solid rgba(26,171,64,0.18);
  border-radius: 20px;
  overflow: hidden; /* VERY IMPORTANT */
  transition: all 0.3s ease;
  text-align: center;
  padding: 0; /* remove old padding */
}

.vmc-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.vmc-card:hover {
  border-color: var(--green, #1aab40);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26,171,64,0.15);
}
.vmc-card:hover::before { opacity: 1; }

.vmc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
  margin: 10px 16px;
}

.vmc-text {
  font-size: 0.93rem;
  color: #6b7280;
  line-height: 1.75;
  text-align: start;
  padding: 0px 20px 20px;
}

/* Dark theme VMC card (if not light-theme) */
body:not(.light-theme) .vmc-section { background: #0d1b3e; }
body:not(.light-theme) .vmc-card {
  background: rgba(255,255,255,0.04);
  border-color: rgba(45,204,84,0.15);
}
body:not(.light-theme) .vmc-card:hover { border-color: #2dcc54; box-shadow: 0 12px 40px rgba(45,204,84,0.15); }
body:not(.light-theme) .vmc-icon-wrap { background: rgba(45,204,84,0.1); border-color: rgba(45,204,84,0.25); }
body:not(.light-theme) .vmc-title { color: #ffffff; }
body:not(.light-theme) .vmc-text { color: #94a3b8; }

/* FORCE proper vertical layout (image always top) */
.vmc-card {
  display: flex;
  flex-direction: column !important;
}

/* Image always full width */
.vmc-img {
  width: 100% !important;
  height: 230px;
  object-fit: cover;
  display: block;
}

/* Tablet */
@media (max-width: 1024px) {
  .vmc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .vmc-grid {
    grid-template-columns: 1fr;
  }

  .vmc-icon-wrap {
      width: 100%!important;
      height: auto;
  }

  /* 🔥 MAIN FIX */
  .vmc-card {
    flex-direction: column !important;
  }

  .vmc-img {
    width: 100% !important;
    height: auto;
  }
}

@media (max-width: 768px) {
  .vmc-card {
    display: flex;
    flex-direction: column;
  }

  .vmc-img {
    height: auto;
  }

  .vmc-title,
  .vmc-text {
    position: static !important; /* force fix */
  }
}

/* ---- Products Section ---- */
body.light-theme #products { background: #f5f8ff; }
body.light-theme #products::before {
  background: radial-gradient(circle, rgba(26,171,64,0.06) 0%, transparent 70%);
}
body.light-theme .tabs {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body.light-theme .tab-btn { color: #6b7280; }
body.light-theme .tab-btn:hover { color: #111827; }
body.light-theme .tab-btn.active {
  background: var(--green);
  color: #ffffff;
}
body.light-theme .product-card {
  background: #ffffff;
  border-color: rgba(26,171,64,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
body.light-theme .product-card:hover {
  border-color: var(--green);
  background: #f0fff4;
  box-shadow: 0 8px 28px rgba(26,171,64,0.15);
}
body.light-theme .product-name { color: #111827; }
body.light-theme .product-desc { color: #6b7280; }
body.light-theme .product-arrow { color: var(--green); }
body.light-theme .showcase-image::after { border-color: rgba(26,171,64,0.2); }

/* Catalogue download buttons */
.catalogue-downloads {
  margin-top: 20px;
}
.catalogue-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.catalogue-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.catalogue-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid rgba(26,171,64,0.35);
  color: #1aab40;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.catalogue-btn:hover {
  background: #1aab40;
  color: #ffffff;
  border-color: #1aab40;
  box-shadow: 0 4px 16px rgba(26,171,64,0.28);
  transform: translateY(-2px);
}
/* Dark theme catalogue btn */
body:not(.light-theme) .catalogue-btn {
  background: rgba(45,204,84,0.08);
  border-color: rgba(45,204,84,0.3);
  color: #2dcc54;
}
body:not(.light-theme) .catalogue-btn:hover {
  background: #2dcc54;
  color: #0d1b3e;
}
body:not(.light-theme) .catalogue-label { color: #94a3b8; }

/* ---- Brands Section ---- */
body.light-theme #brands { background: #eaf2ff; }
body.light-theme .brand-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,246,255,0.9));
  border-color: rgba(26,171,64,0.15);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
body.light-theme .brand-card:hover {
  border-color: var(--green);
  box-shadow: 0 16px 48px rgba(26,171,64,0.18);
}
body.light-theme .brand-card::before {
  background: linear-gradient(135deg, rgba(26,171,64,0.06), transparent);
}
body.light-theme .brand-title { color: var(--green); }
body.light-theme .brand-tagline { color: #6b7280; }
body.light-theme .brand-desc { color: #374151; }
body.light-theme .brand-tag {
  background: rgba(26,171,64,0.1);
  border-color: rgba(26,171,64,0.2);
  color: var(--green);
}

/* ---- Brand Pages ---- */
body.light-theme.brand-page {
  background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 60%, #eaf5ff 100%);
}
body.light-theme.brand-page #brand-hero {
  background: transparent;
}
body.light-theme.brand-page .brand-hero-bg::after {
  background: linear-gradient(
    135deg,
    rgba(240,246,255,0.90) 0%,
    rgba(240,246,255,0.76) 52%,
    rgba(10,110,132,0.28) 100%
  );
}
body.light-theme.single-brand-page.unicron-page .brand-hero-bg::after {
  background: linear-gradient(
    135deg,
    rgba(240,246,255,0.90) 0%,
    rgba(240,246,255,0.78) 50%,
    rgba(26,171,64,0.22) 100%
  );
}
body.light-theme.single-brand-page.fairtek-page .brand-hero-bg::after {
  background: linear-gradient(
    135deg,
    rgba(240,246,255,0.90) 0%,
    rgba(240,246,255,0.78) 48%,
    rgba(10,110,132,0.26) 100%
  );
}
body.light-theme #brand-overview,
body.light-theme .brand-detail-section.alt,
body.light-theme .single-brand-catalog {
  background: #eaf2ff;
}
body.light-theme .brand-detail-section,
body.light-theme #brand-strength,
body.light-theme .single-brand-usecases {
  background: #f5f8ff;
}
body.light-theme #brand-cta,
body.light-theme .single-brand-proof {
  background: linear-gradient(135deg, #eaf2ff 0%, #ffffff 100%);
}
body.light-theme #brand-overview::before,
body.light-theme .single-brand-catalog::before {
  background: radial-gradient(circle, rgba(26,171,64,0.08) 0%, transparent 68%);
}
body.light-theme .brand-metric,
body.light-theme .brand-overview-card,
body.light-theme .brand-strength-card,
body.light-theme .brand-cta-card,
body.light-theme .single-proof-card,
body.light-theme .usecase-card {
  background: rgba(255,255,255,0.92);
  border-color: rgba(26,171,64,0.16);
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
body.light-theme .brand-overview-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,246,255,0.92));
}
body.light-theme .brand-overview-card:hover,
body.light-theme .brand-strength-card:hover,
body.light-theme .single-proof-card:hover,
body.light-theme .usecase-card:hover {
  border-color: var(--green);
  background: #f0fff4;
  box-shadow: 0 10px 30px rgba(26,171,64,0.14);
}
body.light-theme .brand-overview-title,
body.light-theme .brand-strength-card h3,
body.light-theme .single-proof-title,
body.light-theme .usecase-title {
  color: #111827;
}
body.light-theme .brand-overview-line,
body.light-theme .brand-strength-card p,
body.light-theme .single-proof-text,
body.light-theme .usecase-text {
  color: #6b7280;
}
body.light-theme .brand-point-list li,
body.light-theme .brand-desc {
  color: #374151;
}
body.light-theme .brand-media {
  background: #ffffff;
  border-color: rgba(26,171,64,0.18);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
body.light-theme .brand-spotlight {
  background: rgba(255,255,255,0.94);
  border-color: rgba(26,171,64,0.28);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}
body.light-theme .brand-spotlight p {
  color: #374151;
}
body.light-theme .unicron-product-visual {
  background: linear-gradient(160deg, #ffffff 0%, #f0f6ff 100%);
  border-color: rgba(26,171,64,0.18);
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
body.light-theme .unicron-model-pill {
  background: rgba(255,255,255,0.90);
  border-color: rgba(26,171,64,0.30);
  color: var(--green);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
body.light-theme .unicron-product-image {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
}
body.light-theme .unicron-product-body .product-desc {
  color: #6b7280;
}
body.light-theme .unicron-product-link {
  color: var(--green);
}

/* Brand catalogue links */
.brand-catalogue-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(26,171,64,0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.brand-catalogue-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(26,171,64,0.08);
  border: 1px solid rgba(26,171,64,0.25);
  color: #1aab40;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}
.brand-catalogue-btn:hover {
  background: #1aab40;
  color: #ffffff;
  border-color: #1aab40;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,171,64,0.3);
}
.brand-catalogue-coming {
  font-size: 0.8rem;
  color: #9ca3af;
  font-style: italic;
}
/* Dark theme brand catalogue */
body:not(.light-theme) .brand-catalogue-links { border-top-color: rgba(45,204,84,0.12); }
body:not(.light-theme) .brand-catalogue-btn {
  background: rgba(45,204,84,0.08);
  border-color: rgba(45,204,84,0.25);
  color: #2dcc54;
}
body:not(.light-theme) .brand-catalogue-btn:hover { background: #2dcc54; color: #0d1b3e; }
body:not(.light-theme) .brand-catalogue-coming { color: #64748b; }

/* ---- Why Section ---- */
body.light-theme #why { background: #f0f6ff; }
body.light-theme .why-card {
  background: #ffffff;
  border-color: rgba(26,171,64,0.15);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
body.light-theme .why-card:hover {
  border-color: var(--teal-light);
  background: #f0f9ff;
  box-shadow: 0 8px 24px rgba(10,110,132,0.12);
}
body.light-theme .why-title { color: #111827; }
body.light-theme .why-text { color: #6b7280; }

/* ---- Contact Section ---- */
body.light-theme #contact {
  background: linear-gradient(135deg, #eaf2ff 0%, #ffffff 100%);
}
body.light-theme .contact-form {
  background: rgba(255,255,255,0.95);
  border-color: rgba(26,171,64,0.15);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
body.light-theme .form-group label { color: #6b7280; }
body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
  background: #f7f9ff;
  border-color: rgba(0,0,0,0.12);
  color: #111827;
}
body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder { color: #9ca3af; }
body.light-theme .form-group input:focus,
body.light-theme .form-group select:focus,
body.light-theme .form-group textarea:focus { border-color: var(--green); }
body.light-theme .form-group select option { background: #ffffff; color: #111827; }
body.light-theme .btn-submit { background: var(--green); color: #ffffff; }
body.light-theme .btn-submit:hover { background: var(--green-light); }
body.light-theme .contact-item-icon {
  background: rgba(26,171,64,0.1);
  border-color: rgba(26,171,64,0.25);
}
body.light-theme .contact-item-text .label { color: #9ca3af; }
body.light-theme .contact-item-text .value { color: #111827; }

/* ---- Footer ---- */
body.light-theme #footer {
  background: #0d1b3e;
  border-top: none;
}
body.light-theme .footer-brand p { color: #94a3b8; }
body.light-theme .footer-col h4 { color: #e2e8f0; }
body.light-theme .footer-col ul li a { color: #94a3b8; }
body.light-theme .footer-col ul li a:hover { color: var(--green-light); }
body.light-theme .footer-bottom p { color: #64748b; }
body.light-theme .footer-bottom span { color: #3ddc68; }

/* Note: .reveal / @keyframes are defined in style.css — no duplicates here */

/* ============================================================
   RESPONSIVE — LIGHT THEME
   ============================================================ */
@media (max-width: 900px) {
  .vmc-grid { grid-template-columns: 1fr; gap: 20px; }
  .catalogue-links { flex-direction: column; }
  body.light-theme .logo-lg { height: 64px; }
}

@media (max-width: 768px) {
  .vmc-grid { grid-template-columns: 1fr; }
  .vmc-card { padding: 28px 20px; }
  .catalogue-links { gap: 8px; }
  .brand-catalogue-links { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  body.light-theme .logo-lg { height: 52px; }
  .vmc-icon { font-size: 1.6rem; }
  .vmc-title { font-size: 1.2rem; }
}

/* ============================================================
   NAV DROPDOWNS — MEGA MENU + BRANDS
   Works for both light and dark themes
   ============================================================ */

/* ---- Dropdown Trigger ---- */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.drop-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
  opacity: 0.7;
}
.nav-dropdown.open .drop-arrow,
.nav-dropdown:hover .drop-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* ---- Dropdown Panel (shared) ---- */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 2000;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

/* Invisible bridge to fill the gap between trigger and dropdown panel */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  height: 20px; /* slightly larger than the 16px gap for safety */
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Light theme panel backgrounds */
body.light-theme .nav-dropdown-menu {
  background: #ffffff;
  border: 1px solid rgba(26,171,64,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(26,171,64,0.08);
}

/* Dark theme panel backgrounds */
body:not(.light-theme) .nav-dropdown-menu {
  background: #132248;
  border: 1px solid rgba(45,204,84,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ---- Products Mega Menu ---- */
.products-mega {
  width: 720px;
  left: 0;
  transform: translateX(-20%) translateY(-8px);
  display: flex;
  gap: 0;
  padding: 28px 0;
}
.nav-dropdown:hover .products-mega,
.nav-dropdown.open .products-mega {
  transform: translateX(-20%) translateY(0);
}

.mega-col {
  flex: 1;
  padding: 0 28px;
}

.mega-divider {
  width: 1px;
  background: rgba(0,0,0,0.07);
  margin: 8px 0;
  flex-shrink: 0;
}
body:not(.light-theme) .mega-divider { background: rgba(255,255,255,0.06); }

.mega-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(26,171,64,0.12);
}
body:not(.light-theme) .mega-col-header { border-bottom-color: rgba(45,204,84,0.12); }

.mega-icon { font-size: 1.4rem; line-height: 1; }

.mega-col-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.02em;
}
body:not(.light-theme) .mega-col-title { color: #ffffff; }

.mega-col-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #6b7280;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
body:not(.light-theme) .mega-col-sub { color: #64748b; }

/* Mega list items */
.mega-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}
.mega-item:hover {
  background: rgba(26,171,64,0.08);
  transform: translateX(3px);
}
body:not(.light-theme) .mega-item:hover { background: rgba(45,204,84,0.08); }

.mega-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.07);
  background: #f3f4f6;
}
body:not(.light-theme) .mega-thumb { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.05); }

.mega-item-name {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.2;
}
body:not(.light-theme) .mega-item-name { color: #e2e8f0; }

.mega-item-desc {
  display: block;
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 1px;
}

.mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1aab40;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.18s ease;
  text-decoration: none;
}
.mega-view-all:hover { background: rgba(26,171,64,0.08); }
body:not(.light-theme) .mega-view-all { color: #2dcc54; }
body:not(.light-theme) .mega-view-all:hover { background: rgba(45,204,84,0.08); }

/* ---- Brands Dropdown ---- */
.brands-dropdown {
  width: 280px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
  border: 1px solid transparent;
}
.brand-drop-item:hover {
  background: rgba(26,171,64,0.07);
  border-color: rgba(26,171,64,0.15);
  transform: translateX(3px);
}
body:not(.light-theme) .brand-drop-item:hover { background: rgba(45,204,84,0.08); border-color: rgba(45,204,84,0.15); }

.brand-drop-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.07);
}
body:not(.light-theme) .brand-drop-img { border-color: rgba(255,255,255,0.08); }

.brand-drop-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.04em;
}
body:not(.light-theme) .brand-drop-name { color: #ffffff; }

.brand-drop-desc {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 2px;
}

.brand-drop-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: #9ca3af;
  transition: color 0.18s ease;
}
.brand-drop-item:hover .brand-drop-arrow { color: #1aab40; }
body:not(.light-theme) .brand-drop-item:hover .brand-drop-arrow { color: #2dcc54; }

/* ---- Mobile Drawer Light Theme ---- */
body.light-theme .mobile-overlay {
  background: rgba(0, 0, 0, 0.3);
}
body.light-theme .mobile-drawer {
  background: #ffffff;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
}
body.light-theme .drawer-header {
  border-bottom-color: rgba(0,0,0,0.06);
}
body.light-theme .drawer-close {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #6b7280;
}
body.light-theme .drawer-close:hover {
  background: rgba(0,0,0,0.08);
  color: #111827;
}
body.light-theme .drawer-body {
  scrollbar-color: rgba(0,0,0,0.08) transparent;
}
body.light-theme .drawer-body::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.08);
}
body.light-theme .drawer-link {
  color: #111827;
}
body.light-theme .drawer-link:hover {
  color: #1aab40;
  background: rgba(26,171,64,0.06);
}
body.light-theme .drawer-divider {
  background: rgba(0,0,0,0.06);
}
body.light-theme .drawer-accordion-trigger {
  color: #111827;
}
body.light-theme .drawer-accordion-trigger:hover,
body.light-theme .drawer-accordion-trigger.open {
  color: #1aab40;
}
body.light-theme .drawer-accordion-trigger:hover {
  background: rgba(26,171,64,0.06);
}
body.light-theme .drawer-accordion-content {
  background: rgba(0,0,0,0.02);
}
body.light-theme .drawer-section-label {
  color: #1aab40;
}
body.light-theme .drawer-accordion-content > a {
  color: #374151;
}
body.light-theme .drawer-accordion-content > a:hover {
  color: #1aab40;
  background: rgba(26,171,64,0.04);
}
body.light-theme .drawer-sub-trigger {
  color: #374151;
}
body.light-theme .drawer-sub-trigger:hover,
body.light-theme .drawer-sub-trigger.open {
  color: #1aab40;
}
body.light-theme .drawer-sub-content {
  border-left-color: rgba(26,171,64,0.15);
}
body.light-theme .drawer-sub-content a {
  color: #6b7280;
}
body.light-theme .drawer-sub-content a:hover {
  color: #1aab40;
}
body.light-theme .drawer-footer {
  border-top-color: rgba(0,0,0,0.06);
}
body.light-theme .drawer-cta {
  background: #1aab40;
  color: #ffffff !important;
}
body.light-theme .drawer-cta:hover {
  background: #159935;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .products-mega { width: 600px; }
  .mega-col { padding: 0 20px; }
}
@media (max-width: 900px) {
  .nav-dropdown-menu { display: none !important; }
}

/* ============================================================
   PRODUCTS LIST DROPDOWN (clean text style)
   ============================================================ */

.products-list-menu {
  left: 0;
  transform: translateX(-10%) translateY(-8px);
  width: 260px;
  padding: 20px 0 16px;
  display: flex;
  flex-direction: column;
}
.nav-dropdown:hover .products-list-menu,
.nav-dropdown.open .products-list-menu {
  transform: translateX(-10%) translateY(0);
}

.pdrop-section { padding: 0 20px; }

.pdrop-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  margin-bottom: 10px;
}
body:not(.light-theme) .pdrop-category { color: #64748b; }

.pdrop-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pdrop-item { position: relative; }

.pdrop-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
  gap: 6px;
}
body:not(.light-theme) .pdrop-link { color: #e2e8f0; }

.pdrop-link:hover,
.pdrop-item:hover > .pdrop-link {
  background: rgba(26, 171, 64, 0.08);
  color: #1aab40;
}
body:not(.light-theme) .pdrop-link:hover,
body:not(.light-theme) .pdrop-item:hover > .pdrop-link {
  background: rgba(45, 204, 84, 0.08);
  color: #2dcc54;
}

.pdrop-chevron {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.15s ease, transform 0.2s ease;
}
.pdrop-item:hover .pdrop-chevron {
  opacity: 1;
  transform: translateX(2px);
}

.pdrop-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.07);
  margin: 12px 20px;
}
body:not(.light-theme) .pdrop-divider { background: rgba(255, 255, 255, 0.06); }

/* ============================================================
   MULTI-LEVEL RIGHT-SIDE SUBMENU
   ============================================================ */

.submenu-right {
  position: absolute;
  left: 100%;
  top: -10px;
  width: 280px;
  background: #ffffff;
  border: 1px solid rgba(26, 171, 64, 0.14);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  padding: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2100;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body:not(.light-theme) .submenu-right {
  background: #132248;
  border-color: rgba(45, 204, 84, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pdrop-item:hover > .submenu-right {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Invisible bridge */
.submenu-right::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -20px;
  width: 20px;
  background: transparent;
}

.submenu-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.submenu-item:hover {
  background: rgba(26, 171, 64, 0.08);
  transform: translateX(3px);
}
body:not(.light-theme) .submenu-item:hover {
  background: rgba(45, 204, 84, 0.08);
}

.submenu-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
body:not(.light-theme) .submenu-title { color: #e2e8f0; }
.submenu-item:hover .submenu-title { color: #1aab40; }
body:not(.light-theme) .submenu-item:hover .submenu-title { color: #2dcc54; }

.submenu-desc {
  font-size: 0.72rem;
  font-weight: 500;
  color: #9ca3af;
  margin-top: 2px;
}
body:not(.light-theme) .submenu-desc { color: #64748b; }

/* (Mobile nested accordion styles moved to style.css drawer system) */
