/* Dana product card: what every card design shares (the template's
 * .card-product, design/css/styles.css 12234-12481, hover 20492-20540, phones
 * 22369-22409). components/product-card.jinja draws one markup; the Product
 * card group's settings arrive as classes on <html> (layout.jinja):
 *   dana-cards--d<N>             the design (its own rules in card-<N>.css)
 *   dana-cards--actions-*        side | bar | row | none   (here)
 *   dana-cards--button-*         none | solid | outline | tint   (here)
 *   dana-cards--align-*          start | center   (here)
 *   dana-cards--ratio-*, --fit-*, --no-hover-image, --no-rating,
 *   --no-discount, --no-badge, --no-notes, --no-countdown, --brand, --stock,
 *   --name-body (while «name in the headings font» is off), --icons-surface
 *   (the last two wait for their settings: layout.jinja writes them once
 *   the group has them)
 * A section may give its cards their own design or button: the card then
 * carries dana-card--own dana-card--d<N> and / or dana-card--btn
 * dana-card--btn-<look>, which win over the page's classes.
 *
 * Measured on index.html:1314 (the fashion design's Best Sellers) with the
 * real mouse, 2026-09-29: a 330px card at 1440 (317 at 1024, 174 at 390); the
 * picture box 0.7037 with 16px corners; name 16/24 at 500 (14/22 under 768);
 * price 16/24 at 500 in the accent, the old one at 60% (14/20 under 768);
 * the text 20px under the picture and 20px under it, 10px apart from 992
 * (15 / 6 under 768, 8 from 768); icons 35px / 14px, 40px / 16px from 992,
 * 45px / 16px from 1200 where they slide in one by one on hover. Sizes are
 * px: the starter's root is 12px (runbook 5.0). One sheet for both
 * directions: logical properties, what cannot be logical under [dir].
 */

/* ---- The card and its picture -------------------------------------------- */
.dana-card {
  --dana-card-icon: 35px;
  --dana-card-glyph: 14px;
  --dana-card-edge: 8px;       /* the icons' distance from the picture's edge */
  --dana-card-icon-bg: var(--dana-bg);
  --dana-card-icon-ink: var(--dana-heading);
  --dana-card-icon-hover: var(--dana-heading);
  --dana-card-icon-hover-ink: var(--dana-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  font-family: var(--dana-font-body);
  font-size: var(--dana-fs-body);
  line-height: var(--dana-lh-body);
  color: var(--dana-text);
  text-align: start;
}
.dana-card *, .dana-card *::before, .dana-card *::after { box-sizing: border-box; }
.dana-card :where(p, ul, ol, h2, h3, h4, del) { margin: 0; }
.dana-card :where(ul) { padding: 0; list-style: none; }
.dana-card a { text-decoration: none; }
.dana-card a:where(:not(.dana-btn, .dana-card__icon)) { color: inherit; }
/* Family only: the font shorthand would reset each button's own size and
   weight (runbook C4, Amer's card). */
.dana-card button { font-family: inherit; cursor: pointer; }
@media (min-width: 992px) { .dana-card { --dana-card-icon: 40px; --dana-card-glyph: 16px; } }
@media (min-width: 1200px) { .dana-card { --dana-card-icon: 45px; --dana-card-edge: 20px; } }
/* The icons' ground: the page's (most home pages, index included), or the
   grey panel colour, the template's .bg-surface on every icon of the grocery
   page (home-vegetable, all four card looks), electronic and phonecase
   (measured at 1440, 2026-09-29). The group's class dana-cards--icons-
   surface, from those presets; the Panel design (card-3.css) has it anyway. */
html.dana-cards--icons-surface .dana-card { --dana-card-icon-bg: var(--dana-surface); }
/* The icons' hover in the accent (the group's «icons colour on hover»;
   handcraft's .card-product.btn-brown, styles.css 12767-12776: the buttons
   and their tooltips fill with the brown accent). The tooltips below read
   the same pair, which is the heading and the page's ground by default.
   The words on the accent are its own words colour, unless that pair reads
   under 4.5:1 for the 10px tooltips (the look's coral with white, 2.73:1):
   layout.jinja then hands them to white or near-black. */
html.dana-cards--icon-hover-accent .dana-card { --dana-card-icon-hover: var(--dana-accent); --dana-card-icon-hover-ink: var(--dana-set-icon-hover-ink, var(--dana-on-accent)); }

/* The picture's frame (the template's .card-product-wrapper): what sits on
   the picture (badges, icons, the countdown, the strip, «Sold out») is
   placed in it. The Standard design draws the picture edge to edge in it;
   the Framed design pads it (card-2.css). The picture itself
   (.product-img) is the link, with the group's shape. */
.dana-card__media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--dana-radius-product);
}
.dana-card__image-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--dana-card-ratio, 0.7037);
  background-color: var(--dana-surface);
}
/* The group's picture shape. Portrait is the template's own 0.7037 (its
   .card-product-wrapper), 4:5 its asp-ratio-2 family of pages (baby, plant,
   pod), square asp-ratio-1, landscape the bicycle's 4:3. */
html.dana-cards--ratio-portrait { --dana-card-ratio: 0.7037; }
html.dana-cards--ratio-4-5 { --dana-card-ratio: 0.8; }
html.dana-cards--ratio-square { --dana-card-ratio: 1; }
html.dana-cards--ratio-landscape { --dana-card-ratio: 1.3333; }
/* 3:4, the jewelry pictures' own shape (330 x 441 on home-jewelry.html:1251),
   ready for the group's option when the layout offers it. */
html.dana-cards--ratio-3-4 { --dana-card-ratio: 0.75; }
/* Book: taller than portrait, the covers' own 0.61-0.64 (home-book's
   .card-product.style-book, styles.css 20574). */
html.dana-cards--ratio-book { --dana-card-ratio: 0.65; }
html.dana-cards--fit-contain { --dana-card-fit: contain; --dana-card-pad: 8%; }
/* No ground behind the picture (the group's «picture ground: none»): a whole
   picture (contain) sits on the card's own ground, as home-book's covers sit
   on white; with a cover picture nothing shows behind it anyway. */
html.dana-cards--ground-none .dana-card__image-link { background-color: transparent; }
/* A thin line round the picture (the group's «picture line»; phonecase's
   .card-product-wrapper.line-2, styles.css 1784-1786: 1px #d1d1d1, the
   heading at 18% on white). Drawn over the picture's edge by a layer that
   takes the frame's corners, so nothing moves: on the frame (.dana-card__media)
   where the picture fills it, on the picture itself in the Framed design,
   whose frame is padded (card-2.css). */
html.dana-cards--picture-line .dana-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid color-mix(in srgb, var(--dana-heading) 18%, transparent);
  border-radius: inherit;
  pointer-events: none;
}
.dana-card__image {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  padding: var(--dana-card-pad, 0px);
  object-fit: var(--dana-card-fit, cover);
  object-position: center;
  /* the template's img: transition-duration 700ms, every property, ease */
  transition: opacity .7s ease, transform .7s ease;
}
.dana-card__image--hover { opacity: 0; }
/* No picture: a drawn bag on the card's ground. */
.dana-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--dana-heading) 22%, transparent);
}
.dana-card__placeholder svg { inline-size: 28%; max-inline-size: 72px; block-size: auto; }

/* The template's card-product-wrapper:hover: the second picture fades in
   and grows to 1.05 while the first fades out (700ms). With one picture, or
   the group's «second picture» off (none-hover-img), the one picture grows.
   Keyboard focus inside the card does the same. Only where there is a real
   hover: a touch screen keeps the first picture. */
@media (hover: hover) {
  .dana-card.has-hover-image .dana-card__media:hover .dana-card__image--hover,
  .dana-card.has-hover-image:has(:focus-visible) .dana-card__image--hover { opacity: 1; transform: scale(1.05); }
  .dana-card.has-hover-image .dana-card__media:hover .dana-card__image:not(.dana-card__image--hover),
  .dana-card.has-hover-image:has(:focus-visible) .dana-card__image:not(.dana-card__image--hover) { opacity: 0; }
  .dana-card:not(.has-hover-image) .dana-card__media:hover .dana-card__image,
  .dana-card:not(.has-hover-image):has(:focus-visible) .dana-card__image,
  html.dana-cards--no-hover-image .dana-card .dana-card__media:hover .dana-card__image:not(.dana-card__image--hover),
  html.dana-cards--no-hover-image .dana-card:has(:focus-visible) .dana-card__image:not(.dana-card__image--hover) { opacity: 1; transform: scale(1.05); }
}
html.dana-cards--no-hover-image .dana-card__image--hover { display: none; }

/* ---- Badges (.on-sale-wrap / .on-sale-item) ---------------------------------
   10px from the corner, 20px from 768; a row 6px apart. The discount and
   Zid's own badge take the badge colour of the Colours group («20% Off» in
   the accent while it is empty), as the product page's discount does
   (product.css .dana-pinfo__discount); the bundle-offer tag is Zid's (filled
   by bundle-offers.js) and is drawn only once it has words. */
.dana-card__badges {
  position: absolute;
  z-index: 5;
  inset-block-start: 10px;
  inset-inline: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
}
@media (min-width: 768px) { .dana-card__badges { inset-block-start: 20px; inset-inline: 20px; } }
/* Clear of the icon column at the other corner. */
html.dana-cards--actions-side .dana-card__badges { inset-inline-end: calc(var(--dana-card-edge) + var(--dana-card-icon) + 6px); }
.dana-card__badges .dana-badge { max-inline-size: 100%; overflow: hidden; text-overflow: ellipsis; }
.dana-card__discount { background-color: var(--dana-badge-bg); color: var(--dana-badge-text); unicode-bidi: isolate; }
html.dana-cards--no-discount .dana-card__discount, html.dana-cards--no-badge .dana-card__badge { display: none; }
.dana-card .dana-card__offer { display: none; position: static; inset: auto; max-inline-size: 100%; }
.dana-card .dana-card__offer.bundle-offer-product-tag:not(:empty) {
  display: inline-flex;
  align-items: center;
  block-size: 26px;
  padding-inline: 10px;
  border-radius: var(--dana-radius-badge);
  background-color: var(--dana-primary);
  color: var(--dana-on-primary);
  font-size: 12px;
  line-height: 26px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 767px) { .dana-card .dana-card__offer.bundle-offer-product-tag:not(:empty) { block-size: 24px; line-height: 24px; } }

/* ---- Sold out (.out-of-stock) ----------------------------------------------
   A 92px dark circle in the middle of the picture (60px, 10px type on
   phones), the picture and the text at 60%. The words are markup here, not
   CSS content, so they are translated. The way on is the product page: the
   notify icon, and «Notify me when available» where the card has a button. */
.dana-card__soldout {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: 92px;
  block-size: 92px;
  padding: 8px;
  border-radius: 50%;
  background-color: var(--dana-heading);
  color: var(--dana-bg);
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  text-align: center;
  margin: auto;
  pointer-events: none;
}
@media (max-width: 767px) { .dana-card__soldout { inline-size: 60px; block-size: 60px; padding: 4px; font-size: 10px; line-height: 12px; } }
.dana-card.is-out .dana-card__image { opacity: .6; }
.dana-card.is-out .dana-card__body > :not(.dana-card__cta, .dana-card__stock, .dana-card__mini-add, .dana-card__mini-out) { opacity: .6; }
/* The price at 60% as well, in the heading's ink: the accent at 60% read
   1.84:1 on white (fashion's coral), the heading at 60% reads 5.7:1, and it
   follows a dark section's own heading colour (bundle, spotlight). */
.dana-card.is-out .dana-card__price .dana-price__now { color: var(--dana-heading); }

/* ---- The icons on the picture (.list-product-btn .box-icon) ------------------
   Add to cart (or «Choose options» / «Notify me» to the product page), the
   wishlist heart (only when the store has it on) and the quick view.
   Round, the card's ground with the heading's ink, dark with light ink on
   hover. Under 768 the heart leaves (the template's phones keep two). */
.dana-card__icons {
  position: absolute;
  z-index: 6;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dana-card__icons > li { display: flex; transition: opacity .3s ease-in-out, transform .3s ease-in-out; }
.dana-card__icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: var(--dana-card-icon);
  block-size: var(--dana-card-icon);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--dana-card-icon-bg);
  color: var(--dana-card-icon-ink);
  font-size: var(--dana-card-glyph);
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s ease-in-out, color .3s ease-in-out, border-color .3s ease-in-out;
}
.dana-card__icon .di { display: flex; inline-size: 1em; block-size: 1em; }
/* The envelope of «Notify me» is a wider glyph than the bag, heart and eye:
   drawn 2px smaller so the four read as one set. A whole pixel size: at
   .86em (13.76px) the renderer snapped the glyph 0.88px above the circle's
   centre at 1200 and up (the glyph is centred in the font: 0 at 12, 14 and
   16px). */
.dana-card__icon--notify .di { font-size: calc(var(--dana-card-glyph) - 2px); }
.dana-card__icon:hover, .dana-card__icon:focus-visible, .dana-card__icon.is-added { background-color: var(--dana-card-icon-hover); color: var(--dana-card-icon-hover-ink); }
/* The heart shows the shopper's list (ui.js paints aria-pressed). */
.dana-card__icon[aria-pressed="true"] { background-color: var(--dana-card-icon-hover); color: var(--dana-card-icon-hover-ink); }
.dana-card__icon[aria-pressed="true"] .di-heart2::before { content: "\e961"; }
.dana-card [aria-busy="true"] { opacity: .6; pointer-events: none; }
@media (max-width: 767px) { .dana-card__icons > .dana-card__wish { display: none; } }

/* side (the template's default): a column at the picture's top end. From
   1200 with a mouse the icons wait off to the side and slide in one by one
   on hover (0, .1, .2s). */
html.dana-cards--actions-side .dana-card__icons {
  inset-block-start: var(--dana-card-edge);
  inset-inline-end: var(--dana-card-edge);
  flex-direction: column;
}
@media (min-width: 1200px) { html.dana-cards--actions-side .dana-card__icons { gap: 16px; } }

/* bar (.style-2): one pill of joined buttons centred at the picture's foot,
   8px up (20 from 1200), each button with a 1px line and rising on hover. */
html.dana-cards--actions-bar .dana-card__icons {
  inset-block-end: 8px;
  inset-inline: 0;
  inline-size: max-content;
  max-inline-size: calc(100% - 16px);
  margin-inline: auto;
  gap: 0;
}
html.dana-cards--actions-bar .dana-card__icon { border: 1px solid var(--dana-line); border-radius: 0; }
html.dana-cards--actions-bar .dana-card__icons > li + li .dana-card__icon { border-inline-start-color: var(--dana-card-icon-bg); }
html.dana-cards--actions-bar .dana-card__icons > li:first-child .dana-card__icon { border-start-start-radius: 30px; border-end-start-radius: 30px; }
html.dana-cards--actions-bar .dana-card__icons > li:last-child .dana-card__icon { border-start-end-radius: 30px; border-end-end-radius: 30px; }
/* A card with a button hides its cart icon (below): the button after it
   opens the pill, with its corners and its line. */
html.dana-cards--actions-bar:is(.dana-cards--button-solid, .dana-cards--button-outline, .dana-cards--button-tint) .dana-card:not(.dana-card--btn) .dana-card__icons > .dana-card__cartli + li .dana-card__icon,
html.dana-cards--actions-bar .dana-card:is(.dana-card--btn-solid, .dana-card--btn-outline, .dana-card--btn-tint) .dana-card__icons > .dana-card__cartli + li .dana-card__icon { border-start-start-radius: 30px; border-end-start-radius: 30px; }
html.dana-cards--actions-bar:is(.dana-cards--button-solid, .dana-cards--button-outline, .dana-cards--button-tint) .dana-card:not(.dana-card--btn) .dana-card__icons > .dana-card__cartli + li .dana-card__icon:not(:hover, :focus-visible),
html.dana-cards--actions-bar .dana-card:is(.dana-card--btn-solid, .dana-card--btn-outline, .dana-card--btn-tint) .dana-card__icons > .dana-card__cartli + li .dana-card__icon:not(:hover, :focus-visible) { border-inline-start-color: var(--dana-line); }
html.dana-cards--actions-bar .dana-card__icon:hover, html.dana-cards--actions-bar .dana-card__icon:focus-visible { border-color: var(--dana-card-icon-hover); }
@media (min-width: 1200px) { html.dana-cards--actions-bar .dana-card__icons { inset-block-end: 20px; } }
/* Phones: the pill is one rounded shape with no lines but the one between.
   The buttons round their own ends (above; here the heart is hidden, so the
   eye alone is the whole pill when no cart icon shows): the row is not
   clipped, so each button's 44px target (below) reaches past its 35px. */
@media (max-width: 767px) {
  html.dana-cards--actions-bar .dana-card__icon { border: 0; }
  html.dana-cards--actions-bar .dana-card__icons > li:not(:last-child) .dana-card__icon { border-inline-end: 1px solid var(--dana-line); }
  html.dana-cards--actions-bar:is(.dana-cards--button-solid, .dana-cards--button-outline, .dana-cards--button-tint) .dana-card:not(.dana-card--btn) .dana-card__icons > li:last-child .dana-card__icon,
  html.dana-cards--actions-bar .dana-card:is(.dana-card--btn-solid, .dana-card--btn-outline, .dana-card--btn-tint) .dana-card__icons > li:last-child .dana-card__icon,
  html.dana-cards--actions-bar .dana-card__icons:not(:has(> .dana-card__cartli)) > li:last-child .dana-card__icon { border-start-start-radius: 30px; border-end-start-radius: 30px; }
}

/* row (.style-3): separate round buttons over the lower picture, a soft
   shadow under each (.box-shadow1), 10px up (16 from 1200). */
html.dana-cards--actions-row .dana-card__icons {
  inset-block-end: 10px;
  inset-inline: 0;
  inline-size: max-content;
  max-inline-size: calc(100% - 16px);
  margin-inline: auto;
}
html.dana-cards--actions-row .dana-card__icon { box-shadow: 0 1px 6px 0 rgba(158, 158, 158, .25); }
@media (min-width: 1200px) { html.dana-cards--actions-row .dana-card__icons { inset-block-end: 16px; gap: 16px; } }

html.dana-cards--actions-none .dana-card__icons { display: none; }

/* A thumb's 44px: under 1200px, or on a touch screen, the tooltip's ::after
   (below) is free, so it is a transparent layer round the icon that makes
   the 35px disc (40px from 992, 36px on the small card) a 44px target while
   the disc is drawn as before. Side (a column) and row icons are 8px apart
   under 1200: each takes half the gap (4px) and the two ends reach 5px
   outwards, so neighbours meet and every one is 44px. The bar's buttons
   touch: they reach up and down, and the pill's two ends take the whole
   difference outwards (9px on a 35px button), so two touching buttons are
   44px each; a pill of one button reaches half each way, and the middle
   button of three keeps its own width. */
@media (max-width: 1199.98px), (hover: none) {
  .dana-card__icon::after { content: ""; position: absolute; inset: min(0px, calc(50% - 22px)); }
  html.dana-cards--actions-side .dana-card__icons .dana-card__icon::after { inset-block: max(-4px, min(0px, calc(50% - 22px))); }
  html.dana-cards--actions-side .dana-card__icons > li:first-child .dana-card__icon::after { inset-block-start: min(0px, calc(100% - 44px - max(-4px, min(0px, calc(50% - 22px))))); }
  html.dana-cards--actions-side .dana-card__icons > li:last-child .dana-card__icon::after { inset-block-end: min(0px, calc(100% - 44px - max(-4px, min(0px, calc(50% - 22px))))); }
  html.dana-cards--actions-row .dana-card__icons .dana-card__icon::after { inset-inline: max(-4px, min(0px, calc(50% - 22px))); }
  html.dana-cards--actions-row .dana-card__icons > li:first-child .dana-card__icon::after { inset-inline-start: min(0px, calc(100% - 44px - max(-4px, min(0px, calc(50% - 22px))))); }
  html.dana-cards--actions-row .dana-card__icons > li:last-child .dana-card__icon::after { inset-inline-end: min(0px, calc(100% - 44px - max(-4px, min(0px, calc(50% - 22px))))); }
  html.dana-cards--actions-bar .dana-card__icons .dana-card__icon::after { inset-inline: 0; }
  html.dana-cards--actions-bar .dana-card__icons > li:first-child .dana-card__icon::after,
  html.dana-cards--actions-bar:is(.dana-cards--button-solid, .dana-cards--button-outline, .dana-cards--button-tint) .dana-card:not(.dana-card--btn) .dana-card__icons > .dana-card__cartli + li .dana-card__icon::after,
  html.dana-cards--actions-bar .dana-card:is(.dana-card--btn-solid, .dana-card--btn-outline, .dana-card--btn-tint) .dana-card__icons > .dana-card__cartli + li .dana-card__icon::after { inset-inline-start: min(0px, calc(100% - 44px)); }
  html.dana-cards--actions-bar .dana-card__icons > li:last-child .dana-card__icon::after { inset-inline-end: min(0px, calc(100% - 44px)); }
  html.dana-cards--actions-bar:is(.dana-cards--button-solid, .dana-cards--button-outline, .dana-cards--button-tint) .dana-card:not(.dana-card--btn) .dana-card__icons > .dana-card__cartli + li:last-child .dana-card__icon::after,
  html.dana-cards--actions-bar .dana-card:is(.dana-card--btn-solid, .dana-card--btn-outline, .dana-card--btn-tint) .dana-card__icons > .dana-card__cartli + li:last-child .dana-card__icon::after { inset-inline: min(0px, calc(50% - 22px)); }
}
/* Phones hide the heart: a card with a button is left with the eye alone. */
@media (max-width: 767px) {
  html.dana-cards--actions-bar:is(.dana-cards--button-solid, .dana-cards--button-outline, .dana-cards--button-tint) .dana-card:not(.dana-card--btn) .dana-card__icons > li:last-child .dana-card__icon::after,
  html.dana-cards--actions-bar .dana-card:is(.dana-card--btn-solid, .dana-card--btn-outline, .dana-card--btn-tint) .dana-card__icons > li:last-child .dana-card__icon::after,
  html.dana-cards--actions-bar .dana-card__icons:not(:has(> .dana-card__cartli)) > li:last-child .dana-card__icon::after { inset-inline: min(0px, calc(50% - 22px)); }
}

/* With a mouse from 1200: transparent until the card is hovered or holds the
   keyboard's focus. Never visibility: hidden, which would take the buttons
   out of the Tab order (they come before the name) and stop the quick view
   handing focus back to its eye. :focus-visible, not :focus-within: a mouse
   click leaves focus on the icon, and the card must not stay «hovered» once
   the mouse has left (the template reacts to :hover only). */
@media (min-width: 1200px) and (hover: hover) {
  .dana-card__icons > li { opacity: 0; pointer-events: none; }
  html.dana-cards--actions-side .dana-card__icons > li { transform: translateX(20px); }
  [dir="rtl"].dana-cards--actions-side .dana-card__icons > li { transform: translateX(-20px); }
  html.dana-cards--actions-bar .dana-card__icons > li, html.dana-cards--actions-row .dana-card__icons > li { transform: translateY(20px); }
  .dana-card:hover .dana-card__icons > li, .dana-card:has(:focus-visible) .dana-card__icons > li { opacity: 1; pointer-events: auto; transform: none; }
  html.dana-cards--actions-side .dana-card:hover .dana-card__icons > li:nth-child(2),
  html.dana-cards--actions-side .dana-card:has(:focus-visible) .dana-card__icons > li:nth-child(2) { transition-delay: .1s; }
  html.dana-cards--actions-side .dana-card:hover .dana-card__icons > li:nth-child(3),
  html.dana-cards--actions-side .dana-card:has(:focus-visible) .dana-card__icons > li:nth-child(3) { transition-delay: .2s; }
}

/* Tooltips (.hover-tooltip .tooltip): the button's own label in a small dark
   tag, 10px at 500, 23px tall, beside the side column (tooltip-left) or over
   a bar or row, with a small arrow; it comes in .1s after the pointer and
   springs 8px out. Only with a mouse from 1200, as the template. */
@media (min-width: 1200px) and (hover: hover) {
  .dana-card__icon::after,
  .dana-card__icon::before {
    position: absolute;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease, translate .3s cubic-bezier(.71, 1.7, .77, 1.24);
  }
  .dana-card__icon::after {
    content: attr(aria-label);
    padding: 0 10px;
    border-radius: 4px;
    background-color: var(--dana-card-icon-hover);
    color: var(--dana-card-icon-hover-ink);
    font-size: 10px;
    line-height: 23px;
    font-weight: 500;
    white-space: nowrap;
  }
  .dana-card__icon::before {
    content: "";
    inline-size: 8px;
    block-size: 8px;
    background-color: var(--dana-card-icon-hover);
    transform: rotate(45deg);
  }
  .dana-card__icon:hover::after, .dana-card__icon:hover::before,
  .dana-card__icon:focus-visible::after, .dana-card__icon:focus-visible::before { opacity: 1; visibility: visible; transition-delay: .1s; }
  /* beside the column, toward the start */
  html.dana-cards--actions-side .dana-card__icon::after { inset-inline-end: 100%; inset-block-start: 50%; translate: 0 -50%; }
  html.dana-cards--actions-side .dana-card__icon::before { inset-inline-end: calc(100% - 2px); inset-block-start: 50%; translate: 0 -50%; }
  html.dana-cards--actions-side .dana-card__icon:is(:hover, :focus-visible)::after,
  html.dana-cards--actions-side .dana-card__icon:is(:hover, :focus-visible)::before { translate: -8px -50%; }
  [dir="rtl"].dana-cards--actions-side .dana-card__icon:is(:hover, :focus-visible)::after,
  [dir="rtl"].dana-cards--actions-side .dana-card__icon:is(:hover, :focus-visible)::before { translate: 8px -50%; }
  /* over a bar or a row */
  html:is(.dana-cards--actions-bar, .dana-cards--actions-row) .dana-card__icon::after { inset-block-end: calc(100% + 8px); inset-inline-start: 50%; translate: -50% 8px; }
  html:is(.dana-cards--actions-bar, .dana-cards--actions-row) .dana-card__icon::before { inset-block-end: calc(100% + 5px); inset-inline-start: 50%; translate: -50% 8px; }
  [dir="rtl"]:is(.dana-cards--actions-bar, .dana-cards--actions-row) .dana-card__icon::after,
  [dir="rtl"]:is(.dana-cards--actions-bar, .dana-cards--actions-row) .dana-card__icon::before { translate: 50% 8px; }
  html:is(.dana-cards--actions-bar, .dana-cards--actions-row) .dana-card__icon:is(:hover, :focus-visible)::after,
  html:is(.dana-cards--actions-bar, .dana-cards--actions-row) .dana-card__icon:is(:hover, :focus-visible)::before { translate: -50% 0; }
  [dir="rtl"]:is(.dana-cards--actions-bar, .dana-cards--actions-row) .dana-card__icon:is(:hover, :focus-visible)::after,
  [dir="rtl"]:is(.dana-cards--actions-bar, .dana-cards--actions-row) .dana-card__icon:is(:hover, :focus-visible)::before { translate: 50% 0; }
  /* the bar is a pill with its own corners: its outer tags would be cut */
  html.dana-cards--actions-bar .dana-card__icons { overflow: visible; }
}

/* ---- The sale's countdown (.countdown-box) -----------------------------------
   A pill centred 24px above the picture's foot, from 1200 only: 10px 20px,
   the card's ground, the accent's ink, 12/14 at 500. It steps down out of
   the picture while the card is hovered (the icons and the second picture
   take the stage). Above the moving strip when there is one. */
.dana-card__countdown {
  position: absolute;
  z-index: 3;
  inset-block-end: var(--dana-card-cd-bottom, 24px);
  inset-inline: 0;
  display: none;
  inline-size: max-content;
  max-inline-size: calc(100% - 24px);
  margin-inline: auto;
  padding: 10px 20px;
  border-radius: 22px;
  background-color: var(--dana-bg);
  color: var(--dana-accent-ink);
  font-size: 12px;
  line-height: 14px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transition: transform .3s ease-out, opacity .3s ease-out;
}
@media (min-width: 1200px) {
  .dana-card__countdown:not([hidden]) { display: block; }
  .dana-card:hover .dana-card__countdown, .dana-card:has(:focus-visible) .dana-card__countdown { transform: translateY(calc(100% + 25px)); }
}
html.dana-cards--no-countdown .dana-card__countdown { display: none; }
/* Over the moving strip when there is one (8px above its 30px). */
.dana-card__media:has(.dana-card__ribbon:not([hidden])) .dana-card__countdown { inset-block-end: var(--dana-card-cd-ribbon, 38px); }

/* ---- The moving sale strip (.marquee-product) ---------------------------------
   Along the picture's foot: the group's word and the percent, over and
   over, 14/20 white on the accent with a small bolt between (jewelry2). */
.dana-card__ribbon {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  inset-block-end: 0;
  display: block;
  padding-block: 5px;
  background-color: var(--dana-accent);
  color: var(--dana-on-accent);
  font-size: 14px;
  line-height: 20px;
  pointer-events: none;
  transition: opacity .3s ease-in-out;
}
.dana-card .dana-card__ribbon[hidden] { display: none; }
.dana-card__ribbon .dana-marquee__track { animation-duration: 14s; }
.dana-card__ribbon .dana-marquee__run { gap: 24px; padding-inline-end: 24px; }
.dana-card__ribbon span { display: inline-flex; align-items: center; gap: 24px; white-space: nowrap; }
.dana-card__ribbon span::after { content: "\e952"; font-family: "dana-icons"; font-size: 14px; line-height: 1; }
/* The icons at the foot take its place on hover. */
@media (min-width: 1200px) and (hover: hover) {
  html:is(.dana-cards--actions-bar, .dana-cards--actions-row) .dana-card:is(:hover, :has(:focus-visible)) .dana-card__ribbon { opacity: 0; }
}

/* ---- The text (.card-product-info) --------------------------------------------- */
.dana-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 6px;
  padding-block: 15px;
}
/* The base is the phone's (15px above and below, 6px apart); each design
   sheet sets its own steps from 768. */
/* The name's font. The template's .name-product has no font of its own and
   takes the page's (measured on the 30 home pages at 1440 and 390,
   2026-09-29, counted outside the header search, modals, offcanvas and
   footer: the text font on 25 of them, index and skincare, and baby,
   glasses, pet, plant, travel and watch too, whose headings' display fonts
   never reach a name); five pages set it in the headings' font (jewelry's
   Albert Sans, pod's Playfair Display, supplement's Oswald, pickleball's
   Agbalumo, furniture2's Manrope). The group's «name in the headings font»
   switch (off by default) arrives as the class dana-cards--name-body while
   it is off; the base below keeps the headings font for the switch on. */
.dana-card__title {
  font-family: var(--dana-font-heading);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--dana-heading);
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
html.dana-cards--name-body .dana-card__title { font-family: var(--dana-font-body); }
.dana-card__title a { color: inherit; transition: color .3s ease-in-out; }
.dana-card__title a:hover, .dana-card__title a:focus-visible { color: var(--dana-accent-ink); }
@media (max-width: 767px) { .dana-card__title { font-size: 14px; line-height: 22px; } }
/* Names in capitals (the group's switch; furniture2's NEW IN and lookbook,
   home-watch.html:1142 .name-product.text-uppercase): English pages only,
   Arabic has no capitals. */
html.dana-cards--name-upper:not([dir="rtl"]) .dana-card__title { text-transform: uppercase; }
/* The larger name and price (the group's «size: large»; home-jewelry2
   1214-1471: names 20/30 at 400, prices 20/30, 16/26 on phones). Written
   one step stronger than the design sheets' own sizes (card-3.css,
   card-4.css), so it wins on every design; the small row card keeps its own. */
html.dana-cards--text-lg .dana-card:not(.dana-card--mini) .dana-card__body .dana-card__title { font-size: 20px; line-height: 30px; font-weight: 400; }
html.dana-cards--text-lg .dana-card:not(.dana-card--mini) .dana-card__body .dana-card__price.dana-price { font-size: 20px; line-height: 30px; }
html.dana-cards--text-lg .dana-card:not(.dana-card--mini) .dana-card__body .dana-card__price .dana-price__now { font-size: inherit; line-height: inherit; }
@media (max-width: 767px) {
  html.dana-cards--text-lg .dana-card:not(.dana-card--mini) .dana-card__body .dana-card__title,
  html.dana-cards--text-lg .dana-card:not(.dana-card--mini) .dana-card__body .dana-card__price.dana-price { font-size: 16px; line-height: 26px; }
}
/* The brand line (.type / .sub): 12/18 at 500, in capitals, the heading at
   60%. The group's «brand name» switch shows it. */
.dana-card__brand { display: none; font-size: 12px; line-height: 18px; font-weight: 500; color: color-mix(in srgb, var(--dana-heading) 60%, transparent); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[dir="rtl"] .dana-card__brand { text-transform: none; }
html.dana-cards--brand .dana-card__brand { display: block; }
/* Stars (Zid's, when the store has reviews on and the product has some). */
.dana-card__rating { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; color: var(--dana-muted); }
/* 12px stars 3px apart; the filled share is core.css's, written with the
   star's pitch so it holds at this spacing too (4.5 fills 66px of 75 in
   English, 69px in Arabic). */
.dana-card__rating .dana-stars { font-size: 12px; letter-spacing: 3px; }
html.dana-cards--no-rating .dana-card__rating { display: none; }
/* Price (.price-wrap): the accent for the price, on sale or not (every card
   of the template), the old one struck at 60%, 6px apart. */
.dana-card__price.dana-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 16px; line-height: 24px; font-weight: 500; }
.dana-card__price .dana-price__now { color: var(--dana-accent-ink); unicode-bidi: isolate; }
.dana-card__price.dana-price--sale .dana-price__now { color: var(--dana-sale-ink); }
/* A price that is not on sale in the text colour (the group's «regular
   price colour: text»; home-book, jewelry, jewelry2, florist, furniture2,
   plant and ergonic-chair print it .text-dark): the sale price keeps its own
   ink, a sold-out card its dimmed heading (above). */
html.dana-cards--price-text .dana-card:not(.is-out) .dana-card__price:not(.dana-price--sale) .dana-price__now { color: var(--dana-text); }
.dana-card__price .dana-price__old { unicode-bidi: isolate; text-decoration-thickness: 1px; }
@media (max-width: 767px) { .dana-card__price.dana-price { font-size: 14px; line-height: 20px; } }
/* «Available in several options» and «Tax free», as every Zid card has them. */
.dana-card__notes { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 12px; line-height: 18px; color: var(--dana-muted); }
.dana-card__notes span + span::before { content: "\00b7"; margin-inline-end: 8px; }
html.dana-cards--no-notes .dana-card__notes { display: none; }
.dana-card__preorder:empty { display: none; }
/* The Details design's bullets: card-4.css shows them. */
.dana-card__features { display: none; }
/* The product's line, drawn on a listing page only (card_listing): the list
   view shows it (category.css); hidden everywhere else. */
.dana-card__desc { display: none; }
/* Stock (.stock): the group's «in stock» line, 16/26 with a 10px dot,
   green or red, on one line. */
.dana-card__stock { display: none; align-items: center; gap: 6px; font-size: 16px; line-height: 26px; color: #59a33b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dana-card__stock::before {
  content: "";
  flex: none;
  inline-size: 10px;
  block-size: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #78cb57 0 3px, rgba(120, 203, 87, .34) 3.5px);
}
.dana-card__stock.is-out { color: #ef5757; }
.dana-card__stock.is-out::before { background: radial-gradient(circle, #ef5757 0 3px, rgba(203, 87, 87, .34) 3.5px); }
html.dana-cards--stock .dana-card__stock { display: flex; }

/* ---- Text alignment ------------------------------------------------------------ */
html.dana-cards--align-center .dana-card__body { text-align: center; }
html.dana-cards--align-center .dana-card__price.dana-price,
html.dana-cards--align-center .dana-card__rating,
html.dana-cards--align-center .dana-card__notes,
html.dana-cards--align-center .dana-card__stock { justify-content: center; }

/* ---- The button under the card ---------------------------------------------------
   none (the template's default), solid (.tf-btn: the primary and its ink),
   outline (.btn-out-line-*: a line and words in the primary's ink, filled on
   hover), tint (.style-primary .tf-btn: the accent at 15% with the accent's
   ink, filled with the accent when the card is hovered). A section's own
   button (dana-card--btn-*) wins over the page's.
   Full width and always one line, as the template's «Add to Cart»: a button
   that wraps is taller than its neighbours and the row stops lining up. The
   card's labels are short («Notify me», not the icon's «Notify me when
   available»); a narrow card (under 200px of button: six columns, a 166px
   column) takes 10px sides and 14px type; an ellipsis is the last resort.
   The box is a block, not the core's inline-flex, so the ellipsis can show
   (a flex item's text cannot), and it is the query's container: its width
   is the column's, never its words'. */
.dana-card__cta { display: none; container-type: inline-size; }
html.dana-cards--button-solid .dana-card:not(.dana-card--btn) .dana-card__cta,
html.dana-cards--button-outline .dana-card:not(.dana-card--btn) .dana-card__cta,
html.dana-cards--button-tint .dana-card:not(.dana-card--btn) .dana-card__cta,
.dana-card.dana-card--btn-solid .dana-card__cta,
.dana-card.dana-card--btn-outline .dana-card__cta,
.dana-card.dana-card--btn-tint .dana-card__cta { display: block; }
.dana-card .dana-card__btn { display: block; inline-size: 100%; min-inline-size: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: center; }
@container (max-width: 199.98px) {
  .dana-card .dana-card__btn { padding-inline: 10px; font-size: 14px; }
}
/* A card with a button keeps only the heart and the quick view on its
   picture: the button is the way to the cart (V5 .border-type-3, V12, V14). */
html.dana-cards--button-solid .dana-card:not(.dana-card--btn) .dana-card__cartli,
html.dana-cards--button-outline .dana-card:not(.dana-card--btn) .dana-card__cartli,
html.dana-cards--button-tint .dana-card:not(.dana-card--btn) .dana-card__cartli,
.dana-card:is(.dana-card--btn-solid, .dana-card--btn-outline, .dana-card--btn-tint) .dana-card__cartli { display: none; }
html.dana-cards--button-outline .dana-card:not(.dana-card--btn) .dana-card__btn,
.dana-card.dana-card--btn-outline .dana-card__btn { background-color: transparent; border-color: var(--dana-primary-ink); color: var(--dana-primary-ink); }
html.dana-cards--button-outline .dana-card:not(.dana-card--btn) .dana-card__btn:is(:hover, :focus-visible, .is-added),
.dana-card.dana-card--btn-outline .dana-card__btn:is(:hover, :focus-visible, .is-added) { background-color: var(--dana-primary); border-color: var(--dana-primary); color: var(--dana-on-primary); }
html.dana-cards--button-tint .dana-card:not(.dana-card--btn) .dana-card__btn,
.dana-card.dana-card--btn-tint .dana-card__btn { background-color: var(--dana-accent-soft); border-color: transparent; color: var(--dana-accent-ink); }
html.dana-cards--button-tint .dana-card:not(.dana-card--btn):hover .dana-card__btn,
html.dana-cards--button-tint .dana-card:not(.dana-card--btn) .dana-card__btn:is(:focus-visible, .is-added),
.dana-card.dana-card--btn-tint:hover .dana-card__btn,
.dana-card.dana-card--btn-tint .dana-card__btn:is(:focus-visible, .is-added) { background-color: var(--dana-accent); color: var(--dana-on-accent); }
.dana-card__btn.is-added { background-color: var(--dana-primary); border-color: var(--dana-primary); color: var(--dana-on-primary); }
/* The buttons of a row on one line (review 2026-10-06, defect: the
   electric-accessories Top Picks button of the Bose card sat 24px under its
   neighbours at 1440, skincare2's Details buttons at y 1016 / 910 / 938):
   the body was a grid packed to the top, so a name on two lines or a longer
   list of features pushed its button down. A card with a button is as tall
   as its row (a slide of a slider, a grid cell), its text fills what the
   picture leaves, and the button stands at the foot; the template's rows
   line up because its cards do the same (.sw-height). The Framed and Panel
   designs already stretch their slide (card-2.css, card-3.css), and space
   their button with padding so this margin is the one that counts. Written
   weak (:where), so a page that lays a card out its own way keeps it: the
   listing's list view (category.css), whose body is a column of 60% beside
   the picture. Not the lookbook's one-card panel (lookbook-hover.css), which
   shows one card at a time and lays it out as a row on phones. The small
   row card is never touched. */
.swiper-slide:where(html:is(.dana-cards--button-solid, .dana-cards--button-outline, .dana-cards--button-tint) .swiper-slide:has(> .dana-card:not(.dana-card--btn, .dana-card--mini)),
  .swiper-slide:has(> .dana-card:is(.dana-card--btn-solid, .dana-card--btn-outline, .dana-card--btn-tint):not(.dana-card--mini))):where(:not(.dana-lookbook-hover *)) { block-size: auto; }
.dana-card:where(html:is(.dana-cards--button-solid, .dana-cards--button-outline, .dana-cards--button-tint) .dana-card:not(.dana-card--btn, .dana-card--mini),
  .dana-card:is(.dana-card--btn-solid, .dana-card--btn-outline, .dana-card--btn-tint):not(.dana-card--mini)):where(:not(.dana-lookbook-hover *)) { block-size: 100%; }
:where(html:is(.dana-cards--button-solid, .dana-cards--button-outline, .dana-cards--button-tint) .dana-card:not(.dana-card--btn, .dana-card--mini),
  .dana-card:is(.dana-card--btn-solid, .dana-card--btn-outline, .dana-card--btn-tint):not(.dana-card--mini)):where(:not(.dana-lookbook-hover *)) > .dana-card__body { display: flex; flex-direction: column; flex: 1 1 auto; }
:where(html:is(.dana-cards--button-solid, .dana-cards--button-outline, .dana-cards--button-tint) .dana-card:not(.dana-card--btn, .dana-card--mini),
  .dana-card:is(.dana-card--btn-solid, .dana-card--btn-outline, .dana-card--btn-tint):not(.dana-card--mini)):where(:not(.dana-lookbook-hover *)) > :where(.dana-card__body) > .dana-card__cta { margin-block-start: auto; }

/* ---- The small row card (card_mini): a 72px picture beside the name and
   price, one add icon (lookbook pins, lists). ------------------------------------ */
.dana-card--mini { flex-direction: row; align-items: center; gap: 12px; }
.dana-card--mini .dana-card__media { flex: none; inline-size: 72px; aspect-ratio: 72 / 86; border-radius: 8px; }
/* The picture fills the 72 x 86 frame, centred (the group's ratio would make
   it 72 x 102 and cut only its foot). */
.dana-card--mini .dana-card__image-link { aspect-ratio: auto; block-size: 100%; }
.dana-card--mini .dana-card__body { flex: 1 1 auto; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 2px; padding: 0; }
.dana-card--mini .dana-card__body > :not(.dana-card__mini-add) { grid-column: 1; }
.dana-card--mini .dana-card__title { font-size: 14px; line-height: 20px; }
.dana-card--mini .dana-card__price.dana-price { font-size: 14px; line-height: 20px; }
.dana-card--mini .dana-card__mini-add { grid-column: 2; grid-row: 1 / span 2; --dana-card-icon: 36px; --dana-card-glyph: 14px; border: 1px solid var(--dana-line); }
.dana-card--mini .dana-card__mini-add:hover, .dana-card--mini .dana-card__mini-add:focus-visible { border-color: var(--dana-card-icon-hover); }
/* Sold out: «Sold out» under the price, 12/18 at 500 in the heading's ink
   (the ink of the big card's «Sold out» disc, and legible on any page
   ground), full strength while the name and price dim to 60%; the one icon
   is «Notify me» (the envelope, product-card.jinja) and spans the three
   lines. */
.dana-card--mini .dana-card__mini-out { font-size: 12px; line-height: 18px; font-weight: 500; color: var(--dana-heading); }
.dana-card--mini.is-out .dana-card__mini-add { grid-row: 1 / span 3; }

@media (prefers-reduced-motion: reduce) {
  .dana-card__image, .dana-card__icons > li, .dana-card__countdown { transition: none; }
}
