:root {
  --royal-blue: #0A2540;
  --royal-gold: #D4AF37;
  --royal-light: #F8FAFC;
  --royal-dark: #0A2540;
  --royal-contrast: #ffffff;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
}

.site-top-bar {
  background: var(--royal-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
}

.site-top-bar a,
.site-top-bar button {
  color: #fff;
}

.site-top-bar__group,
.site-top-bar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-top-bar__search {
  flex: 1;
  min-width: 220px;
}

.site-top-bar__search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 0.8rem 1rem;
}

.site-top-bar__search input::placeholder {
  color: rgba(255,255,255,0.75);
}

.site-top-bar__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.7rem 1rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-top-bar__button:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.site-top-bar__button--whatsapp {
  background: #25D366;
  color: #0A2540;
}

.site-top-bar__button--quote {
  background: var(--royal-gold);
  color: var(--royal-dark);
}

.site-main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease, backdrop-filter 0.3s ease;
}

.site-main-header.scrolled {
  box-shadow: 0 18px 50px -30px rgba(10, 37, 64, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-main-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.site-logo img {
  max-width: 180px;
  height: auto;
}

.site-logo__label {
  display: none;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav-link {
  color: var(--royal-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav-link:hover,
.site-nav-link.active {
  color: var(--royal-gold);
}

.site-dropdown {
  position: relative;
}

.site-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: transparent;
  color: var(--royal-dark);
  font-weight: 600;
  cursor: pointer;
}

.site-dropdown-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.site-dropdown.open .site-dropdown-arrow {
  transform: rotate(180deg);
}

.site-dropdown-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 96vw;
  max-width: 940px;
  z-index: 1100;
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1rem;
  box-shadow: 0 28px 80px rgba(10, 37, 64, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-dropdown.open .site-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── Products Mega Menu (Berger-inspired, full-width) ─────────── */
.products-menu {
  position: static;
}

.site-dropdown-menu.products-mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--site-header-offset, 72px);
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  border-radius: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 48px rgba(10, 37, 64, 0.14);
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
  grid-template-columns: unset;
  display: block;
  max-height: calc(100vh - var(--site-header-offset, 72px));
  overflow-y: auto;
}

.site-dropdown.open .site-dropdown-menu.products-mega-menu {
  transform: translateY(0);
}

.products-mega-menu .mega-menu-viewport {
  background: #fff;
}

.products-mega-menu .mega-menu-shell {
  display: flex;
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 460px;
}

.products-mega-menu .mega-menu-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.products-mega-menu .mega-sidebar-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.25rem;
  border: none;
  border-left: 4px solid transparent;
  background: transparent;
  color: var(--royal-dark);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, font-weight 200ms ease;
}

.products-mega-menu .mega-sidebar-item:hover,
.products-mega-menu .mega-sidebar-item:focus-visible {
  background: #f8fafc;
  outline: none;
}

.products-mega-menu .mega-sidebar-item.active {
  background: #F5F8FF;
  border-left-color: var(--royal-blue);
  font-weight: 600;
  color: var(--royal-blue);
}

.products-mega-menu .mega-menu-main {
  flex: 1;
  min-width: 0;
  padding: 1.25rem 1.5rem;
  background: #fff;
}

.products-mega-menu .mega-menu-panels {
  position: relative;
  min-height: 380px;
}

.products-mega-menu .mega-menu-panel {
  display: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.products-mega-menu .mega-menu-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.products-mega-menu .mega-menu-panel[hidden] {
  display: none !important;
}

.products-mega-menu .mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.products-mega-menu .mega-menu-column {
  min-width: 0;
}

.products-mega-menu .mega-column-title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--royal-blue);
}

.products-mega-menu .mega-column-products {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.products-mega-menu .mega-column-empty {
  margin: 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  font-style: italic;
}

.products-mega-menu .mega-product-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  text-decoration: none;
  color: #1e293b;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  transition: background 200ms ease;
}

.products-mega-menu .mega-product-link:hover,
.products-mega-menu .mega-product-link:focus-visible {
  background: #f8f8f8;
  outline: 2px solid rgba(10, 37, 64, 0.15);
  outline-offset: 0;
}

.products-mega-menu .mega-product-thumb {
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 4px;
}

.products-mega-menu .mega-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.products-mega-menu .mega-product-name {
  flex: 1;
}

.products-mega-menu .mega-menu-brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.products-mega-menu .mega-brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 70px;
  padding: 0.5rem 0.75rem;
  background: #F3F3F3;
  border: 1px solid #E6E6E6;
  border-radius: 4px;
  text-decoration: none;
  color: var(--royal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.products-mega-menu .mega-brand-tile:hover,
.products-mega-menu .mega-brand-tile:focus-visible {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  outline: none;
}

.products-mega-menu .mega-menu-promo {
  width: 320px;
  flex-shrink: 0;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  position: relative;
}

.products-mega-menu .mega-promo-panel {
  display: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.products-mega-menu .mega-promo-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.products-mega-menu .mega-promo-panel[hidden] {
  display: none !important;
}

.products-mega-menu .mega-promo-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

.products-mega-menu .mega-promo-label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--royal-gold);
}

.products-mega-menu .mega-promo-headline {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--royal-blue);
}

.products-mega-menu .mega-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--royal-blue);
  text-decoration: none;
  border-bottom: 2px solid var(--royal-gold);
  padding-bottom: 0.15rem;
  transition: color 200ms ease;
}

.products-mega-menu .mega-promo-cta:hover,
.products-mega-menu .mega-promo-cta:focus-visible {
  color: var(--royal-gold);
  outline: none;
}

/* Mobile accordion mega nav */
.mobile-mega-root-toggle,
.mobile-mega-toggle {
  font-weight: 600;
}

.mobile-mega-group {
  padding-left: 0.75rem;
}

.mobile-mega-group a {
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.65rem 0;
}

@media (max-width: 1200px) {
  .products-mega-menu .mega-menu-shell {
    flex-wrap: wrap;
  }

  .products-mega-menu .mega-menu-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.75rem;
  }

  .products-mega-menu .mega-sidebar-item {
    flex: 1 1 calc(33.333% - 0.5rem);
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: 8px;
    text-align: center;
    padding: 0.65rem 0.5rem;
    font-size: 0.8125rem;
  }

  .products-mega-menu .mega-sidebar-item.active {
    border-left: none;
    border-bottom-color: var(--royal-blue);
  }

  .products-mega-menu .mega-menu-main {
    width: 100%;
  }

  .products-mega-menu .mega-menu-promo {
    width: 100%;
    border-left: none;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .products-mega-menu .mega-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-dropdown-menu.products-mega-menu {
    display: none !important;
  }
}

.site-dropdown-menu h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  color: var(--royal-dark);
}

.site-dropdown-menu a {
  display: block;
  margin-bottom: 0.9rem;
  color: #1f2937;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-dropdown-menu a:hover {
  color: var(--royal-gold);
}

.site-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-cta-button,
.site-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.site-cta-button {
  padding: 0.85rem 1.1rem;
  background: #25D366;
  color: #0A2540;
}

.site-cta-button:hover {
  transform: translateY(-1px);
}

.site-cta-link {
  color: var(--royal-dark);
  border: 1px solid rgba(10, 37, 64, 0.12);
  padding: 0.85rem 1rem;
}

.site-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--royal-dark);
}

.site-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.site-mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}

.site-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.site-mobile-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.site-mobile-close {
  border: none;
  background: transparent;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--royal-dark);
}

.site-mobile-search {
  padding: 1rem 1.5rem;
}

.site-mobile-search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(10, 37, 64, 0.12);
  padding: 0.85rem 1rem;
}

.site-mobile-links {
  padding: 0 1.5rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.site-mobile-links a,
.site-mobile-links button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--royal-dark);
  text-decoration: none;
  font-weight: 600;
}

.site-mobile-links button {
  background: transparent;
  border: none;
  cursor: pointer;
}

.site-mobile-submenu {
  display: none;
  padding-left: 1rem;
}

.site-mobile-submenu.open {
  display: block;
}

.site-mobile-submenu a {
  padding: 0.75rem 0;
  font-weight: 500;
}

.site-mobile-cta {
  padding: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-mobile-cta a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
}

.site-mobile-cta .site-cta-button {
  width: 100%;
}

.site-mobile-cta .site-cta-link {
  width: 100%;
  border: 1px solid rgba(10, 37, 64, 0.12);
  color: var(--royal-dark);
}

@media (max-width: 1024px) {
  .site-top-bar {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
  }

  .site-top-bar__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .site-main-nav {
    padding: 0.85rem 1rem;
  }

  .site-nav-list {
    display: none;
  }

  .site-mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .site-top-bar__search {
    min-width: 100%;
  }

  .site-top-bar__group {
    flex-wrap: wrap;
  }

  .site-nav-cta {
    display: none;
  }
}

/* Search Results */
.site-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  z-index: 1200;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 0.25rem;
}

.site-search-result {
  display: block;
  padding: 0.75rem 1rem;
  color: #000000 !important;
  text-decoration: none;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 500;
}

.site-search-result:hover {
  background: #f2f2f2;
  color: #000000 !important;
}

.site-search-result:last-child {
  border-bottom: none;
}

/* Bill Assistant */
.bill-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: #fff;
  padding: 15px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  z-index: 10001;
}

#whatsapp-float {
  display: none !important;
}

.bill-chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 32px);
  height: 470px;
  background: #fff;
  border-radius: 18px;
  display: none;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 9999;
}

.bill-chat-header {
  background: #25D366;
  color: white;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
}

.bill-close-btn {
  border: none;
  background: transparent;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

.bill-chat-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  background: #f7faf8;
}

.bill-bot-msg,
.bill-user-msg {
  display: inline-flex;
  padding: 10px 12px;
  margin: 8px 0;
  border-radius: 16px;
  max-width: 100%;
  line-height: 1.4;
}

.bill-bot-msg {
  background: #edf2f7;
  color: #111827;
  border-top-left-radius: 4px;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.bill-user-msg {
  background: #d1ffd6;
  color: #0f172a;
  align-self: flex-end;
  border-top-left-radius: 16px;
  border-top-right-radius: 4px;
  border-bottom-left-radius: 16px;
}

.bill-quick-options {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.bill-quick-options button {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 14px;
  background: #eef2ff;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}

.bill-quick-options button:hover {
  background: #e2e8f0;
}

.bill-typing {
  font-size: 12px;
  color: #6b7280;
  padding: 8px 12px;
  display: none;
}

.bill-chat-input {
  display: flex;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.bill-chat-input input {
  flex: 1;
  padding: 12px 14px;
  border: none;
  outline: none;
  font-size: 14px;
}

.bill-chat-input button {
  border: none;
  background: #25D366;
  color: white;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .bill-chat-box {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 70px;
    height: 420px;
  }
}
