/* Dedicated touch UI for hero combos; independent of desktop fade carousels. */
.mg-ui-v2 .mg-home-combos {
  min-width: 0;
  margin-top: 16px;
  color: var(--store-text);
}

.mg-ui-v2 .mg-home-combos__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mg-ui-v2 .mg-home-combos__head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.mg-ui-v2 .mg-home-combos__head p {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--store-text-muted);
}

.mg-ui-v2 .mg-home-combos__nav {
  display: flex;
  gap: 4px;
}

.mg-ui-v2 .mg-home-combos__nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--store-border);
  border-radius: 50%;
  color: var(--store-text);
  background: var(--store-bg);
  cursor: pointer;
}

.mg-ui-v2 .mg-home-combos__nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

.mg-ui-v2 .mg-home-combos__rail {
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--store-border) transparent;
  padding: 2px 0 8px;
}

.mg-ui-v2 .mg-combo-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 88%;
  min-width: 0;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--store-border);
  border-radius: 14px;
  background: var(--store-bg);
  scroll-snap-align: start;
}

.mg-ui-v2 .mg-home-combos__rail[data-single="true"] > .mg-combo-card {
  flex-basis: 100%;
}

.mg-ui-v2 .mg-combo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.mg-ui-v2 .mg-combo-card__head h3 {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mg-ui-v2 .mg-combo-card__head > a {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-size: 12px;
  color: var(--store-text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.mg-ui-v2 .mg-combo-card__products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.mg-ui-v2 .mg-combo-card__products li {
  position: relative;
  min-width: 0;
}

.mg-ui-v2 .mg-combo-card__products li > a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.mg-ui-v2 .mg-combo-card__image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 64px;
  min-width: 0;
}

.mg-ui-v2 .mg-combo-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mg-ui-v2 .mg-combo-card__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
  max-height: 32px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.mg-ui-v2 .mg-combo-card__plus {
  position: absolute;
  top: 26px;
  left: -14px;
  color: var(--store-text-muted);
}

.mg-ui-v2 .mg-combo-card__pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--store-border);
  font-variant-numeric: tabular-nums;
}

.mg-ui-v2 .mg-combo-card__caption {
  display: block;
  font-size: 11px;
  line-height: 16px;
  color: var(--store-text-muted);
}

.mg-ui-v2 .mg-combo-card__price {
  display: block;
  color: var(--store-price);
  font-size: clamp(17px, 5vw, 22px);
  line-height: 28px;
  white-space: nowrap;
  letter-spacing: -0.03em;
}

.mg-ui-v2 .mg-combo-card__pricing del {
  display: block;
  color: var(--store-text-muted);
  font-size: 11px;
  line-height: 16px;
}

.mg-ui-v2 .mg-combo-card__saving {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: #fff1ec;
  color: var(--store-brand-dark);
  font-size: 10px;
  line-height: 15px;
}

.mg-ui-v2 .mg-combo-card__saving strong {
  font-size: 12px;
}

.mg-ui-v2 .mg-combo-card__actions {
  display: flex;
  gap: 8px;
}

.mg-ui-v2 .mg-combo-card__actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--store-border);
  border-radius: 8px;
  background: var(--store-bg);
  color: var(--store-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease;
}

.mg-ui-v2 .mg-combo-card__actions .mg-combo-card__buy {
  flex-grow: 1.5;
  border-color: var(--store-brand);
  background: var(--store-brand);
  color: white;
}

.mg-ui-v2 .mg-combo-card__actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.mg-ui-v2 .mg-home-combos__hint {
  display: flex;
  justify-content: space-between;
  margin: 4px 0 0;
  color: var(--store-text-muted);
  font-size: 11px;
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

.mg-ui-v2 .mg-home-combos a:focus-visible,
.mg-ui-v2 .mg-home-combos button:focus-visible,
.mg-ui-v2 .mg-home-combos__rail:focus-visible {
  outline: 2px solid var(--store-brand);
  outline-offset: -2px;
}

@media (min-width: 768px) {
  .mg-ui-v2 .mg-combo-card {
    flex-basis: 46%;
  }
}

@media (max-width: 359px) {
  .mg-ui-v2 .mg-combo-card { padding: 10px; gap: 10px; }
  .mg-ui-v2 .mg-combo-card__products { gap: 12px; }
  .mg-ui-v2 .mg-combo-card__saving { padding: 4px; }
  .mg-ui-v2 .mg-combo-card__saving strong { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .mg-ui-v2 .mg-combo-card__actions button { transition: none; }
}
