/* =========================
   SHOP PAGE ONLY
   Arcade terminal / game cabinet vibe
   ========================= */

.shop-page {
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 110, 190, 0.16), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(88, 225, 255, 0.18), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(127, 116, 255, 0.08), transparent 35%),
    linear-gradient(180deg, #191325 0%, #120d1d 45%, #0d0916 100%);
  color: #f4f7ff;
}

/* whole page shell */
.shop-page #wrapper {
  max-width: 1280px;
  margin: 18px auto;
  background:
    linear-gradient(180deg, rgba(25, 23, 40, 0.94), rgba(13, 12, 24, 0.98));
  border: 2px solid #453a67;
  border-radius: 26px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.03) inset,
    0 18px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}

/* header feels like marquee */
.shop-page header {
  background:
    linear-gradient(180deg, #2b2140 0%, #1d1730 100%);
  border-bottom: 2px solid #514471;
  padding: 30px 22px 24px;
  position: relative;
}

.shop-page header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  opacity: 0.8;
}

.shop-page header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #ff78bf, #7be7ff, #7f74ff, #ff78bf);
  opacity: 0.95;
}

.shop-page header h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(255, 120, 191, 0.5),
    0 0 14px rgba(123, 231, 255, 0.35);
}

.shop-page header p {
  margin: 10px auto 0;
  max-width: 860px;
  color: #d8def5;
  font-size: 1rem;
  line-height: 1.65;
}

/* nav as console buttons */
.shop-page nav {
  background: #171325;
  border-bottom: 1px solid #41375f;
  padding: 14px 10px;
}

.shop-page nav a {
  display: inline-block;
  margin: 6px;
  padding: 10px 15px;
  background:
    linear-gradient(180deg, #261f38 0%, #1b152a 100%);
  color: #e9f7ff;
  border: 1px solid #5a4f7e;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 6px 14px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.shop-page nav a:hover {
  transform: translateY(-2px);
  border-color: #7be7ff;
  box-shadow:
    0 0 14px rgba(123, 231, 255, 0.18),
    0 8px 18px rgba(0,0,0,0.24);
}

/* main layout */
.shop-page main {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 0.9fr);
  gap: 22px;
  padding: 22px;
}

.shop-page section,
.shop-page aside {
  background: transparent;
  border: none;
  padding: 0;
}

/* general card surface */
.shop-page .cute-box {
  background:
    linear-gradient(180deg, rgba(31, 27, 46, 0.96), rgba(20, 17, 32, 0.98));
  border: 1px solid #4d426f;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 12px 28px rgba(0,0,0,0.22);
  position: relative;
  overflow: hidden;
}

/* subtle screen texture */
.shop-page .cute-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.02) 0px,
      rgba(255,255,255,0.02) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: 0.22;
}

/* tiny machine lights */
.shop-page .cute-box::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 58px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #7be7ff;
  box-shadow:
    -14px 0 0 #ff78bf,
    -28px 0 0 #7f74ff,
    0 0 10px rgba(123, 231, 255, 0.4);
  opacity: 0.95;
}

/* card headings */
.shop-page h2,
.shop-page h3 {
  color: #ffffff;
  margin-top: 0;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.shop-page h2 {
  font-size: 1.35rem;
}

.shop-page h3 {
  font-size: 1rem;
  color: #a9efff;
}

.shop-page p,
.shop-page li {
  color: #dbe1f5;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.shop-page strong {
  color: #ffffff;
}

.shop-page .small-text {
  color: #c8d0ea;
}

/* better note boxes */
.shop-page .note-box {
  background:
    linear-gradient(180deg, rgba(10, 14, 28, 0.78), rgba(17, 17, 29, 0.86));
  border: 1px solid #42557a;
  border-left: 4px solid #79deff;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 14px 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* buttons */
.shop-page .big-button,
.shop-page .button-grid a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 180px;
  margin: 8px 10px 0 0;
  padding: 12px 15px;
  background:
    linear-gradient(180deg, #2c2441 0%, #1c1730 100%);
  color: #fefeff;
  border: 1px solid #67588f;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 0.01em;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 8px 16px rgba(0,0,0,0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  position: relative;
  z-index: 1;
}

.shop-page .big-button:hover,
.shop-page .button-grid a:hover {
  transform: translateY(-2px);
  border-color: #ff86c5;
  background:
    linear-gradient(180deg, #35294b 0%, #241a38 100%);
  box-shadow:
    0 0 16px rgba(255, 134, 197, 0.16),
    0 10px 20px rgba(0,0,0,0.24);
}

/* image sliders feel like screens */
.shop-page .image-slider {
  position: relative;
  margin: 12px 0 16px;
  z-index: 1;
}

.shop-page .slider-frame {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid #5f537f;
  background:
    radial-gradient(circle at 50% 20%, rgba(108, 203, 255, 0.08), transparent 45%),
    linear-gradient(180deg, #0c111b 0%, #151929 100%);
  padding: 10px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.03),
    0 10px 22px rgba(0,0,0,0.24);
}

.shop-page .slider-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 20%),
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.015) 0px,
      rgba(255,255,255,0.015) 1px,
      transparent 1px,
      transparent 3px
    );
  z-index: 2;
}

.shop-page .slide {
  display: none;
  width: 100%;
}

.shop-page .slide.active {
  display: block;
}

.shop-page img.responsive {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #44516d;
}

/* manual buttons */
.shop-page .slider-btns {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.shop-page .slider-btns button {
  background: linear-gradient(180deg, #2c2441 0%, #1b152c 100%);
  color: #f7fbff;
  border: 1px solid #645589;
  border-radius: 12px;
  padding: 8px 14px;
  font-weight: bold;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.shop-page .slider-btns button:hover {
  border-color: #7be7ff;
  transform: translateY(-1px);
}

/* dots */
.shop-page .slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.shop-page .slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: none;
  background: #4f4c69;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.shop-page .slider-dots button.active-dot {
  background: #7be7ff;
  box-shadow: 0 0 10px rgba(123, 231, 255, 0.4);
}

/* listing grid */
.shop-page .listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  align-items: start;
}

/* listing cards */
.shop-page .listing-card {
  height: 100%;
  padding-top: 52px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

/* machine header strip */
.shop-page .listing-card .machine-topbar {
  display: none;
}

.shop-page .listing-card:hover {
  transform: translateY(-4px);
  border-color: #7be7ff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 14px 30px rgba(0,0,0,0.28),
    0 0 18px rgba(123, 231, 255, 0.12);
}

/* top label strip */
.shop-page .listing-card[data-machine]::selection {
  background: rgba(123, 231, 255, 0.2);
}

.shop-page .listing-card[data-machine]::marker {
  content: "";
}

.shop-page .listing-card[data-machine]::after {
  content: attr(data-machine);
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 0.74rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eefaff;
  background: linear-gradient(90deg, #34405a, #28324d);
  border: 1px solid #61789d;
  border-radius: 999px;
  padding: 6px 10px;
  z-index: 2;
}

/* subject icon badge */
.shop-page .subject-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: linear-gradient(180deg, #2a2540, #171426);
  border: 1px solid #6a5b8e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2;
}

/* category-specific machine flavors */
.shop-page .listing-card[data-machine="Custom Build Station"] {
  border-color: #6f5a8f;
  background:
    radial-gradient(circle at top right, rgba(255, 120, 191, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(33, 28, 50, 0.98), rgba(20, 17, 32, 0.98));
}

.shop-page .listing-card[data-machine="Custom Build Station"]:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 14px 30px rgba(0,0,0,0.28),
    0 0 22px rgba(255, 120, 191, 0.16);
}

.shop-page .listing-card[data-machine="Sensory Cabinet"] {
  border-color: #5679a5;
  background:
    radial-gradient(circle at top left, rgba(123, 231, 255, 0.10), transparent 28%),
    linear-gradient(180deg, rgba(28, 34, 49, 0.98), rgba(20, 17, 32, 0.98));
}

.shop-page .listing-card[data-machine="Sensory Cabinet"]:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 14px 30px rgba(0,0,0,0.28),
    0 0 22px rgba(123, 231, 255, 0.18);
}

.shop-page .listing-card[data-machine="Chew Console"] {
  border-color: #6d679f;
  background:
    radial-gradient(circle at top right, rgba(127, 116, 255, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(30, 28, 49, 0.98), rgba(20, 17, 32, 0.98));
}

.shop-page .listing-card[data-machine="Chew Console"]:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 14px 30px rgba(0,0,0,0.28),
    0 0 22px rgba(127, 116, 255, 0.18);
}

.shop-page .listing-card[data-machine="Support Terminal"] {
  border-color: #5b7f7d;
  background:
    radial-gradient(circle at top left, rgba(130, 255, 215, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(25, 35, 40, 0.98), rgba(20, 17, 32, 0.98));
}

.shop-page .listing-card[data-machine="Support Terminal"]:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 14px 30px rgba(0,0,0,0.28),
    0 0 22px rgba(130, 255, 215, 0.16);
}

.shop-page .listing-card[data-machine="Care Station"] {
  border-color: #836b5f;
  background:
    radial-gradient(circle at top right, rgba(255, 194, 123, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(37, 31, 38, 0.98), rgba(20, 17, 32, 0.98));
}

.shop-page .listing-card[data-machine="Care Station"]:hover {
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 14px 30px rgba(0,0,0,0.28),
    0 0 22px rgba(255, 194, 123, 0.16);
}

/* subject browser */
.shop-page .subject-browser {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-page .subject-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #251e38, #1a1629);
  border: 1px solid #5c4e7f;
  color: #f8fbff;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.14);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.shop-page .subject-chip:hover {
  transform: translateY(-2px);
  border-color: #7be7ff;
  box-shadow:
    0 0 14px rgba(123, 231, 255, 0.15),
    0 6px 14px rgba(0,0,0,0.18);
}

/* aside cards slightly quieter */
.shop-page aside .cute-box {
  background:
    linear-gradient(180deg, rgba(27, 24, 42, 0.95), rgba(17, 15, 28, 0.98));
}

/* request form as final action block */
.shop-page #order {
  border-color: #7562a1;
  background:
    radial-gradient(circle at top left, rgba(255, 120, 191, 0.08), transparent 26%),
    radial-gradient(circle at top right, rgba(123, 231, 255, 0.10), transparent 22%),
    linear-gradient(180deg, rgba(32, 27, 48, 0.98), rgba(20, 17, 32, 0.98));
}

/* footer */
.shop-page footer {
  text-align: center;
  padding: 18px;
  background: #161222;
  border-top: 1px solid #43395f;
  color: #c5cae1;
}

/* mobile */
@media (max-width: 980px) {
  .shop-page main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .shop-page img.responsive {
    height: 220px;
  }

  .shop-page .listing-grid {
    grid-template-columns: 1fr;
  }

  .shop-page header h1 {
    font-size: 2.1rem;
  }

  .shop-page .subject-browser {
    gap: 8px;
  }

  .shop-page .subject-chip {
    width: 100%;
    justify-content: center;
  }
}

.shop-page .subject-chip {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.shop-page .subject-chip.active-chip {
  border-color: #7be7ff;
  background:
    linear-gradient(180deg, #33284c, #20192f);
  box-shadow:
    0 0 16px rgba(123, 231, 255, 0.16),
    0 6px 14px rgba(0,0,0,0.18);
  color: #ffffff;
}

.shop-page main {
  position: relative;
}

.shop-page .shop-decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  font-size: 1.4rem;
  letter-spacing: 0.4rem;
  opacity: 0.32;
  text-shadow:
    0 0 10px rgba(255, 120, 191, 0.24),
    0 0 12px rgba(123, 231, 255, 0.18);
}

.shop-page .decor-left {
  top: -6px;
  left: -4px;
  color: #ff9bcb;
}

.shop-page .decor-right {
  top: -6px;
  right: 10px;
  color: #8fefff;
}

.shop-page .lily-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 8px 0 18px;
  color: #ff8fc8;
  opacity: 0.8;
  text-shadow:
    0 0 10px rgba(255, 120, 191, 0.25),
    0 0 10px rgba(123, 231, 255, 0.18);
}

.shop-page .lily-divider::before,
.shop-page .lily-divider::after {
  content: "";
  display: block;
  height: 1px;
  width: 90px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
}

.shop-page .lily-divider span {
  font-size: 1.1rem;
}