/* Используем переменные из theme-lootlee.css */
:root{
  --panel:var(--surface);
  --panel2:var(--surface-base);
  --stroke:var(--border);
  --stroke2:var(--border-highlight);
  --muted:var(--text-secondary);
  --dim:var(--text-muted);
  --accent:var(--accent-amber);
  --danger:var(--danger);
  --r12:12px;
  --r16:16px;
  --r20:20px;
  --shadow: 0 18px 55px rgba(14, 9, 17, 0.6);
  --glow: 0 0 0 1px rgba(252, 180, 98,.55), 0 0 22px rgba(252, 180, 98,.14);
}

/* Убеждаемся, что фон страницы правильный */
body {
  background-color: var(--bg) !important;
}

.wrap{max-width:1180px; margin:0 auto; padding:22px 18px 80px;}

.grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:18px;
  align-items:start;
  margin-top:8px;
}

.card{
  background:rgba(255,255,255,.03);
  border:1px solid var(--stroke);
  border-radius:var(--r20);
  box-shadow: var(--shadow);
}
.card.pad{padding:18px}
.muted{color:var(--muted)}
.dim{color:var(--dim)}
.h1{
  font-size:28px; line-height:1.15;
  margin:0 0 10px;
  letter-spacing:.2px;
}

.media{
  overflow:hidden;
  border-radius:var(--r20);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.02);
}
.media .img{
  width:100%;
  aspect-ratio: 16 / 10;
  background:var(--bg-deep);
  display:block;
  object-fit:cover;
}
.mediaBar{
  display:flex; gap:10px;
  padding:12px 12px 0;
  flex-wrap:wrap;
}
.tag{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:13px;
  display:inline-flex; align-items:center; gap:8px;
  white-space:nowrap;
}
.tag strong{color:var(--text); font-weight:600}
.tag .ok{
  width:8px; height:8px; border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 14px rgba(252, 180, 98,.25);
}

.buy{
  position:sticky;
  top:18px;
  padding:18px;
}
.priceRow{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  margin:14px 0 10px;
}
.price{
  display:flex; align-items:baseline; gap:10px; flex-wrap:wrap;
}
.price .now{
  font-size:34px;
  letter-spacing:.2px;
  font-weight:800;
  color:var(--accent);
}
.price .old{
  color:var(--dim);
  text-decoration:line-through;
  font-weight:600;
  font-size:15px;
}
.price .disc{
  color:var(--text);
  background:rgba(244, 111, 114,.16);
  border:1px solid rgba(244, 111, 114,.25);
  padding:4px 8px;
  border-radius:999px;
  font-weight:700;
  font-size:12px;
}

.qty{
  display:grid;
  grid-template-columns: 46px 1fr 46px;
  gap:10px;
  margin:12px 0 12px;
  align-items:center;
}
.qbtn{
  height:46px; width:46px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--text);
  display:grid; place-items:center;
  cursor:pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.qbtn:hover{
  transform: translateY(-1px);
  border-color: rgba(252, 180, 98,.35);
  box-shadow: var(--glow);
}
.qval{
  height:46px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.02);
  display:grid; place-items:center;
  font-weight:700;
}

.cta{
  width:100%;
  border:0;
  border-radius:16px;
  padding:14px 16px;
  background:var(--accent);
  color:#fff;
  font-weight:800;
  font-size:16px;
  cursor:pointer;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(252, 180, 98,.55), 0 0 26px rgba(252, 180, 98,.18);
  filter: brightness(1.03);
}

.trustLine{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--stroke);
  color:var(--muted);
  font-size:13px;
}
.trustLine span{display:inline-flex; align-items:center; gap:8px}
.trustLine .miniDot{
  width:6px; height:6px; border-radius:999px;
  background:rgba(242,244,247,.25);
}

.sellerMini{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--stroke);
  display:flex;
  gap:12px;
  align-items:center;
}

/* Модальные окна */
.buy-modal-overlay{
  position:fixed; 
  inset:0;
  display:none;
  z-index:10000;
  pointer-events:none;
  background: transparent;
  overflow:hidden;
  align-items:center;
  justify-content:center;
  animation:none;
  transform:none;
}
.buy-modal-overlay.isOpen{
  display:flex;
  pointer-events:auto;
}
.buy-modal-dialog{
  position:relative;
  top:auto;
  left:auto;
  transform:none;
  width:400px;
  max-width:calc(100vw - 40px);
  background:var(--panel);
  border-radius:16px;
  border:1px solid var(--stroke);
  box-shadow:0 18px 55px rgba(0,0,0,.8);
  max-height:85vh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  pointer-events:auto;
  z-index:10001;
  margin:0;
}
.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 20px;
  border-bottom:1px solid var(--stroke);
  position:relative;
  flex-shrink:0;
}
.modal-header::after{
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:2px;
  background:var(--accent);
  opacity:0;
  transition:opacity .2s;
}
.modal.isOpen .modal-header::after{
  opacity:1;
}
.modal-header h2{
  margin:0;
  font-size:17px;
  font-weight:800;
  letter-spacing:.1px;
  flex:1;
  text-align:center;
}
.modal-close{
  width:28px; height:28px;
  border-radius:999px;
  border:0;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  display:grid; place-items:center;
  transition:background .16s;
  opacity:.7;
  font-size:18px;
  flex-shrink:0;
}
.modal-close:hover{
  background:rgba(255,255,255,.08);
  opacity:1;
}
.modal-body{
  padding:20px;
  flex:1;
  overflow-y:auto;
  min-height:0;
}
.modal-footer{
  display:flex;
  gap:12px;
  justify-content:space-between;
  align-items:center;
  padding:16px 20px;
  border-top:1px solid var(--stroke);
  background:rgba(255,255,255,.02);
  flex-shrink:0;
}
.modal-footer-price{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.modal-footer-price-amount{
  font-size:20px;
  font-weight:800;
  color:var(--text);
}
.modal-footer-price-label{
  font-size:11px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:5px;
}
.form-group{
  margin-bottom:16px;
}
.form-group label{
  display:block;
  margin-bottom:12px;
  font-weight:700;
  font-size:14px;
  color:var(--text);
}
.form-input{
  width:100%;
  padding:14px 16px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-size:14px;
  font-family:inherit;
  resize:vertical;
  transition:all .16s;
}
.form-input:focus{
  outline:none;
  border-color:var(--accent);
  background:rgba(255,255,255,.06);
  box-shadow:0 0 0 3px rgba(252, 180, 98,.1);
}
.delivery-info{
  background:rgba(255,255,255,.04);
  border-radius:12px;
  padding:14px;
  margin-top:16px;
  border:1px solid var(--stroke);
}
.delivery-info-title{
  font-weight:800;
  font-size:14px;
  color:var(--text);
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:8px;
}
.delivery-info-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 0;
  color:var(--muted);
  font-size:12px;
}
.delivery-info-item:last-child{
  padding-bottom:0;
}
.delivery-info-icon{
  width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.payment-methods{
  display:grid;
  gap:10px;
}
.payment-method{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  cursor:pointer;
  transition:all .16s;
  text-align:left;
  width:100%;
  position:relative;
}
.payment-method:hover{
  border-color:rgba(252, 180, 98,.4);
  background:rgba(255,255,255,.06);
}
.payment-method.selected{
  border-color:var(--accent);
  background:rgba(252, 180, 98,.1);
  box-shadow:0 0 0 2px rgba(252, 180, 98,.15);
}
.method-icon{
  font-size:28px;
  width:40px;
  text-align:center;
  flex-shrink:0;
}
.method-info{
  flex:1;
  min-width:0;
}
.method-name{
  font-weight:800;
  font-size:14px;
  color:var(--text);
  margin-bottom:3px;
}
.method-desc{
  font-size:12px;
  color:var(--muted);
}
.method-check{
  width:22px; height:22px;
  border-radius:999px;
  background:var(--accent);
  color:#061f17;
  display:grid; place-items:center;
  font-weight:900;
  font-size:12px;
  flex-shrink:0;
}
.payment-info-text{
  color:var(--muted);
  font-size:12px;
  margin-top:14px;
  text-align:center;
}
.btn{
  appearance:none; border:0;
  background:rgba(255,255,255,.06);
  color:var(--text);
  border-radius:999px;
  padding:10px 16px;
  font-weight:800; font-size:14px;
  cursor:pointer;
  transition:all .16s;
}
.btn:hover{
  background:rgba(255,255,255,.09);
}
.btn--ghost{background:transparent}
.btn--accent{
  background:var(--accent);
  color:#061f17;
  padding:12px 20px;
  font-size:14px;
  min-width:140px;
}
.btn--accent:hover{
  box-shadow:0 0 0 3px rgba(252, 180, 98,.16), 0 0 22px rgba(252, 180, 98,.18);
  transform:translateY(-1px);
}
.btn--accent:active{
  transform:translateY(0);
}
.btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}
.toast{
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  background:rgba(255,255,255,.14);
  border-radius:999px;
  padding:10px 16px;
  font-size:13px;
  font-weight:800;
  display:none;
  z-index:10001;
}
.toast.isOn{display:block}
.ava{
  width:44px; height:44px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.04);
  display:grid; place-items:center;
  font-weight:900;
  color:var(--muted);
}
.sellerMeta{
  flex:1;
  min-width:0;
}
.sellerMeta b{
  display:block;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.ratingRow{
  display:flex; align-items:center; gap:8px; flex-wrap:wrap;
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}
.stars{
  display:inline-flex; gap:2px;
}
.stars svg{width:14px; height:14px; opacity:.9}
.reviewsLink{
  margin-left:auto;
  border:1px solid var(--stroke);
  background:rgba(252, 180, 98,.08);
  color:var(--accent);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
  white-space:nowrap;
  text-decoration:none;
}
.reviewsLink:hover{
  transform: translateY(-1px);
  border-color: rgba(252, 180, 98,.5);
  background:rgba(252, 180, 98,.12);
  box-shadow: var(--glow);
}

.categoryLink, .sectionLink{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:8px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
  transition:all .16s ease;
}
.categoryLink:hover, .sectionLink:hover{
  border-color:rgba(252, 180, 98,.3);
  background:rgba(252, 180, 98,.08);
  color:var(--accent);
  transform:translateY(-1px);
}
.desc h3{
  margin:0 0 10px;
  font-size:16px;
  letter-spacing:.2px;
}
.desc p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}

.section{
  margin-top:22px;
}
.sectionHead{
  display:flex; align-items:end; justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
}
.sectionHead h2{
  margin:0;
  font-size:18px;
  letter-spacing:.2px;
}
.sectionHead a{
  color:var(--muted);
  font-size:13px;
  border-bottom:1px dashed rgba(255,255,255,.12);
  padding-bottom:2px;
}
.sectionHead a:hover{color:var(--text)}

.rail{
  position:relative;
  border-radius:var(--r20);
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.02);
  padding:12px;
  overflow:hidden;
}
.railTrack{
  display:flex;
  gap:12px;
  overflow:auto;
  scroll-behavior:smooth;
  padding-bottom:8px;
}
.railTrack::-webkit-scrollbar{height:10px}
.railTrack::-webkit-scrollbar-thumb{background:rgba(255,255,255,.10); border-radius:999px}
.railBtn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(14,17,22,.75);
  backdrop-filter: blur(6px);
  display:grid; place-items:center;
  cursor:pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
  opacity:0;
  pointer-events:none;
}
.rail:hover .railBtn{
  opacity:1;
  pointer-events:auto;
}
.railBtn:hover{
  transform:translateY(-50%) translateY(-1px);
  border-color: rgba(252, 180, 98,.35);
  box-shadow: var(--glow);
}
.railBtn.left{left:10px}
.railBtn.right{right:10px}
.railBtn svg{width:18px; height:18px}

.pCard{
  position:relative;
  display:block;
  width:260px;
  text-decoration:none;
  color:inherit;

  border-radius:22px;
  overflow:hidden;

  background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.030));
  border: 1px solid rgba(255,255,255,.12);

  box-shadow:
    0 14px 42px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -1px 0 rgba(0,0,0,.25);

  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);

  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  transform: translateZ(0);
  flex:0 0 auto;
}
.pCard:hover{
  transform: translateY(-3px);
  border-color: rgba(252, 180, 98, .34);
  box-shadow:
    0 18px 52px rgba(0,0,0,.42),
    0 0 0 1px rgba(252, 180, 98, .26),
    0 0 28px rgba(252, 180, 98, .12),
    inset 0 1px 0 rgba(255,255,255,.18);
}

.pInner{
  position:relative;
  z-index:2;
  padding: 14px;
}

/* ===== HEAD (иконка + категория + подкатегория) ===== */
.pHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 12px;
  min-height: 44px;
}

.pHeadLeft{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.pHeadIcon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;

  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  overflow:hidden;
  flex: 0 0 auto;
}
.pHeadIcon img{
  width:22px; height:22px;
  object-fit:contain;
  display:block;
  filter: drop-shadow(0 0 3px rgba(0,0,0,.35));
}
.pHeadIcon span{
  font-size:18px;
  line-height:1;
  filter: drop-shadow(0 0 3px rgba(0,0,0,.35));
}

.pHeadTxt{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}

.pHeadTitle{
  font-size:15px;
  font-weight:850;
  letter-spacing:.15px;
  color: var(--text-primary);

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 100%;
}
.pHeadSub{
  font-size:12px;
  font-weight:650;
  color: rgba(169,179,189,.95);

  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 100%;
}

.pHeadRight{
  display:flex;
  align-items:center;
  gap:8px;
  flex: 0 0 auto;
}

.pAutoPill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border-radius:999px;

  font-size:12px;
  font-weight:900;
  letter-spacing:.2px;

  color: rgba(255,255,255,.95);
  background: rgba(0, 227, 140, .10);
  border: 1px solid rgba(0, 227, 140, .20);

  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  white-space:nowrap;
}

/* ===== MEDIA ===== */
.pMedia{
  border-radius:18px;
  overflow:hidden;
  background: #0b0f14;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.pImg{
  width:100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display:block;
}
.pImg--empty{
  width:100%;
  aspect-ratio: 16 / 10;
  display:grid;
  place-items:center;
  color: var(--muted);
  font-size:12px;
  background:#0b0f14;
}

/* ===== INFO ===== */
.pInfo{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.pTitle{
  margin:0;
  font-size:15px;
  font-weight:850;
  line-height:1.22;
  letter-spacing:.12px;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: 38px;
}

.pPriceRow{
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}

.pPriceNow{
  font-size:21px;
  font-weight:950;
  letter-spacing:.2px;
  color: var(--accent-amber);
  line-height:1;
}

.pDiscountInline{
  font-size:13px;
  font-weight:950;
  color: #ff6b6b;
  letter-spacing:.2px;
  line-height:1;
}

.pPriceOld{
  font-size:12px;
  font-weight:850;
  color: rgba(111,122,131,1);
  text-decoration: line-through;
  line-height:1;
}

.pDiscountPill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;

  color:#fff;
  background: rgba(255, 77, 77, .14);
  border: 1px solid rgba(255, 77, 77, .26);

  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

/* === GAME ICON (PLAYEROK STYLE) === */
.pGameIcon{
  position:absolute;
  top:10px;
  left:10px;
  width:38px;
  height:38px;
  border-radius:10px;
  background:rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.12),
    0 6px 16px rgba(0,0,0,.35);
}
.pGameIcon img{
  width:22px;
  height:22px;
  object-fit:contain;
}
.pGameIcon span{
  font-size:18px;
}

/* === IMAGE OVERLAY === */
.pImgWrap{
  position:relative;
}
.pImgWrap::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.0) 40%,
    rgba(0,0,0,.45) 100%
  );
  pointer-events:none;
}
.pImg{
  width:100%;
  aspect-ratio: 16 / 10;
  object-fit:cover;
  display:block;
  background:var(--bg-deep);
}
.pBody{padding:12px 12px 14px}

/* === TITLE + META === */
.pTitle{
  margin-top:2px;
  margin:0;
  font-size:14px;
  font-weight:800;
  line-height:1.25;
  letter-spacing:.15px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height: 36px;
}
.pCategory{
  font-size:11px;
  color:var(--text-secondary);
  margin-bottom:4px;
  font-weight:600;
  letter-spacing:.2px;
}
.pMeta{
  margin-top:8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}
/* === PRICE BLOCK REFINED === */
.pPrice{
  margin-top:10px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}
.pPrice b{
  color:var(--accent);
  font-size:18px;
  letter-spacing:.2px;
}
.pPrice s{
  color:var(--dim);
  font-size:12px;
  font-weight:700;
}
.pBadge{
  margin-top:8px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(244, 111, 114,.22);
  background:rgba(244, 111, 114,.14);
  color:var(--text);
  font-size:12px;
  font-weight:800;
}

@media (max-width: 980px){
  .grid{grid-template-columns: 1fr;}
  .buy{position:relative; top:auto}
}
@media (prefers-reduced-motion: reduce){
  *{transition:none !important; scroll-behavior:auto !important}
}


