/* ==========================================================================
   DAGLINGS — Shop Packs
   Page chrome only. Nothing here reaches inside .pack or .dc-card.
   ========================================================================== */

.shop__product {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(24px, 4vh, 48px) 0;
}

.shop__packshot { width: clamp(180px, 24vw, 260px); flex: none; }

.shop__buy { flex: 1 1 320px; min-width: 0; }

.shop__buy > .shop__name {
  margin: 0;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.shop__blurb {
  margin: 10px 0 0;
  max-width: 44ch;
  color: var(--muted);
}
.shop__price {
  margin: 18px 0 0;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--kaspa-teal, #49e0c0);
}

.shop__cta {
  margin-top: 16px;
  padding: 13px 26px;
  border: none;
  background: var(--kaspa-teal, #49e0c0);
  color: #04120f;
  font: 700 12px/1 "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  /* Same cut corner as everything else that acts like a button here. */
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.shop__cta:hover { filter: brightness(1.08); }
.shop__cta:disabled { opacity: 0.6; cursor: default; }

.shop__note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--faint);
}

.shop__dev {
  display: block;
  margin-top: 14px;
  padding: 7px 14px;
  background: rgba(255, 209, 102, 0.1);
  border: 1px dashed rgba(255, 209, 102, 0.5);
  color: #ffd166;
  font: 600 10.5px/1 "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

/* --- inventory ------------------------------------------------------------ */

.inv__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.inv__head > .inv__title {
  margin: 0;
  font-family: "Chakra Petch", system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.inv__count {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.inv__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(14px, 2.4vw, 28px);
  padding: 26px 0 8px;
}

.inv__slot {
  position: relative;
  width: clamp(104px, 11vw, 140px);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.inv__open {
  font: 700 10px/1 "IBM Plex Sans", system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--kaspa-teal, #49e0c0);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.16s ease-out, transform 0.16s ease-out;
}
.inv__slot:hover .inv__open,
.inv__slot:focus-visible .inv__open { opacity: 1; transform: none; }
.inv__slot:focus-visible { outline: 2px solid var(--kaspa-teal); outline-offset: 6px; }

.inv__empty,
.inv__more {
  margin: 0;
  align-self: center;
  color: var(--faint);
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .inv__open { transition: none; opacity: 1; transform: none; }
}


/* ==========================================================================
   MOBILE PASS — shop
   ========================================================================== */

/* The "open" affordance on a pack in the inventory was revealed on hover,
   which on a touch screen means never. It is the only thing telling you the
   slot does something, so on a device with no hover it simply stays on. */
@media (hover: none) {
  .inv__open { opacity: 1; transform: none; }
}

@media (max-width: 768px), (pointer: coarse) {
  .shop__cta,
  .shop__dev,
  .inv__slot {
    min-height: 44px;
  }
}

@media (max-width: 768px) {
  /* These win over the floors in css/site.css purely by load order -- shop.css
     is linked after it -- so the floor has to be restated here. */
  .shop__note { font-size: 14px; }
  .inv__count { font-size: 14px; }
  .shop__dev { font-size: 13px; }
  .shop__cta { font-size: 13px; }
}
