/* ==========================================================================
   USAMOD — primary navigation and mega panels
   Loaded after base.css: these rules are the authoritative ones.
   ========================================================================== */

.um-header {
  position: sticky;
}

.um-nav__item {
  position: static;
}

.um-nav__list {
  gap: 18px;
}

.um-nav__link {
  height: 46px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  font-size: var(--um-nav-font-size, 13px);
  font-weight: 500;
  letter-spacing: var(--um-nav-letter-spacing, 0);
  color: #fff;
}

.um-nav__link:hover,
.um-nav__item.is-open > .um-nav__link {
  background: transparent;
  color: var(--um-ice);
}

.um-nav__chev {
  width: 10px;
  height: 7px;
  margin-left: 6px;
  transition: transform 0.2s var(--um-ease);
}

.um-nav__item.is-open .um-nav__chev {
  transform: rotate(180deg);
}

@media (min-width: 1280px) {
  .um-nav__list {
    gap: 24px;
  }
}

@media (min-width: 1536px) {
  .um-nav__list {
    gap: 28px;
  }
}

/* --------------------------------------------------------------------------
   Simple dropdown for items that have children but no mega panel
   -------------------------------------------------------------------------- */
.um-nav__item.has-sub {
  position: relative;
}

.um-submenu {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  background: var(--um-paper);
  color: var(--um-ink);
  border: 1px solid var(--um-line);
  box-shadow: 0 18px 36px rgba(11, 22, 40, 0.14);
  z-index: 96;
  animation: um-mega-in 0.18s var(--um-ease);
}

.um-submenu[hidden] {
  display: none !important;
}

.um-submenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.um-submenu__list .um-submenu__list {
  margin: 2px 0 4px 8px;
  padding-left: 12px;
  border-left: 1px solid var(--um-line);
}

.um-submenu__list .um-submenu__list a {
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 12px;
}

.um-submenu a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  line-height: 20px;
  color: var(--um-ink);
}

.um-submenu a:hover,
.um-submenu a:focus-visible {
  color: var(--um-red);
  background: rgba(11, 22, 40, 0.04);
}

/* --------------------------------------------------------------------------
   Panel shell
   -------------------------------------------------------------------------- */
.um-mega {
  position: absolute;
  top: calc(100% + 1px);
  left: var(--um-pad);
  right: var(--um-pad);
  width: auto;
  margin: 0;
  transform: none;
  background: var(--um-paper);
  color: var(--um-ink);
  border: 1px solid var(--um-line);
  border-radius: var(--um-mega-radius, 0);
  box-shadow: 0 20px 40px rgba(11, 22, 40, 0.12);
  max-height: calc(100dvh - 140px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 0 16px;
  z-index: 95;
  animation: um-mega-in 0.18s var(--um-ease);
}

.um-mega--full {
  left: 0;
  right: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

@keyframes um-mega-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.um-mega[hidden] {
  display: none !important;
}

.um-mega .mega-wrapper {
  display: block;
  max-width: var(--um-mega-max, 1278px);
  margin: 0 auto;
}

.um-mega .mega-inner {
  display: flex;
}

/* --------------------------------------------------------------------------
   Left column
   -------------------------------------------------------------------------- */
.um-mega .mega-left {
  width: 240px;
  flex: none;
  padding: 24px 24px 0 0;
  border-right: 1px solid var(--um-line);
}

.um-mega .mega-left_title h3 {
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  max-width: 14ch;
  margin-bottom: 20px;
  color: var(--um-ink);
  letter-spacing: -0.02em;
}

.um-mega .mega-left_link_text ul {
  list-style: none;
  padding-top: 2px;
  line-height: 23px;
}

.um-mega .mega-left_link_text li {
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--um-ink);
}

.um-mega .mega-left_link_text a:hover {
  color: var(--um-red);
}

.um-mega .mega-left_link_image {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.um-mega .image_main {
  display: flex;
  align-items: stretch;
  gap: 21px;
  width: 100%;
}

.um-mega .image_content {
  width: 50px;
  height: 40px;
  flex: none;
  background: #e5e9ec;
  overflow: hidden;
}

.um-mega .image_content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.um-mega .image_text_content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.um-mega .image_title {
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  color: var(--um-ink);
}

.um-mega .image_text {
  font-size: 12px;
  line-height: 18px;
  max-width: 146px;
}

.um-mega .image_text a {
  color: var(--um-muted);
}

.um-mega .image_text a:hover {
  color: var(--um-red);
}

/* --------------------------------------------------------------------------
   Tabbed grid (models preset)
   -------------------------------------------------------------------------- */
.um-mega .mega-right {
  flex: 1;
  min-width: 0;
  padding: 24px 0 0 24px;
  background: var(--um-paper);
}

.um-mega .category_text_des ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 32px;
  padding-left: 18px;
  list-style: none;
}

.um-mega .category_text_des li {
  width: auto;
  max-width: none;
  padding: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  text-align: center;
  cursor: pointer;
  color: var(--um-ink);
}

.um-mega .category_text_des li:hover {
  color: var(--um-red);
}

.um-mega .category_text_des li:focus-visible {
  outline: 2px solid var(--um-red);
  outline-offset: 4px;
}

.um-mega .text_bottom_color {
  display: block;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--um-steel);
}

.um-mega .category_text_des li.active .text_bottom_color {
  background: var(--um-red);
}

.um-mega .category_content.category-panel {
  display: none;
}

.um-mega .category_content.category-panel.menu_active {
  display: block;
}

.um-mega .content_list {
  max-height: 473px;
  overflow: auto;
  scrollbar-width: none;
}

.um-mega .content_list::-webkit-scrollbar {
  display: none;
}

.um-mega .content_list ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  margin-top: 12px;
  padding-bottom: 20px;
  list-style: none;
}

.um-mega .content_list li {
  flex: 0 0 calc(100% / var(--um-mega-cols, 4) - 12px);
  padding: 8px 0;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s var(--um-ease);
}

.um-mega .content_list li:hover {
  transform: scale(1.05);
}

.um-mega .content_list li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.um-mega .content_list img {
  max-width: 188px;
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 5px;
}

.um-mega .content_text_title {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  color: var(--um-ink);
}

.um-mega .content_list li:hover .content_text_title_value {
  color: var(--um-red);
}

/* Uniform image box so uneven source ratios do not break row heights. */
.um-mega__thumb {
  display: block;
  width: 100%;
  max-width: 188px;
  aspect-ratio: var(--um-mega-media, 1 / 1);
  overflow: hidden;
  border-radius: 5px;
  background: #e5e9ec;
  margin: 0 auto 5px;
}

.um-mega .content_list .um-mega__thumb img,
.um-mega__thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border-radius: 0;
  margin: 0;
  object-fit: cover;
}

.um-mega__thumb .um-cover-empty {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.um-mega .um-acc__media .um-cover-empty {
  min-height: 0;
}

/* --------------------------------------------------------------------------
   Columns preset
   -------------------------------------------------------------------------- */
.um-mega .um-cols {
  display: grid;
  grid-template-columns: repeat(var(--um-mega-cols, 4), minmax(0, 1fr));
  gap: 28px;
  padding: 28px 24px 12px;
}

.um-cols__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--um-muted);
  margin: 0 0 12px;
}

.um-cols__group ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.um-cols__group a {
  font-size: 13px;
  color: var(--um-ink);
}

.um-cols__group a:hover {
  color: var(--um-red);
}

/* --------------------------------------------------------------------------
   Featured preset
   -------------------------------------------------------------------------- */
.um-mega .um-featured__body {
  display: grid;
  gap: 20px;
  padding: 24px 0 24px 24px;
}

.um-featured__group h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
}

.um-featured__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--um-mega-cols, 4), minmax(0, 1fr));
  gap: 10px;
}

.um-featured__grid li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.um-featured__grid li:hover .content_text_title_value {
  color: var(--um-red);
}

/* --------------------------------------------------------------------------
   Custom preset
   -------------------------------------------------------------------------- */
.um-mega .um-custom {
  display: block;
  padding: 26px 24px 10px;
}

.um-custom__group + .um-custom__group {
  margin-top: 24px;
}

.um-custom__label {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}

.um-custom__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--um-mega-cols, 5), minmax(0, 1fr));
  gap: 10px;
}

.um-custom__grid li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.um-custom__grid li:hover .content_text_title_value {
  color: var(--um-red);
}

/* --------------------------------------------------------------------------
   Plain link groups (shared by featured / custom presets)
   -------------------------------------------------------------------------- */
.um-mega__links {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(var(--um-mega-cols, 4), minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
}

.um-mega__links a {
  font-size: 13px;
  color: var(--um-ink);
}

.um-mega__links a:hover {
  color: var(--um-red);
}

/* --------------------------------------------------------------------------
   Accessories preset
   -------------------------------------------------------------------------- */
.um-mega .um-acc {
  display: block;
  padding: 26px 24px 10px;
  max-width: var(--um-mega-max, 1278px);
}

.um-mega .um-acc__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.um-mega .um-acc__head h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

.um-mega .um-acc__all {
  font-size: 12px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.um-mega .um-acc__grid {
  display: grid;
  grid-template-columns: repeat(var(--um-mega-cols, 4), minmax(0, 1fr));
  gap: 14px;
}

.um-mega .um-acc__media {
  display: block;
  aspect-ratio: var(--um-mega-media, 1 / 1);
  overflow: hidden;
  background: #e5e9ec;
  margin-bottom: 8px;
}

.um-mega .um-acc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.um-mega .um-acc__title {
  font-size: 13px;
  font-weight: 600;
}

.um-mega .um-acc__card:hover .um-acc__title {
  color: var(--um-red);
}

/* --------------------------------------------------------------------------
   Mobile drawer additions
   -------------------------------------------------------------------------- */
.um-drawer__subtitle {
  padding: 14px 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
}

@media (max-width: 1180px) {
  .um-mega {
    display: none;
  }
}
