/* Wicked Corporation — product preview card, option A "finition", 10 Nov 2026.
 * Loaded after card-qty and card-sym. Nothing is removed:
 *  - one type scale: labels 11 px, reading text 13 px, price 20 px (Doto);
 *  - controls at least 32 px visible, with an invisible margin that widens the touch area;
 *  - on a one-of-one piece the quantity selector (both buttons locked at 1) is hidden;
 *    it shows again whenever the stock allows more than one.
 */
/* Type scale: phones and narrow windows only (desktop sizes are already larger). */
@media (max-width: 900px) {
  [class*="_card_1214w_"] :is([class*="_previewCategory_1214w_"], [class*="_productInfoLabel_1214w_"], [class*="_mobileQtyLabel_1214w_"], [class*="_mobileInfoLabel_1214w_"], [class*="_badge_1214w_"], [class*="_realPhotoBtn_1214w_"]) {
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
  }
  [class*="_card_1214w_"] :is([class*="_description_1214w_"], [class*="_uniqueSize_1214w_"], [class*="_previewName_1214w_"]) {
    font-size: 13px !important;
    letter-spacing: 0.02em !important;
    line-height: 1.3 !important;
  }
  [class*="_card_1214w_"] [class*="_prix_1214w_"] { font-size: 20px !important; }
  [class*="_card_1214w_"] [class*="_prix_1214w_"] [class*="_mobileInfoLabel_1214w_"] { font-family: "WC Share Tech", sans-serif !important; letter-spacing: 0.08em !important; }
}

/* One-of-one piece: quantity fixed at 1, nothing to choose. */
[class*="_card_1214w_"] [class*="_headQty_1214w_"]:has(button[title^="Pièce unique"]) { display: none !important; }

/* Controls: 32 px visible, larger touch area. */
[class*="_card_1214w_"] :is([class*="_toggleBtn_1214w_"], [class*="_close_1214w_"]) {
  width: 32px !important;
  height: 32px !important;
  border: 1px solid rgba(201, 207, 215, 0.22) !important;
  font-size: 17px !important;
}
[class*="_card_1214w_"] [class*="_headQty_1214w_"] button { min-width: 28px !important; min-height: 28px !important; }
[class*="_card_1214w_"] :is([class*="_toggleBtn_1214w_"], [class*="_close_1214w_"], [class*="_headQty_1214w_"] button, [class*="_navBtn_1214w_"]) { position: relative; }
[class*="_card_1214w_"] :is([class*="_toggleBtn_1214w_"], [class*="_close_1214w_"], [class*="_headQty_1214w_"] button)::after {
  content: "";
  position: absolute;
  inset: -6px -2px;
}
[class*="_card_1214w_"] [class*="_navBtn_1214w_"]::after { content: ""; position: absolute; inset: -4px 0; }

@media (max-width: 900px) {
  [class*="_card_1214w_"] { --wc-top: 32px; }
  [class*="_card_1214w_"] [class*="_previewNavigation_1214w_"] { grid-template-columns: 36px minmax(0, 1fr) 36px !important; }
  [class*="_card_1214w_"] [class*="_navBtn_1214w_"] { width: 36px !important; }
  [class*="_card_1214w_"] [class*="_realPhotoBtn_1214w_"] { justify-content: center; min-width: 0 !important; }
}

/* Revision b (10 Nov 2026): prices never clipped, on Safari too.
 * Safari ignores ascent-override/descent-override, so Doto keeps its real 1.2 em height:
 * explicit line heights, a 44 px bottom row on both halves (symmetry kept), no wrapping. */
@media (max-width: 900px) {
  [class*="_card_1214w_"] { --wc-bot: 44px; }
  [class*="_card_1214w_"] [class*="_prix_1214w_"] {
    font-size: 18px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    padding-block: 2px !important;
    gap: 1px !important;
  }
  [class*="_card_1214w_"] [class*="_prix_1214w_"] [class*="_mobileInfoLabel_1214w_"] { line-height: 1.1 !important; }
  [class*="_total_b5vqp_"] { line-height: 1.2 !important; white-space: nowrap !important; overflow: visible !important; }
}
/* Narrow phones: LUNETTES and PHOTOS side by side without touching. */
@media (max-width: 380px) {
  [class*="_card_1214w_"] :is([class*="_previewCategory_1214w_"], [class*="_realPhotoBtn_1214w_"]) { font-size: 10px !important; letter-spacing: 0.05em !important; }
  [class*="_card_1214w_"] [class*="_realPhotoBtn_1214w_"] { padding-inline: 7px !important; }
  [class*="_card_1214w_"] [class*="_previewCategory_1214w_"] { padding-inline: 5px !important; }
}
