/* SgProductMosaic — bordered product table: big featured cell + 8 small cells (desktop),
   featured on top + 2-column list (tablet), one swipe rail (phone). */

.cc_b3eorip4_kEBksRxhMT .sg-mos__frame { position: relative; }
.cc_b3eorip4_kEBksRxhMT .sg-mos__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  /* two rows; the minimum keeps the featured photo visible while few small cells exist */
  grid-template-rows: repeat(2, minmax(220px, auto));
  grid-auto-flow: row dense;
}
.cc_b3eorip4_kEBksRxhMT .sg-mos__hint + .sg-mos__frame { margin-top: 16px; }

/* ---------- table look (gap 0): cells draw their top + left lines, overlapping by 1px; the
   frame clips the outer ones and draws the outline itself — every line is exactly 1px ---------- */
.cc_b3eorip4_kEBksRxhMT .sg-mos--table .sg-mos__frame {
  overflow: hidden;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-r-card);
  background: #fff;
}
.cc_b3eorip4_kEBksRxhMT .sg-mos--table .sg-mos__grid > * {
  margin: -1px 0 0 -1px;
  border-style: solid;
  border-color: var(--sg-line);
  border-width: 1px 0 0 1px;
}
/* the featured cell comes first in the DOM, so later neighbours would paint over its lines:
   it draws all four sides (on top of their overlapping ones) instead */
.cc_b3eorip4_kEBksRxhMT .sg-mos--table .sg-mos__grid > .sg-mos__feat { z-index: 2; margin: -1px; border-width: 1px; }

/* ---------- cards look (gap > 0) ---------- */
.cc_b3eorip4_kEBksRxhMT .sg-mos--cards .sg-mos__grid { gap: var(--sg-mos-gap, 12px); }
.cc_b3eorip4_kEBksRxhMT .sg-mos--cards .sg-mos__grid > .sg-pcell, .cc_b3eorip4_kEBksRxhMT .sg-mos--cards .sg-mos__more {
  overflow: hidden;
  border: 1px solid var(--sg-line);
  border-radius: var(--sg-r-card);
}

/* ---------- desktop placement ---------- */
.cc_b3eorip4_kEBksRxhMT .sg-mos__feat { grid-column: 3 / span 2; grid-row: 1 / span 2; }
.cc_b3eorip4_kEBksRxhMT .sg-mos--feat-left .sg-mos__feat { grid-column: 1 / span 2; }
.cc_b3eorip4_kEBksRxhMT .sg-mos--feat-right .sg-mos__feat { grid-column: 5 / span 2; }
/* the big photo takes whatever height the two rows of small cells leave */
.cc_b3eorip4_kEBksRxhMT .sg-mos__feat.sg-pcell--feature { grid-template-rows: minmax(0, 1fr) auto; }
.cc_b3eorip4_kEBksRxhMT .sg-mos__feat .sg-pcell__media { aspect-ratio: auto; min-height: 0; }
.cc_b3eorip4_kEBksRxhMT .sg-mos__feat.sg-pcell--skel .sg-pcell__media { min-height: 260px; }

/* empty slots keep the table closed (desktop: up to 8 slots; tablet: even rows) */
/* positioned like the cells, or the cells (positioned layer) would paint over its lines */
.cc_b3eorip4_kEBksRxhMT .sg-mos__fill { position: relative; display: none; background: var(--sg-pcell-bg, #fff); }
.cc_b3eorip4_kEBksRxhMT .sg-mos__fill.is-d { display: block; }
.cc_b3eorip4_kEBksRxhMT .sg-mos--cards .sg-mos__fill { visibility: hidden; }

/* "view all" cell */
.cc_b3eorip4_kEBksRxhMT .sg-mos__more {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 160px;
  padding: 20px;
  background: var(--sg-pcell-bg, #fff);
  color: var(--sg-text, var(--sg-ink));
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.cc_b3eorip4_kEBksRxhMT .sg-mos__more::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sg-accent);
  opacity: 0;
  transition: opacity var(--sg-t-mid) var(--sg-ease-out);
}
.cc_b3eorip4_kEBksRxhMT .sg-mos__more-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--sg-line);
  border-radius: 50%;
  background: #fff;
  color: var(--sg-ink);
  transition: transform var(--sg-t-mid) var(--sg-ease-spring), border-color var(--sg-t-fast), background-color var(--sg-t-fast);
}
@media (hover: hover) {
  .cc_b3eorip4_kEBksRxhMT .sg-mos__more:hover { color: var(--sg-on-accent); }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__more:hover::before { opacity: 1; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__more:hover .sg-mos__more-icon { transform: translateX(4px); border-color: var(--sg-ink); background: var(--sg-ink); color: #fff; }
}
@media (min-width: 1024px) { .cc_b3eorip4_kEBksRxhMT .sg-mos__more.is-spare { display: none; } }

/* editor hint (no products) */
.cc_b3eorip4_kEBksRxhMT .sg-mos__hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px 20px;
  border: 1px dashed var(--sg-line-strong, var(--sg-line));
  border-radius: var(--sg-r-card);
  background: var(--sg-surface-2);
  color: var(--sg-ink-2);
  font-size: var(--sg-fs-sm);
  line-height: 1.5;
}
.cc_b3eorip4_kEBksRxhMT .sg-mos__hint svg { flex: none; margin-top: 1px; }

/* ---------- tablet: featured on top (photo left, text right), 2-column row cells below ---------- */
@media (max-width: 1023px) {
  .cc_b3eorip4_kEBksRxhMT .sg-mos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__feat, .cc_b3eorip4_kEBksRxhMT .sg-mos--feat-left .sg-mos__feat, .cc_b3eorip4_kEBksRxhMT .sg-mos--feat-right .sg-mos__feat { grid-column: 1 / -1; grid-row: auto; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__feat.sg-pcell--feature {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "media body";
    align-items: center;
    gap: 28px;
  }
  /* a square from the width: undo the desktop "min-height: 0" (iOS Safari then let the box collapse to
     0 — photo and badge gone) and back it with a padding box that needs no aspect-ratio support */
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__media { aspect-ratio: 1 / 1; min-height: auto; height: auto; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__media::before { content: ""; display: block; padding-top: 100%; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__cell.sg-pcell--tile {
    --pc-pad: 12px;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "media body";
  }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__cell.sg-pcell--tile .sg-pcell__name { min-height: 0; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__fill.is-d { display: none; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__fill.is-t { display: block; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__more { flex-direction: row; min-height: 0; }
}

/* ---------- phone: one swipe rail, featured first; separate bordered cards ---------- */
@media (max-width: 767px) {
  .cc_b3eorip4_kEBksRxhMT .sg-mos--table .sg-mos__frame, .cc_b3eorip4_kEBksRxhMT .sg-mos--cards .sg-mos__frame {
    margin-inline: calc(var(--sg-gutter) * -1);
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__grid {
    display: flex;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--sg-gutter);
    padding: 0 var(--sg-gutter) 2px;
    scrollbar-width: none;
  }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__grid::-webkit-scrollbar { display: none; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos--table .sg-mos__grid > *, .cc_b3eorip4_kEBksRxhMT .sg-mos--cards .sg-mos__grid > * {
    flex: 0 0 min(62%, 250px);
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sg-line);
    border-radius: var(--sg-r-card);
    scroll-snap-align: start;
  }
  /* the featured card matches its neighbours (accent frame + badge set it apart); its
     full-width button gives way to the round one so the rail keeps one height */
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__grid > .sg-mos__feat { border-color: var(--sg-accent); box-shadow: inset 0 0 0 1px var(--sg-accent); }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__feat.sg-pcell--feature {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "media" "body";
    align-items: stretch;
    gap: 12px;
    --pc-pad: 14px;
  }
  /* a square from the width: undo the desktop "min-height: 0" (iOS Safari then let the box collapse to
     0 — photo and badge gone) and back it with a padding box that needs no aspect-ratio support */
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__media { aspect-ratio: 1 / 1; min-height: auto; height: auto; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__media::before { content: ""; display: block; padding-top: 100%; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__badge { height: 24px; padding: 0 9px; font-size: 10.5px; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__name { -webkit-line-clamp: 2; min-height: calc(2em * 1.3); font-size: 15px; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__foot { gap: 8px; padding-top: 6px; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__now { font-size: 18px; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__old { font-size: 12px; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__buy { min-height: 40px; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__meta { justify-content: space-between; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__stock { height: 22px; padding: 0 8px; font-size: 11.5px; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__rating { font-size: 11.5px; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__add { display: grid; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__feat .sg-pcell__cta { display: none; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__cell.sg-pcell--tile {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "media" "body";
  }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__cell.sg-pcell--tile .sg-pcell__name { min-height: calc(2em * 1.38); }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__grid > .sg-mos__fill { display: none; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__grid > .sg-mos__more { flex-basis: min(44%, 170px); flex-direction: column; }
  .cc_b3eorip4_kEBksRxhMT .sg-mos__progress { margin-top: 20px; }
}
/* mouse / trackpad (editor's phone view, narrow desktop windows): lib/dragScroll pages the rail */
@media (max-width: 767px) and (hover: hover) and (pointer: fine) {
  .cc_b3eorip4_kEBksRxhMT .sg-mos .sg-mos__grid { scroll-snap-type: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cc_b3eorip4_kEBksRxhMT .sg-mos__more::before, .cc_b3eorip4_kEBksRxhMT .sg-mos__more-icon { transition: none; }
}
