/* ---------------------------
   Weekly Roundup — Deal Blocks
   2-col: card left, details right
   Full-width copy below
---------------------------- */

/* ─── Roundup Block (wrapper for one deal) ─── */
.roundupBlock {
  margin: 0;
  padding: 32px 0;
}

/* Top row: card + details side by side */
.roundupBlock__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* ─── Left: Mini Deal Card (matches site grid cards) ─── */
.roundupBlock__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--t-ui) var(--ease), box-shadow 200ms var(--ease);
  display: flex;
  flex-direction: column;
}

.roundupBlock__card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.roundupBlock__imgWrap {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
}

.roundupBlock__imgWrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.roundupBlock__badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.roundupBlock__badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: #fff;
  white-space: nowrap;
}

.roundupBlock__badge--discount {
  background: var(--accent);
}

.roundupBlock__badge--savings {
  background: var(--secondary);
}

.roundupBlock__badge--deal {
  background: #E76F51;
}

.roundupBlock__cardBody {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.roundupBlock__cardMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.roundupBlock__brand,
.roundupBlock__cat {
  font-size: 11px;
  color: var(--accent-text);
  text-decoration: none;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-weight: 500;
}

.roundupBlock__cardTitle {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-heading);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}

.roundupBlock__cardTitle a {
  color: inherit;
  text-decoration: none;
}

.roundupBlock__priceRow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.roundupBlock__price {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.roundupBlock__wasPrice {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}

/* ─── Right: Details + CTA ─── */
.roundupBlock__details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

/* Details column no longer has its own title — it moved above the row */

.roundupBlock__excerpt {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}

/* ─── Feature highlights ─── */
.roundupBlock__features {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roundupBlock__features li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  margin: 0;
  list-style: none !important;
}

.roundupBlock__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

/* Kill the h3 dash inside card titles only, keep it on the detail title */
.roundupBlock__cardTitle::before,
.roundupBlock__copy h3::before {
  display: none !important;
}

/* Hide the card title h3 from TOC scanning */
.roundupBlock__cardTitle {
  /* data attr added so TOC JS can skip these */
}

.roundupBlock__cta,
.articleBody .roundupBlock__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
  border: none;
  white-space: nowrap;
  align-self: flex-start;
}

.roundupBlock__cta:hover,
.articleBody .roundupBlock__cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.3);
}

.roundupBlock__cta svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  transition: transform 200ms var(--ease);
}

.roundupBlock__cta:hover svg {
  transform: translateX(3px);
}

/* ─── Copy (inside details column) ─── */
.roundupBlock__copy {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.roundupBlock__copy p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.65;
}

.roundupBlock__copy p:last-child {
  margin-bottom: 0;
}

/* Divider between blocks */
.roundupBlock + .roundupBlock {
  border-top: 1px solid var(--border);
}

/* Title sits above the 2-col row */
.roundupBlock > .roundupBlock__detailTitle {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  margin: 0 0 16px;
}

/* ─── Dark theme ─── */
html[data-theme="dark"] .roundupBlock__card {
  background: var(--surface-2);
}

html[data-theme="dark"] .roundupBlock__cta:hover,
html[data-theme="dark"] .articleBody .roundupBlock__cta:hover {
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.4);
}

/* ─── Mobile: stack vertically ─── */
@media (max-width: 640px) {
  .roundupBlock__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .roundupBlock__card {
    max-width: 280px;
  }

  .roundupBlock__detailTitle {
    font-size: 18px;
  }

  .roundupBlock__cta {
    width: 100%;
    justify-content: center;
  }
}
