/* MYGEAR Store UI — homepage (PR R4) */

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

.mg-ui-v2 .mg-store-home__bottom {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 44px);
  padding-block: var(--store-gap-lg) 40px;
}

.mg-ui-v2 .mg-store-home-video,
.mg-ui-v2 .mg-store-home-articles {
  min-width: 0;
}

.mg-ui-v2 .mg-store-home-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2px solid var(--store-border);
  border-top-color: var(--store-brand);
  border-radius: 50%;
  animation: mg-store-spin 0.7s linear infinite;
}

@keyframes mg-store-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hero zone — Newegg stack: main → sub → combo */
.mg-ui-v2 .mg-store-home-zone {
  --mg-home-banner-gap: clamp(6px, 0.6vw, 12px);
  width: 100%;
  padding-block: clamp(8px, 1vw, 16px) clamp(12px, 1.2vw, 20px);
  background: var(--store-bg);
}

/*
 * Hero block — tỉ lệ cố định (thiết kế banner):
 * Main desktop 1920×729, mobile 5∶2 (1000×400)
 * Sub mỗi ô desktop 480×183 (cùng tỉ lệ, 1/4 chiều rộng main)
 */
.mg-ui-v2 .mg-store-home-zone__layout {
  --mg-home-rail-w: clamp(200px, 14vw, 260px);
  --mg-home-zone-gap: clamp(6px, 0.6vw, 12px);
  --mg-home-banner-aspect: 5 / 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 768px) {
  .mg-ui-v2 .mg-store-home-zone__layout {
    --mg-home-banner-aspect: 1920 / 729;
  }
}

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

.mg-ui-v2 .mg-store-home-zone__content {
  display: flex;
  flex-direction: column;
  gap: var(--mg-home-banner-gap);
  min-width: 0;
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-home-zone__content {
    margin-left: calc(var(--mg-home-rail-w) + var(--mg-home-zone-gap));
  }

  .mg-ui-v2 .mg-store-home-zone__main {
    flex-shrink: 0;
  }
}

/* Combo full-width — không chia cột với sidebar danh mục */
.mg-ui-v2 .mg-store-home-zone__combo-full {
  width: 100%;
  min-width: 0;
  margin-top: clamp(8px, 0.8vw, 14px);
}

/* Homepage category rail — Newegg layout, MYGEAR palette */
.mg-ui-v2 .mg-store-home-cat-rail {
  display: none;
  position: relative;
  --mg-store-home-cat-rail-w: var(--mg-home-rail-w, clamp(200px, 14vw, 260px));
  --mg-store-home-cat-flyout-w: min(760px, calc(100vw - var(--mg-store-home-cat-rail-w) - 80px));
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-home-cat-rail {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 3;
    width: var(--mg-home-rail-w);
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .mg-ui-v2 .mg-store-home-cat-rail__nav.mg-store-mega-rail {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--store-radius-sm);
    box-shadow: var(--store-shadow-sm);
  }
}

.mg-ui-v2 .mg-store-home-cat-rail__nav.mg-store-mega-rail {
  width: var(--mg-store-home-cat-rail-w);
  min-height: 0;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-sm);
  background: var(--store-bg);
  box-shadow: var(--store-shadow-sm);
  overflow: hidden;
}

.mg-ui-v2 .mg-store-home-cat-rail--open .mg-store-home-cat-rail__nav.mg-store-mega-rail {
  border-color: var(--store-brand);
  box-shadow: var(--store-shadow-md);
}

.mg-ui-v2 .mg-store-home-cat-rail__title {
  margin: 0;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--store-border);
  font-size: var(--store-fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--store-brand);
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-home-cat-rail .mg-store-mega-rail__list {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.mg-ui-v2 .mg-store-home-cat-rail__flyout {
  position: absolute;
  top: var(--cat-flyout-top, 0);
  left: calc(var(--mg-store-home-cat-rail-w) + 6px);
  z-index: 25;
  width: var(--mg-store-home-cat-flyout-w);
  max-height: min(480px, 65vh);
  overflow: hidden;
  border-radius: var(--store-radius-md);
  box-shadow: var(--store-shadow-md);
  transition: top 0.12s ease;
}

.mg-ui-v2 .mg-store-home-cat-rail__flyout .mg-store-mega-flyout {
  height: 100%;
  max-height: min(480px, 65vh);
  border-radius: var(--store-radius-md);
  border: 1px solid var(--store-border);
  box-shadow: none;
}

.mg-ui-v2 .mg-store-home-zone__main {
  width: 100%;
}

.mg-ui-v2 .mg-store-home-zone__sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mg-home-banner-gap);
  width: 100%;
  min-height: 0;
}

@media (min-width: 768px) {
  .mg-ui-v2 .mg-store-home-zone__sub {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mg-ui-v2 .mg-store-home-zone__sub-item {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--mg-home-banner-aspect);
  height: auto;
  min-height: 0;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-sm);
  line-height: 0;
  transition:
    border-color var(--store-ease),
    box-shadow var(--store-ease),
    transform var(--store-ease);
}

.mg-ui-v2 .mg-store-home-zone__sub-item:hover {
  border-color: #d0d7e2;
  box-shadow: 0 4px 12px rgba(33, 43, 54, 0.08);
  transform: translateY(-1px);
}

.mg-ui-v2 .mg-store-home-zone__sub-img {
  object-fit: cover;
  object-position: center;
}



.mg-ui-v2 .mg-store-home-zone__strips {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--mg-home-banner-gap);
  width: 100%;
  min-width: 0;
  margin-top: var(--mg-home-banner-gap);
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-home-zone__strips {
    align-items: stretch;
  }
}

.mg-ui-v2 .mg-store-home-zone__strip {
  min-width: 0;
  display: flex;
}

/* Hero strip — 3 slot carousel (combo / banner / product) */
.mg-ui-v2 .mg-store-home-strip__carousel {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.mg-ui-v2 .mg-store-home-strip__slot-head,
.mg-ui-v2 .mg-store-home-strip__product-head,
.mg-ui-v2 .mg-store-home-strip__combo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
}

.mg-ui-v2 .mg-store-home-strip__slot-title,
.mg-ui-v2 .mg-store-home-strip__product-label {
  margin: 0;
  font-size: var(--store-fs-sm);
  font-weight: 700;
  color: var(--store-text);
}

.mg-ui-v2 .mg-store-home-strip__product-head-main,
.mg-ui-v2 .mg-store-home-strip__combo-head-main {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.mg-ui-v2 .mg-store-home-strip__product-icon {
  color: var(--store-brand);
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-home-strip__more {
  font-size: 11px;
  font-weight: 600;
  color: var(--store-text-muted);
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-home-strip__more:hover {
  color: var(--store-brand);
  text-decoration: underline;
}

.mg-ui-v2 .mg-store-home-strip__shell.mg-store-carousel-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding-inline: 0;
}

.mg-ui-v2 .mg-store-home-strip__shell .mg-store-carousel-nav--prev {
  left: 6px;
}

.mg-ui-v2 .mg-store-home-strip__shell .mg-store-carousel-nav--next {
  right: 6px;
}

.mg-ui-v2 .mg-store-home-strip__stage {
  position: relative;
  width: 100%;
}

.mg-ui-v2 .mg-store-home-strip__frame {
  position: relative;
  height: clamp(300px, 22vw, 336px);
  overflow: hidden;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-md);
  background: #fff;
  box-shadow: var(--store-shadow-sm);
}

.mg-ui-v2 .mg-store-home-strip__frame--combo {
  background: linear-gradient(165deg, #fff9f8 0%, #ffffff 38%, #f8fafc 100%);
  border-color: #ecd8d4;
}

.mg-ui-v2 .mg-store-home-strip__frame--product {
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, #fafbfc 0%, #ffffff 55%, #fff6f4 100%);
  border-color: #e2e8f0;
}

.mg-ui-v2 .mg-store-home-strip__frame--banner {
  height: clamp(300px, 22vw, 336px);
  border-radius: var(--store-radius-md);
}

.mg-ui-v2 .mg-store-home-strip__track {
  position: absolute;
  inset: 0;
}

.mg-ui-v2 .mg-store-home-strip__track--product {
  position: relative;
  inset: auto;
  flex: 1;
  min-height: 0;
}

.mg-ui-v2 .mg-store-home-strip__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  will-change: transform, opacity;
}

.mg-ui-v2 .mg-store-home-strip__slide--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.mg-ui-v2 .mg-store-home-strip__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  min-height: 14px;
  flex-shrink: 0;
  pointer-events: auto;
}

.mg-ui-v2 .mg-store-home-strip__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d0d7e2;
  cursor: pointer;
  transition:
    background-color var(--store-ease),
    transform var(--store-ease);
}

.mg-ui-v2 .mg-store-home-strip__dot--active {
  background: var(--store-brand);
  transform: scale(1.2);
}

.mg-ui-v2 .mg-store-home-strip__dot:hover {
  background: #a8b4c4;
}

.mg-ui-v2 .mg-store-home-strip__dot--active:hover {
  background: var(--store-brand-dark);
}

/* Combo strip panel — densify fill, keep 1-row CPU/Main/RAM */
.mg-ui-v2 .mg-store-home-strip__combo-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  padding: 12px 12px 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.mg-ui-v2 .mg-store-home-strip__combo-head {
  flex-shrink: 0;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(217, 22, 5, 0.1);
}

.mg-ui-v2 .mg-store-home-strip__combo-head-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mg-ui-v2 .mg-store-home-strip__combo-category {
  font-size: 10px;
  font-weight: 700;
  color: var(--store-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mg-ui-v2 .mg-store-home-strip__combo-headline {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--store-text);
}

.mg-ui-v2 .mg-store-home-strip__combo-goods-well {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: center;
  min-height: 0;
  padding: 4px 0;
  background: transparent;
  overflow: hidden;
}

.mg-ui-v2 .mg-store-home-strip__combo-goods-row {
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  min-height: 0;
  /* always one row: 3 product cells + plus separators */
}

.mg-ui-v2 .mg-store-home-strip__combo-goods-item {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  gap: 2px;
}

.mg-ui-v2 .mg-store-home-strip__combo-cell {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
}

.mg-ui-v2 .mg-store-home-strip__combo-cell-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  height: 100%;
  min-width: 0;
  text-align: center;
  color: inherit;
}

.mg-ui-v2 .mg-store-home-strip__combo-cell-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  min-height: calc(2 * 1.32em);
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 600;
  line-height: 1.32;
  color: var(--store-text);
  overflow-wrap: anywhere;
}

.mg-ui-v2 .mg-store-home-strip__combo-cell-title .p-name__sku {
  word-break: break-all;
}

.mg-ui-v2 .mg-store-home-strip__combo-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: var(--store-text-muted);
  background: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-home-strip__combo-good-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: clamp(64px, 5.6vw, 88px);
  aspect-ratio: 1;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.mg-ui-v2 .mg-store-home-strip__combo-good-img-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: none;
  outline: none;
  box-shadow: none;
}

.mg-ui-v2 .mg-store-home-strip__combo-good-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.mg-ui-v2 .mg-store-home-strip__combo-good-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: clamp(10px, 0.82vw, 12px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--store-text);
  word-break: break-word;
}

.mg-ui-v2 .mg-store-home-strip__combo-good-title:hover {
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-home-strip__combo-good-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.mg-ui-v2 .mg-store-home-strip__combo-good-price-now {
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 700;
  color: var(--store-price);
}

.mg-ui-v2 .mg-store-home-strip__combo-good-price-was {
  font-size: 10px;
  color: var(--store-text-muted);
  text-decoration: line-through;
}

.mg-ui-v2 .mg-store-home-strip__combo-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(33, 43, 54, 0.08);
}

.mg-ui-v2 .mg-store-home-strip__combo-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mg-ui-v2 .mg-store-home-strip__combo-actions .mg-store-home-strip__btn--primary:only-child {
  grid-column: 1 / -1;
}

.mg-ui-v2 .mg-store-home-strip__combo-pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
}

.mg-ui-v2 .mg-store-home-strip__combo-eq {
  font-size: 16px;
  font-weight: 700;
  color: var(--store-text-muted);
}

.mg-ui-v2 .mg-store-home-strip__combo-price {
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 700;
  color: var(--store-price);
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-home-strip__combo-price-old {
  font-size: var(--store-fs-sm);
  color: var(--store-text-muted);
  text-decoration: line-through;
}

.mg-ui-v2 .mg-store-home-strip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--store-radius-sm);
  box-sizing: border-box;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--store-ease),
    border-color var(--store-ease),
    color var(--store-ease);
}

.mg-ui-v2 .mg-store-home-strip__btn--ghost {
  border-color: var(--store-brand);
  background: #fff;
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-home-strip__btn--ghost:hover:not(:disabled) {
  background: var(--store-brand-tint);
  color: var(--store-cta-bg-hover);
}

.mg-ui-v2 .mg-store-home-strip__btn--primary {
  border-color: var(--store-cta-bg);
  background: var(--store-cta-bg);
  color: #fff;
}

.mg-ui-v2 .mg-store-home-strip__btn--primary:hover:not(:disabled) {
  background: var(--store-cta-bg-hover);
  border-color: var(--store-cta-bg-hover);
}

.mg-ui-v2 .mg-store-home-strip__btn--primary:disabled {
  background: var(--store-cta-disabled-bg);
  border-color: var(--store-cta-disabled-bg);
  color: var(--store-cta-disabled-text);
  cursor: not-allowed;
}

/* Banner strip panel — fill shared strip height */
.mg-ui-v2 .mg-store-home-strip__banner-panel {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.mg-ui-v2 .mg-store-home-strip__frame--banner .mg-store-home-strip__slide,
.mg-ui-v2 .mg-store-home-strip__frame--banner .mg-store-home-strip__banner-panel {
  height: 100%;
}

.mg-ui-v2 .mg-store-home-strip__banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mg-ui-v2 .mg-store-home-strip__banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(33, 43, 54, 0.08) 40%, rgba(33, 43, 54, 0.45) 100%);
}

.mg-ui-v2 .mg-store-home-strip__banner-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mg-ui-v2 .mg-store-home-strip__banner-title {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.mg-ui-v2 .mg-store-home-strip__banner-cta {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--store-radius-sm);
  background: var(--store-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* Product strip panel */
.mg-ui-v2 .mg-store-home-strip__carousel--product {
  gap: 0;
}

.mg-ui-v2 .mg-store-home-strip__frame--product .mg-store-home-strip__product-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(217, 22, 5, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
  border-bottom: 1px solid rgba(217, 22, 5, 0.12);
}

.mg-ui-v2 .mg-store-home-strip__frame--product .mg-store-home-strip__product-label {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 700;
}

.mg-ui-v2 .mg-store-home-strip__product-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  padding: 10px 12px 12px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Deal sốc: info column + media — clear hierarchy for live / locked price */
.mg-ui-v2 .mg-store-home-strip__product-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(110px, 11vw, 148px);
  gap: 10px;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.mg-ui-v2 .mg-store-home-strip__product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  height: 100%;
  justify-content: center;
}

.mg-ui-v2 .mg-store-home-strip__product-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(2 * 1.3em);
  margin: 0;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--store-text);
  text-decoration: none;
}

.mg-ui-v2 .mg-store-home-strip__product-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

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

.mg-ui-v2 .mg-store-home-strip__product-promo {
  margin: 0;
  font-size: clamp(10px, 0.8vw, 12px);
  line-height: 1.45;
  color: var(--store-text-muted);
}

.mg-ui-v2 .mg-store-home-strip__product-teaser {
  margin-top: 2px;
}

.mg-ui-v2 .mg-store-home-strip__product-teaser .mg-store-price-teaser__now {
  font-size: clamp(18px, 1.6vw, 26px);
}

.mg-ui-v2 .mg-store-home-strip__product-cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--store-brand);
  text-decoration: none;
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-home-strip__product-cta:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mg-ui-v2 .mg-store-home-strip__product-price {
  font-size: clamp(20px, 1.75vw, 28px);
  font-weight: 700;
  color: var(--store-price);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

.mg-ui-v2 .mg-store-home-strip__product-price--flash {
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-home-strip__product-price--masked {
  font-size: clamp(18px, 1.5vw, 24px);
  font-variant-numeric: tabular-nums;
  color: #e11d48;
}

.mg-ui-v2 .mg-store-home-strip__product-progress {
  margin-top: 2px;
  min-width: 0;
}

.mg-ui-v2 .mg-store-home-strip__product-progress-track {
  height: 4px;
  border-radius: 2px;
  background: #f1f5f9;
  overflow: hidden;
}

.mg-ui-v2 .mg-store-home-strip__product-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--store-brand);
}

.mg-ui-v2 .mg-store-home-strip__product-progress-label {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--store-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mg-ui-v2 .mg-store-home-strip__product-panel--flash .mg-store-home-strip__product-promo {
  color: #b45309;
}

.mg-ui-v2 .mg-store-home-strip__product-price-old {
  font-size: var(--store-fs-sm);
  color: var(--store-text-muted);
  text-decoration: line-through;
}

.mg-ui-v2 .mg-store-home-strip__product-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-home-strip__product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
}

.mg-ui-v2 .mg-store-home-strip__product-media-well {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: clamp(100px, 10vw, 140px);
  max-height: 160px;
  padding: 4px;
  background: transparent;
}

.mg-ui-v2 .mg-store-home-strip__product-discount {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: var(--store-brand);
}



.mg-ui-v2 .mg-store-home-strip__product-img {
  width: 100%;
  height: 100%;
  max-height: clamp(100px, 10vw, 148px);
  object-fit: contain;
}

@media (max-width: 991px) {
  .mg-ui-v2 .mg-store-home-zone__strips {
    grid-template-columns: 1fr !important;
  }

  .mg-ui-v2 .mg-store-home-zone__strips--combo-only {
    margin-top: clamp(6px, 1.5vw, 10px);
  }

  .mg-ui-v2 .mg-store-home-zone__strips--combo-only .mg-store-home-zone__strip--combo {
    width: 100%;
  }

  .mg-ui-v2 .mg-store-home-zone__strips--combo-only .mg-store-home-strip__combo-panel {
    padding: 10px 12px 12px;
    gap: 8px;
  }

  .mg-ui-v2 .mg-store-home-zone__strips--combo-only .mg-store-home-strip__combo-headline {
    font-size: 15px;
    line-height: 1.25;
  }

  .mg-ui-v2 .mg-store-home-zone__strips--combo-only .mg-store-home-strip__combo-goods-row {
    gap: 6px;
  }

  .mg-ui-v2 .mg-store-home-zone__strips--combo-only .mg-store-home-strip__combo-foot {
    gap: 8px;
    padding-top: 4px;
  }

  .mg-ui-v2 .mg-store-home-strip__combo-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .mg-ui-v2 .mg-store-home-zone__strips--combo-only .mg-store-home-strip__combo-goods-well {
    padding: 8px;
  }

  .mg-ui-v2 .mg-store-home-zone__strips--combo-only .mg-store-home-strip__combo-good-title {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }

  .mg-ui-v2 .mg-store-home-zone__strips--combo-only .mg-store-home-strip__btn {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Promo carousel strips */
.mg-ui-v2 .mg-store-home-promo-carousel {
  width: 100%;
}

.mg-ui-v2 .mg-store-home-promo-carousel__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--store-border);
  border-radius: 4px;
  background: var(--store-surface);
}

.mg-ui-v2 .mg-store-home-promo-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--store-bg);
}

.mg-ui-v2 .mg-store-home-promo-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background: var(--store-bg);
  will-change: transform, opacity;
}

.mg-ui-v2 .mg-store-home-promo-carousel__slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.mg-ui-v2 .mg-store-home-promo-carousel__img {
  object-fit: cover;
  object-position: center;
}

.mg-ui-v2 .mg-store-home-promo-carousel__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.mg-ui-v2 .mg-store-home-promo-carousel:hover .mg-store-home-promo-carousel__dots,
.mg-ui-v2 .mg-store-home-promo-carousel:focus-within .mg-store-home-promo-carousel__dots {
  opacity: 1;
  pointer-events: auto;
}

.mg-ui-v2 .mg-store-home-promo-carousel__dot {
  width: 6px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.22s ease, background-color 0.22s ease;
}

.mg-ui-v2 .mg-store-home-promo-carousel__dot--active {
  width: 18px;
  background: var(--store-brand);
}

.mg-ui-v2 .mg-store-home-cats--embedded {
  padding-block: 4px 8px;
  border-bottom: 1px solid var(--store-border);
}

.mg-ui-v2 .mg-store-home-hero.mg-store-home-hero--embedded {
  padding: 0;
  width: 100%;
  min-height: 0;
}

/* Hero — Newegg band trong container (~4:1) */
.mg-ui-v2 .mg-store-home-hero {
  width: 100%;
  background: var(--store-bg);
  padding-block: 12px 0;
}

.mg-ui-v2 .mg-store-home-hero__container {
  padding-inline: var(--store-gap, 12px);
}

.mg-ui-v2 .mg-store-home-hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--mg-home-banner-aspect, 5 / 2);
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-sm);
  background: var(--store-surface);
  box-shadow: 0 1px 3px rgba(33, 43, 54, 0.06);
}

.mg-ui-v2 .mg-store-home-hero__track {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--store-bg);
}

.mg-ui-v2 .mg-store-home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background: var(--store-bg);
  will-change: transform, opacity;
}

.mg-ui-v2 .mg-store-home-hero__slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.mg-ui-v2 .mg-store-home-hero__img {
  object-fit: cover;
  object-position: center;
}

.mg-ui-v2 .mg-store-home-hero__carousel-shell {
  width: 100%;
  padding-inline: 0;
}

.mg-ui-v2 .mg-store-home-hero__carousel-shell .mg-store-home-hero__nav.mg-store-carousel-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--store-text);
  box-shadow: 0 2px 8px rgba(33, 43, 54, 0.18);
}

.mg-ui-v2 .mg-store-home-hero__carousel-shell .mg-store-carousel-nav--prev.mg-store-home-hero__nav {
  left: 10px;
}

.mg-ui-v2 .mg-store-home-hero__carousel-shell .mg-store-carousel-nav--next.mg-store-home-hero__nav {
  right: 10px;
}

.mg-ui-v2 .mg-store-home-hero__carousel-shell:hover .mg-store-home-hero__nav,
.mg-ui-v2 .mg-store-home-hero__carousel-shell:focus-within .mg-store-home-hero__nav {
  opacity: 1;
  pointer-events: auto;
}

.mg-ui-v2 .mg-store-home-hero__carousel-shell .mg-store-home-hero__nav:hover,
.mg-ui-v2 .mg-store-home-hero__carousel-shell .mg-store-home-hero__nav:focus-visible {
  background: #fff;
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-home-hero__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.mg-ui-v2 .mg-store-home-hero:hover .mg-store-home-hero__dots,
.mg-ui-v2 .mg-store-home-hero:focus-within .mg-store-home-hero__dots {
  opacity: 1;
  pointer-events: auto;
}

.mg-ui-v2 .mg-store-home-hero__dot {
  width: 8px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.22s ease, background-color 0.22s ease;
}

.mg-ui-v2 .mg-store-home-hero__dot--active {
  width: 24px;
  background: var(--store-brand);
}

/* Under-hero banners */
.mg-ui-v2 .mg-store-home-under {
  padding-block: 12px;
}

.mg-ui-v2 .mg-store-home-under__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .mg-ui-v2 .mg-store-home-under__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mg-ui-v2 .mg-store-home-under__item {
  display: block;
  overflow: hidden;
  border: 1px solid var(--store-border);
  line-height: 0;
}

.mg-ui-v2 .mg-store-home-under__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Category promo tiles — Newegg style */
.mg-ui-v2 .mg-store-home-cats {
  padding-block: 12px 16px;
  border-bottom: 1px solid var(--store-border);
}

.mg-ui-v2 .mg-store-home-cats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}

.mg-ui-v2 .mg-store-home-cats__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--store-border);
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  color: var(--store-text);
  transition: border-color 0.15s ease;
}

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

.mg-ui-v2 .mg-store-home-cats__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--store-surface);
}

.mg-ui-v2 .mg-store-home-cats__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mg-ui-v2 .mg-store-home-cats__promo {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--store-price);
}

.mg-ui-v2 .mg-store-home-cats__label {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

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

@media (max-width: 767px) {
  .mg-ui-v2 .mg-store-home-cats__grid {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

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

  .mg-ui-v2 .mg-store-home-cats__item {
    flex: 0 0 112px;
    scroll-snap-align: start;
  }
}

/* Category sections — TNNS boxflasalechuan: active tab + split share one panel tint */
.mg-ui-v2 .mg-store-home-cat {
  padding-block: 12px;
}

.mg-ui-v2 .mg-store-home-cat__frame {
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--store-home-cat-panel-glow);
}

.mg-ui-v2 .mg-store-home-cat__tabs {
  background: #fff;
  border-radius: 15px 15px 0 0;
}

.mg-ui-v2 .mg-store-home-cat__tabs-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 56px;
  padding: 0;
}

.mg-ui-v2 .mg-store-home-cat__tabs-scroll {
  --mg-home-cat-tab-min-w: 152px;
  --mg-home-cat-tab-fixed-w: calc(100% / 3);
  position: relative;
  display: flex;
  flex: 1;
  align-items: stretch;
  align-self: stretch;
  gap: 0;
  min-height: 56px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.mg-ui-v2 .mg-store-home-cat__tab-indicator {
  display: none;
}

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

.mg-ui-v2 .mg-store-home-cat__tab {
  position: relative;
  flex: 1 1 0;
  min-width: var(--mg-home-cat-tab-min-w, 152px);
  min-height: 56px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 14px 20px;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  transition:
    color var(--store-ease),
    background var(--store-ease),
    border-color var(--store-ease);
}

.mg-ui-v2 .mg-store-home-cat__tab-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--store-text);
  text-align: center;
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-home-cat__tab-sub {
  font-size: 13px;
  line-height: 1.2;
  color: var(--store-text-muted);
  text-align: center;
}

.mg-ui-v2 .mg-store-home-cat__tab:hover:not(.mg-store-home-cat__tab--active) {
  background: var(--store-brand-tint);
}

.mg-ui-v2 .mg-store-home-cat__tab:hover:not(.mg-store-home-cat__tab--active) .mg-store-home-cat__tab-label {
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-home-cat__tab--active {
  background: var(--store-home-cat-surface);
  border-radius: 0;
  z-index: 2;
}

.mg-ui-v2 .mg-store-home-cat__tab--active .mg-store-home-cat__tab-label {
  color: #fff;
}

.mg-ui-v2 .mg-store-home-cat__tab--active .mg-store-home-cat__tab-sub {
  color: rgba(255, 255, 255, 0.82);
}

.mg-ui-v2 .mg-store-home-cat__tab--solo,
.mg-ui-v2 .mg-store-home-cat__tab--static {
  flex: 0 0 var(--mg-home-cat-tab-fixed-w, calc(100% / 3));
  width: var(--mg-home-cat-tab-fixed-w, calc(100% / 3));
  min-width: var(--mg-home-cat-tab-min-w, 152px);
  max-width: var(--mg-home-cat-tab-fixed-w, calc(100% / 3));
}

.mg-ui-v2 .mg-store-home-cat__tab--static {
  cursor: default;
}

.mg-ui-v2 .mg-store-home-cat__split {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.22fr) minmax(0, 1fr);
  gap: 0;
  margin-top: 0;
  padding: 15px;
  background: var(--store-home-cat-panel-bg);
  border-radius: 0 0 15px 15px;
}

.mg-ui-v2 .mg-store-home-cat__split--visual-right {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.22fr);
}

.mg-ui-v2 .mg-store-home-cat__split--visual-right .mg-store-home-cat__visual {
  order: 2;
}

.mg-ui-v2 .mg-store-home-cat__split--visual-right .mg-store-home-cat__products {
  order: 1;
  padding-left: 0;
  padding-right: 8px;
}

.mg-ui-v2 .mg-store-home-cat__split--visual-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.mg-ui-v2 .mg-store-home-cat__split--visual-hidden .mg-store-home-cat__products {
  padding-left: 0;
}

.mg-ui-v2 .mg-store-home-cat__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
}

.mg-ui-v2 .mg-store-home-cat__visual-stage {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
}

.mg-ui-v2 .mg-store-home-cat__visual-img-wrap {
  width: 100%;
  max-width: 220px;
}

.mg-ui-v2 .mg-store-home-cat__visual-img-wrap--previous {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mg-ui-v2 .mg-store-home-cat__visual-img {
  width: 100%;
  max-width: 220px;
  height: auto;
  object-fit: contain;
}

.mg-ui-v2 .mg-store-home-cat__visual-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 200px;
  border-radius: 6px;
  background: #f0f0f0;
}

.mg-ui-v2 .mg-store-home-cat__products {
  min-width: 0;
  padding-left: 8px;
}

.mg-ui-v2 .mg-store-home-cat__view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--store-text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.mg-ui-v2 .mg-store-home-cat__split .mg-store-home-cat__view-all--mobile {
  color: #fff;
}

.mg-ui-v2 .mg-store-home-cat__split .mg-store-home-cat__view-all--mobile:hover {
  color: rgba(255, 255, 255, 0.88);
}

.mg-ui-v2 .mg-store-home-cat__view-all--tabs {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  flex-shrink: 0;
  padding: 0 14px;
  font-size: 14px;
  background: #fff;
}

.mg-ui-v2 .mg-store-home-cat__view-all--mobile {
  display: none;
}

.mg-ui-v2 .mg-store-home-cat__products-foot {
  display: none;
}

/* Product rails (recently viewed, etc.) */
.mg-ui-v2 .mg-store-home-rail {
  padding-block: 16px;
}

.mg-ui-v2 .mg-store-home-rail--recent {
  padding-top: 12px;
  background: var(--store-bg);
}

.mg-ui-v2 .mg-store-home-rail--recent .rv-section-head {
  padding: 12px 0 10px;
}

.mg-ui-v2 .mg-store-home-rail--recent .rv-carousel {
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  .mg-ui-v2 .mg-store-home-cat__tabs {
    position: relative;
    z-index: 2;
  }

  .mg-ui-v2 .mg-store-home-cat__tabs-scroll {
    --mg-home-cat-tab-fixed-w: calc(100% / 2);
  }

  .mg-ui-v2 .mg-store-home-cat__tab {
    min-width: 120px;
    min-height: 50px;
    padding: 12px 16px;
    flex: 0 0 auto;
    border-radius: 0;
  }

  .mg-ui-v2 .mg-store-home-cat__tab--solo,
  .mg-ui-v2 .mg-store-home-cat__tab--static {
    flex: 0 0 var(--mg-home-cat-tab-fixed-w, calc(100% / 2));
    width: var(--mg-home-cat-tab-fixed-w, calc(100% / 2));
    max-width: var(--mg-home-cat-tab-fixed-w, calc(100% / 2));
  }

  .mg-ui-v2 .mg-store-home-cat__tab-label {
    white-space: normal;
    font-size: 15px;
  }

  .mg-ui-v2 .mg-store-home-cat__tab-sub {
    font-size: 12px;
  }

  .mg-ui-v2 .mg-store-home-cat__tab--active {
    border-radius: 0;
  }

  .mg-ui-v2 .mg-store-home-cat__split {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding: 14px 10px 10px;
  }

  .mg-ui-v2 .mg-store-home-cat__visual {
    min-height: 160px;
  }

  .mg-ui-v2 .mg-store-home-cat__products {
    padding-left: 0;
  }

  .mg-ui-v2 .mg-store-home-cat__tabs-row {
    flex-wrap: nowrap;
    min-height: 50px;
    padding: 0;
  }

  .mg-ui-v2 .mg-store-home-cat__tabs-scroll {
    min-height: 50px;
  }

  .mg-ui-v2 .mg-store-home-cat__view-all--tabs {
    display: none;
  }

  .mg-ui-v2 .mg-store-home-cat__products-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
  }

  .mg-ui-v2 .mg-store-home-cat__view-all--mobile {
    display: inline-flex;
  }
}

.mg-ui-v2 .mg-store-home-rail__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.mg-ui-v2 .mg-store-home-rail__carousel {
  /* Fixed card geometry so category tabs never shift layout */
  --rail-card-gap: 4px;
  --rail-card-body-h: 172px;
  --rail-card-name-h: calc(2 * 1.35em);
  --rail-card-meta-h: 1.35em;
  --rail-card-price-h: 72px;
  position: relative;
}

.mg-ui-v2 .mg-store-home-rail__viewport {
  overflow: hidden;
  background: #fff;
}

.mg-ui-v2 .mg-store-home-rail__track {
  display: flex;
  align-items: stretch;
  min-width: 0;
  will-change: transform;
  background: #fff;
}

.mg-ui-v2 .mg-store-home-rail__item {
  display: flex;
  flex: 0 0 var(--rail-item-basis, 20%);
  align-self: stretch;
  min-width: 0;
  max-width: var(--rail-item-basis, 20%);
  padding: 0 calc(var(--rail-card-gap, 4px) / 2);
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
}

/* Lock product card size inside homepage carousel (same size across all tabs) */
.mg-ui-v2 .mg-store-home-rail__item .mg-store-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
  padding-inline: 4px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Square media: height = card width → identical for every card in the row */
.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__media {
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  margin-bottom: 8px;
  overflow: hidden;
}

/* Fixed body budget: name/spec/warranty/price always occupy the same space */
.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__body {
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--rail-card-body-h);
  width: 100%;
  min-width: 0;
  height: var(--rail-card-body-h);
  max-height: var(--rail-card-body-h);
  min-height: var(--rail-card-body-h);
  overflow: hidden;
}

.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__name,
.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__name-text,
.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__price-group,
.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__price {
  min-width: 0;
  max-width: 100%;
}

.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__spec {
  flex: 0 0 var(--rail-card-meta-h);
  height: var(--rail-card-meta-h);
  min-height: var(--rail-card-meta-h);
  max-height: var(--rail-card-meta-h);
  margin: 0 0 4px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__name {
  flex: 0 0 auto;
  margin: 0 0 4px;
  overflow: hidden;
}

.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__name-text {
  display: -webkit-box;
  height: var(--rail-card-name-h);
  min-height: var(--rail-card-name-h);
  max-height: var(--rail-card-name-h);
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.35;
}

.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__warranty {
  flex: 0 0 var(--rail-card-meta-h);
  height: var(--rail-card-meta-h);
  min-height: var(--rail-card-meta-h);
  max-height: var(--rail-card-meta-h);
  margin: 0 0 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Keep empty slots so missing warranty/spec does not collapse the card */
.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__spec:empty,
.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__warranty:empty {
  display: block;
  visibility: hidden;
}

.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__price-group {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 0 var(--rail-card-price-h);
  height: var(--rail-card-price-h);
  min-height: var(--rail-card-price-h);
  max-height: var(--rail-card-price-h);
  margin-top: auto;
  overflow: hidden;
}

.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__price-meta {
  min-height: 20px;
  max-height: 20px;
  overflow: hidden;
}

.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__price {
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__installment,
.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__stock,
.mg-ui-v2 .mg-store-home-rail__item .mg-store-card__promo {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Homepage category filter card — replaces first product slot only (not left visual) */
.mg-ui-v2 .mg-store-home-rail__item--filter {
  align-self: stretch;
}

.mg-ui-v2 .mg-store-home-rail__item--filter .mg-store-home-filter-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 12px 10px;
  border: 1px solid var(--store-border, #e8e8e8);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}

.mg-ui-v2 .mg-store-home-filter-card__title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--store-text);
  text-align: center;
}

.mg-ui-v2 .mg-store-home-filter-card__grid {
  display: grid;
  flex: 1;
  gap: 6px;
  min-height: 0;
}

.mg-ui-v2 .mg-store-home-filter-card--count-2 .mg-store-home-filter-card__grid {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
}

.mg-ui-v2 .mg-store-home-filter-card--count-3 .mg-store-home-filter-card__grid,
.mg-ui-v2 .mg-store-home-filter-card--count-4 .mg-store-home-filter-card__grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.mg-ui-v2 .mg-store-home-filter-card--count-5 .mg-store-home-filter-card__grid,
.mg-ui-v2 .mg-store-home-filter-card--count-6 .mg-store-home-filter-card__grid {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
}

.mg-ui-v2 .mg-store-home-filter-card__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 0;
  padding: 6px 4px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fafafa;
  color: var(--store-text);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.mg-ui-v2 .mg-store-home-filter-card__btn:hover {
  border-color: rgba(217, 22, 5, 0.35);
  background: #fff;
}

.mg-ui-v2 .mg-store-home-filter-card__btn--active {
  border-color: var(--store-brand, #d02915);
  background: var(--store-brand-tint);
  box-shadow: inset 0 0 0 1px rgba(208, 41, 21, 0.15);
}

.mg-ui-v2 .mg-store-home-filter-card__btn-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 72px;
  aspect-ratio: 1;
  border-radius: 4px;
  background: #fff no-repeat center / cover;
  overflow: hidden;
}

.mg-ui-v2 .mg-store-home-filter-card__btn-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mg-ui-v2 .mg-store-home-filter-card__btn-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.mg-ui-v2 .mg-store-home-filter-card__btn--text {
  justify-content: center;
}

.mg-ui-v2 .mg-store-home-filter-card__clear {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--store-brand, #d91605);
  cursor: pointer;
  text-align: center;
}

.mg-ui-v2 .mg-store-home-filter-card__clear:hover {
  text-decoration: underline;
}

/* Newegg home-tile-module (#FeatureEvent) */
.mg-ui-v2 .mg-store-home-tile-module {
  background: var(--store-bg);
  padding: 40px 0;
  margin-top: 40px;
}

.mg-ui-v2 .mg-store-home-tile-module__grid.grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.mg-ui-v2 .mg-store-home-tile-module__grid.gap-20px {
  gap: 20px;
}

.mg-ui-v2 .mg-store-home-tile-module__grid.col-w-3 > .grid-col {
  flex: 1 1 calc(100% / 3 - 14px);
  max-width: calc(100% / 3 - 14px);
  min-width: 0;
  padding: 30px 20px 10px;
  background: var(--store-bg);
  box-sizing: border-box;
  border-radius: var(--store-radius-md);
  border: 1px solid var(--store-border);
}

.mg-ui-v2 .mg-store-home-tile-module .home-tile-title {
  color: var(--store-text);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 30px;
}

.mg-ui-v2 .mg-store-home-tile-module .home-tile-box {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background: transparent;
  padding: 0;
  box-sizing: border-box;
  border-radius: var(--store-radius-md);
}

.mg-ui-v2 .mg-store-home-tile-module .home-tile-item {
  display: block;
  width: calc(50% - 10px);
  margin-bottom: 20px;
  text-decoration: none;
  color: inherit;
}

.mg-ui-v2 .mg-store-home-tile-module .grid-col.counter-3 .home-tile-box .home-tile-item:last-child {
  width: 100%;
}

.mg-ui-v2 .mg-store-home-tile-module .home-tile-item .goods-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  max-width: none;
  border-radius: 8px;
  margin-bottom: 5px;
  background: var(--store-bg) center / cover no-repeat;
  overflow: hidden;
}

.mg-ui-v2 .mg-store-home-tile-module .home-tile-item .goods-img img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
  background-color: transparent;
}

.mg-ui-v2 .mg-store-home-tile-module .home-tile-item span {
  display: block;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  color: var(--store-text);
}

.mg-ui-v2 .mg-store-home-tile-module .home-tile-item:hover span {
  color: var(--store-brand);
}

@media (max-width: 1399px) {
  .mg-ui-v2 .mg-store-home-tile-module .home-tile-title {
    font-size: 20px;
    line-height: 24px;
  }
}

@media (max-width: 991px) {
  .mg-ui-v2 .mg-store-home-tile-module__grid.col-w-3 > .grid-col {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .mg-ui-v2 .mg-store-home-filter-card__btn-media {
    max-width: 56px;
  }
}

/* Build PC CTA */
.mg-ui-v2 .mg-store-home-buildpc {
  padding-block: 8px 20px;
}

.mg-ui-v2 .mg-store-home-buildpc__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid rgba(217, 22, 5, 0.2);
  background: linear-gradient(90deg, #fff5f3 0%, #fff 55%);
}

.mg-ui-v2 .mg-store-home-buildpc__title {
  margin: 0 0 4px;
  font-size: var(--store-fs-lg);
  font-weight: 700;
  color: var(--store-text);
}

.mg-ui-v2 .mg-store-home-buildpc__desc {
  margin: 0;
  font-size: var(--store-fs-sm);
  color: var(--store-text-muted);
}

.mg-ui-v2 .mg-store-home-buildpc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--store-radius-sm);
  background: var(--store-brand);
  font-size: var(--store-fs-base);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-home-buildpc__btn:hover {
  background: var(--store-brand-dark);
}

/* Video block — featured 8 / list 4 */
.mg-ui-v2 .mg-store-home-video__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 992px) {
  .mg-ui-v2 .mg-store-home-video__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
  }
}

.mg-ui-v2 .mg-store-home-video__featured {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--store-border);
  border-radius: 12px;
  background: #111;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mg-ui-v2 .mg-store-home-video__featured:hover {
  border-color: color-mix(in srgb, var(--store-brand) 35%, var(--store-border));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.mg-ui-v2 .mg-store-home-video__featured-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  line-height: 0;
}

.mg-ui-v2 .mg-store-home-video__featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mg-ui-v2 .mg-store-home-video__featured:hover .mg-store-home-video__featured-img {
  transform: scale(1.03);
}

.mg-ui-v2 .mg-store-home-video__featured-caption {
  display: block;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0.92) 0%, #111 100%);
}

.mg-ui-v2 .mg-store-home-video__featured-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  text-wrap: pretty;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mg-ui-v2 .mg-store-home-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mg-ui-v2 .mg-store-home-video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
}

.mg-ui-v2 .mg-store-home-video__play--lg {
  width: 72px;
  height: 72px;
}

.mg-ui-v2 .mg-store-home-video__play--lg::after {
  border-width: 12px 0 12px 20px;
}

.mg-ui-v2 .mg-store-home-video__featured:hover .mg-store-home-video__play,
.mg-ui-v2 .mg-store-home-video__thumb:hover .mg-store-home-video__play {
  background: color-mix(in srgb, var(--store-brand) 82%, #000);
  transform: translate(-50%, -50%) scale(1.05);
}

.mg-ui-v2 .mg-store-home-video__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

.mg-ui-v2 .mg-store-home-video__item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--store-border);
}

.mg-ui-v2 .mg-store-home-video__item:first-child {
  padding-top: 0;
}

.mg-ui-v2 .mg-store-home-video__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.mg-ui-v2 .mg-store-home-video__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--store-border);
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  line-height: 0;
}

.mg-ui-v2 .mg-store-home-video__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.mg-ui-v2 .mg-store-home-video__thumb:hover .mg-store-home-video__thumb-img {
  transform: scale(1.04);
}

.mg-ui-v2 .mg-store-home-video__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-top: 2px;
}

.mg-ui-v2 .mg-store-home-video__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--store-text);
  text-decoration: none;
  text-wrap: pretty;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.mg-ui-v2 .mg-store-home-video__summary {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  color: var(--store-text-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Articles — 4 col cards */
.mg-ui-v2 .mg-store-home-articles__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (min-width: 768px) {
  .mg-ui-v2 .mg-store-home-articles__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.mg-ui-v2 .mg-store-home-article {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--store-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mg-ui-v2 .mg-store-home-article:hover {
  border-color: color-mix(in srgb, var(--store-brand) 28%, var(--store-border));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.mg-ui-v2 .mg-store-home-article__media {
  display: block;
  overflow: hidden;
  line-height: 0;
  aspect-ratio: 16 / 10;
}

.mg-ui-v2 .mg-store-home-article__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.mg-ui-v2 .mg-store-home-article:hover .mg-store-home-article__img {
  transform: scale(1.04);
}

.mg-ui-v2 .mg-store-home-article__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px 14px;
}

.mg-ui-v2 .mg-store-home-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: var(--store-text-muted);
}

.mg-ui-v2 .mg-store-home-article__meta time {
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-home-article__author::before {
  content: "·";
  margin-right: 10px;
  color: color-mix(in srgb, var(--store-text-muted) 70%, transparent);
}

.mg-ui-v2 .mg-store-home-article__title-wrap {
  margin: 0;
  font: inherit;
}

.mg-ui-v2 .mg-store-home-article__title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--store-text);
  text-decoration: none;
  text-wrap: pretty;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.mg-ui-v2 .mg-store-home-article__summary {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.45;
  color: var(--store-text-muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Tab panel — stable height, stale-while-revalidate, crossfade */
@keyframes mg-store-tab-visual-in {
  from {
    opacity: 0.35;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mg-ui-v2 .mg-store-tab-panel {
  position: relative;
  /* Floor so category tab switches keep the same panel height */
  min-height: 340px;
}

.mg-ui-v2 .mg-store-tab-panel__content {
  transition: transform 0.22s ease;
}

/* Không fade opacity — panel đỏ phía sau sẽ hồng hóa thẻ sản phẩm trắng */
.mg-ui-v2 .mg-store-tab-panel__content--refreshing {
  pointer-events: none;
}

.mg-ui-v2 .mg-store-tab-panel__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.mg-ui-v2 .mg-store-tab-skeleton {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  min-height: 320px;
  padding: 0 6px;
}

.mg-ui-v2 .mg-store-tab-skeleton--flash-sale {
  padding: 12px 40px;
}

.mg-ui-v2 .mg-store-tab-skeleton__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--store-border);
  border-radius: 8px;
  background: #fff;
}

.mg-ui-v2 .mg-store-tab-skeleton__card--flash-sale {
  min-height: 290px;
}

.mg-ui-v2 .mg-store-tab-skeleton__media {
  aspect-ratio: 1;
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e8edf3 45%, #f1f5f9 90%);
  background-size: 200% 100%;
  animation: mg-store-tab-skeleton-shimmer 1.2s ease-in-out infinite;
}

.mg-ui-v2 .mg-store-tab-skeleton__line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1f5f9 0%, #e8edf3 45%, #f1f5f9 90%);
  background-size: 200% 100%;
  animation: mg-store-tab-skeleton-shimmer 1.2s ease-in-out infinite;
}

.mg-ui-v2 .mg-store-tab-skeleton__line--title {
  height: 12px;
  width: 92%;
}

.mg-ui-v2 .mg-store-tab-skeleton__line--price {
  width: 56%;
}

.mg-ui-v2 .mg-store-tab-skeleton__line--meta {
  width: 72%;
}

.mg-ui-v2 .mg-store-tab-skeleton__line--progress {
  width: 80%;
  margin-top: auto;
}

@keyframes mg-store-tab-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 767px) {
  .mg-ui-v2 .mg-store-tab-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 280px;
  }

  .mg-ui-v2 .mg-store-tab-skeleton--flash-sale {
    padding-inline: 34px;
  }
}

/* Combo deals carousel — full container, MYGEAR palette */
.mg-ui-v2 .mg-store-home-combo {
  width: 100%;
  min-width: 0;
}

.mg-ui-v2 .mg-store-home-combo__shell {
  padding: clamp(10px, 1vw, 14px) 0 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mg-ui-v2 .mg-store-home-combo__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(10px, 0.9vw, 14px);
  padding: 0 2px 10px;
  border-bottom: 2px solid var(--store-brand);
}

.mg-ui-v2 .mg-store-home-combo__title {
  margin: 0;
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--store-text);
}

.mg-ui-v2 .mg-store-home-combo__sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 14px);
}

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

.mg-ui-v2 .mg-store-home-combo__section-frame {
  position: relative;
  min-height: clamp(320px, 26vw, 400px);
  border: 1px solid var(--store-border);
  border-radius: var(--store-radius-sm);
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.mg-ui-v2 .mg-store-home-combo__section-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.mg-ui-v2 .mg-store-home-combo__section-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  will-change: opacity, transform;
}

.mg-ui-v2 .mg-store-home-combo__slide-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 12px;
  box-sizing: border-box;
}

.mg-ui-v2 .mg-store-home-combo__slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 24px;
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-home-combo__category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--store-text-muted);
  text-transform: uppercase;
}

.mg-ui-v2 .mg-store-home-combo__savings {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--store-brand);
  background: var(--store-icon-well);
  border: 1px solid rgba(217, 22, 5, 0.15);
  white-space: nowrap;
}

.mg-ui-v2 .mg-store-home-combo__goods {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

.mg-ui-v2 .mg-store-home-combo__good-wrap {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

.mg-ui-v2 .mg-store-home-combo__plus-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
  color: #9aa5b5;
}

.mg-ui-v2 .mg-store-home-combo__plus {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-home-combo__good {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 6px 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.mg-ui-v2 .mg-store-home-combo__good-img {
  display: block;
  width: clamp(72px, 6.5vw, 96px);
  height: clamp(72px, 6.5vw, 96px);
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-home-combo__good-img-el {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mg-ui-v2 .mg-store-home-combo__good-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.mg-ui-v2 .mg-store-home-combo__goods-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.35;
  font-weight: 500;
  color: var(--store-text);
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: normal;
}

.mg-ui-v2 .mg-store-home-combo__goods-title .p-name__sku {
  word-break: break-all;
}

.mg-ui-v2 .mg-store-home-combo__goods-title:hover {
  color: var(--store-brand);
  text-decoration: underline;
}

.mg-ui-v2 .mg-store-home-combo__good-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mg-ui-v2 .mg-store-home-combo__good-price-current {
  font-size: var(--store-fs-xs);
  font-weight: 700;
  color: var(--store-price);
  line-height: 1.2;
}

.mg-ui-v2 .mg-store-home-combo__good-price-currency {
  font-size: 0.85em;
  margin-left: 1px;
}

.mg-ui-v2 .mg-store-home-combo__good-price-was {
  font-size: 10px;
  color: var(--store-text-muted);
  text-decoration: line-through;
  line-height: 1.2;
}

.mg-ui-v2 .mg-store-home-combo__slide-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  flex-shrink: 0;
}

.mg-ui-v2 .mg-store-home-combo__section-shell {
  width: 100%;
}

.mg-ui-v2 .mg-store-home-combo__section-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 5px;
}

.mg-ui-v2 .mg-store-home-combo__section-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(33, 43, 54, 0.2);
  cursor: pointer;
  transition: background-color var(--store-ease), transform var(--store-ease);
}

.mg-ui-v2 .mg-store-home-combo__section-dot--active {
  background: var(--store-brand);
  transform: scale(1.15);
}

.mg-ui-v2 .mg-store-home-combo__pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding-top: 2px;
}

.mg-ui-v2 .mg-store-home-combo__price-eq {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  color: var(--store-text-muted);
  line-height: 1;
}

.mg-ui-v2 .mg-store-home-combo__price {
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 700;
  line-height: 1;
  color: var(--store-price);
}

.mg-ui-v2 .mg-store-home-combo__price-currency {
  font-size: 0.72em;
  font-weight: 700;
  text-decoration: underline;
  margin-left: 1px;
}

.mg-ui-v2 .mg-store-home-combo__price-old {
  font-size: var(--store-fs-sm);
  color: var(--store-text-muted);
  text-decoration: line-through;
}

.mg-ui-v2 .mg-store-home-combo__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mg-ui-v2 .mg-store-home-combo__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--store-radius-sm);
  box-sizing: border-box;
  font-family: inherit;
  font-size: var(--store-fs-xs);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--store-ease),
    color var(--store-ease),
    border-color var(--store-ease);
}

.mg-ui-v2 .mg-store-home-combo__btn--ghost {
  border-color: var(--store-brand);
  background: #fff;
  color: var(--store-brand);
}

.mg-ui-v2 .mg-store-home-combo__btn--ghost:hover:not(:disabled) {
  background: var(--store-brand-tint);
  color: var(--store-cta-bg-hover);
}

.mg-ui-v2 .mg-store-home-combo__btn--primary {
  border-color: var(--store-cta-bg);
  background: var(--store-cta-bg);
  color: #fff;
}

.mg-ui-v2 .mg-store-home-combo__btn--primary:hover:not(:disabled) {
  background: var(--store-cta-bg-hover);
  border-color: var(--store-cta-bg-hover);
}

.mg-ui-v2 .mg-store-home-combo__btn--primary:disabled {
  background: var(--store-cta-disabled-bg);
  border-color: var(--store-cta-disabled-bg);
  color: var(--store-cta-disabled-text);
  cursor: not-allowed;
}

.mg-ui-v2 .mg-store-home-combo__more {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: var(--store-brand);
  text-decoration: none;
}

.mg-ui-v2 .mg-store-home-combo__more:hover {
  color: var(--store-brand-dark);
  text-decoration: underline;
}

@media (max-width: 991px) {
  .mg-ui-v2 .mg-store-home-combo__sections {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 767px) {
  .mg-ui-v2 .mg-store-home-combo__actions {
    grid-template-columns: 1fr;
  }

  .mg-ui-v2 .mg-store-home-combo__goods {
    flex-direction: column;
  }

  .mg-ui-v2 .mg-store-home-combo__good-wrap {
    flex-direction: column;
  }

  .mg-ui-v2 .mg-store-home-combo__plus-wrap {
    width: auto;
    height: 20px;
  }
}