@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;500;600;700;800&display=swap');

:root{
  --bg:#07111c;
  --panel:#0a1724;
  --panel2:#0d1b2a;
  --line:#173149;
  --text:#f5f8fb;
  --muted:#8ca1b4;
  --blue:#2b7fff;
  --blue2:#1768df;
  --radius:18px;
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  direction:rtl;
  color:var(--text);
  font-family:'Assistant',system-ui,-apple-system,Segoe UI,sans-serif;
  background:
    radial-gradient(700px 300px at 50% 0,rgba(43,127,255,.10),transparent 70%),
    var(--bg);
}

a{text-decoration:none;color:inherit}
button{font:inherit;cursor:pointer}
img{display:block;max-width:100%}

.container{
  width:min(1180px,calc(100% - 28px));
  margin:auto;
}

.page{
  padding:42px 0 72px;
}

.brand-area{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:12px 0 44px;
}

.brand-logo{
  width:min(420px,78vw);
  max-height:145px;
  object-fit:contain;
}

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

.product-card{
  overflow:hidden;
  border:1px solid #132a3f;
  border-radius:var(--radius);
  background:linear-gradient(180deg,#0c1927,#081521);
  transition:.2s ease;
}

.product-card:hover{
  transform:translateY(-3px);
  border-color:#285171;
}

.product-image{
  aspect-ratio:16/10;
  background:#0e1c2b;
  overflow:hidden;
}

.product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.placeholder{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#345675;
  font-size:27px;
  font-weight:800;
  direction:ltr;
}

.product-body{
  padding:16px;
}

.product-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.product-card h2{
  margin:0;
  font-size:21px;
}

.price{
  direction:ltr;
  white-space:nowrap;
  font-size:20px;
  font-weight:800;
}

.old-price{
  margin-right:6px;
  color:#70879a;
  font-size:13px;
  font-weight:500;
  text-decoration:line-through;
}

.product-card p{
  margin:9px 0 14px;
  color:var(--muted);
  line-height:1.6;
}

.product-actions{
  display:flex;
  gap:8px;
}

.btn{
  flex:1;
  border:1px solid var(--line);
  background:#0c1a28;
  color:#fff;
  border-radius:10px;
  padding:10px 13px;
  font-weight:700;
  text-align:center;
}

.btn:hover{
  border-color:#315878;
}

.btn.primary{
  background:var(--blue);
  border-color:var(--blue);
}

.btn.primary:hover{
  background:var(--blue2);
}

.empty{
  grid-column:1/-1;
  padding:44px 20px;
  text-align:center;
  color:var(--muted);
  border:1px dashed var(--line);
  border-radius:var(--radius);
  background:#091522;
}

.modal{
  position:fixed;
  inset:0;
  z-index:50;
  display:none;
}

.modal.open{
  display:block;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,7,12,.82);
  backdrop-filter:blur(6px);
}

.modal-card{
  position:relative;
  z-index:2;
  width:min(920px,calc(100% - 24px));
  max-height:90vh;
  overflow:auto;
  margin:5vh auto;
  border:1px solid var(--line);
  border-radius:18px;
  background:#081522;
  box-shadow:0 24px 70px rgba(0,0,0,.4);
}

.modal-close{
  position:sticky;
  top:10px;
  float:left;
  z-index:4;
  margin:10px;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#0e1b28;
  color:#fff;
  font-size:24px;
}

.product-detail{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  clear:both;
}

.gallery{
  padding:18px;
  border-left:1px solid var(--line);
}

.gallery-main{
  aspect-ratio:16/11;
  overflow:hidden;
  border-radius:13px;
  border:1px solid var(--line);
  background:#0e1c2b;
}

.gallery-main img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.thumbs{
  display:flex;
  gap:8px;
  overflow:auto;
  margin-top:8px;
}

.thumb{
  width:76px;
  height:56px;
  padding:0;
  flex:none;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:8px;
  background:#0b1825;
}

.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.detail-copy{
  padding:24px;
}

.detail-copy h2{
  margin:0 0 8px;
  font-size:32px;
}

.description{
  color:var(--muted);
  line-height:1.8;
  white-space:pre-wrap;
}

.detail-copy ul{
  padding-right:18px;
  color:#c8d6e2;
  line-height:1.9;
}

.detail-price{
  direction:ltr;
  text-align:right;
  font-size:28px;
  font-weight:800;
  margin:18px 0;
}

@media(max-width:900px){
  .catalog-grid{grid-template-columns:repeat(2,1fr)}
  .product-detail{grid-template-columns:1fr}
  .gallery{
    border-left:0;
    border-bottom:1px solid var(--line);
  }
}

@media(max-width:600px){
  .page{padding-top:24px}
  .brand-area{padding-bottom:28px}
  .catalog-grid{grid-template-columns:1fr}
  .product-top{flex-direction:column}
}


.hidden{display:none!important}

.brand-area{
  position:relative;
}

.login-area{
  position:absolute;
  top:10px;
  right:0;
}

.discord-login{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:9px 13px;
  border:1px solid #273958;
  border-radius:11px;
  background:#101a2d;
  color:#fff;
  font-weight:700;
}

.discord-login:hover{
  border-color:#5865F2;
}

.discord-login svg{
  width:21px;
  height:17px;
  color:#5865F2;
}

.discord-profile{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:46px;
  padding:6px 9px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0b1825;
}

.discord-profile img{
  width:34px;
  height:34px;
  border-radius:10px;
  object-fit:cover;
  background:#101f2d;
}

.profile-copy{
  display:grid;
  gap:1px;
  min-width:0;
  text-align:right;
}

.profile-copy strong{
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}

.profile-copy span{
  direction:ltr;
  text-align:right;
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--muted);
  font-size:12px;
}

.logout{
  padding-right:9px;
  border-right:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
}

.logout:hover{
  color:#fff;
}

@media(max-width:600px){
  .brand-area{
    padding-top:66px;
  }

  .login-area{
    top:0;
    right:50%;
    transform:translateX(50%);
    width:max-content;
    max-width:100%;
  }

  .discord-login span{
    display:inline;
  }
}
