/* MYGEAR Store UI — shell (PR R3)
 * Retail-first: MyGear v1 + VN PC shop density. Avoid SaaS slop (pill nav, float shadows, bubbly UI). */

/* ── Shell layout ─────────────────────────────────────────────── */

.mg-ui-v2 .mg-store-shell {
  background: var(--store-bg);
}

.mg-ui-v2 .mg-store-shell__main {
  min-width: 0;
}

/* ── Promo strip ──────────────────────────────────────────────── */

.mg-ui-v2 .mg-store-promo {
  display: block;
  width: 100%;
  max-height: 75px;
  overflow: hidden;
  line-height: 0;
  background: var(--store-surface);
}

.mg-ui-v2 .mg-store-promo__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75px;
  object-fit: cover;
  object-position: center;
}

/* ── Utility bar (red USP strip — mygear global-header-top) ─── */

.mg-ui-v2 .mg-store-utility {
  display: none;
  background: var(--store-brand);
  color: #fff;
  font-size: var(--store-fs-xs);
  line-height: 34px;
}

.mg-ui-v2 .mg-store-utility--mobile {
  display: block;
  line-height: 32px;
}

.mg-ui-v2 .mg-store-utility--mobile .mg-store-utility__inner {
  padding-block: 4px;
}

.mg-ui-v2 .mg-store-utility--mobile .mg-store-utility__usp {
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mg-ui-v2 .mg-store-utility--mobile .mg-store-utility__usp::-webkit-scrollbar {
  display: none;
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-utility:not(.mg-store-utility--mobile) {
    display: block;
  }

  .mg-ui-v2 .mg-store-utility--mobile {
    display: none;
  }
}

.mg-ui-v2 .mg-store-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mg-ui-v2 .mg-store-utility__usp {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.mg-ui-v2 .mg-store-utility__usp-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-utility__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-utility__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-utility__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-utility__link:hover {
  opacity: 0.9;
}

/* ── Header shell switch ──────────────────────────────────────── */

.mg-ui-v2 .mg-store-header {
  position: relative;
  z-index: 100;
}

.mg-ui-v2 .mg-store-header__mobile {
  display: block;
}

/* ── Mobile header v2 — mygear 2-column (.mg-store-mhdr-*) — desktop-only fallback ─── */

@media (max-width: 991px) {
  .mg-ui-v2 .mg-store-mhdr,
  .mg-ui-v2 .mg-mnav {
    display: none !important;
  }
}

.mg-ui-v2 .mg-store-mhdr {
  background: #fff;
  border-bottom: 1px solid var(--store-border);
}

.mg-ui-v2 .mg-store-mhdr--fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 120;
  box-shadow: 0 1px 6px rgba(33, 43, 54, 0.12);
}

.mg-ui-v2 .mg-store-mhdr-utility {
  background: #f3f4f6;
  color: var(--store-text-muted, #6b7280);
  font-size: 12px;
  line-height: 34px;
  border-bottom: 1px solid var(--store-border, #e5e5e5);
}

.mg-ui-v2 .mg-store-mhdr-utility__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding-block: 2px;
}

.mg-ui-v2 .mg-store-mhdr-utility__usp {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mg-ui-v2 .mg-store-mhdr-utility__usp::-webkit-scrollbar {
  display: none;
}

.mg-ui-v2 .mg-store-mhdr-utility__usp-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-mhdr-utility__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-mhdr-utility__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-mhdr-utility__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--store-text, #111);
  text-decoration: none;
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-mhdr-utility__link:hover {
  color: var(--store-brand, #d02915);
}

.mg-ui-v2 .mg-store-mhdr-utility__link--account {
  font-weight: 500;
}

.mg-ui-v2 .mg-store-mhdr__middle-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mg-ui-v2 .mg-store-mhdr__middle-scroll::-webkit-scrollbar {
  display: none;
}

.mg-ui-v2 .mg-store-mhdr__middle {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  width: 100%;
  padding: 5px 6px 10px;
}

.mg-ui-v2 .mg-store-mhdr__left {
  display: flex;
  flex: 0 0 230px;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  width: 230px;
}

.mg-ui-v2 .mg-store-mhdr__right {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.mg-ui-v2 .mg-store-mhdr__logo {
  display: flex;
  max-width: 230px;
}

.mg-ui-v2 .mg-store-mhdr__logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 96px;
  max-width: 100%;
}

.mg-ui-v2 .mg-store-mhdr__search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mg-ui-v2 .mg-store-mhdr__search {
  flex: 1 1 auto;
  min-width: 0;
}

.mg-ui-v2 .mg-store-mhdr__search .search-form__field {
  position: relative;
  border-radius: 0;
  overflow: visible;
}

.mg-ui-v2 .mg-store-mhdr__search .text-search {
  height: 42px;
  font-size: 16px;
}

.mg-ui-v2 .mg-store-mhdr__search .btn-search--sprite {
  background-color: var(--mg-header-red, #d91605);
  background-image: var(--mg-sprite-url);
  background-repeat: no-repeat;
  background-position: -149px 3px;
  background-size: var(--mg-sprite-size);
}

.mg-ui-v2 .mg-store-mhdr-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-size: 13px;
  line-height: 1.15;
  color: var(--store-text);
}

.mg-ui-v2 .mg-store-mhdr-actions__item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-mhdr-actions__item:hover {
  color: var(--mg-header-red, #d91605);
}

.mg-ui-v2 .mg-store-mhdr-actions__glyph {
  display: block;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  margin-right: 7px;
  border-radius: 50%;
  background-color: var(--store-icon-well);
  background-image: var(--mg-sprite-url);
  background-repeat: no-repeat;
  background-size: var(--mg-sprite-size);
}

.mg-ui-v2 .mg-store-mhdr-actions__glyph--buildpc {
  background-position: 1px -32px;
}

.mg-ui-v2 .mg-store-mhdr-actions__glyph--order {
  background-position: -38px -33px;
}

.mg-ui-v2 .mg-store-mhdr-actions__glyph--cart {
  background-position: -78px -31px;
}

.mg-ui-v2 .mg-store-mhdr-actions__cart-wrap {
  position: relative;
  display: inline-flex;
  margin-right: 7px;
}

.mg-ui-v2 .mg-store-mhdr-actions__cart-wrap .mg-store-mhdr-actions__glyph {
  margin-right: 0;
}

.mg-ui-v2 .mg-store-mhdr-actions__badge {
  position: absolute;
  right: 2px;
  top: 2px;
  min-width: 13px;
  height: 13px;
  padding: 0 3px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 13px;
  text-align: center;
}

.mg-ui-v2 .mg-store-mhdr-actions__label {
  display: block;
}

.mg-ui-v2 .mg-store-mhdr__tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
  margin-top: 6px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mg-ui-v2 .mg-store-mhdr__tags::-webkit-scrollbar {
  display: none;
}

.mg-ui-v2 .mg-store-mhdr__tags a {
  flex: 0 0 auto;
  margin: 0 3px 5px 0;
  padding: 1px 10px;
  border-radius: 100px;
  background: var(--store-tag-bg);
  font-size: 10px;
  line-height: 15px;
  color: #000;
  text-decoration: none;
  text-transform: capitalize;
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-mhdr__tags a:hover {
  background: var(--mg-header-red, #d91605);
  color: #fff;
}

.mg-ui-v2 .mg-store-mhdr__category-btn {
  display: inline-flex;
  align-items: center;
  width: 230px;
  height: 46px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: var(--store-radius-campaign);
  background: var(--mg-header-red, #d91605);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 46px;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--store-ease);
}

.mg-ui-v2 .mg-store-mhdr__category-btn:hover {
  background: var(--store-brand-dark, #7a180d);
}

.mg-ui-v2 .mg-store-mhdr__category-glyph {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 46px;
  margin-right: 11px;
  background-image: var(--mg-sprite-url);
  background-repeat: no-repeat;
  background-position: -198px 7px;
  background-size: var(--mg-sprite-size);
}

.mg-ui-v2 .mg-store-mhdr__category-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-mhdr__campaigns {
  min-width: 0;
}

.mg-ui-v2 .mg-store-category-strip--mobile .mg-store-category-strip__scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 0;
}

.mg-ui-v2 .mg-store-category-strip--mobile .mg-store-category-strip__scroll::-webkit-scrollbar {
  display: none;
}

.mg-ui-v2 .mg-store-category-strip--mobile .mg-store-category-strip__link {
  flex: 0 0 auto;
  min-width: max(140px, calc((100% - 36px) / 4));
  margin-right: 12px;
  padding-inline: 8px;
}

.mg-ui-v2 .mg-store-category-strip--mobile .mg-store-category-strip__link:last-child {
  margin-right: 0;
}

.mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr-utility,
.mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__logo,
.mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__tags,
.mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__campaigns,
.mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr-actions {
  display: none;
}

.mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__middle-scroll {
  overflow-x: visible;
}

.mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__middle {
  min-width: 0;
  width: 100%;
  padding-block: 8px;
}

.mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__left {
  flex: 0 0 230px;
  justify-content: center;
}

.mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__right {
  flex: 1 1 auto;
  min-width: 0;
}

.mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__search-row {
  min-width: 0;
}

/* Phone — stack logo / actions / search / tags / category (v2 mobile) */
@media (max-width: 767px) {
  .mg-ui-v2 .mg-store-mhdr-utility__inner {
    padding-inline: 10px;
  }

  .mg-ui-v2 .mg-store-mhdr__middle-scroll {
    overflow-x: visible;
  }

  .mg-ui-v2 .mg-store-mhdr__middle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo actions"
      "search search"
      "tags tags"
      "category category"
      "campaigns campaigns";
    gap: 8px;
    padding: 8px 10px 10px;
  }

  .mg-ui-v2 .mg-store-mhdr__left {
    display: contents;
  }

  .mg-ui-v2 .mg-store-mhdr__right {
    display: contents;
  }

  .mg-ui-v2 .mg-store-mhdr__search-row {
    display: contents;
  }

  .mg-ui-v2 .mg-store-mhdr__logo {
    grid-area: logo;
    align-self: center;
    max-width: min(160px, 48vw);
  }

  .mg-ui-v2 .mg-store-mhdr__logo-img {
    max-height: 40px;
  }

  .mg-ui-v2 .mg-store-mhdr-actions {
    grid-area: actions;
    gap: 4px;
    align-self: center;
    justify-self: end;
  }

  .mg-ui-v2 .mg-store-mhdr-actions__item {
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-size: 0;
    line-height: 0;
  }

  .mg-ui-v2 .mg-store-mhdr-actions__label {
    display: none;
  }

  .mg-ui-v2 .mg-store-mhdr-actions__glyph {
    width: 36px;
    height: 36px;
    margin-right: 0;
  }

  .mg-ui-v2 .mg-store-mhdr-actions__cart-wrap {
    margin-right: 0;
  }

  .mg-ui-v2 .mg-store-mhdr__search {
    grid-area: search;
    width: 100%;
  }

  .mg-ui-v2 .mg-store-mhdr__search .text-search {
    height: 40px;
    font-size: 14px;
  }

  .mg-ui-v2 .mg-store-mhdr__tags {
    grid-area: tags;
    margin-top: 0;
  }

  .mg-ui-v2 .mg-store-mhdr__category-btn {
    grid-area: category;
    width: 100%;
    height: 42px;
    line-height: 42px;
    font-size: 14px;
  }

  .mg-ui-v2 .mg-store-mhdr__category-glyph {
    height: 42px;
  }

  .mg-ui-v2 .mg-store-mhdr__campaigns {
    grid-area: campaigns;
  }

  .mg-ui-v2 .mg-store-category-strip--mobile .mg-store-category-strip__link {
    min-width: max(120px, calc((100% - 24px) / 3));
  }

  .mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__middle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "category search";
    gap: 8px;
    padding: 8px 10px;
  }

  .mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__left {
    display: contents;
  }

  .mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__right {
    display: contents;
  }

  .mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__category-btn {
    grid-area: category;
    width: auto;
    min-width: 42px;
    padding-inline: 10px;
  }

  .mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__category-btn span {
    display: none;
  }

  .mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__category-glyph {
    margin-right: 0;
  }

  .mg-ui-v2 .mg-store-mhdr--fixed .mg-store-mhdr__search {
    grid-area: search;
  }
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-mhdr {
    display: none;
  }
}

.mg-ui-v2 .mg-store-header__mobile--fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 120;
  box-shadow: 0 1px 6px rgba(33, 43, 54, 0.12);
}

.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-utility--mobile,
.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-promo,
.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-header__mobile-logo {
  display: none;
}

.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-header__mobile-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  grid-template-areas: "menu search actions";
  align-items: center;
  gap: 8px;
  padding-block: 8px;
}

.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-header__mobile-nav {
  display: contents;
}

.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-category-strip {
  display: none;
}

.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-header__mobile-category-btn {
  grid-area: menu;
  flex: 0 0 230px;
  width: 230px;
  min-width: 230px;
  max-width: 230px;
  height: 46px;
  padding: 0 10px;
  border-radius: var(--store-radius-campaign);
}

.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-header__mobile-search {
  grid-area: search;
  min-width: 0;
}

.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-header__mobile-search .header-tags {
  display: none;
}

.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-header__mobile-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-header__mobile-actions .mg-store-actions__label {
  display: none;
}

.mg-ui-v2 .mg-store-header__mobile--fixed .mg-store-header__mobile-actions .mg-store-actions {
  gap: 8px;
}

.mg-ui-v2 .mg-store-header__mobile-spacer {
  display: none;
  pointer-events: none;
}

.mg-ui-v2 .mg-store-header__mobile-spacer--active {
  display: block;
}

.mg-ui-v2 .mg-store-header__mobile-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

.mg-ui-v2 .mg-store-header__mobile-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0 12px;
}

.mg-ui-v2 .mg-store-header__mobile-logo {
  display: flex;
  align-self: flex-start;
  max-width: min(230px, 58vw);
}

.mg-ui-v2 .mg-store-header__mobile-logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 52px;
}

.mg-ui-v2 .mg-store-header__mobile-search {
  width: 100%;
  min-width: 0;
}

.mg-ui-v2 .mg-store-header__mobile-search .mg-store-search .header-tags {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mg-ui-v2 .mg-store-header__mobile-search .mg-store-search .header-tags::-webkit-scrollbar {
  display: none;
}

.mg-ui-v2 .mg-store-header__mobile-search .mg-store-search .header-tags a {
  flex: 0 0 auto;
  min-width: max-content;
}

.mg-ui-v2 .mg-store-header__mobile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.mg-ui-v2 .mg-store-header__mobile-actions .mg-store-actions {
  gap: 16px;
}

.mg-ui-v2 .mg-store-header__mobile-nav {
  display: flex;
  align-items: stretch;
  gap: 12px;
  min-width: 0;
}

.mg-ui-v2 .mg-store-header__mobile-category-btn {
  display: inline-flex;
  align-items: center;
  flex: 0 0 230px;
  width: 230px;
  min-width: 230px;
  max-width: 230px;
  height: 46px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: var(--store-radius-campaign);
  background: #d91605;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 46px;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--store-ease);
}

.mg-ui-v2 .mg-store-header__mobile-category-btn:hover {
  background: var(--store-brand-dark, #7a180d);
}

.mg-ui-v2 .mg-store-header__mobile-category-glyph {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 46px;
  margin-right: 11px;
  background-image: var(--mg-sprite-url);
  background-repeat: no-repeat;
  background-position: -198px 7px;
  background-size: var(--mg-sprite-size);
}

.mg-ui-v2 .mg-store-header__mobile-category-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-header__mobile-nav .mg-store-category-strip {
  flex: 1;
  min-width: 0;
}

.mg-ui-v2 .mg-store-header__mobile-nav .mg-store-category-strip__scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-height: 46px;
}

.mg-ui-v2 .mg-store-header__mobile-nav .mg-store-category-strip__scroll::-webkit-scrollbar {
  display: none;
}

.mg-ui-v2 .mg-store-header__mobile-nav .mg-store-category-strip__link {
  flex: 0 0 auto;
  min-width: max-content;
  margin-right: 8px;
  padding-inline: 12px;
}

.mg-ui-v2 .mg-store-header__desktop {
  display: none;
  position: relative;
  z-index: 100;
  overflow: visible;
  background: #fff;
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-header__mobile {
    display: none;
  }

  .mg-ui-v2 .mg-store-header__desktop {
    display: block;
  }
}

@media (max-width: 991px) {
  .mg-ui-v2 .mg-store-header__mobile-search .search-form__field--compact {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(33, 43, 54, 0.08);
  }

  .mg-ui-v2 .mg-store-header__mobile-search .search-form__field--compact .text-search {
    height: 42px;
  }

  .mg-ui-v2 .mg-store-header__mobile-search .search-form__field--compact .btn-search {
    width: 44px;
    height: 42px;
  }
}

/* Desktop header grid — search giãn full giữa logo và actions (mygear v1) */
.mg-ui-v2 .mg-store-header__main {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 20px;
  row-gap: 10px;
  align-items: center;
  padding: 8px 0 12px;
}

.mg-ui-v2 .mg-store-header__logo {
  grid-column: 1;
  grid-row: 1;
  width: 230px;
}

.mg-ui-v2 .mg-store-header__logo-img {
  display: block;
  width: auto;
  height: auto;
  max-height: 78px;
  margin-inline: auto;
}

.mg-ui-v2 .mg-store-header__search {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  width: 100%;
  justify-self: stretch;
}

.mg-ui-v2 .mg-store-header__actions {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.mg-ui-v2 .mg-store-header__mega {
  grid-column: 1;
  grid-row: 2;
  margin-top: 5px;
}

.mg-ui-v2 .mg-store-header__categories {
  grid-column: 2 / -1;
  grid-row: 2;
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  margin-top: 5px;
}

/* Search wrapper */
.mg-ui-v2 .mg-store-search {
  width: 100%;
}

.mg-ui-v2 .mg-store-search--compact {
  flex: 1;
  min-width: 0;
}

/* Search — scoped retail chrome (v1 mygear field, not generic SaaS input) */
.mg-ui-v2 .mg-store-header__search .mg-store-search:not(.mg-store-search--compact) {
  margin-bottom: -35px;
}

.mg-ui-v2 .mg-store-search .search-form {
  overflow: visible;
}

.mg-ui-v2 .mg-store-search .header-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
  margin-top: 6px;
}

.mg-ui-v2 .mg-store-search .header-tags a {
  flex: 1 1 0;
  min-width: 0;
  display: block;
  margin: 0;
  padding: 1px 8px;
  border-radius: 100px;
  background: var(--store-tag-bg);
  font-size: 10px;
  line-height: 1.5;
  color: #000;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color var(--store-ease), color var(--store-ease);
}

.mg-ui-v2 .mg-store-search .header-tags a:hover {
  background: var(--store-brand-dark);
  color: #fff;
}

/* Header actions */
.mg-ui-v2 .mg-store-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  font-size: 13px;
  line-height: 1.15;
  color: var(--store-text);
}

.mg-ui-v2 .mg-store-actions--compact {
  gap: 16px;
}

.mg-ui-v2 .mg-store-actions__item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-actions__item:hover {
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-actions__icon,
.mg-ui-v2 .mg-store-actions__icon--sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--store-icon-well);
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-actions__svg {
  width: 20px;
  height: 20px;
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-actions--compact .mg-store-actions__svg {
  width: 16px;
  height: 16px;
}

.mg-ui-v2 .mg-store-actions__icon {
  width: 42px;
  height: 42px;
}

.mg-ui-v2 .mg-store-actions__icon--sm {
  width: 36px;
  height: 36px;
}

.mg-ui-v2 .mg-store-actions .cart-badge-link {
  display: flex;
  align-items: center;
}

/* Campaign landing pills — mygear hàng 2 (cạnh mega menu) */
.mg-ui-v2 .mg-store-category-strip {
  overflow: visible;
  min-width: 0;
  width: 100%;
}

.mg-ui-v2 .mg-store-category-strip__scroll {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  min-height: 46px;
  gap: 0;
  overflow: visible;
}

.mg-ui-v2 .mg-store-category-strip__link {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  margin-right: 12px;
  padding: 0 8px;
  border-radius: var(--store-radius-campaign);
  border: 1px solid #e7e7e7;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 44px;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
  transition:
    border-color var(--store-ease),
    background-color var(--store-ease),
    color var(--store-ease);
}

.mg-ui-v2 .mg-store-category-strip__link:last-child {
  margin-right: 0;
}

.mg-ui-v2 .mg-store-category-strip__link:hover {
  border-color: var(--store-brand);
  background: var(--store-brand);
  color: #fff;
}

.mg-ui-v2 .mg-store-category-strip__link--hot {
  color: inherit;
  font-weight: 500;
}

.mg-ui-v2 .mg-store-category-strip__link--hot:hover {
  color: #fff;
}

.mg-ui-v2 .mg-store-category-strip__link--compact {
  font-size: 90%;
}

body.mg-store-mega-active .mg-store-category-strip {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

/* Compact sticky header — desktop only */
.mg-ui-v2 .mg-store-header__compact {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  overflow: visible;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  transition: transform 0.2s ease-out;
  will-change: transform;
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-header__compact {
    display: block;
  }
}

.mg-ui-v2 .mg-store-header__compact:not(.mg-store-header__compact--visible) {
  transform: translateY(-100%);
  pointer-events: none;
}

.mg-ui-v2 .mg-store-header__compact--visible {
  transform: translateY(0);
  pointer-events: auto;
}

.mg-ui-v2 .mg-store-header__compact-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
  overflow: visible;
}

body.mg-store-mega-active .mg-store-header__desktop,
body.mg-store-mega-active .mg-store-header__compact,
body.mg-store-mega-active .mg-nav,
body.mg-store-mega-active .mg-nav__desktop-body--pinned {
  z-index: 2990;
}

/* ── Mega menu (desktop only) ─────────────────────────────────── */

.mg-ui-v2 .mg-store-mega {
  position: relative;
  width: 100%;
  max-width: 230px;
  flex-shrink: 0;
  z-index: 55;
}

.mg-ui-v2 .mg-store-mega--inline {
  display: inline-flex;
  width: auto;
  max-width: none;
  height: auto;
  align-self: center;
  pointer-events: none;
}

.mg-ui-v2 .mg-store-mega--inline .mg-store-mega__trigger {
  pointer-events: auto;
}

.mg-ui-v2 .mg-store-mega--inline:not(.mg-store-mega--open)::after,
.mg-ui-v2 .mg-store-mega--compact:not(.mg-store-mega--open)::after {
  display: none;
}

.mg-ui-v2 .mg-store-mega--compact {
  width: auto;
  min-width: 0;
  max-width: none;
  z-index: 60;
}

.mg-ui-v2 .mg-store-mega--open {
  z-index: 3001;
}

.mg-ui-v2 .mg-store-mega::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 100%;
  height: 28px;
  background: transparent;
  z-index: 52;
  pointer-events: auto;
}

.mg-ui-v2 .mg-store-mega__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--store-radius-campaign);
  background: var(--store-brand);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 46px;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--store-ease);
}

.mg-ui-v2 .mg-store-mega--inline .mg-store-mega__trigger {
  width: auto;
  height: var(--mg-nav-control-h, 42px);
  padding: 0 14px;
  border-radius: 999px;
  background: var(--store-brand, #d02915);
  font-size: 13px;
  font-weight: 600;
  line-height: var(--mg-nav-control-h, 42px);
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-mega:not(.mg-store-mega--inline):not(.mg-store-mega--compact) .mg-store-mega__trigger:hover,
.mg-ui-v2 .mg-store-mega:not(.mg-store-mega--inline):not(.mg-store-mega--compact).mg-store-mega--open .mg-store-mega__trigger {
  background: var(--store-brand-dark);
}

.mg-ui-v2 .mg-store-mega--inline .mg-store-mega__trigger:hover,
.mg-ui-v2 .mg-store-mega--inline.mg-store-mega--open .mg-store-mega__trigger,
.mg-ui-v2 .mg-store-mega--compact .mg-store-mega__trigger:hover,
.mg-ui-v2 .mg-store-mega--compact.mg-store-mega--open .mg-store-mega__trigger {
  background: var(--store-brand-dark, #7a180d);
}

.mg-ui-v2 .mg-store-mega--compact .mg-store-mega__trigger {
  height: 40px;
  font-size: 13px;
  line-height: 40px;
  border-radius: 999px;
  background: var(--store-brand, #d02915);
}

.mg-ui-v2 .mg-store-mega__trigger-icon {
  width: 22px;
  height: 22px;
  margin-right: 10px;
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-mega__trigger-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-ui-v2 .mg-store-mega__backdrop {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2990;
  background: rgba(9, 13, 20, 0.65);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.mg-ui-v2 .mg-store-mega__backdrop--ready {
  opacity: 1;
  pointer-events: auto;
  cursor: default;
}

.mg-ui-v2 .mg-store-mega__bridge {
  background: transparent;
  pointer-events: auto;
}

.mg-ui-v2 .mg-store-mega-overlay {
  display: block;
  visibility: visible;
}

.mg-ui-v2 .mg-store-mega-overlay__surface {
  position: relative;
  overflow: visible;
  width: 100%;
  height: var(--mg-store-mega-overlay-h, min(480px, 56vh));
  max-height: var(--mg-store-mega-overlay-h, min(480px, 56vh));
  border-radius: var(--store-radius-md);
  opacity: 1;
  pointer-events: auto;
  will-change: transform, opacity;
}

.mg-ui-v2 .mg-store-mega-overlay--open .mg-store-mega-overlay__surface {
  opacity: 1;
}

.mg-ui-v2 .mg-store-mega-rail {
  position: relative;
  width: var(--mg-store-mega-rail-w, 260px);
  height: 100%;
  max-height: 100%;
  background: var(--store-bg);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md) 0 0 var(--store-radius-md);
  box-shadow: var(--store-shadow-md);
  overflow: visible;
}

.mg-ui-v2 .mg-store-mega-overlay-portal {
  overflow: visible;
}

.mg-ui-v2 .mg-store-mega-rail__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: thin;
}

.mg-ui-v2 .mg-store-mega-rail__item {
  position: static;
  list-style: none;
}

.mg-ui-v2 .mg-store-mega-rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 14px 8px 11px;
  border-left: 3px solid transparent;
  text-decoration: none;
  color: var(--store-text);
  font-size: var(--store-fs-sm);
  font-weight: 500;
  line-height: 1.3;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.mg-ui-v2 .mg-store-mega-rail__item:hover,
.mg-ui-v2 .mg-store-mega-rail__item--active {
  background: var(--store-brand-tint);
}

.mg-ui-v2 .mg-store-mega-rail__item:hover .mg-store-mega-rail__link,
.mg-ui-v2 .mg-store-mega-rail__item--active .mg-store-mega-rail__link {
  color: var(--store-brand);
  border-left-color: var(--store-brand);
}

.mg-ui-v2 .mg-store-mega-rail__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.mg-ui-v2 .mg-store-mega-rail__icon--fallback {
  display: inline-block;
  border-radius: var(--store-radius-sm);
  background: var(--store-surface);
}

.mg-ui-v2 .mg-store-mega-rail__label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-ui-v2 .mg-store-mega-rail__chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.45;
}

.mg-ui-v2 .mg-store-mega-rail__flyout {
  display: none;
  position: absolute;
  left: var(--mg-store-mega-rail-w, 260px);
  top: 0;
  z-index: 2;
  width: var(--mg-store-mega-panel-w, 920px);
  height: 100%;
}

.mg-ui-v2 .mg-store-mega-rail__item--active .mg-store-mega-rail__flyout {
  display: block;
}

.mg-ui-v2 .mg-store-mega-flyout {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  background: var(--store-bg);
  border: 1px solid var(--store-border);
  border-radius: 0 var(--store-radius-md) var(--store-radius-md) 0;
  box-shadow: var(--store-shadow-md);
}

.mg-ui-v2 .mg-store-mega-flyout__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--store-border);
  background: var(--store-surface);
}

.mg-ui-v2 .mg-store-mega-flyout__head-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--store-text);
}

.mg-ui-v2 .mg-store-mega-flyout__head-link,
.mg-ui-v2 .mg-store-mega-flyout__viewall {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--store-brand);
  text-decoration: none;
}

.mg-ui-v2 .mg-store-mega-flyout__head-icon {
  width: 14px;
  height: 14px;
}

.mg-ui-v2 .mg-store-mega-flyout__inner {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 18px;
  scrollbar-width: thin;
}

.mg-ui-v2 .mg-store-mega-flyout__featured {
  margin-bottom: 14px;
}

.mg-ui-v2 .mg-store-mega-flyout__featured-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--store-text-muted);
}

.mg-ui-v2 .mg-store-mega-flyout__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mg-ui-v2 .mg-store-mega-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-sm);
  background: #fff;
  font-size: 13px;
  color: var(--store-text);
  text-decoration: none;
}

.mg-ui-v2 .mg-store-mega-pill:hover {
  border-color: rgba(217, 22, 5, 0.35);
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-mega-flyout__grid {
  display: grid;
  grid-template-columns: repeat(var(--mg-store-mega-grid-cols, 3), minmax(0, 1fr));
  gap: 16px 20px;
}

.mg-ui-v2 .mg-store-mega-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--store-text);
  text-decoration: none;
}

.mg-ui-v2 .mg-store-mega-section__title--static {
  display: block;
}

.mg-ui-v2 .mg-store-mega-section__title:hover {
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-mega-section__chevron {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.mg-ui-v2 .mg-store-mega-section__links {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.mg-ui-v2 .mg-store-mega-section__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  font-size: 13px;
  color: var(--store-text-muted);
  text-decoration: none;
}

.mg-ui-v2 .mg-store-mega-section__link:hover {
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-mega__hot {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--store-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}

.mg-ui-v2 .mg-store-mega-flyout__empty {
  padding: 24px 0;
  font-size: 14px;
  color: var(--store-text-muted);
  text-align: center;
}

/* ── Mobile category menu — drill-down (<992px) ──────────────── */

.mg-ui-v2 .mg-store-mcat__backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(9, 13, 20, 0.55);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.mg-ui-v2 .mg-store-mcat__backdrop--open {
  opacity: 1;
  visibility: visible;
}

.mg-ui-v2 .mg-store-mcat {
  position: fixed;
  inset: 0;
  z-index: 4001;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--store-shadow-md);
}

.mg-ui-v2 .mg-store-mcat--open {
  transform: translateX(0);
}

.mg-ui-v2 .mg-store-mcat__head {
  flex-shrink: 0;
  background: var(--store-brand);
  color: #fff;
}

.mg-ui-v2 .mg-store-mcat__head-nav {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 8px 12px;
}

.mg-ui-v2 .mg-store-mcat__back,
.mg-ui-v2 .mg-store-mcat__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--store-radius-md);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.mg-ui-v2 .mg-store-mcat__back:active,
.mg-ui-v2 .mg-store-mcat__close:active {
  background: rgba(255, 255, 255, 0.12);
}

.mg-ui-v2 .mg-store-mcat__back-spacer {
  width: 40px;
  height: 40px;
}

.mg-ui-v2 .mg-store-mcat__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-ui-v2 .mg-store-mcat__view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 16px 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.mg-ui-v2 .mg-store-mcat__view-all:active {
  color: #fff;
}

.mg-ui-v2 .mg-store-mcat__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mg-ui-v2 .mg-store-mcat__body--forward {
  animation: mg-store-mcat-slide-forward 0.22s ease;
}

.mg-ui-v2 .mg-store-mcat__body--back {
  animation: mg-store-mcat-slide-back 0.22s ease;
}

@keyframes mg-store-mcat-slide-forward {
  from {
    opacity: 0.6;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes mg-store-mcat-slide-back {
  from {
    opacity: 0.6;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mg-ui-v2 .mg-store-mcat__list {
  list-style: none;
  margin: 0;
  padding: 8px 0 32px;
}

.mg-ui-v2 .mg-store-mcat__item {
  border-bottom: 1px solid var(--store-border);
}

.mg-ui-v2 .mg-store-mcat__item:last-child {
  border-bottom: 0;
}

.mg-ui-v2 .mg-store-mcat__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--store-text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mg-ui-v2 .mg-store-mcat__row:active {
  background: var(--store-brand-tint);
}

.mg-ui-v2 .mg-store-mcat__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: contain;
}

.mg-ui-v2 .mg-store-mcat__icon-placeholder {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.mg-ui-v2 .mg-store-mcat__label {
  flex: 1;
  min-width: 0;
}

.mg-ui-v2 .mg-store-mcat__hot {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--store-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}

.mg-ui-v2 .mg-store-mcat__chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--store-text-muted);
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-mcat,
  .mg-ui-v2 .mg-store-mcat__backdrop {
    display: none;
  }
}

/* ── Mobile drawer (<992px) — legacy ─────────────────────────── */

.mg-ui-v2 .mg-store-drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.mg-ui-v2 .mg-store-drawer__overlay--open {
  opacity: 1;
  visibility: visible;
}

.mg-ui-v2 .mg-store-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4001;
  width: min(320px, 88vw);
  height: 100dvh;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: var(--store-shadow-md);
}

.mg-ui-v2 .mg-store-drawer--open {
  transform: translateX(0);
}

.mg-ui-v2 .mg-store-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--store-border);
}

.mg-ui-v2 .mg-store-drawer__title {
  font-size: 16px;
  font-weight: 700;
}

.mg-ui-v2 .mg-store-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--store-radius-md);
  background: transparent;
  cursor: pointer;
}

.mg-ui-v2 .mg-store-drawer__list {
  list-style: none;
  margin: 0;
  padding: 8px 0 24px;
}

.mg-ui-v2 .mg-store-drawer__link,
.mg-ui-v2 .mg-store-drawer__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--store-text);
  text-decoration: none;
  cursor: pointer;
  gap: 10px;
}

.mg-ui-v2 .mg-store-drawer__toggle {
  justify-content: space-between;
}

.mg-ui-v2 .mg-store-drawer__toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mg-ui-v2 .mg-store-drawer__thumb {
  flex-shrink: 0;
  border-radius: 4px;
}

.mg-ui-v2 .mg-store-drawer__sub {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.mg-ui-v2 .mg-store-drawer__sub--open {
  max-height: 2000px;
}

.mg-ui-v2 .mg-store-drawer__sublink {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--store-text-muted);
  text-decoration: none;
}

.mg-ui-v2 .mg-store-drawer__sublink:hover {
  color: var(--store-brand);
  background: #fff5f3;
}

/* ── Footer ───────────────────────────────────────────────────── */

/* ─── Footer v2 — black / white, denser layout ─── */

.mg-ui-v2 .mg-store-footer {
  --footer-ink: #0a0a0a;
  --footer-ink-2: #141414;
  --footer-ink-3: #1c1c1c;
  --footer-line: rgba(255, 255, 255, 0.12);
  --footer-line-soft: rgba(255, 255, 255, 0.08);
  --footer-muted: rgba(255, 255, 255, 0.58);
  --footer-muted-2: rgba(255, 255, 255, 0.42);
  --footer-white: #ffffff;
  --footer-soft: #f4f4f5;
  --footer-soft-line: #e4e4e7;
  --footer-text: #18181b;
  --footer-text-muted: #71717a;
  margin-top: auto;
  background: var(--footer-ink);
  color: var(--footer-white);
}

/* A — Features (white strip) */
.mg-ui-v2 .mg-store-footer__features {
  background: var(--footer-white);
  border-top: 1px solid var(--footer-soft-line);
  border-bottom: 1px solid var(--footer-soft-line);
  color: var(--footer-text);
}

.mg-ui-v2 .mg-store-footer__features-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  padding-block: 14px;
}

.mg-ui-v2 .mg-store-footer__feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--footer-text-muted);
}

.mg-ui-v2 .mg-store-footer__feature-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--footer-ink);
  stroke-width: 1.75;
}

.mg-ui-v2 .mg-store-footer__feature strong {
  display: block;
  margin-bottom: 1px;
  color: var(--footer-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .mg-ui-v2 .mg-store-footer__features-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 20px;
    padding-block: 16px;
  }
}

/* B — Partners catalog (white) */
.mg-ui-v2 .mg-store-footer__catalog {
  padding-block: 22px 24px;
  background: var(--footer-white);
  color: var(--footer-text);
  border-bottom: 1px solid var(--footer-soft-line);
}

.mg-ui-v2 #footer-stores {
  scroll-margin-top: 88px;
}

.mg-ui-v2 .mg-store-footer__catalog > .mg-store-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* C — Dark body */
.mg-ui-v2 .mg-store-footer__body {
  background: var(--footer-ink);
  color: var(--footer-white);
}

/* Stores — numbered cards, icon lines, denser hierarchy */
.mg-ui-v2 .mg-store-footer__stores {
  padding-block: 24px 22px;
  border-bottom: 1px solid var(--footer-line-soft);
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-footer__stores {
    padding-block: 30px 26px;
  }
}

.mg-ui-v2 .mg-store-footer__stores-head {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  text-align: center;
}

.mg-ui-v2 .mg-store-footer__stores-head-copy {
  position: relative;
  min-width: 0;
  max-width: 42rem;
  margin-inline: auto;
  padding-left: 0;
  padding-bottom: 12px;
}

/* Gạch nhấn giữa, dưới title block */
.mg-ui-v2 .mg-store-footer__stores-head-copy::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 2px;
  border-radius: 1px;
  background: var(--footer-white);
  transform: translateX(-50%);
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-footer__stores-head {
    margin-bottom: 22px;
  }
}

.mg-ui-v2 .mg-store-footer__stores-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--footer-white);
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-align: center;
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-footer__stores-title {
    font-size: 20px;
  }
}

.mg-ui-v2 .mg-store-footer__stores-desc {
  margin: 0 auto;
  max-width: 58ch;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--footer-muted);
  text-align: center;
}

.mg-ui-v2 .mg-store-footer-stores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 768px) {
  .mg-ui-v2 .mg-store-footer-stores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1100px) {
  .mg-ui-v2 .mg-store-footer-stores {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.mg-ui-v2 .mg-store-footer-store {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--footer-line-soft);
  border-radius: 12px;
  box-shadow: none;
  min-height: 100%;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mg-ui-v2 .mg-store-footer-store:hover {
  border-color: var(--footer-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.025) 100%);
}

.mg-ui-v2 .mg-store-footer-store__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--footer-line-soft);
}

.mg-ui-v2 .mg-store-footer-store__index {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 8px;
  background: var(--footer-white);
  color: var(--footer-ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.mg-ui-v2 .mg-store-footer-store__head-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.mg-ui-v2 .mg-store-footer-store__name {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--footer-white);
}

.mg-ui-v2 .mg-store-footer-store__hours {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 3px 8px 3px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--footer-line-soft);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--footer-muted);
}

.mg-ui-v2 .mg-store-footer-store__hours-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  color: var(--footer-muted-2);
}

.mg-ui-v2 .mg-store-footer-store__lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mg-ui-v2 .mg-store-footer-store__line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--footer-muted);
}

.mg-ui-v2 .mg-store-footer-store__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--footer-muted-2);
}

.mg-ui-v2 .mg-store-footer-store__line-body {
  min-width: 0;
  flex: 1;
}

.mg-ui-v2 .mg-store-footer-store__line--address {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.mg-ui-v2 .mg-store-footer-store__line--address .mg-store-footer-store__icon {
  color: rgba(255, 255, 255, 0.72);
}

.mg-ui-v2 .mg-store-footer-store__line--contact {
  font-weight: 700;
  color: var(--footer-white);
  font-variant-numeric: tabular-nums;
}

.mg-ui-v2 .mg-store-footer-store__line--contact .mg-store-footer-store__icon {
  color: rgba(255, 255, 255, 0.78);
}

.mg-ui-v2 .mg-store-footer-store__tel {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.mg-ui-v2 .mg-store-footer-store__tel:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mg-ui-v2 .mg-store-footer-store__line--muted {
  color: var(--footer-muted-2);
}

.mg-ui-v2 .mg-store-footer-store__line--action .mg-store-footer-store__line-body {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em 0.45em;
}

.mg-ui-v2 .mg-store-footer-store__label {
  color: var(--footer-muted);
}

.mg-ui-v2 .mg-store-footer-store__link {
  color: var(--footer-white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.mg-ui-v2 .mg-store-footer-store__link:hover {
  border-bottom-color: var(--footer-white);
}

@media (max-width: 767px) {
  .mg-ui-v2 .mg-store-footer-store {
    padding: 14px 14px 12px;
    border-radius: 10px;
  }

  .mg-ui-v2 .mg-store-footer-store__name {
    font-size: 12.5px;
  }
}

/* D — Link columns */
.mg-ui-v2 .mg-store-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-block: 4px 18px;
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding-block: 26px 22px;
  }
}

.mg-ui-v2 .mg-store-footer__col-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--footer-line-soft);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--footer-white);
  cursor: pointer;
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-footer__col-toggle {
    display: none;
  }
}

.mg-ui-v2 .mg-store-footer__col-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.mg-ui-v2 .mg-store-footer__col-body--open {
  max-height: 1400px;
  padding-bottom: 12px;
}

.mg-ui-v2 .mg-store-footer__col-title {
  display: none;
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--footer-white);
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-footer__col-title {
    display: block;
  }

  .mg-ui-v2 .mg-store-footer__col-body {
    max-height: none;
    overflow: visible;
    padding-bottom: 0;
  }
}

.mg-ui-v2 .mg-store-footer__intro {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--footer-muted);
}

.mg-ui-v2 .mg-store-footer__intro strong {
  color: var(--footer-white);
  font-weight: 600;
}

/* Mono social */
.mg-ui-v2 .mg-store-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.mg-ui-v2 .mg-store-footer__social-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--footer-line);
  background: var(--footer-ink-3);
  color: var(--footer-white);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mg-ui-v2 .mg-store-footer__social-item:hover {
  background: var(--footer-white);
  border-color: var(--footer-white);
  color: var(--footer-ink);
}

/* Payments under social (col 1) */
.mg-ui-v2 .mg-store-footer__payments {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid var(--footer-line-soft);
}

.mg-ui-v2 .mg-store-footer__payments-label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--footer-muted-2);
}

.mg-ui-v2 .mg-store-footer__payments-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mg-ui-v2 .mg-store-footer__payment-icon {
  width: 38px;
  height: 26px;
  object-fit: contain;
  background: var(--footer-white);
  border: 0;
  border-radius: 4px;
  padding: 2px 4px;
  box-sizing: border-box;
}

.mg-ui-v2 .mg-store-footer__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mg-ui-v2 .mg-store-footer__link {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--footer-muted);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.15s ease;
}

.mg-ui-v2 .mg-store-footer__link:hover {
  color: var(--footer-white);
}

.mg-ui-v2 .mg-store-footer__delivery {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--footer-muted);
  line-height: 1.45;
}

.mg-ui-v2 .mg-store-footer__hotline-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 12px;
}

.mg-ui-v2 .mg-store-footer__hotline-block span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--footer-muted-2);
}

.mg-ui-v2 .mg-store-footer__hotline {
  font-size: 20px;
  font-weight: 800;
  color: var(--footer-white);
  text-decoration: none;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.mg-ui-v2 .mg-store-footer__hotline:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mg-ui-v2 .mg-store-footer__showroom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 12.5px;
  color: var(--footer-muted);
  line-height: 1.45;
}

.mg-ui-v2 .mg-store-footer__showroom strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--footer-white);
  font-weight: 600;
}

.mg-ui-v2 .mg-store-footer__showroom-icon {
  width: 14px;
  height: 14px;
  color: var(--footer-white);
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-footer__map {
  display: inline-flex;
  align-items: center;
  margin-top: 2px;
  color: var(--footer-white);
  font-weight: 600;
  font-size: 12.5px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  width: fit-content;
}

.mg-ui-v2 .mg-store-footer__map:hover {
  border-bottom-color: var(--footer-white);
}

/* E — Bottom legal + Discord-style giant watermark (from trade-in-mg) */
.mg-ui-v2 .mg-store-footer__bottom {
  position: relative;
  overflow: hidden;
  background: #111111;
  border-top: 1px solid var(--footer-line-soft);
  padding-block: 20px 0;
}

.mg-ui-v2 .mg-store-footer__glow {
  pointer-events: none;
  position: absolute;
  border-radius: 9999px;
  filter: blur(48px);
  z-index: 0;
}

.mg-ui-v2 .mg-store-footer__glow--left {
  left: -6rem;
  top: 0;
  width: 16rem;
  height: 16rem;
  background: rgba(208, 41, 21, 0.2);
}

.mg-ui-v2 .mg-store-footer__glow--right {
  right: -4rem;
  top: 4rem;
  width: 12rem;
  height: 12rem;
  background: rgba(208, 41, 21, 0.1);
}

.mg-ui-v2 .mg-store-footer__bottom-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 8px;
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-footer__bottom-inner {
    grid-template-columns: 1fr auto;
    gap: 24px 28px;
    align-items: center;
    padding-bottom: 12px;
  }
}

.mg-ui-v2 .mg-store-footer__logo {
  display: block;
  max-width: 200px;
  width: 100%;
  line-height: 0;
}

.mg-ui-v2 .mg-store-footer__logo-svg {
  width: 100%;
  height: auto;
  display: block;
}

.mg-ui-v2 .mg-store-footer__logo-img {
  max-width: 120px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.mg-ui-v2 .mg-store-footer__legal {
  margin: 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

.mg-ui-v2 .mg-store-footer__legal-link {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  text-decoration: none;
}

.mg-ui-v2 .mg-store-footer__legal-link:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mg-ui-v2 .mg-store-footer .footer-bottom-badges {
  justify-content: flex-start;
  gap: 10px;
}

.mg-ui-v2 .mg-store-footer .footer-trust-badge__bct {
  width: 112px;
  height: auto;
  display: block;
  border-radius: 4px;
  opacity: 1;
  filter: none;
}

.mg-ui-v2 .mg-store-footer .footer-trust-badge__dmca {
  opacity: 0.92;
  filter: grayscale(0.15) brightness(1.05);
}

/* Giant soft wordmark */
.mg-ui-v2 .mg-store-footer__watermark {
  position: relative;
  z-index: 0;
  width: 100%;
  overflow: hidden;
  padding: 2.25rem 0.75rem 0;
  margin-top: 0.25rem;
  user-select: none;
  pointer-events: none;
}

.mg-ui-v2 .mg-store-footer__watermark-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  transform-origin: bottom center;
  transform: scale(1.02);
}

.mg-ui-v2 .mg-store-footer__watermark-logo {
  width: 100%;
  height: auto;
  display: block;
}

.mg-ui-v2 .mg-store-footer__watermark-fade {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2.75rem;
  background: linear-gradient(
    to top,
    #111111 0%,
    rgba(17, 17, 17, 0.75) 55%,
    transparent 100%
  );
}

@media (min-width: 768px) {
  .mg-ui-v2 .mg-store-footer__watermark {
    padding: 3.25rem 1.5rem 0;
  }

  .mg-ui-v2 .mg-store-footer__watermark-fade {
    height: 3rem;
  }

  .mg-ui-v2 .mg-store-footer__logo {
    max-width: 220px;
  }
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-footer .footer-bottom-badges {
    justify-content: flex-end;
  }

  .mg-ui-v2 .mg-store-footer__watermark {
    padding-top: 4rem;
  }
}

/* Partners title + carousel inside white catalog */
.mg-ui-v2 .mg-store-footer .box-title-group {
  display: flex;
  align-items: baseline;
  justify-content: center;
  max-width: 630px;
  margin: 0 auto 14px;
  position: relative;
  border-bottom: 1px solid #ececee;
  text-transform: uppercase;
  line-height: 18px;
  padding-bottom: 12px;
}

.mg-ui-v2 .mg-store-footer .box-title-group::after {
  content: "";
  width: 72px;
  height: 2px;
  background-color: var(--footer-ink);
  position: absolute;
  left: 50%;
  bottom: -1px;
  transform: translateX(-50%);
}

.mg-ui-v2 .mg-store-footer .box-title-group .title {
  margin: 0;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--footer-text);
}

.mg-ui-v2 .mg-store-footer .box-title-group--brand {
  margin-top: 0;
}

.mg-ui-v2 .mg-store-footer .box-title-group--stores {
  max-width: none;
  margin-top: 0;
  margin-bottom: 14px;
}

.mg-ui-v2 .mg-store-footer .box-title-group--stores .title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--footer-white);
  text-align: center;
}

.mg-ui-v2 .mg-store-footer .footer-partners .home-brand-group {
  margin: 0;
}

.mg-ui-v2 .mg-store-footer .home-brand-group {
  position: relative;
}

.mg-ui-v2 .mg-store-footer .home-brand-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -3px;
}

.mg-ui-v2 .mg-store-footer .home-brand-stage-outer {
  overflow: hidden;
}

.mg-ui-v2 .mg-store-footer .home-brand-stage {
  display: flex;
  transition: transform 0.3s ease;
}

.mg-ui-v2 .mg-store-footer .home-brand-item {
  padding: 0 3px;
}

.mg-ui-v2 .mg-store-footer .home-brand-group a {
  display: block;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  border: 1px solid #ececee;
  border-radius: 8px;
  position: relative;
  aspect-ratio: 160 / 57;
  padding-bottom: 0;
  margin: 4px 3px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mg-ui-v2 .mg-store-footer .home-brand-group a:hover {
  border-color: #d4d4d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mg-ui-v2 .mg-store-footer .home-brand-group a img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  width: auto !important;
  object-fit: contain;
}

.mg-ui-v2 .mg-store-footer .home-brand-carousel.custom-nav .owl-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: unset;
  cursor: pointer;
  transition: opacity 0.3s ease;
  opacity: 0.85;
}

.mg-ui-v2 .mg-store-footer .home-brand-carousel.custom-nav:hover .owl-nav-btn {
  opacity: 1;
}

.mg-ui-v2 .mg-store-footer .home-brand-carousel.custom-nav .owl-nav-btn--prev {
  left: 5px;
}

.mg-ui-v2 .mg-store-footer .home-brand-carousel.custom-nav .owl-nav-btn--next {
  right: 5px;
}

.mg-ui-v2 .mg-store-footer .home-brand-carousel.custom-nav .owl-nav-btn .arrow {
  width: 18px;
  height: 36px;
  border-radius: 0 100px 100px 0;
  display: block;
  background-color: rgba(10, 10, 10, 0.45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  position: relative;
}

.mg-ui-v2 .mg-store-footer .home-brand-carousel.custom-nav .owl-nav-btn .arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-30%, -50%) rotate(45deg);
}

.mg-ui-v2 .mg-store-footer .home-brand-carousel.custom-nav .owl-nav-btn .arrow-right {
  transform: rotate(180deg);
}

.mg-ui-v2 .mg-store-footer .home-brand-carousel.custom-nav .owl-nav-btn:hover .arrow {
  background-color: #0a0a0a;
}

@media (max-width: 767px) {
  .mg-ui-v2 .mg-store-footer__catalog {
    padding-block: 16px 18px;
  }

  .mg-ui-v2 .mg-store-footer__grid {
    padding-inline: 0;
  }

  .mg-ui-v2 .mg-store-footer__col-toggle,
  .mg-ui-v2 .mg-store-footer__col-body {
    padding-inline: 16px;
  }

  .mg-ui-v2 .mg-store-footer .box-title-group .title {
    font-size: 1.15rem;
  }

  .mg-ui-v2 .mg-store-footer .footer-partners {
    overflow: hidden;
    padding: 0 2px;
  }

  .mg-ui-v2 .mg-store-footer .footer-partners__title {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  .mg-ui-v2 .mg-store-footer .footer-partners__title .title {
    font-size: 18px;
  }

  .mg-ui-v2 .mg-store-footer .home-brand-group {
    margin: 0;
    padding: 0 28px;
  }

  .mg-ui-v2 .mg-store-footer .home-brand-carousel {
    margin: 0;
  }

  .mg-ui-v2 .mg-store-footer .home-brand-group a {
    margin: 3px 2px;
    padding-bottom: 0;
    aspect-ratio: 2.4 / 1;
    min-height: 48px;
  }

  .mg-ui-v2 .mg-store-footer .home-brand-carousel.custom-nav .owl-nav-btn {
    opacity: 1;
  }

  .mg-ui-v2 .mg-store-footer .home-brand-carousel.custom-nav .owl-nav-btn--prev {
    left: 0;
  }

  .mg-ui-v2 .mg-store-footer .home-brand-carousel.custom-nav .owl-nav-btn--next {
    right: 0;
  }

  .mg-ui-v2 .mg-store-footer__bottom {
    padding-block: 16px 0;
  }

  .mg-ui-v2 .mg-store-footer__logo {
    max-width: 170px;
  }

  .mg-ui-v2 .mg-store-footer__watermark {
    padding: 1.75rem 0.5rem 0;
  }
}
