/* Brew Lab desktop-home refinement — CSS only, scoped to Home and wide screens.
   The mobile design, menu cards, Staff-controlled photo crops, studio banner layouts,
   and all user interactions remain unchanged. */
@media (min-width: 920px) {
  #homePage {
    padding-top: 30px;
    padding-bottom: 54px;
  }

  /* Keep the independent left/right/full-image layouts from App Studio. */
  #homePage .hero { min-height: 390px !important; }
  #homePage .hero .home-hero-content {
    min-height: 390px;
    width: 58%;
    padding: 42px clamp(32px, 4.4vw, 55px);
  }
  #homePage .hero .home-hero-content h1 {
    font-size: clamp(36px, 4.2vw, 50px);
    line-height: 1.07;
    max-width: 100%;
    margin: 17px 0 15px;
    letter-spacing: -.045em;
  }
  #homePage .hero .home-hero-content p:not(.customer-home-greeting) {
    font-size: 15px;
    line-height: 1.55;
    max-width: 39ch;
  }
  #homePage .hero .home-hero-content .hero-action {
    min-height: 49px;
    padding: 13px 22px;
    font-size: 14px;
  }
  #homePage .hero .home-hero-visual { width: 42%; }
  /* Studio's full-image layout must still cover the entire hero, not just 42%. */
  #homePage .hero[data-banner-layout="full"] .home-hero-visual { width: 100%; }
  #homePage .hero[data-banner-layout="full"] .home-hero-content {
    position: absolute;
    width: 100%;
    min-height: 0;
    padding: 35px;
  }
  /* Split-image banners hide copy by design; leave CTA over the selected image. */
  #homePage .hero[data-banner-layout="split-image"] .home-hero-content { justify-content: flex-end; }

  #homePage .section-heading { margin-top: 39px; margin-bottom: 17px; }
  #homePage .section-heading h2 { font-size: 29px; }
  #homePage .section-heading .eyebrow { font-size: 11px; }
  #homePage .section-heading .text-action { font-size: 13px; }

  /* Real Staff-managed featured products: full, even 3-column grid on desktop.
     Keep horizontal swipe cards on phone and smaller tablets. */
  #homePage .feature-scroll {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 19px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }
  #homePage .feature-scroll > .feature-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: auto;
    max-width: none;
    flex: none;
    scroll-snap-align: none;
    border-radius: 21px;
  }
  #homePage .feature-scroll > .feature-card .feature-img {
    height: 205px;
    min-height: 205px;
  }
  /* Do not override image fit / position / transform: these come from Staff. */
  #homePage .feature-scroll > .feature-card .feature-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 19px 20px 20px;
  }
  #homePage .feature-scroll > .feature-card .feature-body h3 {
    font-size: 20px;
    line-height: 1.15;
    overflow-wrap: break-word;
  }
  #homePage .feature-scroll > .feature-card .feature-body p {
    font-size: 12px;
    line-height: 1.5;
  }
  #homePage .feature-scroll > .feature-card .product-footer {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  #homePage .feature-scroll > .feature-card .product-footer .customize-btn {
    min-height: 43px;
    padding: 11px 15px;
    white-space: nowrap;
  }

  /* Promo retains Studio's selected image layout; desktop gives it space to breathe. */
  #homePage .home-promo-banner {
    min-height: 275px;
    margin-top: 36px;
    grid-template-columns: 58% 42%;
    border-radius: 25px;
  }
  #homePage .home-promo-banner:not([data-banner-layout="full"]) .home-promo-content {
    padding: 33px 43px;
  }
  #homePage .home-promo-banner .home-promo-content h2 {
    max-width: 480px;
    font-size: clamp(29px, 3.5vw, 38px);
  }
  #homePage .home-promo-banner .home-promo-content p {
    max-width: 45ch;
    font-size: 14px;
    line-height: 1.5;
  }
  #homePage .home-promo-banner .home-promo-button {
    min-height: 46px;
    padding: 12px 20px;
    font-size: 13px;
  }
  #homePage .home-promo-banner[data-banner-layout="full"] .home-promo-content {
    padding: 26px;
  }

  /* Desktop pastry banner: portrait pastry images must NOT set grid-row height.
     Keep a predictable landscape frame for split-text, split-image and full-image
     layouts alike. Studio-selected right/full object-position remains untouched. */
  #homePage .home-promo-banner {
    height: clamp(245px, 23vw, 300px);
    min-height: 0;
    max-height: 300px;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    position: relative;
  }
  #homePage .home-promo-banner .home-promo-content {
    box-sizing: border-box;
    min-height: 0;
    overflow: hidden;
  }
  #homePage .home-promo-banner .home-promo-visual {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    position: relative;
  }
  #homePage .home-promo-banner .home-promo-visual img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    /* Inherit existing object-fit and --banner-right/full-position from Studio. */
  }
  #homePage .home-rewards-checker {
    margin-top: 32px;
    margin-bottom: 29px;
    padding: 35px 39px;
    grid-template-columns: minmax(0, 1.15fr) minmax(285px, .8fr);
    gap: 35px;
  }
  #homePage .home-rewards-checker h2 { font-size: clamp(34px, 4vw, 46px); }
  #homePage .home-rewards-checker-action { width: 100%; }
  #homePage .category-grid { gap: 16px; }
  #homePage .category-tile {
    min-height: 96px;
    padding: 21px 19px;
    gap: 15px;
    border-radius: 20px;
  }
  #homePage .category-tile strong { font-size: 17px; }
  #homePage .category-tile small { font-size: 12px; }
  #homePage .category-emoji { font-size: 31px; }
}
