/* Demon Rush public store / products page shell */

.dr-store {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vh, 2.75rem) var(--dr-gap) clamp(3rem, 7vh, 5rem);
  overflow-x: clip;
}

.dr-store-hero {
  text-align: center;
  margin-bottom: clamp(2rem, 5vh, 3rem);
}

.dr-store-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dr-gold);
  line-height: 1.15;
}

.dr-store-sub {
  margin: 0.9rem auto 0;
  max-width: 36rem;
  color: var(--dr-muted);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
}

.dr-store-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.dr-store-card-status {
  margin: 0;
  color: rgba(183, 168, 144, 0.85);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dr-store-products {
  display: grid;
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.dr-store-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 280px;
  max-height: 320px;
  height: 300px;
  padding: 28px 34px;
  border-radius: 1.1rem;
  background:
    linear-gradient(165deg, rgba(212, 181, 106, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(42, 35, 28, 0.78), rgba(16, 13, 11, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(212, 181, 106, 0.18),
    0 18px 40px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  overflow: hidden;
}

.dr-store-product-copy {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  min-width: 0;
}

.dr-store-product-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dr-gold);
}

.dr-store-product-copy p {
  margin: 0;
  color: var(--dr-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.dr-store-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Fixed media box — images/iframes never set row height */
.dr-store-product-media {
  width: 420px;
  height: 250px;
  max-width: 420px;
  max-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(214, 174, 93, 0.45);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  padding: 10px;
  box-sizing: border-box;
  justify-self: end;
}

.dr-store-product-media > img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.store-omnibus-img {
  max-width: 300px;
  max-height: 225px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

/* Auto-looping carousels */
.store-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.store-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 700ms ease;
  display: block;
  pointer-events: none;
}

.store-carousel img.is-active {
  opacity: 1;
  z-index: 1;
}

.store-carousel--tcg img {
  object-fit: cover;
  object-position: center center;
}

.store-carousel--cards img {
  object-fit: contain;
  object-position: center center;
  padding: 4px;
  box-sizing: border-box;
}

/* Prize Cards: two visible at a time */
.store-carousel--two-up {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.store-carousel--two-up img {
  position: static;
  inset: auto;
  opacity: 0;
  display: none;
  width: auto;
  height: auto;
  max-height: 220px;
  max-width: 145px;
  object-fit: contain;
  object-position: center center;
  padding: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}

.store-carousel--two-up img.is-active {
  display: block;
  opacity: 1;
  z-index: 1;
}

.dr-store-product-media--video {
  padding: 0;
  position: relative;
}

.dr-store-product-media iframe,
.dr-store-product-media--video iframe {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border: 0;
  border-radius: 10px;
  display: block;
}

.dr-store-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dr-gold);
}

.dr-store-next {
  margin-top: clamp(1.75rem, 4vh, 2.5rem);
}

.dr-store-next h2 {
  margin: 0 0 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dr-gold);
}

.dr-store-next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.dr-store-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.45rem 1.3rem 1.4rem;
  border-radius: 1rem;
  background:
    linear-gradient(165deg, rgba(212, 181, 106, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(42, 35, 28, 0.72), rgba(22, 18, 15, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(212, 181, 106, 0.16),
    0 18px 40px rgba(0, 0, 0, 0.28);
}

.dr-store-card p {
  margin: 0;
  color: var(--dr-muted);
  line-height: 1.55;
  font-size: 0.98rem;
  flex: 1;
}

.dr-store-note {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--dr-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.dr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

.dr-btn-primary {
  color: #1a140f;
  background: linear-gradient(180deg, #e2c784 0%, var(--dr-gold) 48%, #b89145 100%);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 236, 190, 0.18) inset;
}

.dr-btn-primary:hover,
.dr-btn-primary:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.dr-btn-ghost {
  color: var(--dr-muted);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(154, 139, 114, 0.38);
}

.dr-btn-live {
  cursor: pointer;
  opacity: 1;
  color: var(--dr-text);
  border-color: rgba(212, 181, 106, 0.42);
}

.dr-btn-live:hover,
.dr-btn-live:focus-visible {
  transform: translateY(-2px);
  color: var(--dr-gold);
  border-color: rgba(212, 181, 106, 0.7);
  outline: none;
}

.dr-store-note a {
  color: var(--dr-gold);
  text-decoration: none;
}

.dr-store-note a:hover,
.dr-store-note a:focus-visible {
  text-decoration: underline;
  outline: none;
}

@media (max-width: 900px) {
  .dr-store-product {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 1.2rem 1.25rem;
    gap: 1.1rem;
  }

  .dr-store-product-media,
  .dr-store-product-media--video {
    width: 100%;
    max-width: 420px;
    height: 250px;
    max-height: 250px;
    margin-inline: auto;
    justify-self: center;
  }

  .dr-store-next-grid {
    grid-template-columns: 1fr;
  }

  .dr-store-product-actions {
    flex-direction: column;
  }

  .dr-store-product-actions .dr-btn {
    width: 100%;
  }
}
