.ppu-pilot-search,.ppu-pilot-rating-slot{display:none}
@media(max-width:767px){
 body.ppu-graco-pilot .ppu-pilot-search{display:flex;position:sticky;top:0;z-index:40;align-items:center;gap:8px;background:#fff;padding:10px 0;margin:0 0 12px;border-bottom:1px solid #e1e5ea}
 body.ppu-graco-pilot .ppu-pilot-search input[type=search]{width:100%;min-width:0;min-height:46px;padding:10px 16px;border:1px solid #cbd5df;border-radius:24px;background:#f3f5f7;font-size:16px;color:#17212b}
 body.ppu-graco-pilot .ppu-pilot-search button{display:grid;place-items:center;flex:0 0 46px;min-height:46px;padding:10px;border:0;border-radius:50%;background:#bf282e;color:#fff;cursor:pointer}
 body.ppu-graco-pilot ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 12px!important;align-items:stretch}
 body.ppu-graco-pilot ul.products li.product.type-product{display:flex!important;flex-direction:column;gap:0;padding:0!important;border:0;box-shadow:none;background:transparent;border-radius:0;overflow:visible}
 body.ppu-graco-pilot ul.products li.product .astra-shop-thumbnail-wrap{width:100%;margin:0 0 10px}
 body.ppu-graco-pilot ul.products li.product .astra-shop-thumbnail-wrap>a.woocommerce-loop-product__link{aspect-ratio:3/4;border-radius:16px;background:#fff;border:1px solid #e1e5ea;padding:0;position:relative;overflow:hidden}
 body.ppu-graco-pilot ul.products li.product .astra-shop-summary-wrap{width:100%;padding:0 2px}
 body.ppu-graco-pilot ul.products li.product .astra-shop-summary-wrap>.price{order:0;font-size:16px;font-weight:700;line-height:1.35;margin:0 0 6px;color:#17212b}
 body.ppu-graco-pilot ul.products li.product .ast-loop-product__link{order:1}
 body.ppu-graco-pilot ul.products li.product :is(.ast-loop-product__link,.astra-shop-thumbnail-wrap>a.woocommerce-loop-product__link,.astra-shop-summary-wrap>.price){transition:none}
 body.ppu-graco-pilot ul.products li.product .woocommerce-loop-product__title{font-size:14px!important;font-weight:400;line-height:1.4!important;min-height:0;margin:0 0 6px!important;hyphens:auto;overflow-wrap:normal;word-break:normal}
 body.ppu-graco-pilot ul.products li.product .ppu-pilot-rating-slot{display:block;order:2;min-height:22px;font-size:12px;line-height:1.5;color:#596573}
 body.ppu-graco-pilot .ppu-pilot-rating-slot>span{color:#b35b00}
 body.ppu-graco-pilot .ppu-pilot-rating-slot small{font-size:13px}
 body.ppu-graco-pilot ul.products li.product :is(.astra-shop-summary-wrap>a.button,.ast-on-card-button,.added_to_cart,.star-rating){display:none!important}
}

@media(max-width:767px){
 body.ppu-graco-pilot ul.products li.product .astra-shop-thumbnail-wrap img[data-ppu-framed]{position:absolute;width:var(--ppu-photo-width)!important;height:var(--ppu-photo-height)!important;left:var(--ppu-photo-left);top:var(--ppu-photo-top);max-width:none!important;max-height:none!important;object-fit:contain!important;transition:none}
 body.ppu-graco-pilot ul.products li.product .price:has(.ppu-price-on-request){width:100%;max-width:100%;font-size:12px;font-weight:500;line-height:1.3}
 body.ppu-graco-pilot .ppu-price-on-request{display:inline-block;font-size:12px;white-space:nowrap}
}

/* Colour-only refinement of the approved mobile Graco pilot. */
@media(max-width:767px){
 body.ppu-graco-pilot,body.ppu-graco-pilot #page,body.ppu-graco-pilot #content{background-color:#edf2f6}
 body.ppu-graco-pilot .ppu-pilot-search{background-color:#edf2f6;border-bottom-color:#ced9e3}
 body.ppu-graco-pilot .ppu-pilot-search input[type=search]{background-color:#fff;border-color:#c5d2df}
 body.ppu-graco-pilot ul.products li.product .astra-shop-thumbnail-wrap>a.woocommerce-loop-product__link{background-color:#fff;border-color:#bfcedd}
 body.ppu-graco-pilot ul.products li.product .astra-shop-summary-wrap>.price{color:#bf282e}
 body.ppu-graco-pilot ul.products li.product .price :is(.amount,bdi,ins,.ppu-price-on-request){color:inherit}
 body.ppu-graco-pilot ul.products li.product .ppu-archive-price-note{color:#596573}
 body.ppu-graco-pilot ul.products li.product .woocommerce-loop-product__title{color:#243b53}
}

/* Apply the same photo-led grid to category navigation; categories have no price. */
.ppu-catalog-group-photo{display:contents}
@media(max-width:767px){
 body.ppu-graco-pilot .ppu-hero .ppu-search{display:none}
 body.ppu-graco-pilot .ppu-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 12px}
 body.ppu-graco-pilot .ppu-category-card,body.ppu-graco-pilot ul.products li.product-category{display:flex;flex-direction:column;gap:0;padding:0!important;border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0}
 body.ppu-graco-pilot .ppu-category-card>span:not(.ppu-catalog-group-photo),body.ppu-graco-pilot .ppu-category-card>p{display:none}
 body.ppu-graco-pilot ul.products li.product-category>a{display:flex;flex-direction:column;gap:0;width:100%;min-width:0;align-items:stretch}
 body.ppu-graco-pilot .ppu-catalog-group-photo{display:block;position:relative;width:100%;aspect-ratio:3/4;background:#fff;border:1px solid #bfcedd;border-radius:16px;overflow:hidden;margin:0 0 8px}
 body.ppu-graco-pilot #primary .ppu-catalog-group-photo img{display:block;width:100%!important;height:100%!important;max-height:none!important;margin:0!important;object-fit:contain!important}
 body.ppu-graco-pilot #primary .ppu-catalog-group-photo img[data-ppu-framed]{position:absolute;width:var(--ppu-photo-width)!important;height:var(--ppu-photo-height)!important;left:var(--ppu-photo-left);top:var(--ppu-photo-top);max-width:none!important;transition:none}
 body.ppu-graco-pilot .ppu-category-card h3,body.ppu-graco-pilot ul.products li.product-category h2{font-size:14px!important;line-height:1.4;font-weight:400;text-transform:none;color:#243b53;margin:0;padding:0 2px;min-width:0;width:100%;word-break:normal;overflow-wrap:normal;hyphens:auto}
 body.ppu-graco-pilot .ppu-category-card,body.ppu-graco-pilot ul.products li.product-category>a{text-decoration:none}
 body.ppu-graco-pilot ul.products li.product-category .count{font-size:12px;color:#596573;background:none}
}

@media(max-width:767px){
 body.ppu-graco-pilot ul.products li.type-product a.button,body.ppu-graco-pilot ul.products li.type-product .ppu-marketplace-compact{display:none!important}
}
/* Astra overlays native subcategory captions on photos; keep them below instead. */
@media(max-width:767px){
 body.ppu-graco-pilot #primary ul.products li.product-category h2{position:static!important;width:100%;padding:0 2px!important;margin:0!important;background:transparent;text-align:left;transform:none;font-weight:400;text-transform:none;color:#243b53}
}

/* Group navigation remains a white card on the shared tinted mobile surface. */
@media(max-width:767px){
 body.ppu-graco-pilot .ppu-category-card,body.ppu-graco-pilot ul.products li.product-category{background-color:#fff;border-radius:16px;box-shadow:inset 0 0 0 1px #d6e0e9}
}

/* Dark group cards frame white photographs in the site's navy/apricot palette. */
@media(max-width:767px){
 body.ppu-graco-pilot .ppu-category-card,
 body.ppu-graco-pilot ul.products li.product-category{
  padding:8px!important;background:#102e55;border-radius:18px;
  box-shadow:inset 0 0 0 1px #29496d,0 6px 16px -10px #102e5580;
 }
 body.ppu-graco-pilot .ppu-catalog-group-photo{
  background:#fff;border-color:#dce6f0;border-radius:11px;margin:0 0 10px;
 }
 body.ppu-graco-pilot #primary .ppu-category-card h3,
 body.ppu-graco-pilot #primary ul.products li.product-category h2{
  color:#fff;font-weight:600;font-size:14px!important;line-height:1.45;
  padding:0 4px 8px!important;margin:0!important;
 }
 body.ppu-graco-pilot #primary ul.products li.product-category .count{color:#ffd09b}
}

/* Give the mobile category overview near edge-to-edge cards. */
@media(max-width:767px){
 body.page-id-145.ppu-graco-pilot .ppu-category-grid{
  width:calc(100vw - 10px);max-width:none;
  margin-left:calc(50% - 50vw + 5px);margin-right:calc(50% - 50vw + 5px);
  column-gap:5px;row-gap:12px;
 }
}
