/* Precium · site design · the actions over a card's photo work in every list (botones-tarjeta, 18-11-2026). Every rule
   scoped to [data-site-design="nuevo"], no colour and no size of its own: only the layer a card's photo sits in and what
   takes a press. Linked by DesignScope right after the heads' sheet (lib/site-design/tarjetas.ts), so the base sheet keeps
   its name and no cached page is left behind.

   A card (.sd-card, the product row .sd-row, a ranking's row .sd-rk-row) opens its product page through the name's link,
   stretched over the whole card (its ::after: position absolute, inset 0, z-index 1). The photo's actions («Guardar en
   favoritos», «Añadir a comparar» and the quick view's eye) sit on the photo (.sd-tile__actions, z-index 3), but the base
   isolates the photo (.sd-tile: isolation: isolate, for the photo's multiply blend), so their z-index counts only inside
   it: in the card the whole photo lay under the stretched link, and a press on a heart, an eye or «Comparar» landed on the
   link and opened the product page (precium.es on 18-11: every photo button of the lists, on a phone and on a computer;
   with the keyboard they worked, the buttons being outside the link and hydrated).

   Here the photo of a card goes above the stretched link (z-index 2: still isolated, so the same blend and the same look;
   .sd-main is a stacking context of its own, so every floating layer of the page, the filter bar, menus, popovers and the
   header, stays above it) and lets every press through (pointer-events: none) but its actions' buttons: a press on the
   photo, a badge or between two buttons still opens the product; the heart saves, the eye opens the quick view over the
   list and «Comparar» adds to the tray, without leaving it. A busy list (the next results loading: lista's
   .sd-lista-results dims and takes no press) keeps its photo buttons inert too. */
[data-site-design="nuevo"] .sd-card > .sd-tile,
[data-site-design="nuevo"] .sd-row > .sd-tile,
[data-site-design="nuevo"] .sd-rk-row > .sd-tile { z-index: 2; pointer-events: none; }
[data-site-design="nuevo"] .sd-tile__actions button { pointer-events: auto; }
[data-site-design="nuevo"] .sd-lista-nav[data-busy="true"] .sd-tile__actions button { pointer-events: none; }

/* botones-tarjeta-rev-uso (18-11-2026), now that these buttons take their presses in every list:
   - their keyboard focus ring: the base draws it in --sd-on-band (white) on the photo's tile, which is light in both themes
     (1.06 to 1.35:1 on precium.es, under the 3:1 a focus ring needs: a keyboard user could not see which button had the
     focus); here in the accent, the light theme's own focus colour: 4.7 to 6.1:1 on every tile, light and dark;
   - on a touch screen (pointer: coarse, as today's small buttons get their invisible 44 px area, ui/Button.tsx) each one
     takes a press a little around it, invisibly: 8 px to the sides and below (the photo's edge clips it; the button below is
     drawn later, so it keeps every press on itself) and half the gap above (the whole gap is covered, never the button above).
     A finger 2 or 3 px off a 28 to 36 px button, or between two of them, no longer opens the product page (on precium.es it
     did, by touch, with a finger of 4 or 12 px); farther on the photo it still does. */
[data-site-design="nuevo"] .sd-tile .sd-photo-action:focus-visible { outline-color: var(--sd-accent); }
@media (pointer: coarse) {
  [data-site-design="nuevo"] .sd-tile__actions .sd-photo-action::after { content: ""; position: absolute; inset: -3px -8px -8px; }
  [data-site-design="nuevo"] .sd-card--horizontal .sd-tile__actions .sd-photo-action::after,
  [data-site-design="nuevo"] .sd-row .sd-tile__actions .sd-photo-action::after,
  [data-site-design="nuevo"] .sd-rk-row .sd-tile__actions .sd-photo-action::after { inset: -2px -8px -8px; }
}
