#hw3-shop .hw-swipe-card {
  position: relative;
  display: block;
  min-height: 310px;
  overflow: hidden;
  touch-action: pan-y;
}
#hw3-shop .hw-swipe-card[hidden] { display: none !important; }
#hw3-shop .hw-swipe-card .hw3-product-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}
#hw3-shop .hw-swipe-card:not(.hw-swipe-open) .hw3-product-body,
#hw3-shop .hw-swipe-open .hw-swipe-cover { display: none !important; }
#hw3-shop .hw-swipe-open .hw3-product-body {
  position: relative;
  z-index: 1;
  min-height: 310px;
  background: #171c17f5;
  padding: 16px;
}
#hw3-shop .hw-swipe-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 8px;
  min-height: 310px;
  padding: 18px;
  background: linear-gradient(transparent 42%, #0b0d0bee);
}
#hw3-shop .hw-swipe-cover h3 { margin: 0; color: #fff3df; text-align: center; }
#hw3-shop .hw-swipe-cover button,
#hw3-shop .hw-swipe-back {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #b09a60;
  border-radius: 7px;
  color: #efd296;
  background: #141811e8;
  cursor: pointer;
}
#hw3-shop .hw-swipe-back { align-self: flex-start; }
.hw-swipe-touch { display: none; }
@media (max-width: 760px) {
  #hw3-shop .hw-swipe-card,
  #hw3-shop .hw-swipe-cover,
  #hw3-shop .hw-swipe-open .hw3-product-body {
    min-height: clamp(245px, 35svh, 315px);
  }
  .hw-swipe-touch { display: inline; }
  .hw-swipe-pointer { display: none; }
}

/* Let the opened card grow independently of its desktop grid neighbours. */
#hw3-shop .hw-swipe-card { align-self: start; width: 100%; }
#hw3-shop .hw-swipe-card:not(.hw-swipe-open) .hw3-product-image {
  height: 100% !important;
}
@media (max-width: 760px) {
  html:has(.hw-swipe-card), body:has(.hw-swipe-card) { overflow-x: clip; }
  #hw3-shop .hw-swipe-card {
    width: 100vw;
    max-width: none;
    margin-inline: calc((100% - 100vw) / 2);
    border-inline: 0;
    border-radius: 0;
    background: #090805;
  }
  #hw3-shop .hw-swipe-card,
  #hw3-shop .hw-swipe-cover,
  #hw3-shop .hw-swipe-open .hw3-product-body {
    min-height: calc(42svh - 8px);
  }
  #hw3-shop .hw-swipe-cover {
    background: radial-gradient(ellipse at 52% 70%, #f9802529, transparent 57%),
      linear-gradient(transparent 48%, #090704ee);
  }
  #hw3-shop .hw-swipe-open .hw3-product-body { background: #0d0b08f5; }
}
.hw-swipe-ember {
  position: absolute;
  z-index: 4;
  left: var(--ember-x);
  bottom: 17%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd294;
  box-shadow: 0 0 8px 2px #ff762c;
  pointer-events: none;
  animation: hw-swipe-rise 950ms ease-in-out both;
}
@keyframes hw-swipe-rise {
  from { opacity: .95; transform: translate(0, 0); }
  35% { opacity: .9; }
  to { opacity: 0; transform: translate(var(--ember-drift), var(--ember-rise)) scale(.25); }
}

@media (max-width: 760px) {
  #hw3-shop #hw3-products .hw3-product-card.hw-swipe-card:not([hidden]) {
    display: block !important;
    width: 100%;
    margin-inline: 0;
    padding: 0 !important;
  }
  #hw3-shop #hw3-products .hw3-product-card.hw-swipe-card .hw3-product-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
  }
  #hw3-shop .hw-swipe-cover { width: 100%; box-sizing: border-box; }
  #hw3-shop #hw3-products .hw-swipe-open .hw3-product-body { padding: 16px !important; }
  #hw3-shop #hw3-products .hw-swipe-open .hw3-product-desc { display: block !important; }
}
