/* DreamSport minimum UI patch (2026-11-13): original Sneak style preserved. */
/* 1 — Product cards: original secondary-image swap remains the theme's own logic. */
@media screen and (min-width: 990px) and (hover: hover) {
  .product-card-wrapper {
    transition: transform .22s ease;
  }
  .product-card-wrapper:hover {
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-card-wrapper { transition: none !important; }
}

/* 5 — Compact, read-only shortcut back to the native product purchase form. */
.ds-buy-shortcut {
  position: fixed;
  z-index: 80;
  bottom: 0;
  inset-inline: 0;
  background: rgba(255,255,255,.98);
  color: #202020;
  border-top: 1px solid rgba(0,0,0,.10);
  box-shadow: 0 -5px 20px rgba(0,0,0,.065);
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease, visibility .22s ease;
}
.ds-buy-shortcut.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ds-buy-shortcut__inner {
  margin: 0 auto;
  max-width: 1200px;
  min-height: 66px;
  padding: 10px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.ds-buy-shortcut__identity { min-width: 0; flex: 1 1 auto; }
.ds-buy-shortcut__name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
.ds-buy-shortcut__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.ds-buy-shortcut__price { font-size: 15px; font-weight: 700; white-space: nowrap; }
.ds-buy-shortcut__button {
  background: #202020;
  color: white;
  border: 1px solid #202020;
  border-radius: 4px;
  padding: 11px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}
.ds-buy-shortcut__button:hover { background: #383838; }
.ds-buy-shortcut__button:focus-visible { outline: 2px solid #222; outline-offset: 3px; }
form[id^="AddToCartForm-"] { scroll-margin-top: 100px; }
@media screen and (max-width: 749px) {
  .ds-buy-shortcut__inner { padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); gap: 10px; min-height: 62px; }
  .ds-buy-shortcut__name { font-size: 12px; max-width: 47vw; }
  .ds-buy-shortcut__actions { gap: 10px; }
  .ds-buy-shortcut__price { font-size: 13px; }
  .ds-buy-shortcut__button { padding: 10px 12px; font-size: 12px; min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-buy-shortcut { transition: none !important; }
}


/* 1 — Read-only details on original product cards (no buttons or cart state). */
.product-card-wrapper .card__inner { position: relative; }
.ds-card__sole-type {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  background: rgba(30, 30, 30, .90);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .025em;
  pointer-events: none;
}
.ds-card__sizes {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.8rem;
  min-width: 0;
}
.ds-card__sizes-title {
  display: block;
  font-size: 1.1rem;
  line-height: 1.3;
  color: rgba(var(--color-foreground), .64);
}
.ds-card__size-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.ds-card__size, .ds-card__size-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: .25rem .55rem;
  border: 1px solid rgba(var(--color-foreground), .16);
  border-radius: 3px;
  background: transparent;
  color: rgb(var(--color-foreground));
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}
.ds-card__size-more {
  border-color: transparent;
  color: rgba(var(--color-foreground), .65);
}
@media screen and (max-width: 749px) {
  .ds-card__sole-type { bottom: .7rem; left: .7rem; font-size: 1rem; min-height: 20px; }
  .ds-card__sizes { gap: .4rem; margin-top: .6rem; }
  .ds-card__size, .ds-card__size-more { font-size: 1rem; padding: .2rem .4rem; min-height: 21px; }
}


/* V13.7 — floating product purchase bar: wrap the FULL product name. */
.ds-buy-shortcut__name {
  display: block;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: none;
  height: auto;
  overflow-wrap: anywhere;
  word-break: normal;
}
.ds-buy-shortcut__inner { height: auto; }
@media (max-width: 749px) {
  .ds-buy-shortcut__name { max-width: none; }
  .ds-buy-shortcut__identity { min-width: 0; }
  .ds-buy-shortcut__inner { align-items: center; }
}


/* 2026-11-18 — Keep full sticky-bar title without letting its flex row widen the viewport. */
.ds-buy-shortcut, .ds-buy-shortcut__inner, .ds-buy-shortcut__identity,
.ds-buy-shortcut__actions {box-sizing:border-box;min-width:0;max-width:100%;}
.ds-buy-shortcut__name {font-family:var(--font-body-family);font-weight:var(--font-body-weight);
  display:block;white-space:normal;overflow:visible;text-overflow:clip;max-height:none;
  height:auto;overflow-wrap:anywhere;word-break:normal;}
.ds-buy-shortcut__price,.ds-buy-shortcut__button {font-family:var(--font-body-family);font-weight:var(--font-body-weight);}
@media(max-width:480px) {
  .ds-buy-shortcut__inner {display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:9px 12px calc(9px + env(safe-area-inset-bottom));}
  .ds-buy-shortcut__identity {width:100%;min-width:0;}
  .ds-buy-shortcut__name {max-width:100%;font-size:12px;}
  .ds-buy-shortcut__actions {width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;}
  .ds-buy-shortcut__price {min-width:0;}
}
