/* Wicked Corporation — symmetric product preview card on phones, 10 Nov 2026.
 * Both halves of the card share the same grid: 8 px inner margin, a 26 px top
 * row (EYEWEAR / PHOTOS on the left, − / × on the right) and a 40 px bottom row
 * (← name → on the left, PRIX / ACHETER on the right), aligned on the same lines.
 * Everything stays inside the card. The ADMIN link moves to the top left so it
 * no longer covers the cart total. CSS only, phones and narrow windows.
 */
@media (max-width: 900px) {
  [class*="_card_1214w_"] {
    --wc-pad: 8px;
    --wc-top: 26px;
    --wc-bot: 40px;
    --wc-gap: 6px;
  }

  /* Left half: preview */
  [class*="_card_1214w_"] [class*="_previewCategory_1214w_"],
  [class*="_card_1214w_"] [class*="_realPhotoBtn_1214w_"] {
    top: var(--wc-pad) !important;
    bottom: auto !important;
    height: var(--wc-top) !important;
    display: flex !important;
    align-items: center;
    padding-block: 0 !important;
  }
  [class*="_card_1214w_"] [class*="_previewCategory_1214w_"] { left: var(--wc-pad) !important; right: auto !important; }
  [class*="_card_1214w_"] [class*="_realPhotoBtn_1214w_"] { right: var(--wc-pad) !important; left: auto !important; justify-content: center; }
  [class*="_card_1214w_"] [class*="_previewSelect_1214w_"] [class*="_hote_"] {
    top: calc(var(--wc-pad) + var(--wc-top) + var(--wc-gap)) !important;
    bottom: calc(var(--wc-pad) + var(--wc-bot) + var(--wc-gap)) !important;
    left: var(--wc-pad) !important;
    right: var(--wc-pad) !important;
    height: auto !important;
  }
  [class*="_card_1214w_"] [class*="_previewNavigation_1214w_"] {
    top: auto !important;
    bottom: var(--wc-pad) !important;
    left: var(--wc-pad) !important;
    right: var(--wc-pad) !important;
    height: var(--wc-bot) !important;
    grid-template-rows: var(--wc-bot) !important;
  }
  [class*="_card_1214w_"] [class*="_navBtn_1214w_"] { height: var(--wc-bot) !important; }

  /* Right half: product information */
  [class*="_card_1214w_"] [class*="_body_1214w_"] {
    padding: var(--wc-pad) !important;
    grid-template-rows: var(--wc-top) auto auto minmax(0, 1fr) auto var(--wc-bot) !important;
    row-gap: 3px !important;
    overflow: hidden !important;
  }
  /* ONE OF ONE (left) shares the row of the quantity selector (right),
     right above PRIX / ACHETER. */
  [class*="_card_1214w_"] [class*="_descriptionBlock_1214w_"] { grid-row: 2 !important; }
  [class*="_card_1214w_"] [class*="_sizeBlock_1214w_"] { grid-row: 3 !important; }
  [class*="_card_1214w_"] [class*="_badge_1214w_"] { grid-row: 5 !important; justify-self: start; align-self: center; }
  [class*="_card_1214w_"] [class*="_headQty_1214w_"] { grid-row: 5 !important; justify-self: end; align-self: center; }
  [class*="_card_1214w_"] [class*="_prixBlock_1214w_"] { grid-row: 6 !important; }
  [class*="_card_1214w_"] [class*="_toggleBtn_1214w_"],
  [class*="_card_1214w_"] [class*="_close_1214w_"] {
    width: var(--wc-top) !important;
    height: var(--wc-top) !important;
    align-self: center;
  }
  [class*="_card_1214w_"] [class*="_descriptionBlock_1214w_"] {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  [class*="_card_1214w_"] [class*="_prixBlock_1214w_"] { align-self: end; }
  [class*="_card_1214w_"] [class*="_prixRow_1214w_"],
  [class*="_card_1214w_"] [class*="_prixRow_1214w_"] > * {
    height: var(--wc-bot) !important;
  }

  /* ADMIN link: off the cart bar */
  [class*="_adminAccess_n7x0f_"] {
    top: calc(env(safe-area-inset-top, 0px) + 62px) !important;
    bottom: auto !important;
  }
}
