/* ── Grids ── */
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
  }
   /* Last row: 2 centered cards */
  .grid-last {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, calc((1200px - 32px) / 3)));
    gap: 16px;
    max-width: 1200px;
    margin: 16px auto 0;
    justify-content: center;
    align-items: stretch;
  }
   /* 2 col on tablet — both grids become 2-col, cards stack naturally */
  @media (max-width: 769px) {
    .grid      { grid-template-columns: repeat(2, 1fr); }
    .grid-last { grid-template-columns: repeat(2, 1fr); max-width: 100%; margin-top: 16px; justify-content: stretch; }
  }
   /* 1 col on mobile */
  @media (max-width: 480px) {
    .grid      { grid-template-columns: repeat(1, 1fr); }
    .grid-last { grid-template-columns: repeat(1, 1fr); max-width: 100%; margin-top: 16px; }
  }
   /* ── Card ── */
  .card {
    background: #000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
  }
   /* ── Flip container ── */
  .img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background: transparent;
  }
   /* Perspective wrapper — separate from the border overlay */
  .img-perspective {
    width: 100%;
    height: 100%;
    perspective: 900px;
  }
   .img-flipper {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  }
   /* Front = character, Back = product */
  .img-character,
  .img-product {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
   .img-character { transform: rotateY(0deg);   z-index: 2; }
  .img-product   { transform: rotateY(180deg); z-index: 1; }
   /* ── Border overlay ── */
  .img-border {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    border: 0px solid transparent;
  }
  .img-border.blink-on  { border: 6px solid #44d62c; }
  .img-border.blink-off { border: 0px solid transparent; }
  .img-border.blink-solid { border: 6px solid #44d62c; }
   /* ── Card body ── */
  .card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    text-align: center;
  }
   .card-header {
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
  }
   .card-header .product   { color: #44d62c; }
  .card-header .character { color: #fff; }
   .card-subheader {
    font-size: 1.5em;
    font-weight: 700;
    color: #fff;
    text-transform: none;
  }
   .card-copy {
    color: #9a9a9a;
    font: normal 1.125rem / 1.5rem Roboto;
  }
   /* ── Product link ── */
  .img-product-link {
    position: absolute;
    inset: 0;
    display: block;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    z-index: 1;
    outline: none !important;
  }
   .img-product-link .img-product {
    position: absolute;
    transform: none;
  }
     /* ── Remove all click outlines — keyboard :focus-visible only ── */
  .card,
  .card *,
  .card a,
  .card a:focus,
  .card a:active,
  .card:focus,
  .card:active,
  .card:focus-within { outline: none !important; box-shadow: none; }
   .card:focus-visible {
    outline: 3px solid #44d62c !important;
    outline-offset: 2px;
  }
   /* ── Accessibility: respect reduced motion ── */
  @media (prefers-reduced-motion: reduce) {
    .img-flipper { transition: none !important; }
    .img-border  { transition: none !important; }
  }
 @media screen and (max-width:767px){} @media screen and (-webkit-max-device-pixel-ratio: 1) and (min-width: 1200px), screen and (min-width: 768px) and (max-width: 1200px){} @media screen and (-webkit-min-device-pixel-ratio: 1) and (min-width: 1200px){} @media screen and (-webkit-min-device-pixel-ratio: 1.5) and (min-width: 1200px){}