/* ═══ DAYZ SHOP LAYOUT ═══ */

.shop-page { background: #0c0c0c; }

.shop-header .nav-active {
  color: #fff;
  border-bottom: 2px solid var(--red);
  padding-bottom: 4px;
}

.btn-account { padding: 10px 18px; font-size: 12px; }

.cart-mobile {
  display: none;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #161616;
  color: #fff;
  cursor: pointer;
}

.menu-toggle { display: none; }

/* Hero */
.shop-hero {
    position: relative;
    margin-top: 72px;
    padding: 48px 0;
    background: linear-gradient(90deg, rgba(12, 12, 12, 0.92) 0%, rgba(12, 12, 12, 0.55) 55%, rgba(12, 12, 12, 0.3) 100%), url(../img/hero.png) center / cover;
    border-bottom: 1px solid var(--line);
}

.shop-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.shop-hero p {
  margin: 12px 0 0;
  max-width: 520px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* 3-column layout */
.shop-main-wrap { padding: 28px 0 48px; }

.shop-shell {
  display: grid;
  grid-template-columns: 220px 1fr 300px;
  gap: 24px;
  align-items: start;
}

.shop-layout { display: contents; }

/* Sidebar categories */
.shop-sidebar {
  position: sticky;
  top: 88px;
}

.cat-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cat:hover { background: #161616; color: #fff; }

.cat.active {
  background: var(--red);
  color: #fff;
}

.cat-ico {
  width: 20px;
  text-align: center;
  opacity: 0.8;
  font-size: 14px;
}

.safe-buy {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 16px;
  border-radius: 8px;
  background: #141414;
  border: 1px solid var(--line);
}

.safe-ico { font-size: 24px; }

.safe-buy strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 4px;
}

.safe-buy p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Center catalog */
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.shop-tabs {
  display: flex;
  gap: 4px;
}

.tab {
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
}

.tab.active {
  background: #1a1a1a;
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--red);
}

.search {
  position: relative;
  flex: 1;
  max-width: 280px;
  min-width: 180px;
}

.search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #141414;
  color: #fff;
  outline: none;
}

.search input:focus { border-color: var(--line-strong); }

.search svg {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 18px;
  color: var(--text-muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #141414;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: #333;
  transform: translateY(-2px);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--red);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.visual {
  display: grid;
  place-items: center;
  height: 150px;
  background: linear-gradient(180deg, #1a1a1a, #111);
}

.product-icon {
  width: 200px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

.card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.bundle-contents {
  margin: 10px 0 0;
  padding: 10px 12px 10px 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  font-size: 11px;
  color: #c8c8c8;
  line-height: 1.45;
}

.bundle-contents li {
  margin: 2px 0;
}

.card-bundle .bundle-badge {
  right: auto;
  left: 10px;
  top: 10px;
  background: #1a3a1a;
  border-color: #2d6b2d;
  color: #9fdf9f;
}

.card-bundle .starter-badge,
.starter-badge {
  background: #3a2a10;
  border-color: #8a6420;
  color: #f0c060;
}

.bundle-note {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.35;
  color: #c4a35a;
}

.vehicle-badge,
.lot-badge {
  background: #1a2438;
  border-color: #35507a;
  color: #9ec0ff;
}

.card-vehicle .vehicle-badge {
  right: auto;
  left: 10px;
  top: 10px;
}

.cart-bundle {
  display: block;
  color: #9fdf9f;
  font-size: 10px;
  margin-top: 2px;
}

.bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: var(--red);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}

.add:hover { background: var(--red-hover); }

.empty {
  grid-column: 1 / -1;
  padding: 48px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-muted);
}

/* Cart panel */
.cart-panel {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 100px);
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #141414;
  overflow: hidden;
}

.cart-panel-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.cart-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 4px;
  background: var(--red);
  font-size: 12px;
}

.cart-list {
  flex: 1;
  overflow: auto;
  padding: 8px 16px;
  min-height: 120px;
}

.cart-empty {
  padding: 32px 8px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #1a1a1a;
  object-fit: contain;
  padding: 4px;
}

.cart-item strong {
  display: block;
  font-size: 13px;
  color: #fff;
}

.cart-item small {
  font-size: 12px;
  color: var(--text-muted);
}

.cart-item .remove {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

.cart-item .remove:hover { color: var(--red); }

.cart-panel-foot {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  background: #111;
}

.promo-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}

.promo-row input {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0c0c0c;
  color: #fff;
  font-size: 13px;
}

.ghost-btn {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}

.link-btn {
  display: block;
  margin: 8px 0 0;
  border: none;
  background: none;
  font-size: 11px;
  color: var(--text-dim);
  text-decoration: underline;
  cursor: pointer;
  text-align: left;
}

.promo-msg { min-height: 16px; margin: 6px 0 0; font-size: 11px; color: var(--text-muted); }
.promo-msg.ok { color: #4caf82; }
.promo-msg.err { color: #e85d4a; }

.balance-use { margin: 10px 0; font-size: 12px; color: var(--text-dim); }
.balance-use b { color: #fff; }

.total-lines { margin: 10px 0; font-size: 12px; color: var(--text-muted); }
.total-line { display: flex; justify-content: space-between; margin-bottom: 4px; }
.total-line.discount-line { color: #4caf82; }

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 12px 0;
  font-family: var(--font-display);
}

.cart-total span { font-size: 13px; color: var(--text-dim); text-transform: uppercase; }
.cart-total b { font-size: 22px; color: #fff; }

.checkout { width: 100%; padding: 14px; border-radius: 6px; }

.pay-safe {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
}

.hint {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

/* Trust bar */
.trust-bar {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: #0a0a0a;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-grid > div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-grid span { font-size: 22px; }

.trust-grid strong {
  display: block;
  font-size: 13px;
  color: #fff;
  margin-bottom: 2px;
}

.trust-grid small {
  font-size: 11px;
  color: var(--text-muted);
}

.shop-footer {
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  background: #0a0a0a;
}

.shop-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-dim);
}

.shop-footer a { color: #fff; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); font-size: 12px; }

/* Auth chip */
.steam-btn {
  padding: 8px 14px;
  border: 1px solid rgba(102,192,244,0.35);
  border-radius: 6px;
  background: rgba(102,192,244,0.08);
  font-family: var(--font-display);
  font-size: 11px;
  text-transform: uppercase;
  color: #8ec8e8;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #161616;
  font-size: 12px;
}

.user-chip img { width: 28px; height: 28px; border-radius: 4px; }
.user-chip button { border: none; background: none; color: var(--text-muted); cursor: pointer; font-size: 11px; }
.user-chip .balance { color: #fff; font-weight: 600; }

/* Modal account */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0,0,0,0.85);
  overflow: auto;
}

.modal.open { display: grid; }

.modal-box {
  width: min(440px, 100%);
  padding: 32px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #141414;
  position: relative;
}

.modal-wide { width: min(900px, 100%); }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-box h2 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: uppercase;
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

.balance-card {
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #111;
}

.balance-label { font-size: 11px; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.1em; }
.balance-amount { display: block; margin: 10px 0; font-family: var(--font-display); font-size: 40px; font-weight: 700; color: #fff; }
.balance-hint { margin: 0; font-size: 13px; color: var(--text-dim); }
.lk-deposit { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }

.deposit-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.deposit-preset {
  flex: 1;
  min-width: 70px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0c0c0c;
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  cursor: pointer;
}

.deposit-preset:hover,
.deposit-preset.active {
  border-color: var(--red);
  background: var(--red-dim);
}


.tx-panel { border: 1px solid var(--line); border-radius: 8px; background: #111; overflow: hidden; }
.tx-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-display); text-transform: uppercase; font-size: 12px; }
.tx-list { max-height: 200px; overflow: auto; }
.tx-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tx-row.plus b { color: #4caf82; }
.tx-row.minus b { color: #e85d4a; }

.inv-title { margin: 28px 0 12px; font-family: var(--font-display); font-size: 16px; text-transform: uppercase; }
.inv-list { display: grid; gap: 8px; }
.inv-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 6px; background: #111; font-size: 13px; }
.status { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.status.pending { color: #4caf82; }
.status.claimed { color: var(--text-muted); }

/* Mobile drawer - cart panel slides in */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  background: rgba(0,0,0,0.8);
  transition: opacity 0.3s;
}
.backdrop.open { opacity: 1; pointer-events: auto; }

.cart-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border: none;
  background: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .shop-shell { grid-template-columns: 200px 1fr; }
  .cart-panel {
    display: flex;
    position: fixed;
    z-index: 401;
    top: 0;
    right: 0;
    width: min(100%, 360px);
    height: 100%;
    max-height: none;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.35s;
  }
  .cart-panel.open { transform: none; }
  .cart-close { display: block; }
  .cart-mobile { display: inline-flex; align-items: center; gap: 6px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .menu-toggle { display: grid; place-items: center; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 72px 16px auto;
    flex-direction: column;
    padding: 16px;
    background: rgba(10,10,10,0.98);
    border: 1px solid var(--line);
    z-index: 210;
  }
}

@media (max-width: 700px) {
  .shop-shell { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .cat-nav { flex-direction: row; flex-wrap: wrap; }
  .cat { width: auto; flex: 1 1 auto; min-width: 140px; }
  .safe-buy { display: none; }
  .grid { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .btn-account { display: none; }
}
