/* Store-only extension: shared artwork, native disclosure, no JavaScript or global overrides. */
.store-showcase-page .storefront-category--ranks .storefront-products {
  /* Native disclosures expand only their own card, not neighbouring grid items. */
  align-items:start;
}
.store-showcase-page .storefront-product--ranks {
  /* Rank descriptions and expanded kit details must determine the card height. */
  aspect-ratio:auto;
  height:auto;
  max-height:none;
}
.store-showcase-page .storefront-product--ranks > * {
  flex-shrink:0;
}
.store-showcase-page .storefront-product--ranks .storefront-product__visual {
  flex:0 0 12rem;
  height:12rem;
}
.storefront-rank-stars {
  display:grid;
  align-items:center;
  justify-items:center;
  width:min(100%,16rem);
  height:11rem;
}
.store-showcase-page .storefront-rank-stars img {
  display:block;
  width:100%;
  height:100%;
  min-height:0;
  object-fit:contain;
  padding:0;
  image-rendering:pixelated;
}
.storefront-rank-stars--1 { grid-template-columns:1fr; max-width:11rem; }
.storefront-rank-stars--2 { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.2rem; }
.storefront-rank-stars--3 { grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); max-width:13rem; }
.storefront-rank-stars--3 img:nth-child(1) { grid-column:2 / 4; grid-row:1; }
.storefront-rank-stars--3 img:nth-child(2) { grid-column:1 / 3; grid-row:2; }
.storefront-rank-stars--3 img:nth-child(3) { grid-column:3 / 5; grid-row:2; }
.storefront-rank-duration { margin:.4rem 0 .75rem; color:#714723; text-align:center; font-size:.65rem; font-weight:800; letter-spacing:.12em; }
.storefront-rank-highlights { display:grid; gap:.6rem; margin:0 0 .85rem; padding:0; list-style:none; }
.storefront-rank-highlights li { display:flex; gap:.5rem; align-items:flex-start; color:#4b2b1c; font-size:.8rem; line-height:1.55; }
.storefront-rank-highlights i { flex-shrink:0; color:#775116; }
.storefront-rank-details { margin:0 0 1rem; border:1px solid #bb8248; border-radius:.65rem; background:rgba(255,248,224,.45); color:#4b2b1c; }
.storefront-rank-details summary { cursor:pointer; padding:.75rem; font-size:.75rem; font-weight:750; }
.storefront-rank-details summary:focus-visible { outline:3px solid #543a21; outline-offset:3px; border-radius:.65rem; }
.storefront-rank-details ul { display:grid; gap:.65rem; padding:0 1rem 1rem 1.7rem; list-style:disc; font-size:.77rem; line-height:1.65; overflow-wrap:anywhere; }
.store-showcase-page .storefront-product--ranks .storefront-product__buy { margin-top:auto!important; }
@media (min-width:1024px) {
  .store-showcase-page .storefront-category--ranks .storefront-products--count-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (prefers-reduced-motion:reduce) {
  .store-showcase-page .storefront-rank-stars img { transition:none; }
}

/* Purchase panel: warm parchment, crisp edges and one clear action.
   The native numeric input keeps keyboard, touch and validation behaviour. */
.store-showcase-page .storefront-product--crates,
.store-showcase-page .storefront-product--spawners {
  aspect-ratio:auto;
  height:auto;
}
.store-showcase-page .storefront-product--crates .storefront-product__visual,
.store-showcase-page .storefront-product--spawners .storefront-product__visual {
  flex:0 0 11rem;
  height:11rem;
}
.store-showcase-page .storefront-product > .storefront-product__buy {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:.85rem;
  margin:.75rem 0 .65rem!important;
  padding:1rem!important;
  border:1px solid #bc854b;
  border-top:2px solid #ffe4a5;
  border-radius:5px;
  background:linear-gradient(180deg,#fff1cc,#f5d89d);
  box-shadow:0 3px 0 #a86e37,inset 0 0 0 1px rgba(255,250,229,.6);
  font-family:Rubik,ui-sans-serif,system-ui,sans-serif;
}
.store-showcase-page .storefront-product > .storefront-product__buy > .storefront-product__price {
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:.35rem .75rem;
}
.store-showcase-page .storefront-product > .storefront-product__buy small {
  color:#745031;
  font-size:.62rem;
  font-weight:700;
  letter-spacing:.09em;
  line-height:1.5;
}
.store-showcase-page .storefront-product > .storefront-product__buy strong {
  color:#4a2d1b!important;
  font-size:1.45rem!important;
  font-weight:800;
  line-height:1.2;
  letter-spacing:-.035em;
  font-variant-numeric:tabular-nums;
  text-shadow:none;
  white-space:nowrap;
}
.store-showcase-page .storefront-product__price strong span {
  font-size:.85em;
  font-weight:600;
}
.store-showcase-page .storefront-product > .storefront-product__buy form {
  display:grid;
  grid-template-columns:4rem minmax(0,1fr);
  align-items:end;
  gap:.65rem;
}
.store-showcase-page .storefront-product__quantity-field {
  display:grid;
  gap:.3rem;
  min-width:0;
}
.store-showcase-page .storefront-product__quantity-field label {
  color:#745031;
  font-size:.6rem;
  line-height:1.3;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.store-showcase-page .storefront-product > .storefront-product__buy .storefront-product__quantity {
  box-sizing:border-box;
  width:100%;
  min-width:0;
  height:2.9rem;
  min-height:2.9rem;
  border:1px solid #ac773f;
  border-radius:3px;
  background:#fffaf0;
  color:#4a2d1b!important;
  -webkit-text-fill-color:#4a2d1b;
  font-family:inherit;
  font-size:1rem!important;
  font-weight:600!important;
  line-height:normal!important;
  padding:0 .25rem!important;
  box-shadow:inset 0 2px 0 rgba(115,75,34,.08);
}
.store-showcase-page .storefront-product > .storefront-product__buy .storefront-product__button {
  min-width:0;
  height:2.9rem;
  min-height:2.9rem!important;
  padding:.65rem .5rem!important;
  border:1px solid #825024!important;
  border-top-color:#dca551!important;
  border-radius:3px!important;
  background:linear-gradient(180deg,#f6cc73,#e6ad4b)!important;
  box-shadow:0 3px 0 #8a572a,inset 0 1px 0 #ffe9ad!important;
  color:#432918!important;
  font-family:inherit;
  font-size:.75rem!important;
  font-weight:800!important;
  line-height:1.3;
  letter-spacing:.025em;
  text-shadow:none;
  gap:.5rem;
  transition:background-color 120ms ease,box-shadow 120ms ease,transform 120ms ease;
}
.store-showcase-page .storefront-product > .storefront-product__buy .storefront-product__button i {
  color:inherit!important;
  font-size:1rem;
}
.store-showcase-page .storefront-product > .storefront-product__buy .storefront-product__button:hover {
  transform:translateY(-1px);
  filter:brightness(1.035);
}
.store-showcase-page .storefront-product > .storefront-product__buy .storefront-product__button:active {
  transform:translateY(2px);
  box-shadow:0 1px 0 #8a572a,inset 0 1px 0 #ffe9ad!important;
}
.store-showcase-page .storefront-product__quantity:focus-visible,
.store-showcase-page .storefront-product__button:focus-visible {
  outline:2px solid #503321;
  outline-offset:3px;
}
.store-showcase-page .storefront-product--ranks > .storefront-product__buy {
  margin-top:auto!important;
}
@media (prefers-reduced-motion:reduce) {
  .store-showcase-page .storefront-product > .storefront-product__buy .storefront-product__button {
    transition:none;
    transform:none;
  }
  .store-showcase-page .storefront-product__discount-ribbon__band {
    animation:none!important;
    transform:rotate(45deg) scale(1)!important;
  }
}

/* Bulk discount ribbon, banner, and strikethrough pricing */
.store-showcase-page .storefront-discount-banner {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:.75rem 1.25rem;
  margin-bottom:1.5rem;
  padding:.95rem 1.25rem;
  border:2px solid #d97724;
  border-radius:10px;
  background:linear-gradient(135deg,#fff6db 0%,#fde3a7 55%,#fbd38d 100%);
  box-shadow:0 4px 0 #a86e37,inset 0 1px 0 rgba(255,255,255,.8);
  color:#4a2d1b;
}
.store-showcase-page .storefront-discount-banner__main {
  display:flex;
  align-items:center;
  gap:.85rem;
  min-width:0;
}
.store-showcase-page .storefront-discount-banner__badge {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.35rem .7rem;
  border-radius:6px;
  background:linear-gradient(180deg,#ef4444,#b91c1c);
  border:1px solid #fde68a;
  color:#fff;
  font-size:.78rem;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:0 2px 6px rgba(153,27,27,.35);
}
.store-showcase-page .storefront-discount-banner__copy strong {
  display:block;
  font-size:.98rem;
  font-weight:800;
  color:#432918;
}
.store-showcase-page .storefront-discount-banner__copy span {
  display:block;
  font-size:.78rem;
  font-weight:600;
  color:#745031;
}
.store-showcase-page .storefront-discount-banner__timer {
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#991b1b;
  background:rgba(255,255,255,.65);
  border:1px solid rgba(185,28,28,.28);
  border-radius:999px;
  padding:.32rem .75rem;
  white-space:nowrap;
}

.store-showcase-page .storefront-product {
  position:relative;
  overflow:hidden;
}
.store-showcase-page .storefront-product--discounted {
  border-color:#d97724!important;
  box-shadow:0 6px 0 rgba(168,110,55,.42),0 14px 28px rgba(74,45,27,.14)!important;
}
.store-showcase-page .storefront-product--discounted .storefront-product__visual > b {
  left:.6rem;
  right:auto;
}

.store-showcase-page .storefront-product__discount-ribbon {
  position:absolute;
  top:0;
  right:0;
  width:7.2rem;
  height:7.2rem;
  overflow:hidden;
  pointer-events:none;
  z-index:8;
}
.store-showcase-page .storefront-product__discount-ribbon__band {
  position:absolute;
  top:1.35rem;
  right:-2.25rem;
  width:9.1rem;
  padding:.38rem .5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#ef4444 0%,#dc2626 48%,#991b1b 100%);
  border-top:1.5px solid #fde68a;
  border-bottom:1.5px solid #fde68a;
  box-shadow:0 4px 14px rgba(127,29,29,.45),inset 0 1px 0 rgba(255,255,255,.38);
  color:#fff;
  font-family:Rubik,ui-sans-serif,system-ui,sans-serif;
  font-size:.82rem;
  font-weight:900;
  line-height:1.1;
  letter-spacing:.03em;
  text-align:center;
  text-transform:uppercase;
  text-shadow:0 1px 2px rgba(69,10,10,.65);
  font-variant-numeric:tabular-nums;
  transform:rotate(45deg) scale(1);
  transform-origin:center;
  will-change:transform;
  animation:storefront-discount-ribbon-pulse 2s ease-in-out infinite;
}
@keyframes storefront-discount-ribbon-pulse {
  0%,100% {
    transform:rotate(45deg) scale(1);
    box-shadow:0 4px 12px rgba(127,29,29,.42),inset 0 1px 0 rgba(255,255,255,.35);
  }
  50% {
    transform:rotate(45deg) scale(1.08);
    box-shadow:0 6px 18px rgba(185,28,28,.62),inset 0 1px 0 rgba(255,255,255,.55);
  }
}

.store-showcase-page .storefront-product__price--discounted {
  align-items:center!important;
}
.store-showcase-page .storefront-product__price-pair {
  display:inline-flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:flex-end;
  gap:.5rem;
  margin-left:auto;
}
.store-showcase-page .storefront-product__price-old {
  font-size:.84rem;
  font-weight:700;
  color:#8f6048;
  text-decoration:line-through;
  text-decoration-thickness:2px;
  text-decoration-color:#b91c1c;
  letter-spacing:-.01em;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.store-showcase-page .storefront-product__price--discounted strong.storefront-product__price-new {
  color:#991b1b!important;
  font-size:1.68rem!important;
  font-weight:900;
}
.store-showcase-page .storefront-product__discount-meta {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  margin-top:-.2rem;
  font-size:.66rem;
  font-weight:800;
  color:#991b1b;
  letter-spacing:.03em;
  text-transform:uppercase;
}
.store-showcase-page .storefront-product__discount-meta span:last-child {
  color:#15803d;
  white-space:nowrap;
}
