body {
  background-image: url(../images/styles/ShopsBG.png);
}
.shops-page {
  min-height: 100vh;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
}

.shops-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 112, 216, 0.22), transparent 28%),
    radial-gradient(circle at 85% 14%, rgba(255, 207, 116, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(25, 16, 73, 0.12) 0%, rgba(20, 14, 62, 0.18) 45%, rgba(12, 20, 62, 0.32) 100%);
  z-index: -1;
}

.shops-page #bodydiv {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: clamp(56px, 7vw, 96px) clamp(18px, 4vw, 56px) 56px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.shops-container {
  width: min(1280px, 100%);
  margin: 0 auto;
}

.shops-hero {
  max-width: 620px;
  margin: 0 0 clamp(28px, 4vw, 42px);
  color: #21164f;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.45);
}

.shops-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 7px 14px;
  border: 1px solid rgba(130, 87, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: #5c36bd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.shops-hero h1 {
  margin: 0;
  color: #20154f;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.shops-hero p:not(.shops-kicker) {
  max-width: 560px;
  margin: 16px 0 0;
  color: #261b58;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 500;
  line-height: 1.55;
}

.shops-section {
  margin-bottom: clamp(34px, 5vw, 52px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.52), transparent);
}

.section-title {
  margin: 0;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(34, 18, 82, 0.55);
}

.shops-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 26px);
}

.displaybox {
  --accent: #d84dff;
  position: relative;
  min-height: 200px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(42, 20, 96, 0.72), rgba(17, 20, 72, 0.78));
  box-shadow: 0 18px 40px rgba(24, 16, 66, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  isolation: isolate;
}

.displaybox:hover,
.displaybox:focus-within {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 62%, white 38%);
  box-shadow: 0 24px 54px rgba(24, 16, 66, 0.36), 0 0 28px color-mix(in srgb, var(--accent) 42%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.displaybox a {
  display: block;
  min-height: 200px;
  color: inherit;
  text-decoration: none;
}

.displaybox img,
.shop-placeholder-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.28s ease, filter 0.28s ease;
  z-index: -2;
}

.displaybox:hover img,
.displaybox:hover .shop-placeholder-image {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.05);
}

.shop-placeholder-image {
  background:
    radial-gradient(circle at 50% 28%, color-mix(in srgb, var(--accent) 68%, white 18%), transparent 24%),
    radial-gradient(circle at 28% 72%, rgba(255, 255, 255, 0.26), transparent 22%),
    linear-gradient(135deg, #26104f, #102b69 50%, #5f248e);
}

.displaybox::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 62%;
  background: linear-gradient(180deg, transparent 0%, rgba(16, 11, 39, 0.68) 42%, rgba(16, 11, 39, 0.94) 100%);
  z-index: -1;
}

.displaybox::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 48%);
  opacity: 0.85;
  pointer-events: none;
}

.shop-card-content {
  position: absolute;
  right: 16px;
  bottom: 15px;
  left: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
}

.shop-title {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.07rem;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.shop-description {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.38;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.shop-arrow {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 64%, white 25%);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 24%, rgba(26, 17, 61, 0.7));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease;
}

.displaybox:hover .shop-arrow,
.displaybox:focus-within .shop-arrow {
  transform: translateX(3px);
  background: color-mix(in srgb, var(--accent) 44%, rgba(26, 17, 61, 0.68));
}

.accent-pink { --accent: #ff4fc7; }
.accent-purple { --accent: #a64dff; }
.accent-blue { --accent: #25a8ff; }
.accent-gold { --accent: #e0ad39; }
.accent-red { --accent: #ff335f; }
.accent-violet { --accent: #8b5cff; }

.coming-soon-card {
  min-height: 200px;
}

.shops-tip {
  width: fit-content;
  max-width: min(100%, 720px);
  margin: 4px auto 0;
  padding: 16px 28px;
  border: 1px solid rgba(126, 91, 214, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: 0 16px 36px rgba(45, 28, 96, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #33245d;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(16px);
}

@media (max-width: 1100px) {
  .shops-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .shops-page #bodydiv {
    padding-top: 38px;
  }

  .shops-hero {
    text-align: center;
    margin-right: auto;
    margin-left: auto;
  }

  .section-heading::before {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(270deg, rgba(255, 255, 255, 0.52), transparent);
  }

  .shops-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .displaybox,
  .displaybox a,
  .coming-soon-card {
    min-height: 205px;
  }

  .shops-tip {
    border-radius: 24px;
  }
}
