/* ============================================================
   CAPE OFFICE FURNITURE, Product Tiles (all pages)
   Loaded on every page by page-header.php.
   Clicking anywhere on a product tile opens its pop-up or product page.
   The tile's own link (the info icon, the price, or the image link) is
   stretched invisibly over the whole tile, so no HTML changes are needed.
   Tiles without any link (e.g. bulk filing) are left as they are.
   Markup: .item-thumbnail > (a > img | img) + .item-caption
           (.item-caption-btn a | .price-button a)
   ============================================================ */
.item-thumbnail { position: relative; }
.item-thumbnail:has(a[href]:not([href="#"])) { cursor: pointer; }
.item-thumbnail > a[href]::after,
.item-thumbnail .item-caption-btn a[href]::after,
.item-thumbnail .price-button a[href]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
/* keyboard focus: outline the whole tile */
.item-thumbnail .item-caption-btn a:focus-visible,
.item-thumbnail .price-button a:focus-visible { outline: none; }
.item-thumbnail .item-caption-btn a:focus-visible::after,
.item-thumbnail .price-button a:focus-visible::after {
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px #a5c711;
}
