/* Category / character landing pages — tablet (500+) & laptop */

/* ---------- tablet / medium: full-width shell (not phone column) ---------- */
@media (min-width: 500px) {
  .phone:has(.hero-banner),
  .phone:has(.age-section),
  .page:has(.hero-banner) {
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto;
    box-shadow: none !important;
    background: #fff;
  }

  .phone:has(.hero-banner) .breadcrumb,
  .phone:has(.age-section) .breadcrumb,
  .page:has(.hero-banner) .breadcrumb {
    max-width: none;
    margin: 0;
    padding: 20px var(--page-pad, 32px) 0;
    font-size: 16px;
    justify-content: flex-start;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
  }

  .page:has(#filterDrawer) .breadcrumb {
    padding-left: var(--page-pad, 32px);
    padding-right: var(--page-pad, 32px);
  }

  .hero-banner {
    width: calc(100% - 2 * var(--page-pad, 32px));
    max-width: none;
    height: clamp(160px, 21vw, 220px);
    margin: 16px auto 20px;
    border-radius: 14px;
    overflow: hidden;
  }

  .hero-banner picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-banner img,
  .hero-banner picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .age-section {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 28px var(--page-pad, 32px) 8px;
  }

  .age-section + .age-section {
    padding-top: 12px;
  }

  .age-section .age-title {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    margin-bottom: 22px;
    text-align: left;
  }

  .age-section .carousel:not(.carousel-track) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }

  .age-section .carousel:not(.carousel-track) .product-card {
    flex: unset;
    width: auto;
    min-width: unset;
    scroll-snap-align: unset;
  }

  .age-section .scroll-track {
    display: none;
  }

  .age-section + a.shop-all-btn,
  .age-section + button.shop-all-btn,
  .age-section + .shop-all-btn {
    display: block;
    max-width: min(320px, 88vw);
    margin: 12px auto 24px;
  }
}

/* ---------- laptop: match home page desktop layout ---------- */
@media (min-width: 800px) and (max-width: 1200px), (min-width: 1400px) {
  .phone:has(.hero-banner) .breadcrumb,
  .phone:has(.age-section) .breadcrumb,
  .page:has(.hero-banner) .breadcrumb {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px var(--page-pad, 40px) 0;
  }

  .hero-banner {
    width: min(1300px, calc(100% - 2 * var(--page-pad, 40px)));
    max-width: 1300px;
    height: 223px;
    margin: 20px auto 24px;
  }

  .age-section {
    max-width: 1300px;
    padding: 40px var(--page-pad, 40px) 8px;
  }

  .age-section + .age-section {
    padding-top: 16px;
  }

  .age-section .age-title {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .age-section .carousel:not(.carousel-track) {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    grid-template-columns: unset;
    padding: 0;
    scroll-snap-type: x mandatory;
  }

  .age-section .carousel:not(.carousel-track) .product-card {
    flex: 0 0 310px;
    width: 310px;
    min-width: 310px;
    scroll-snap-align: start;
  }

  .age-section + a.shop-all-btn,
  .age-section + button.shop-all-btn,
  .age-section + .shop-all-btn {
    display: block;
    max-width: min(320px, 88vw);
    margin: 16px auto 32px;
  }
}

/* Character / category heroes — fixed mid band (800–1150): 944×223 */
@media (min-width: 800px) and (max-width: 1150px) {
  .hero-banner {
    width: 944px;
    max-width: calc(100% - 2 * var(--page-pad, 32px));
    height: 223px;
    margin: 16px auto 24px;
    border-radius: 16px;
    overflow: hidden;
  }

  .hero-banner picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-banner img,
  .hero-banner picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
}

/* Tablet content zone (500–799): keep hero proportional to wide art */
@media (min-width: 500px) and (max-width: 799px) {
  .hero-banner {
    width: calc(100% - 2 * var(--page-pad, 24px));
    max-width: none;
    height: clamp(150px, 20vw, 180px);
    margin: 16px auto 16px;
    border-radius: 14px;
  }
}
