/* Fedaxy clone: helper styles layered on top of the original stylesheet */
.lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 132px;
  padding: 6px;
  background: #ffffff;
  color: #111111;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.site-lang.open .lang-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-panel .lang-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: #333333;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-panel .lang-btn:hover { background: #f5f5f5; }
.lang-panel .lang-btn.active { color: #111111; font-weight: 600; background: #f0f0f0; }

/* Products mega menu (markup captured from the original, opened on hover) */
.mega-original {
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.mega-original:not(.mega-open) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-8px) !important;
}
.mega-original.mega-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* Hover/search dimmers captured from the original open state */
.nav-backdrop { display: none !important; }
.site-lang.open ~ .nav-backdrop,
body.search-open .nav-backdrop { display: block !important; }

/* Mobile menu drawer captured from the original site */
.mobile-drawer-host { display: none; }
.mobile-drawer-host.open { display: block; }
.mobile-drawer-host.open .ant-drawer-mask {
  display: block;
  opacity: 1;
  pointer-events: auto;
}
.mobile-drawer-host .ant-drawer { position: fixed; z-index: 120; }

.mega-panel {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 8px);
  width: min(920px, 90vw);
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  padding: 22px 24px;
  z-index: 80;
}
.nav-item.has-mega:hover .mega-panel,
.nav-item.has-mega:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.mega-head {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 14px;
}
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; }
.mega-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mega-item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.mega-all {
  display: inline-flex;
  margin-top: 16px;
  padding: 8px 18px;
  background: #F20D0D;
  color: #fff;
  font-size: 13px;
  border-radius: 4px;
}
.mega-all:hover { opacity: 0.88; }

.search-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  z-index: 90;
}
.search-overlay.open { transform: translateY(0); }

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 78%;
  max-width: 320px;
  background: #111;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 120;
  padding: 20px;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.mobile-nav a { color: #fff; }
.mobile-quote {
  display: inline-flex;
  margin-top: 28px;
  padding: 10px 20px;
  background: #F20D0D;
  color: #fff;
  font-size: 14px;
  border-radius: 4px;
}
.mobile-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 110;
}
.mobile-mask.open { opacity: 1; visibility: visible; }

.pagination-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-size: 14px;
}
.ant-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.ant-pagination li { display: inline-flex; }
.ant-pagination .page-num,
.ant-pagination .page-btn,
.ant-pagination .page-numbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  color: #333;
  font-size: 14px;
  background: #fff;
  transition: all 0.2s ease;
}
.ant-pagination .page-num:hover,
.ant-pagination .page-btn:hover {
  border-color: #111;
  color: #111;
}
.ant-pagination .page-num-current {
  border-color: #111;
  background: #111;
  color: #fff;
}
.ant-pagination .page-num-current:hover { color: #fff; }
.ant-pagination .page-numbar { display: inline-flex; gap: 8px; }
.ant-pagination .page-num-ellipsis { color: #999; }
.pagination-wrap .page-btn,
.pagination-wrap a {
  padding: 8px 14px;
  border: 1px solid #e5e5e5;
  color: #333;
  transition: all 0.2s ease;
}
.pagination-wrap a:hover { border-color: #111; background: #111; color: #fff; }
.pagination-wrap .page-info { color: #888; margin-left: 10px; }

.rich-content img { max-width: 100%; height: auto; }
.rich-content table { width: 100%; border-collapse: collapse; }
.rich-content th,
.rich-content td { border: 1px solid #e2e2e2; padding: 10px 12px; }
.rich-content h2 { font-size: 26px; font-weight: 700; margin: 28px 0 14px; }
.rich-content h3 { font-size: 20px; font-weight: 600; margin: 22px 0 12px; }
.rich-content p { margin: 12px 0; line-height: 1.8; }

@media (max-width: 1024px) {
  .mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
