/* INTERIORS v0.97 — subtle interaction feedback, pointer devices only.
   Isolated from the theme's layout and existing selected/active states. */
@media (hover: hover) and (pointer: fine) {
  :where(a[href], button:not(:disabled), [role="button"]:not([aria-disabled="true"]), summary, select, input[type="submit"], input[type="button"]):not(.disabled) { cursor: pointer; }

  /* Buttons and visible controls: soft internal highlight, no geometry changes. */
  :where(button:not(:disabled), .btn:not(:disabled), [role="button"]:not([aria-disabled="true"]), input[type="submit"], input[type="button"]):not(.products-category-pill):not(.products-subcategory-pill) {
    transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .22s ease;
  }
  :where(button:not(:disabled), .btn:not(:disabled), [role="button"]:not([aria-disabled="true"]), input[type="submit"], input[type="button"]):not(.products-category-pill):not(.products-subcategory-pill):hover {
    box-shadow: inset 0 0 0 999px rgba(210, 187, 165, .13);
  }

  /* Breadcrumb, menus and text navigation: legible understated feedback. */
  :where(.breadcrumb, .breadcrumbs, nav, .nav, header, footer, .footer, .header, .menu, .side-menu) a[href] {
    transition: color .2s ease, opacity .2s ease, text-decoration-color .2s ease;
    text-decoration-color: transparent;
  }
  :where(.breadcrumb, .breadcrumbs, nav, .nav, header, footer, .footer, .header, .menu, .side-menu) a[href]:hover {
    opacity: .82;
    text-decoration-color: currentColor;
  }

  /* Category pills: retain active selection, softly highlight inactive options. */
  .products-category-pill,
  .products-subcategory-pill {
    transition: background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
  }
  .products-category-pill:hover:not(.is-active):not(.is-preview),
  .products-subcategory-pill:hover:not(.is-active) {
    background: rgba(227, 218, 209, .22);
    box-shadow: inset 0 0 0 1px rgba(227, 218, 209, .35);
  }
  /* Product details use a light surface rather than the dark catalogue. */
  body[data-template='product_details'] .products-category-pill:hover:not(.is-active):not(.is-preview),
  body[data-template='product_details'] .products-subcategory-pill:hover:not(.is-active),
  .product-page-categories-nav .products-category-pill:hover:not(.is-active):not(.is-preview),
  .product-page-categories-nav .products-subcategory-pill:hover:not(.is-active) {
    background: rgba(70, 76, 66, .085);
    box-shadow: inset 0 0 0 1px rgba(70, 76, 66, .2);
  }

  /* Product cards: soft emphasis; do not move cards or disturb grid heights. */
  .product-item {
    transition: box-shadow .24s ease, background-color .24s ease;
  }
  .product-item:has(a[href]:hover),
  .product-item:has(button:hover) {
    box-shadow: 0 5px 18px rgba(28, 17, 13, .13);
    background-color: rgba(227, 218, 209, .055);
  }
  .product-item .product-card-image-wrapper img,
  .product-item .product-card-image-wrapper a img {
    transition: filter .28s ease;
  }
  .product-item .product-card-image-wrapper a:hover img {
    filter: brightness(.94);
  }
  .product-item .product-card-name:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  /* Generic clickable collection tiles (not the entire page or plain content). */
  :where(.card-categories-wrapper, .category-second-card, .card-categories) a[href] img {
    transition: filter .24s ease;
  }
  :where(.card-categories-wrapper, .category-second-card, .card-categories) a[href]:hover img {
    filter: brightness(.94);
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-item,
  .product-item img,
  .products-category-pill,
  .products-subcategory-pill { transition: none !important; }
}
