@font-face {
  font-family: "PUFS Jost";
  src: url("assets/jost.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
html, body, body *:not(svg):not(path):not(i):not([class*="icon"]):not([class*="fa-"]):not(.dashicons) {
  font-family: "PUFS Jost", Jost, sans-serif !important;
}

/* Match the main page CTA weight on puppy pages. */
.puppy-page .puppy-button { font-weight: 500; }

/* Keep the homepage reference unchanged; match its measured spacing on internal pages. */
body:not(.home):not(.front-page) { letter-spacing: -.001em; }
body:not(.home):not(.front-page) :is(h1,h2,h3,h4,h5,h6,[role=heading]) { letter-spacing: -.023em; }

/* Keep narrow empty-cart product grids inside the mobile content column. */
@media (max-width: 390px) { body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products { box-sizing:border-box; width:100%; margin-inline:0; } }
body.error404 .pufs-404 { min-height:48vh; display:grid; align-content:center; justify-items:center; gap:14px; padding:32px 18px 48px; text-align:center; }
body.error404 .pufs-404 h1 { margin:0; }
body.error404 .pufs-404 p { max-width:34em; margin:0; }
body.error404 .pufs-404-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; }
@media (max-width:390px) { body.error404 .pufs-404-actions { width:100%; } body.error404 .pufs-404-actions .puppy-button { width:min(100%,290px); } }
/* Keep body copy on internal pages at the reference tracking without touching controls. */
body:not(.home):not(.front-page) :is(p,li,blockquote,figcaption,small) { letter-spacing: -.001em; }

@media (max-width: 340px) {
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items { box-sizing: border-box; width: 100%; max-width: 100%; table-layout: fixed; }
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-items__row { box-sizing: border-box; width: 100%; max-width: 100%; grid-template-columns: 64px minmax(0, 1fr) max-content; column-gap: 8px; }
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__image { grid-column: 1; grid-row: 1; width: 64px; padding-right: 0; }
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__product { grid-column: 2; grid-row: 1; min-width: 0; }
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__total { grid-column: 3; grid-row: 1; min-width: 0; white-space: nowrap; }
  body.woocommerce-cart .wc-block-cart table.wc-block-cart-items .wc-block-cart-item__quantity { grid-column: 1 / -1; grid-row: 2; padding: 8px 0 0; }
}
