/* Xana market shelves: existing shop-sign type, leaf green and warm gold. */
.home-shop{padding-top:26px}
.home-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:20px}
.home-heading h2{font-size:clamp(25px,3vw,36px);line-height:1.15;font-weight:800;letter-spacing:-.035em}
.home-heading p{color:var(--muted);margin-top:7px;max-width:48ch}
.home-heading .btn{flex-shrink:0}
.home-actions{display:flex;flex-direction:column;align-items:end;gap:9px;flex-shrink:0}
/* Photo tiles: one row of twelve on a computer, three rows of four on a phone. */
.home-tiles{list-style:none;margin:0 0 28px;padding:0;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:14px}
.home-tile{border:0;background:none;padding:0;cursor:pointer;width:100%;display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--ink)}
.home-tile img{width:100%;max-width:96px;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:14px;background:#EAF2EB;display:block}
.home-tile span{font-family:var(--font-d);font-size:12.5px;font-weight:600;line-height:1.25;text-align:center;overflow-wrap:anywhere}
.home-tile:hover span{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.home-collections{display:grid;gap:24px}
.home-shelf-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:13px}
.home-shelf-head h3{font-size:22px;font-weight:750;line-height:1.2}
.home-shelf-head p{color:var(--muted);font-size:13px;margin-top:5px}
.home-shelf-link{border:0;background:none;color:var(--green);font-weight:700;cursor:pointer;padding:10px 0;flex-shrink:0;text-decoration:underline;text-underline-offset:4px}
.home-shelf .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.home-shelf .card{border:0;border-radius:10px}
.home-shelf .img{border-bottom:0}
.home-shelf .tiers{display:none}
.home-shelf .tier-hint{display:block}
/* buttons line up along a shelf whether or not a card has a quantity price */
.home-shelf .action{margin-top:auto;padding-top:12px}
.home-state{padding:26px;border:1px solid var(--line);border-radius:var(--r);background:#EEF3E9;color:var(--muted);margin-bottom:24px}
.home-state b{display:block;font-family:var(--font-d);color:var(--ink);font-size:19px;margin-bottom:6px}
.home-state .btn{margin-top:14px}
.home-loading-tile{border-radius:10px;height:52px}
.leads{margin-top:12px;grid-template-columns:minmax(0,1fr)}
.leads .lead{border:0;background:none;padding:12px 0}
.leads .lead-img{display:grid;place-items:center;background:#EAF2EB;color:var(--green)}
.leads .lead-img .ic{font-size:28px}
.bulk{border:0;background:none;padding:18px 0;margin-top:22px}
.bulk p{max-width:46ch}
.home-clinic-link{font-size:13px;font-weight:600;color:var(--green);background:none;border:0;padding:2px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
body:not(.shop-browsing):not(.product-view) #main{display:none}
body.shop-browsing :is(.home-shop,.leads,.offers,.bulk,.capture),
body.product-view :is(.home-shop){display:none!important}
.shop-browsing #main{padding-top:1px}
@media(max-width:1100px){.home-tiles{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:767px){
  .home-shop{padding-top:20px}
  .home-heading{display:block}
  .home-actions{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin-top:13px}
  .home-heading .btn{padding:9px 14px}
  .home-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 10px;margin-bottom:24px}
  .home-tile span{font-size:12px}
  /* a shelf swipes sideways on a phone, with the next card showing at the edge */
  .home-shelf .grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:46%;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -18px;padding:0 18px 4px;scroll-padding:0 18px;scrollbar-width:none}
  .home-shelf .grid::-webkit-scrollbar{display:none}
  .home-shelf .card{scroll-snap-align:start}
  .home-shelf-head h3{font-size:21px}
  .home-shelf-head{gap:10px;align-items:center}
  .home-shelf-link{font-size:13px}
  .home-collections{gap:25px}
}
/* the page gutter narrows to 12px here (.wrap); the shelf still reaches the screen edge */
@media(max-width:560px){.home-shelf .grid{margin:0 -12px;padding:0 12px 4px;scroll-padding:0 12px}}
/* loading placeholders: the same boxes as the finished tiles and shelves (no layout shift) */
.home-tile-ph{cursor:default}
.home-tile-ph .skeleton-block{width:100%;max-width:96px;aspect-ratio:1/1;border-radius:14px}
.skeleton-shelf-title{width:180px;max-width:60%;height:26px}
.skeleton-shelf-copy{width:260px;max-width:80%;margin-top:9px}
.home-shelf-ph .home-shelf-head{min-height:50px}
