/* classic-v8-carousel-compact.css 1.0.0
   Compact phone/tablet sizing for Sweet Favorites and the custom-cakes carousel.
   Enqueue after classic-v8.css and classic-v8-custom-cakes.css, front page only.
   Does not change JS. */

/* Tablet: 3 cards, slightly tighter intro */
@media (max-width: 1100px) {
  #top.cb-v8-brand .cb-favorites {
    padding: 28px 0 32px;
  }
  #top.cb-v8-brand .cb-favorites-inner {
    padding: 0 24px;
  }
  #top.cb-v8-brand .cb-favorites-intro {
    margin-bottom: 16px;
    gap: 16px;
  }
  #top.cb-v8-brand .cb-favorites-copy h2 {
    font-size: clamp(28px, 4vw, 40px);
  }
  #top.cb-v8-brand .cb-favorites-sub {
    font-size: 16px;
  }
  #top.cb-v8-brand .cb-favorites-track {
    gap: 12px;
  }
  #top.cb-v8-brand .cb-fav-card {
    flex-basis: calc((100% - 24px) / 3);
  }
}

/* Phone: ~2.3 cards with a peeking third; smaller media (via narrower cards)
   and type so the whole section sits well under one viewport (~60% of 844 or less). */
@media (max-width: 700px) {
  #top.cb-v8-brand .cb-favorites {
    padding: 14px 0 16px;
  }
  #top.cb-v8-brand .cb-favorites-inner {
    padding: 0 16px;
  }
  #top.cb-v8-brand .cb-favorites-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    margin-bottom: 10px;
    align-items: center;
  }
  #top.cb-v8-brand .cb-favorites-copy {
    display: contents;
  }
  #top.cb-v8-brand .cb-favorites-eyebrow {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 11px;
  }
  #top.cb-v8-brand .cb-favorites-copy h2 {
    grid-column: 1;
    font-size: clamp(22px, 6.2vw, 26px);
    margin: 0;
    letter-spacing: -0.3px;
  }
  #top.cb-v8-brand .cb-favorites-controls {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }
  #top.cb-v8-brand .cb-favorites-sub {
    grid-column: 1 / -1;
    font-size: 13px;
    line-height: 1.35;
  }
  #top.cb-v8-brand .cb-fav-prev,
  #top.cb-v8-brand .cb-fav-next {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  #top.cb-v8-brand .cb-favorites-track {
    gap: 10px;
  }
  #top.cb-v8-brand .cb-fav-card {
    flex-basis: calc((100% - 20px) / 2.3);
  }
  #top.cb-v8-brand .cb-fav-meta {
    padding: 8px 9px 10px;
    gap: 8px;
  }
  #top.cb-v8-brand .cb-fav-name {
    font-size: 14px;
    line-height: 1.2;
  }
  #top.cb-v8-brand .cb-fav-cta {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 12.5px;
    gap: 8px;
  }
  #top.cb-v8-brand .cb-fav-cta span {
    font-size: 15px;
  }
  #top.cb-v8-brand .cb-fav-dots {
    margin-top: 8px;
    gap: 6px;
  }
  #top.cb-v8-brand .cb-fav-dot {
    width: 6px;
    height: 6px;
  }
  #top.cb-v8-brand .cb-fav-dot[aria-current="true"] {
    width: 16px;
  }
}


/* Custom cakes — same breakpoints (also in classic-v8-custom-cakes.css). */
@media (max-width: 1100px) {
  #top.cb-v8-brand .cb-customs { padding: 20px 0 24px; }
  #top.cb-v8-brand .cb-customs-inner { padding: 0 24px; }
  #top.cb-v8-brand .cb-customs-intro { margin-bottom: 14px; }
  #top.cb-v8-brand .cb-customs-copy h2 { font-size: clamp(28px, 4vw, 40px); }
  #top.cb-v8-brand .cb-customs-track { gap: 12px; }
  #top.cb-v8-brand .cb-cust-card { flex-basis: calc((100% - 24px) / 3); }
}
@media (max-width: 700px) {
  #top.cb-v8-brand .cb-customs { padding: 16px 0 18px; }
  #top.cb-v8-brand .cb-customs-inner { padding: 0 16px; }
  #top.cb-v8-brand .cb-customs-track { gap: 10px; }
  #top.cb-v8-brand .cb-cust-card { flex-basis: calc((100% - 20px) / 2.3); }
  #top.cb-v8-brand .cb-cust-meta { padding: 8px 9px 9px; gap: 4px; }
  #top.cb-v8-brand .cb-cust-name { font-size: 14px; }
  #top.cb-v8-brand .cb-cust-cta { font-size: 12px; }
  #top.cb-v8-brand .cb-cust-dots { margin-top: 8px; }
}
