/**
 * Figma node 3275:1122 — fileKey HgkBVB4VXVbLvPxiqAEG7n
 * Assets: Figma MCP URLs (expire ~7 days).
 */

:root {
  --fcb-border-card: #ddd;
  --fcb-primary-black: #2b2a29;
  --fcb-muted: #636363;
  --fcb-subtitle: #757575;
  --fcb-link: #00359a;
  --fcb-tab-active-bg: #5373af;
  --fcb-tab-inactive-bg: #f9f9f9;
  --fcb-tab-inactive-border: #1751c0;
  --fcb-tab-inactive-text: #1d489c;
  --fcb-radius-card: 6px;
  --fcb-radius-pill: 18px;
  --fcb-frame-w: 763px;
  --fcb-frame-min-h: 381px;
  --fcb-pad-x: 26px;
  /* Figma: tabs x=388 → offset from inner content origin */
  --fcb-tabs-left: calc(388px - var(--fcb-pad-x));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/*
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: #eef2f6;
  padding: 24px;
}*/

.mega-menu {
  position: relative;
  width: var(--fcb-frame-w);
  max-width: 100%;
  /*min-height: var(--fcb-frame-min-h);*/
  height:100%;
  margin: 0 auto;
}

/*.mega-menu__union {
  position: absolute;left: 0;top: 0;width: 100%;height: var(--fcb-frame-min-h);pointer-events: none;z-index: 0;
}.mega-menu__union img {
  display: block;width: calc(100% + 2.88%);height: calc(100% + 5.78%);max-width: none;position: absolute;left: -1.44%;top: -2.89%;object-fit: fill;
}*/
.header-new .header-menu-wrap ul li .submenu-set{margin-right: -300px;width:fit-content;height: fit-content;}
.header .header-menu-wrap ul li .submenu-set .mega-menu__inner {
  position: relative;/*padding: 32px var(--fcb-pad-x) 28px;*/padding: 18px 24px;min-height: var(--fcb-frame-min-h);z-index: 1;
  .mega-menu__header{width:92%}
  .nav .nav-item{
    
  }
  .nav .nav-item .nav-link{
    color: #191919 !important;font-size: 14px !important;font-style: normal;font-weight: 500 !important;line-height: normal;
    border-radius: 18px !important;background-color: #ffffff !important;
  }
  .nav .nav-item .nav-link.active{
    color:#ffffff !important;background-color: #5373AF !important
  }
}

.mega-menu__title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  line-height: normal;
}

.mega-menu__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--fcb-subtitle);
  line-height: normal;
}

/* Figma: pill row top ≈ 39, inner padding top 32 → 7px */
.auction-tabs.nav {position: relative;}

.auction-tabs .nav-item {
  margin: 0;
}

.auction-tabs .nav-link {
  border-radius: var(--fcb-radius-pill);
  height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  color: var(--fcb-tab-inactive-text);
  background: var(--fcb-tab-inactive-bg);
  font-weight: 400;
  min-width: 119px;
}

.auction-tabs .nav-link:not(.active) {
  border-color: var(--fcb-tab-inactive-border);
  min-width: 163px;
}

.auction-tabs .nav-link.active,
.auction-tabs .nav-link.active:hover,
.auction-tabs .nav-link.active:focus {
  background-color: var(--fcb-tab-active-bg);
  color: #fff;
  border-color: transparent;
  font-weight: 500;
}

.auction-tabs .nav-link:not(.active):hover {
  color: var(--fcb-tab-inactive-text);
  background: var(--fcb-tab-inactive-bg);
}

/* Figma: first cards top ≈ 94; subtitle ends ≈ 74 → 20px gap under subtitle */
.mega-menu__body {
  display: flex;
  gap: 21px;
  align-items: flex-start;
  margin-top: 20px;
}

.mega-menu__brands {
  display: grid;
  grid-template-columns: 164px 164px;
  gap: 13px;
  flex: 0 0 auto;
}

.mega-menu__auctions {
  width: 353px;
  flex: 0 0 353px;
  min-width: 0;
}

.brand-card,
.auction-card {
  background: #fff;
  border: 1px solid var(--fcb-border-card);
  border-radius: var(--fcb-radius-card);
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 8px;
  text-decoration: none;
  color: inherit;
}

.auction-card {
  padding: 0 10px;
  width: 100%;
}

.brand-card__logo {
  flex: 0 0 40px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-card__logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-card__logo--hyundai {
  width: 36px;
  height: 19px;
}

.brand-card__logo--hyundai img {
  width: 364.52%;
  height: auto;
  max-width: none;
  max-height: none;
  position: relative;
  left: 0;
  top: -1px;
}

.brand-card__logo--toyota {
  width: 30px;
  height: 19px;
}

.brand-card__logo--toyota img {
  width: 115.52%;
  height: 176.8%;
  max-width: none;
  max-height: none;
  object-fit: none;
  position: relative;
  left: -2px;
  top: -3px;
}

.brand-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.brand-card__name,
.auction-card__title {
  font-size: 14px;
  font-weight: 400;
  color: var(--fcb-primary-black);
  line-height: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-card__count,
.auction-card__meta {
  font-size: 12px;
  font-weight: 400;
  color: var(--fcb-muted);
  line-height: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auction-stack {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.auction-empty {
  min-height: 228px;
  background: #fff;
  border-radius: var(--fcb-radius-card);
}

.mega-menu__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 8px;
}

.mega-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--fcb-link);
  text-decoration: none;
  line-height: normal;
}

.mega-menu__link:hover {
  color: var(--fcb-link);
  text-decoration: underline;
}

.mega-menu__link-icon {
  width: 10px;
  height: 10px;
  display: block;flex-shrink:0;
  /*transform: scaleX(-1);*/
}

.mega-menu__link-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 820px) {
  .mega-menu {
    width: 100%;
  }

  .auction-tabs.nav {
    position: static;
    margin: 12px 0 16px;
    flex-wrap: wrap;
  }

  .mega-menu__body {
    flex-direction: column;
    margin-top: 8px;
  }

  .mega-menu__brands {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .mega-menu__auctions {
    width: 100%;
    flex: 1 1 auto;
  }

  .auction-tabs .nav-link,
  .auction-tabs .nav-link:not(.active) {
    min-width: 0;
    flex: 1;
  }

  .mega-menu__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
