/* Supplied frame and button artwork are used unchanged. */
.shop-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 300px));
  justify-content: center;
  gap: 32px;
}
.shop-product {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  perspective: 1200px;
  outline-offset: 4px;
}
.shop-card-face {
  position: relative;
  min-height: 410px;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 43px 34px 42px;
  isolation: isolate;
}
/* Keep Shop listings on the full-size product template; homepage specials have
   their own compact layout in accounts-community.css. */
.shop-product[data-shop-card] .shop-card-face {
  min-height: 410px;
  padding: 43px 34px 42px;
}
.shop-product[data-shop-card] .shop-card-image-placeholder {
  display: grid;
}
.shop-product[data-shop-card] .shop-card-description {
  display: block;
}
.shop-special-badge {
  position: absolute;
  z-index: 2;
  top: -20px;
  right: -24px;
  width: min(68%, 205px);
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px #0009);
  animation: special-badge-float 3.6s ease-in-out infinite;
}
@keyframes special-badge-float {
  0%,
  100% {
    transform: translateY(0) rotate(5deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}
.shop-special-offer {
  margin: -3px 0 8px;
  color: #ffb2b2;
  font-size: 13px;
  font-weight: 800;
  text-shadow: 0 2px 5px #000;
}
.shop-card-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
.shop-card-face::before {
  content: "";
  position: absolute;
  inset: 5% 6%;
  z-index: -2;
  background: radial-gradient(ellipse at top, #15345c, #061325 75%);
}
.shop-product.is-turning .shop-card-face {
  animation: shop-card-turn 800ms ease-in-out;
}
@keyframes shop-card-turn {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}
.shop-card-face .eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
}
.shop-card-face h2 {
  font-size: 25px;
  margin: 14px 0 10px;
  overflow-wrap: anywhere;
}
.shop-card-image-placeholder {
  min-height: 65px;
  display: grid;
  place-items: center;
  margin: 12px 0;
  border: 1px dashed #67baff40;
  color: #8da6c0;
  font-size: 11px;
}
.shop-card-description {
  font-size: 13px;
  line-height: 1.5;
}
.shop-card-action {
  margin-top: auto;
  padding-top: 10px;
  min-height: 72px;
}
.shop-card-action [hidden] {
  display: none !important;
}
.shop-product .cart-art-button {
  display: block;
  position: relative;
  width: 100%;
  height: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  cursor: pointer;
}
.cart-art-button img {
  position: absolute;
  width: 110%;
  max-width: none;
  height: auto;
  left: -5%;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.cart-art-button:hover {
  filter: brightness(1.18);
}
.shop-card-hint {
  color: #a6bfd9;
  font-size: 11px;
  margin: 6px 0 0;
}
.shop-cart-toolbar {
  display: flex;
  justify-content: flex-end;
}
#shop-cart-status {
  min-height: 24px;
}
.cart-section {
  max-width: 1050px;
  margin-inline: auto;
}
.cart-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item > div:first-child {
  flex: 1;
  min-width: 180px;
}
.cart-item h2 {
  font-size: 24px;
  margin: 0;
}
.cart-quantity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cart-quantity button {
  min-width: 44px;
  min-height: 44px;
}
.cart-summary {
  padding: 24px;
  background: #0b1b30;
  border: 1px solid var(--line);
  margin-top: 28px;
}
.product-color-dialog {
  width: min(460px, calc(100% - 28px));
  margin: auto;
  padding: 24px;
  border: 1px solid #72b9eb;
  border-radius: 14px;
  background: #081629;
  color: #e5effb;
  box-shadow: 0 25px 100px #0009;
}
.product-color-dialog::backdrop {
  background: #020610d9;
}
.product-color-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}
.product-color-head h2 {
  margin: 8px 0;
}
.product-color-head button {
  min-width: 44px;
  min-height: 44px;
}
.product-color-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border: 1px solid #5b8dbb55;
  border-radius: 8px;
  background: #0b1b2e;
}
.product-color-field > span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.product-color-swatch {
  width: 17px;
  height: 17px;
  border: 1px solid #d5e8f8;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 2px #071222;
}
.product-color-field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #648eb7;
  border-radius: 6px;
  background: #081629;
  color: #e5effb;
}
.product-color-status {
  min-height: 24px;
  margin: 14px 0;
}
.product-color-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.product-color-actions button {
  min-height: 44px;
}
@media (prefers-reduced-motion: reduce) {
  .shop-product.is-turning .shop-card-face,
  .shop-special-badge {
    animation: none;
  }
}
