.qem-homepage-v2 .qem-v2-brands { padding: 8px 0 24px; }
.qem-homepage-v2 .qem-v2-brands__logos { display: flex; align-items: center; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--qem-v2-border); }
.qem-homepage-v2 .qem-v2-brands__brand { display: flex; flex: 1 1 0; min-width: 0; height: 72px; align-items: center; justify-content: center; padding: 12px; border-radius: 6px; }
.qem-homepage-v2 .qem-v2-brands__brand img { display: block; width: 100%; max-width: 140px; height: 48px; object-fit: contain; }
.qem-homepage-v2 .qem-v2-brands__brand:hover { background: var(--qem-v2-muted); }
.qem-homepage-v2 .qem-v2-brands__brand:focus-visible { outline: 2px solid var(--qem-v2-accent); outline-offset: 3px; }
.qem-homepage-v2 .qem-v2-brands__all { display: flex; justify-content: flex-end; padding-top: 12px; }
@media (max-width: 700px) {
  .qem-homepage-v2 .qem-v2-brands__logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .qem-homepage-v2 .qem-v2-brands__brand { height: 64px; padding: 8px; }
  .qem-homepage-v2 .qem-v2-brands__brand img { height: 40px; }
}

.qem-homepage-v2 {
  --qem-v2-border: #e3e7ed;
  --qem-v2-muted: #f3f5f7;
  --qem-v2-subtle: #626d7d;
  --qem-v2-accent: #245ac5;
  --qem-v2-radius: 12px;
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  color: #17202e;
  background: #fff;
}
.qem-v2-container { box-sizing: border-box; width: calc(100% - var(--qem-page-inline-space, clamp(24px, 4vw, 80px))); max-width: none; margin-inline: auto; }
.qem-homepage-v2 a { text-decoration: none; }
.qem-homepage-v2 a:focus-visible { outline: 3px solid #245ac5; outline-offset: 4px; }
.qem-v2-spotlight { padding: 26px 0 12px; }
.qem-v2-spotlight__grid { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(185px, auto)); gap: 16px; }
.qem-v2-spotlight__grid--single { grid-template-columns: 1fr; grid-template-rows: auto; }
.qem-v2-promotion { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: 14px; padding: 24px; border-radius: 14px; background: #f1f3f7; min-width: 0; overflow: hidden; }
.qem-v2-promotion--lead { grid-row: span 2; padding: clamp(24px, 3vw, 44px); background: #edf1f8; gap: 22px; }
.qem-v2-promotion--support:nth-child(2) { background: #f5f1eb; }
.qem-v2-promotion--support:nth-child(3) { background: #edf3f1; }
.qem-v2-promotion--support:last-child:nth-child(2) { grid-row: span 2; }
.qem-v2-promotion__copy { position: relative; z-index: 1; min-width: 0; }
.qem-v2-promotion__label { display: block; margin-bottom: 14px; font-size: var(--type-caption-size); font-weight: var(--weight-bold); letter-spacing: .12em; text-transform: uppercase; color: #58667b; overflow-wrap: anywhere; }
.qem-v2-promotion h1, .qem-v2-promotion h2 { margin: 0 0 18px; letter-spacing: normal; line-height: var(--line-heading); text-wrap: balance; }
.qem-v2-promotion h1 { font-size: var(--type-h1-size); }
.qem-v2-promotion h2 { font-size: var(--type-h4-size); line-height: var(--line-heading); letter-spacing: normal; margin-bottom: 10px; }
.qem-v2-promotion h1 a, .qem-v2-promotion h2 a { color: inherit; }
.qem-v2-promotion__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.qem-v2-promotion__price strong { font-size: var(--type-h2-size); letter-spacing: normal; }
.qem-v2-promotion--support .qem-v2-promotion__price strong { font-size: var(--type-h3-size); }
.qem-v2-promotion__price del { color: #677182; font-size: var(--type-body-size); }
.qem-v2-saving { color: #476421; background: #e5edce; padding: 3px 6px; border-radius: 4px; font-size: var(--type-caption-size); font-weight: var(--weight-bold); }
.qem-v2-promotion__action { display: inline-flex; align-items: center; gap: 16px; color: #fff; background: #1c293c; padding: 12px 18px; border-radius: 6px; font-size: var(--type-body-size); font-weight: var(--weight-semibold); }
.qem-v2-promotion__action:hover { background: #30466a; color: #fff; }
.qem-v2-promotion--support .qem-v2-promotion__action { background: transparent; color: #1c293c; padding: 0; gap: 8px; }
.qem-v2-promotion__action svg { width: 16px; height: 16px; }
.qem-v2-promotion__image { display: flex; align-items: center; justify-content: center; min-width: 0; }
.qem-v2-promotion__image img { width: 100%; max-height: 295px; object-fit: contain; mix-blend-mode: normal; transition: transform .2s; }
.qem-v2-promotion--support .qem-v2-promotion__image img { max-height: 145px; }
.qem-v2-promotion:hover .qem-v2-promotion__image img { transform: translateY(-3px); }
.qem-v2-countdown { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--type-body-sm-size); margin: 0 0 18px; color: #4d596b; }
.qem-v2-countdown strong { font-variant-numeric: tabular-nums; color: #17202e; }
.qem-v2-promotion__availability { display: block; margin: 0 0 12px; font-size: var(--type-body-sm-size); color: #59677a; }
.qem-v2-promotion__price[hidden] { display: none; }
.qem-v2-section { padding: 30px 0; }
.qem-v2-section__header { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.qem-v2-eyebrow { margin: 0 0 7px; font-size: var(--type-caption-size); color: #6b7688; font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: .1em; }
.qem-v2-section h2 { font-size: var(--type-h2-size); line-height: var(--line-heading); letter-spacing: normal; margin: 0; }
.qem-v2-link { color: #43516a; display: inline-flex; align-items: center; gap: 8px; font-size: var(--type-body-sm-size); font-weight: var(--weight-semibold); }
.qem-v2-link svg { width: 15px; height: 15px; }
.qem-v2-categories { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--qem-v2-border); }
.qem-v2-category { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 0; min-height: 44px; border: 0; border-radius: 0; font-size: var(--type-body-size); font-weight: var(--weight-semibold); text-align: center; color: #4d5869; }
.qem-homepage-v2 .qem-v2-category,
.qem-homepage-v2 .qem-v2-category:is(:hover, :focus, :active, .is-active) { background: transparent; box-shadow: none; text-shadow: none; }
.qem-v2-category:hover,
.qem-v2-category.is-active,
.qem-v2-category:focus-visible { color: #245ac5; }
.qem-homepage-v2 .qem-v2-category:focus-visible { outline: 2px solid #245ac5; outline-offset: 3px; }

.qem-v2-results-heading { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 18px; }
.qem-v2-results-heading h3 { margin: 0; font-size: var(--type-h4-size); font-weight: var(--weight-semibold); }
.qem-v2-results-heading > span { font-size: var(--type-body-sm-size); color: #727d8e; }
.qem-v2-status { margin: 0; font-size: var(--type-body-size); color: #52617b; }
.qem-v2-status:not(:empty) { margin-top: 12px; }
[data-v2-results][aria-busy=true] { opacity: .45; pointer-events: none; }
.qem-v2-finder-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.qem-v2-pagination { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 26px; font-size: var(--type-body-size); }
.qem-v2-pagination a { border: 1px solid var(--qem-v2-border); border-radius: 6px; padding: 8px 16px; color: #17202e; }
.qem-v2-empty { padding: 48px 24px; text-align: center; background: #f6f7fa; border-radius: 10px; }
.qem-v2-empty p { margin: 10px 0 0; color: #697589; }
.qem-v2-product-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(215px, 1fr); gap: 18px; overflow-x: auto; padding-bottom: 5px; }
.qem-v2-campaign-grid { display: grid; grid-template-columns: 1fr; }
.qem-v2-section--campaigns .qem-v2-campaign-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: #f3f5f8; border-radius: 12px; align-items: center; }
.qem-v2-section--campaigns .qem-v2-campaign-card__body { padding: 30px; }
.qem-v2-store-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.qem-v2-store-strip a, .qem-v2-trust > div { border: 1px solid var(--qem-v2-border); border-radius: 8px; background: #fff; }
.qem-v2-campaign-card {
  display: grid;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.qem-v2-campaign-card__media {
  display: block;
  aspect-ratio: 16 / 8;
  background: var(--qem-v2-muted);
}

.qem-v2-campaign-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qem-v2-campaign-card__body {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.qem-v2-campaign-card__body span {
  color: var(--qem-v2-accent);
  font-size: var(--type-body-sm-size);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.qem-v2-campaign-card__body strong {
  font-size: var(--type-h4-size);
  line-height: var(--line-heading);
}

.qem-v2-campaign-card__body small {
  color: var(--qem-v2-subtle);
  line-height: var(--line-body);
}

.qem-v2-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.qem-v2-trust > div {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.qem-v2-trust .qem-lucide-icon {
  color: var(--qem-v2-success);
}

.qem-v2-trust strong {
  font-size: var(--type-body-lg-size);
}

.qem-v2-trust span,
.qem-v2-store-strip span {
  color: var(--qem-v2-subtle);
  font-size: var(--type-body-size);
  line-height: var(--line-body);
}

.qem-v2-store-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qem-v2-store-strip a {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.qem-v2-seller-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 4vw, 36px);
  background: #111827;
  color: #fff;
}

.qem-v2-seller-cta .qem-v2-eyebrow,
.qem-v2-seller-cta p {
  color: #d8e1ef;
}

.qem-v2-seller-cta h2 {
  margin: 0;
}

.qem-v2-seller-cta p:not(.qem-v2-eyebrow) {
  max-width: 620px;
  margin: 10px 0 0;
  line-height: var(--line-body);
}

.qem-v2-seller-cta__button {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: var(--weight-bold);
  text-decoration: none;
}


@media (max-width: 1000px) {
  .qem-v2-spotlight__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .qem-v2-promotion--lead { grid-template-columns: 1fr; gap: 18px; }
  .qem-v2-promotion--lead .qem-v2-promotion__image { grid-row: 1; }
  .qem-v2-promotion--lead .qem-v2-promotion__image img { max-height: 180px; }
  .qem-v2-finder-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qem-v2-categories { flex-wrap: nowrap; overflow-x: auto; gap: 10px; }
  .qem-v2-category { flex: 0 0 auto; white-space: nowrap; }
  .qem-v2-trust, .qem-v2-store-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .qem-v2-container { width: calc(100% - 28px); }
  .qem-v2-spotlight { padding-top: 16px; }
  .qem-v2-spotlight__grid { grid-template-columns: 1fr; grid-template-rows: auto; gap: 12px; }
  .qem-v2-promotion--lead { grid-row: auto; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 24px 20px; gap: 14px; }
  .qem-v2-promotion--lead .qem-v2-promotion__copy { display: contents; }
  .qem-v2-promotion--lead .qem-v2-promotion__label,
  .qem-v2-promotion--lead h1 { grid-column: 1 / -1; margin: 0; }
  .qem-v2-promotion--lead .qem-v2-promotion__image { grid-column: 2; grid-row: 3 / 7; }
  .qem-v2-promotion--lead .qem-v2-promotion__price,
  .qem-v2-promotion--lead .qem-v2-countdown,
  .qem-v2-promotion--lead .qem-v2-promotion__availability,
  .qem-v2-promotion--lead .qem-v2-promotion__action { grid-column: 1; margin: 0; }
  .qem-v2-promotion--lead .qem-v2-promotion__action { justify-self: start; }
  .qem-v2-promotion h1 { font-size: var(--type-h2-size); }
  .qem-v2-promotion--support { grid-template-columns: minmax(0, 1fr) 95px; padding: 18px 20px; }
  .qem-v2-promotion--support:last-child:nth-child(2) { grid-row: auto; }
  .qem-v2-promotion--support .qem-v2-promotion__image img { max-height: 100px; }
  .qem-v2-promotion--support .qem-v2-promotion__label { display: none; }
  .qem-v2-promotion--support h2 { font-size: var(--type-body-lg-size); }
  .qem-v2-promotion--support .qem-v2-promotion__price { margin-bottom: 8px; }
  .qem-v2-promotion__price strong { font-size: var(--type-h3-size); }
  .qem-v2-section { padding: 24px 0; }
  .qem-v2-section h2 { font-size: var(--type-h3-size); }
  .qem-v2-section__header { align-items: start; flex-wrap: wrap; gap: 12px; }
  .qem-v2-category { font-size: var(--type-body-size); }
  .qem-v2-categories { gap: 4px; }
  .qem-v2-finder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .qem-v2-finder-grid > * { min-width: 0; }
  .qem-v2-section--campaigns .qem-v2-campaign-card { grid-template-columns: 1fr; }
  .qem-v2-store-strip, .qem-v2-trust { grid-template-columns: 1fr; }
  .qem-v2-seller-cta { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) { .qem-v2-promotion__image img { transition: none; } }

/* Homepage deal groups share existing card styles and plain-text category tabs. */
.qem-v2-deal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-4); min-height: 44px; }
.qem-v2-deal-tabs { display: flex; flex: 1; min-width: 0; gap: var(--space-6); overflow-x: auto; }
.qem-v2-deal-tabs a { white-space: nowrap; }
.qem-v2-deal-panel { min-width: 0; }
.qem-v2-deal-panel[hidden], .qem-v2-deal-controls[hidden] { display: none; }
[data-v2-deal-carousel].is-enhanced .qem-v2-deal-fallback-title { display: none; }
.qem-v2-deal-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 5); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0; }
.qem-v2-deal-rail > * { min-width: 0; scroll-snap-align: start; }
.qem-v2-deal-controls { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: var(--space-2); }
.qem-v2-deal-controls button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--radius-4); background: transparent; color: #43516a; cursor: pointer; box-shadow: none; }
.qem-v2-deal-controls button:disabled { opacity: .35; cursor: default; }
.qem-v2-deal-controls button:focus-visible, .qem-v2-deal-rail:focus-visible { outline: 2px solid #245ac5; outline-offset: 2px; }
@media (max-width: 1000px) { .qem-v2-deal-rail { grid-auto-columns: calc((100% - 36px) / 3); } }
@media (max-width: 600px) { .qem-v2-deal-rail { grid-auto-columns: calc((100% - 18px) / 2); } }

.qem-v2-deal-rail, .qem-v2-deal-tabs { scrollbar-width: none; }
.qem-v2-deal-rail::-webkit-scrollbar, .qem-v2-deal-tabs::-webkit-scrollbar { display: none; }
.qem-v2-deal-controls svg { width: 18px; height: 18px; }
.qem-v2-section h2, .qem-v2-promotion h1, .qem-v2-promotion h2 { font-weight: var(--weight-heading); }
.qem-v2-promotion__price strong { font-weight: var(--weight-semibold); }

.qem-v2-collection-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: var(--space-4); margin-top: var(--space-8); }
.qem-v2-collection-tile { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--radius-4); background: var(--color-surface-muted); color: var(--color-text); }
.qem-v2-collection-copy { padding: var(--space-5); }
.qem-v2-collection-copy h3 { margin: 0; font-size: var(--type-h3-size); line-height: var(--type-h3-line); font-weight: var(--weight-heading); }
.qem-v2-collection-copy p { margin: var(--space-2) 0 0; color: var(--color-text-muted); font-size: var(--type-body-size); line-height: var(--type-body-line); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.qem-v2-collection-cta { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); padding: var(--space-2) var(--space-3); border: 1px solid var(--color-border-strong); border-radius: var(--radius-4); font-weight: var(--weight-medium); }
.qem-v2-collection-cta svg { width: 16px; height: 16px; }
.qem-v2-collection-tile:hover .qem-v2-collection-cta { color: var(--color-accent); border-color: var(--color-accent); }
.qem-v2-collection-tile img { width: 100%; height: 230px; object-fit: contain; margin-top: auto; padding: var(--space-4); }
.qem-v2-collection-products { min-width: 0; }
.qem-v2-collection-toolbar { display: flex; align-items: center; justify-content: flex-end; height: 36px; margin-bottom: var(--space-2); }
.qem-v2-collection-rail { grid-auto-columns: calc((100% - 54px) / 4); }
@media (max-width: 1000px) { .qem-v2-collection-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .qem-v2-collection-rail { grid-auto-columns: calc((100% - 18px) / 2); } }
@media (max-width: 600px) { .qem-v2-collection-row { grid-template-columns: 1fr; gap: var(--space-2); } .qem-v2-collection-tile { flex-direction: row; align-items: center; } .qem-v2-collection-copy { flex: 1; min-width: 0; padding: var(--space-4); } .qem-v2-collection-tile img { width: 35%; height: 150px; margin: 0; padding: var(--space-2); } .qem-v2-collection-copy h3 { font-size: var(--type-h4-size); line-height: var(--type-h4-line); } }

/* Full-cover homepage collection artwork; other collection surfaces are unchanged. */
.qem-v2-collection-tile { position: relative; min-height: 0; margin-block: calc(36px + var(--space-2) + 2px) 2px; isolation: isolate; }
.qem-v2-collection-tile.has-image::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.8) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.04) 100%); z-index: -1; }
.qem-v2-collection-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; padding: 0; margin: 0; z-index: -2; }
.qem-v2-collection-copy { position: relative; width: 100%; }
.qem-v2-collection-copy p { -webkit-line-clamp: 2; }
.qem-v2-collection-tile.has-image, .qem-v2-collection-tile.has-image .qem-v2-collection-copy h3, .qem-v2-collection-tile.has-image .qem-v2-collection-copy p { color: #fff; }
.qem-v2-collection-tile.has-image .qem-v2-collection-cta { color: #fff; border-color: rgba(255,255,255,.8); background: rgba(0,0,0,.2); }
.qem-v2-collection-tile.has-image:hover .qem-v2-collection-cta { background: rgba(0,0,0,.45); }
@media (max-width: 600px) { .qem-v2-collection-tile { min-height: 240px; margin-block: 0; align-items: flex-start; } }

.qem-v2-spotlight__grid--two { grid-template-rows: auto; }
.qem-v2-spotlight__grid--two .qem-v2-promotion--lead { grid-row: auto; }

/* Hero images keep their source colors; copy follows the card background contrast. */
.qem-homepage-v2 .qem-v2-promotion :is(h1, h2, .qem-v2-promotion__label, .qem-v2-promotion__price strong, .qem-v2-promotion__price del, .qem-v2-countdown, .qem-v2-countdown strong, .qem-v2-promotion__availability) { color: var(--hero-foreground, #17202e); }
.qem-homepage-v2 .qem-v2-promotion--support .qem-v2-promotion__action { color: var(--hero-foreground, #17202e); }
.qem-homepage-v2 .qem-v2-promotion--lead .qem-v2-promotion__action { background: var(--hero-foreground, #1c293c); color: var(--hero-button-text, #fff); }
