/* 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; }
}

/* 2 — Clarify only the EXISTING EasyStore radio-style variant selector.
   The original inputs, generated labels, selected IDs, pricing and add-to-cart
   behavior are deliberately unchanged. */
body.template-product .product-form__input input[type='radio'] + label {
  border-radius: .55rem;
  border-color: rgba(var(--color-foreground), .32);
  font-weight: 600;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
body.template-product .product-form__input input[type='radio']:not(:disabled):not(.disabled) + label:hover {
  border-color: rgb(var(--color-foreground));
}
body.template-product .product-form__input input[type='radio']:checked + label {
  border-color: rgb(var(--color-foreground));
  box-shadow: 0 0 0 1px rgb(var(--color-foreground));
}
body.template-product .product-form__input input[type='radio']:disabled + label,
body.template-product .product-form__input input[type='radio'].disabled + label {
  color: rgba(var(--color-foreground), .4);
  border-color: rgba(var(--color-foreground), .18);
  text-decoration: line-through;
  cursor: not-allowed;
  box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
  body.template-product .product-form__input input[type='radio'] + label { transition: none; }
}
