/* ==========================================================================
   Shop page — glassmorphism dark theme
   ========================================================================== */

.shop-page {
  animation: shopFadeIn .5s ease-out;
}
@keyframes shopFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Banner carousel
   ============================================================ */
.shop-carousel .carousel-inner {
  border-radius: 18px;
  overflow: hidden;
  max-height: 340px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.shop-carousel .carousel-item img {
  max-height: 340px;
  object-fit: cover;
  width: 100%;
}
.shop-carousel .carousel-control-prev,
.shop-carousel .carousel-control-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: opacity .25s, background .25s;
}
.shop-carousel .carousel-control-prev:hover,
.shop-carousel .carousel-control-next:hover {
  opacity: 1;
  background: rgba(0, 196, 255, 0.6);
}
.shop-carousel .carousel-control-prev { left: 12px; }
.shop-carousel .carousel-control-next { right: 12px; }
.shop-carousel .carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, 0.6);
}
.shop-carousel .carousel-indicators .active {
  background-color: #00c4ff;
}

/* ============================================================
   Hero
   ============================================================ */
.shop-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 196, 255, 0.25), rgba(0, 176, 155, 0.25));
  border: 1px solid rgba(0, 196, 255, 0.4);
  color: #00e3ff;
  font-size: 1.3rem;
  box-shadow: 0 0 24px rgba(0, 196, 255, 0.25);
}
.shop-hero-title {
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #00e3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shop-hero-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}

/* ============================================================
   Quick category nav (horizontal pill scroller)
   ============================================================ */
.shop-quicknav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 12px;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.shop-quicknav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .25s ease;
}
.shop-quicknav-pill i {
  color: #00c4ff;
  font-size: 0.85rem;
}
.shop-quicknav-pill:hover {
  background: rgba(0, 196, 255, 0.12);
  border-color: rgba(0, 196, 255, 0.4);
  color: #fff;
  transform: translateY(-2px);
}
.shop-quicknav-pill.is-promo {
  background: rgba(255, 143, 0, 0.1);
  border-color: rgba(255, 143, 0, 0.35);
  color: #ffd54f;
}
.shop-quicknav-pill.is-promo i { color: #ff8f00; }
.shop-quicknav-pill.is-promo:hover {
  background: rgba(255, 143, 0, 0.22);
  color: #fff;
}
.shop-quicknav-count {
  display: inline-block;
  min-width: 22px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  font-size: 0.72rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================================
   Section
   ============================================================ */
.shop-section {
  margin-top: 36px;
  scroll-margin-top: 90px; /* anchor jumps don't get hidden by sticky nav */
}
.shop-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, rgba(0, 196, 255, 0.12) 0%, rgba(0, 196, 255, 0) 100%);
  border-left: 4px solid #00c4ff;
  border-radius: 10px;
}
.shop-section-icon {
  color: #00c4ff;
  font-size: 1.3rem;
  filter: drop-shadow(0 0 10px rgba(0, 196, 255, 0.5));
}
.shop-section-title {
  flex: 1;
  margin: 0;
  font-weight: 600;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 0.3px;
}
.shop-section-count {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.65);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Promo section accent (orange/gold) */
.shop-section-header--promo {
  background: linear-gradient(90deg, rgba(255, 143, 0, 0.18) 0%, rgba(255, 143, 0, 0) 100%);
  border-left-color: #ff8f00;
}
.shop-section-header--promo .shop-section-icon {
  color: #ff8f00;
  filter: drop-shadow(0 0 10px rgba(255, 143, 0, 0.6));
}

/* ============================================================
   Card grid
   ============================================================ */
.shop-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1400px) { .shop-card-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { .shop-card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .shop-card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 420px)  { .shop-card-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Card
   ============================================================ */
.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.shop-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(0, 255, 200, 0.45);
  box-shadow: 0 14px 36px rgba(0, 255, 200, 0.22);
}

/* Free item gold glow */
.shop-card--free {
  border-color: rgba(255, 174, 16, 0.6);
  box-shadow: 0 0 18px rgba(255, 174, 16, 0.3);
}
.shop-card--free:hover {
  border-color: rgba(255, 174, 16, 0.9);
  box-shadow: 0 14px 36px rgba(255, 174, 16, 0.5);
}

/* "FREE" ribbon badge */
.shop-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #ff8f00, #ffd54f);
  color: #1a1a1a;
  box-shadow: 0 4px 12px rgba(255, 143, 0, 0.5);
}

.shop-card-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  overflow: hidden;
}
.shop-card-img {
  max-width: 80%;
  max-height: 140px;
  object-fit: contain;
  transition: transform .4s ease;
  cursor: zoom-in;
}
.shop-card:hover .shop-card-img {
  transform: scale(1.1) rotate(-2deg);
}

.shop-card-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-card-link {
  text-decoration: none;
  display: block;
}
.shop-card-title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  background: linear-gradient(91deg, #eef85b 5%, #7aec8d 53%, #09e5c3 91%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: filter .25s;
}
.shop-card:hover .shop-card-title {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(122, 236, 141, 0.4));
}

.shop-card-prices {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.shop-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.shop-price--coin {
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.25);
}
.shop-price--point {
  color: #00c722;
  border-color: rgba(0, 199, 34, 0.25);
}
.shop-price-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.shop-card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  transition: all .25s ease;
}
.shop-card-cta i {
  transition: transform .25s ease;
}
.shop-card:hover .shop-card-cta {
  background: linear-gradient(135deg, #00b09b, #96c93d);
  color: #fff;
}
.shop-card:hover .shop-card-cta i {
  transform: translateX(4px);
}
.shop-card--free:hover .shop-card-cta {
  background: linear-gradient(135deg, #ff8f00, #ffd54f);
  color: #1a1a1a;
}

/* ============================================================
   Display modal polish
   ============================================================ */
#modalDisplayImage .modal-content {
  background: rgba(20, 20, 26, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 16px;
}
#modalDisplayImage .modal-header,
#modalDisplayImage .modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

/* ── Sale ── */
.shop-card--sale { position: relative; }
.shop-card-badge--sale {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: linear-gradient(135deg, #ff4d6d, #c9184a);
  color: #fff; font-weight: 700; font-size: 0.78rem;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(201, 24, 74, 0.45);
}
.shop-price-old { text-decoration: line-through; opacity: 0.55; margin-right: 6px; font-weight: 500; }
.shop-price-new { color: #ff4d6d; font-weight: 800; }
