/* ── Storefront layout inspired by game-server shops ───────────── */
.shop-layout {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px !important;
}

.shop-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

.shop-sidebar {
  width: auto !important;
}

.product-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012)), #15212b !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), border-color 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20,184,166,0.42);
  box-shadow: 0 18px 50px rgba(0,0,0,0.46), 0 0 60px rgba(20,184,166,0.12);
}

.pc-cover {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.pc-cover-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 8s ease;
}

.product-card:hover .pc-cover-img {
  transform: scale(1.05);
}

.pc-cover-shade {
  position: absolute;
  inset: 0;
}

.shade-bronze .pc-cover-img,
.shade-argent .pc-cover-img,
.shade-or-grade .pc-cover-img,
.shade-money .pc-cover-img {
  background-image: url('https://cdn.akamai.steamstatic.com/steam/apps/885570/capsule_616x353.jpg');
}

.shade-gm-vip .pc-cover-img,
.shade-gm-or .pc-cover-img {
  background-image: url('https://cdn.akamai.steamstatic.com/steam/apps/4000/capsule_616x353.jpg');
  background-position: center;
}

.shade-bronze .pc-cover-shade { background: linear-gradient(to top, #15212b 0%, rgba(180,90,30,0.5) 55%, rgba(180,90,30,0.15) 100%); }
.shade-argent .pc-cover-shade { background: linear-gradient(to top, #15212b 0%, rgba(148,163,184,0.45) 55%, rgba(148,163,184,0.12) 100%); }
.shade-or-grade .pc-cover-shade { background: linear-gradient(to top, #15212b 0%, rgba(234,179,8,0.5) 55%, rgba(234,179,8,0.15) 100%); }
.shade-money .pc-cover-shade { background: linear-gradient(to top, #15212b 0%, rgba(20,184,166,0.5) 55%, rgba(20,184,166,0.2) 100%); }
.shade-gm-vip .pc-cover-shade { background: linear-gradient(to top, #15212b 0%, rgba(56,189,248,0.4) 55%, rgba(56,189,248,0.1) 100%); }
.shade-gm-or .pc-cover-shade { background: linear-gradient(to top, #15212b 0%, rgba(234,179,8,0.45) 55%, rgba(234,179,8,0.12) 100%); }

.pc-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pc-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}

.pc-server {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  color: rgba(255,255,255,0.62);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pc-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pc-perks li {
  font-size: 0.81rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.pc-perks li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(20,184,166,0.75);
  flex-shrink: 0;
  margin-top: 5px;
}

.pc-footer {
  align-items: stretch !important;
  flex-direction: column;
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.pc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.btn-product-detail {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 11px;
  padding: 10px 14px;
  color: rgba(255,255,255,0.58);
  background: rgba(255,255,255,0.055);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.83rem;
  font-weight: 800;
  transition: color 0.15s, background 0.15s;
}

.btn-product-detail:hover {
  color: #fff;
  background: rgba(255,255,255,0.09);
}

.pc-price {
  margin-bottom: 2px;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
  white-space: nowrap;
}

.pc-price sub {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  vertical-align: baseline;
  letter-spacing: 0;
  margin-left: 2px;
}

.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,0.66);
  backdrop-filter: blur(5px);
}

.product-modal-overlay.open {
  display: flex;
}

.product-modal {
  width: min(560px, 100%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  background: #15212b;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  overflow: hidden;
}

.product-modal-cover {
  height: 190px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-modal-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #15212b, transparent 72%);
}

.product-modal-body {
  padding: 24px;
}

.product-modal-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 14px;
}

.product-modal-title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 7px 0 0;
}

.product-modal-price {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  white-space: nowrap;
}

.product-modal-text {
  color: rgba(255,255,255,0.42);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.65;
  margin: 0 0 16px;
}

.product-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.product-modal-close {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: rgba(255,255,255,0.58);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
}

.unified-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shop-loading-state,
.shop-empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: 20px;
  color: rgba(255,255,255,0.32);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.floating-cart {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 210;
  display: none;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  padding: 10px 11px 10px 16px;
  color: #fff;
  background: rgba(14,11,28,0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 52px rgba(0,0,0,0.40);
}

.floating-cart.visible {
  display: inline-flex;
}

.floating-cart-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.floating-cart-text strong {
  font-size: 0.82rem;
  font-weight: 800;
}

.floating-cart-text span {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.42);
}

.floating-cart button {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 1040px) {
  .shop-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .unified-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
  }

  .unified-products-grid {
    grid-template-columns: 1fr;
  }

  .floating-cart { left: 14px; right: 14px; bottom: 14px; justify-content: space-between; }
}

/* ── Light shop readability reset ───────────────── */
.shop-layout {
  align-items: start !important;
}

.shop-sidebar {
  border: 1px solid rgba(38,50,56,0.10) !important;
  border-radius: 22px !important;
  padding: 16px !important;
  background: rgba(255,255,255,0.72) !important;
  box-shadow: 0 16px 42px rgba(83,92,96,0.10) !important;
}

.product-card {
  background: #fff !important;
  border: 1px solid rgba(38,50,56,0.10) !important;
  box-shadow: 0 16px 38px rgba(83,92,96,0.10) !important;
}

.product-card:hover {
  border-color: rgba(121,191,183,0.34) !important;
  box-shadow: 0 22px 54px rgba(83,92,96,0.16) !important;
}

.pc-cover-shade,
.shade-bronze .pc-cover-shade,
.shade-argent .pc-cover-shade,
.shade-or-grade .pc-cover-shade,
.shade-money .pc-cover-shade,
.shade-gm-vip .pc-cover-shade,
.shade-gm-or .pc-cover-shade {
  background: linear-gradient(to top, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.18) 66%, transparent 100%) !important;
}

.pc-name,
.pc-price,
.product-modal-title,
.product-modal-price,
.floating-cart-text strong {
  color: #263238 !important;
}

.pc-perks li,
.pc-price sub,
.product-modal-text,
.floating-cart-text span {
  color: #536167 !important;
}

.pc-perks li::before {
  background: #79bfb7 !important;
}

.pc-server {
  color: #263238 !important;
  background: rgba(169,217,210,0.36) !important;
  border: 1px solid rgba(121,191,183,0.28) !important;
}

.btn-product-detail,
.product-modal-close {
  color: #263238 !important;
  background: #f7f4ee !important;
  border: 1px solid rgba(38,50,56,0.12) !important;
}

.btn-product-detail:hover,
.product-modal-close:hover {
  background: #eef3f5 !important;
}

.product-modal-overlay {
  background: rgba(38,50,56,0.36) !important;
}

.product-modal {
  background: #fff !important;
  border: 1px solid rgba(38,50,56,0.12) !important;
  box-shadow: 0 26px 80px rgba(38,50,56,0.22) !important;
}

.product-modal-cover::after {
  background: linear-gradient(to top, #fff, rgba(255,255,255,0.10) 72%) !important;
}

.shop-loading-state,
.shop-empty-state {
  color: #5f6d73 !important;
  border-color: rgba(38,50,56,0.16) !important;
  background: rgba(255,255,255,0.62) !important;
}

.floating-cart {
  color: #263238 !important;
  background: rgba(255,255,255,0.92) !important;
  border-color: rgba(38,50,56,0.12) !important;
  box-shadow: 0 18px 48px rgba(83,92,96,0.18) !important;
}

.floating-cart button {
  color: #263238 !important;
  background: #f4d06f !important;
  box-shadow: 0 3px 0 #c49b35 !important;
}

.product-card .pc-server,
#product-modal-server {
  display: none !important;
}

/* ── Storefront redesign v2 ────────────────────── */
.shop-layout {
  gap: 28px !important;
}

.shop-sidebar {
  border-radius: 26px !important;
  background: rgba(255,253,248,0.82) !important;
  box-shadow: 0 18px 48px rgba(68,76,80,0.12) !important;
}

.sidebar-cat {
  border-radius: 13px !important;
  color: rgba(32,42,47,0.68) !important;
}

.sidebar-cat:hover,
.sidebar-cat.active {
  color: #202a2f !important;
  background: rgba(32,42,47,0.06) !important;
}

.sidebar-count {
  color: #202a2f !important;
  background: rgba(240,200,95,0.34) !important;
}

.shop-context {
  border-radius: 24px !important;
  border-color: rgba(32,42,47,0.10) !important;
  background: rgba(255,253,248,0.76) !important;
  box-shadow: 0 16px 42px rgba(68,76,80,0.10) !important;
}

.shop-context button {
  border-radius: 13px !important;
  background: #f0c85f !important;
  box-shadow: none !important;
}

.content-header {
  margin-bottom: 18px !important;
}

.unified-products-grid {
  gap: 20px !important;
}

.product-card {
  border-radius: 26px !important;
  background: rgba(255,253,248,0.86) !important;
  box-shadow: 0 18px 48px rgba(68,76,80,0.12) !important;
}

.product-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 26px 70px rgba(68,76,80,0.18) !important;
}

.pc-cover {
  height: 178px !important;
}

.pc-body {
  padding: 20px !important;
}

.pc-name {
  color: #202a2f !important;
  font-size: 1.04rem !important;
}

.pc-perks li,
.pc-price sub {
  color: #657176 !important;
}

.pc-price {
  color: #202a2f !important;
}

.pc-actions {
  gap: 10px !important;
}

.btn-product-detail,
.btn-buy-nl,
.btn-buy-gm,
.product-modal-close {
  border-radius: 13px !important;
  box-shadow: none !important;
}

.btn-buy-nl,
.btn-buy-gm {
  color: #202a2f !important;
  background: #f0c85f !important;
}

.product-modal {
  border-radius: 28px !important;
  background: #fffdf8 !important;
}

.floating-cart {
  border-radius: 18px !important;
  background: rgba(255,253,248,0.94) !important;
  box-shadow: 0 20px 56px rgba(68,76,80,0.18) !important;
}

/* ── Storefront clay restore ───────────────────── */
.shop-sidebar,
.shop-context,
.product-card,
.product-modal,
.floating-cart {
  background: linear-gradient(145deg, rgba(255,253,248,0.96), rgba(244,235,218,0.80)) !important;
  border: 1px solid rgba(80,68,48,0.12) !important;
  box-shadow: 14px 18px 34px rgba(111,96,72,0.16), -10px -10px 24px rgba(255,255,255,0.70), inset 1px 1px 0 rgba(255,255,255,0.78) !important;
}

.product-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 18px 24px 46px rgba(111,96,72,0.20), -12px -12px 28px rgba(255,255,255,0.72), inset 1px 1px 0 rgba(255,255,255,0.82) !important;
}

.sidebar-cat,
.shop-context button,
.btn-product-detail,
.btn-buy-nl,
.btn-buy-gm,
.product-modal-close,
.floating-cart button {
  border: 1px solid rgba(80,68,48,0.12) !important;
  box-shadow: 0 4px 0 rgba(120,104,76,0.18), 9px 12px 22px rgba(111,96,72,0.12), inset 1px 1px 0 rgba(255,255,255,0.72) !important;
}

.shop-context button,
.btn-buy-nl,
.btn-buy-gm,
.floating-cart button {
  background: linear-gradient(145deg, #ffe38c, #e7b94b) !important;
  box-shadow: 0 5px 0 rgba(142,101,25,0.42), 10px 14px 26px rgba(111,96,72,0.16), inset 1px 1px 0 rgba(255,255,255,0.56) !important;
}

.btn-product-detail,
.product-modal-close {
  background: linear-gradient(145deg, rgba(255,253,248,0.92), rgba(238,229,211,0.82)) !important;
}

/* ── Storefront clay tuning ────────────────────── */
.shop-sidebar,
.shop-context,
.product-card,
.product-modal,
.floating-cart {
  box-shadow: 8px 11px 24px rgba(111,96,72,0.11), -6px -6px 16px rgba(255,255,255,0.58), inset 1px 1px 0 rgba(255,255,255,0.66) !important;
}

.product-card:hover {
  box-shadow: 12px 16px 34px rgba(111,96,72,0.15), -8px -8px 20px rgba(255,255,255,0.62), inset 1px 1px 0 rgba(255,255,255,0.72) !important;
}

.sidebar-cat,
.shop-context button,
.btn-product-detail,
.btn-buy-nl,
.btn-buy-gm,
.product-modal-close,
.floating-cart button {
  box-shadow: 0 2px 0 rgba(120,104,76,0.13), 6px 8px 16px rgba(111,96,72,0.09), inset 1px 1px 0 rgba(255,255,255,0.62) !important;
}

.shop-context button,
.btn-buy-nl,
.btn-buy-gm,
.floating-cart button {
  box-shadow: 0 3px 0 rgba(142,101,25,0.30), 7px 9px 18px rgba(111,96,72,0.12), inset 1px 1px 0 rgba(255,255,255,0.50) !important;
}

/* ── Storefront flat friendly reset ────────────── */
.shop-sidebar,
.shop-context,
.product-card,
.product-modal,
.floating-cart {
  background: #fffdf8 !important;
  border: 1px solid rgba(32,42,47,0.11) !important;
  box-shadow: 0 10px 28px rgba(68,76,80,0.08) !important;
}

.product-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 38px rgba(68,76,80,0.12) !important;
}

.sidebar-cat,
.shop-context button,
.btn-product-detail,
.btn-buy-nl,
.btn-buy-gm,
.product-modal-close,
.floating-cart button {
  box-shadow: none !important;
}

.shop-context button,
.btn-buy-nl,
.btn-buy-gm,
.floating-cart button {
  color: #202a2f !important;
  background: #f0c85f !important;
  border: 1px solid rgba(185,133,34,0.20) !important;
}

.shop-context button:hover,
.btn-buy-nl:hover,
.btn-buy-gm:hover,
.floating-cart button:hover {
  background: #e5b94a !important;
}

.btn-product-detail,
.product-modal-close,
.sidebar-cat {
  background: #fffaf0 !important;
  border: 1px solid rgba(32,42,47,0.10) !important;
}

/* ── Real filter selection sidebar ─────────────── */
.shop-sidebar {
  padding: 12px !important;
  border-radius: 22px !important;
  background: #fffdf8 !important;
}

.sidebar-group {
  padding: 12px !important;
  border: 1px solid rgba(32,42,47,0.08) !important;
  border-radius: 18px !important;
  background: #fffaf0 !important;
}

.sidebar-group + .sidebar-group {
  margin-top: 12px !important;
}

.sidebar-label {
  padding: 0 !important;
  margin: 0 0 10px !important;
  color: rgba(32,42,47,0.46) !important;
  font-size: 0.66rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.16em !important;
}

.sidebar-cat {
  position: relative !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 9px 9px 9px 30px !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: rgba(32,42,47,0.62) !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
}

.sidebar-cat + .sidebar-cat {
  margin-top: 4px !important;
}

.sidebar-cat::before {
  content: "" !important;
  position: absolute !important;
  left: 11px !important;
  top: 50% !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(32,42,47,0.18) !important;
  transform: translateY(-50%) !important;
}

.sidebar-cat:hover {
  border-color: rgba(32,42,47,0.09) !important;
  background: #fffdf8 !important;
  color: #202a2f !important;
}

.sidebar-cat.active {
  border-color: rgba(47,143,132,0.18) !important;
  background: rgba(47,143,132,0.10) !important;
  color: #202a2f !important;
}

.sidebar-cat.active::before {
  background: #2f8f84 !important;
  box-shadow: 0 0 0 4px rgba(47,143,132,0.12) !important;
}

.sidebar-count {
  min-width: 24px !important;
  padding: 3px 7px !important;
  border-radius: 999px !important;
  color: #202a2f !important;
  background: rgba(240,200,95,0.38) !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
}

.sidebar-cat.active .sidebar-count {
  background: #f0c85f !important;
  color: #202a2f !important;
}
