/* DJRGAMES Store V3 Premium - arquivo cirúrgico só para index.php */
:root{
  --djr-bg:#061225;
  --djr-bg2:#081a35;
  --djr-panel:rgba(10,28,57,.82);
  --djr-panel2:rgba(7,18,38,.92);
  --djr-card:#0a1b36;
  --djr-stroke:rgba(185,207,255,.16);
  --djr-stroke2:rgba(255,212,0,.28);
  --djr-text:#f8fbff;
  --djr-soft:#b9c7e8;
  --djr-yellow:#ffd426;
  --djr-yellow2:#ffe681;
  --djr-shadow:0 18px 50px rgba(0,0,0,.36);
  --djr-radius:24px;
}

body.djr-store-v3{
  margin:0;
  color:var(--djr-text);
  background:
    radial-gradient(circle at 18% -10%, rgba(31,91,180,.42), transparent 32%),
    radial-gradient(circle at 88% 0%, rgba(255,212,38,.12), transparent 25%),
    linear-gradient(180deg,#071a36 0%,#061225 42%,#020712 100%);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}

body.djr-store-v3 .container{display:none!important;}
.djr-page{max-width:1240px;margin:0 auto;padding:18px 18px 34px;}

.djr-header{
  position:relative;
  border:1px solid var(--djr-stroke);
  border-radius:0 0 30px 30px;
  padding:18px 18px 16px;
  background:
    linear-gradient(180deg,rgba(4,10,23,.98),rgba(7,20,43,.92)),
    radial-gradient(circle at center top,rgba(255,212,38,.14),transparent 40%);
  box-shadow:var(--djr-shadow);
  text-align:center;
  overflow:hidden;
}
.djr-header:before{
  content:"";position:absolute;inset:auto 8% 0;height:1px;
  background:linear-gradient(90deg,transparent,var(--djr-yellow),transparent);opacity:.42;
}
.djr-logo{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;}
.djr-logo img{height:86px;width:auto;max-width:min(540px,88vw);filter:drop-shadow(0 12px 22px rgba(0,0,0,.48));}
.djr-header-title{
  margin-top:-6px;
  color:var(--djr-soft);
  font-size:.92rem;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.djr-nav{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:16px;
}
.djr-nav a{
  display:inline-flex;align-items:center;gap:7px;
  color:var(--djr-text);text-decoration:none;
  border:1px solid var(--djr-stroke);
  border-radius:999px;
  padding:8px 12px;
  font-size:.84rem;
  font-weight:850;
  background:rgba(255,255,255,.055);
  transition:.16s ease;
}
.djr-nav a:hover{transform:translateY(-1px);border-color:var(--djr-stroke2);background:rgba(255,212,38,.08);}
.djr-nav b{
  color:#111827;background:linear-gradient(135deg,var(--djr-yellow),var(--djr-yellow2));
  min-width:24px;height:24px;padding:0 7px;border-radius:999px;display:inline-grid;place-items:center;font-size:.78rem;
}

.djr-store-intro{
  margin:16px 0 12px;
  padding:16px;
  border:1px solid var(--djr-stroke);
  border-radius:var(--djr-radius);
  background:
    radial-gradient(circle at 8% 0%,rgba(255,212,38,.10),transparent 32%),
    linear-gradient(135deg,rgba(12,37,77,.92),rgba(5,14,31,.88));
  box-shadow:0 14px 38px rgba(0,0,0,.25);
}
.djr-intro-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 12px;color:var(--djr-soft);}
.djr-intro-line span{font-size:.78rem;font-weight:950;letter-spacing:.13em;text-transform:uppercase;color:var(--djr-yellow2);}
.djr-intro-line strong{font-size:1rem;color:#fff;}

.djr-search{
  display:grid;
  grid-template-columns:auto minmax(160px,1fr) auto;
  align-items:center;
  gap:10px;
  padding:9px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:22px;
  background:rgba(2,7,18,.74);
}
.djr-search span{font-size:1.25rem;margin-left:8px;}
.djr-search input{
  min-width:0;
  border:0;outline:0;background:transparent;color:var(--djr-text);
  font-size:1.05rem;padding:9px 2px;
}
.djr-search input::placeholder{color:rgba(215,226,255,.56);}
.djr-search button,
.djr-filter-row button,
.djr-card-actions .btn-cart{
  border:0;
  border-radius:16px;
  padding:11px 18px;
  background:linear-gradient(135deg,var(--djr-yellow),var(--djr-yellow2));
  color:#111827;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(255,212,38,.16);
}

.djr-category-bar{
  display:flex;gap:9px;overflow:auto;padding:13px 0 2px;scrollbar-width:thin;
}
.djr-category-bar a{
  flex:0 0 auto;
  text-decoration:none;color:var(--djr-text);
  border:1px solid var(--djr-stroke);
  border-radius:999px;
  padding:9px 13px;
  font-size:.88rem;
  font-weight:900;
  background:rgba(255,255,255,.06);
  transition:.16s ease;
}
.djr-category-bar a.active,
.djr-category-bar a:hover{
  background:linear-gradient(135deg,var(--djr-yellow),var(--djr-yellow2));
  color:#111827;border-color:rgba(255,212,38,.9);
}

.djr-filter-row{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.10);
  display:grid;
  grid-template-columns:220px 240px auto auto;
  gap:10px;align-items:center;
}
.djr-filter-row select{
  min-width:0;width:100%;
  background:rgba(2,7,18,.76);
  color:var(--djr-text);
  border:1px solid rgba(255,255,255,.16);
  border-radius:16px;
  padding:11px 12px;
  font-size:.92rem;
}
.djr-clear{
  color:var(--djr-soft);text-decoration:none;font-weight:850;border:1px solid var(--djr-stroke);border-radius:16px;padding:10px 13px;text-align:center;background:rgba(255,255,255,.04);
}

.djr-benefits{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:12px 0 18px;
}
.djr-benefits a{
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:10px;
  text-decoration:none;color:var(--djr-text);
  border:1px solid var(--djr-stroke);
  border-radius:20px;
  padding:12px 14px;
  background:rgba(255,255,255,.055);
  transition:.16s ease;
}
.djr-benefits a:hover{transform:translateY(-1px);border-color:var(--djr-stroke2);background:rgba(255,212,38,.075);}
.djr-benefits span{grid-row:1/3;width:38px;height:38px;border-radius:14px;display:grid;place-items:center;background:rgba(255,255,255,.075);font-size:1.15rem;}
.djr-benefits strong{font-size:.96rem;}
.djr-benefits small{color:var(--djr-soft);font-size:.78rem;line-height:1.25;}

.djr-catalog{margin-top:10px;}
.djr-section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:12px;}
.djr-section-head h1{margin:0;font-size:1.45rem;line-height:1.15;}
.djr-section-head p{margin:6px 0 0;color:var(--djr-soft);font-size:.9rem;}
.djr-section-head > span{color:#cdd9fb;font-weight:850;white-space:nowrap;}
.djr-empty{color:var(--djr-soft);}

.djr-products.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:16px;
}
.djr-product{
  position:relative;
  overflow:hidden;
  border:1px solid var(--djr-stroke);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(13,35,71,.96),rgba(6,17,37,.98));
  box-shadow:0 12px 34px rgba(0,0,0,.22);
  transition:.16s ease;
}
.djr-product:hover{transform:translateY(-3px);border-color:rgba(255,212,38,.34);box-shadow:0 18px 42px rgba(0,0,0,.32);}
.djr-product-link{display:block;color:inherit;text-decoration:none;}
.djr-product-img{
  margin:12px 12px 0;
  width:calc(100% - 24px);
  aspect-ratio:1/1;
  border-radius:20px;
  background:#07172f center/cover no-repeat;
  border:1px solid rgba(255,255,255,.13);
}
.djr-product-body{padding:12px 14px 10px;}
.djr-product-body h2{margin:0;font-size:1rem;line-height:1.25;min-height:2.45em;}
.djr-product-body p{margin:7px 0 0;color:var(--djr-soft);font-size:.82rem;line-height:1.3;}
.djr-price-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;}
.djr-price-row strong{font-size:1.1rem;color:var(--djr-yellow2);}
.djr-price-row span{font-size:.82rem;color:#dce7ff;border:1px solid var(--djr-stroke);border-radius:999px;padding:4px 8px;background:rgba(255,255,255,.045);}
.djr-card-actions{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  padding:0 12px 12px;
}
.djr-card-actions .btn-cart{padding:10px 12px;font-size:.86rem;}
.djr-card-actions a{
  display:grid;place-items:center;
  text-decoration:none;color:var(--djr-text);
  border:1px solid var(--djr-stroke);
  border-radius:16px;
  padding:10px 12px;
  background:rgba(255,255,255,.055);
  font-weight:900;font-size:.86rem;
}
.djr-badge{
  position:absolute;top:16px;left:16px;z-index:4;
  background:linear-gradient(135deg,var(--djr-yellow),var(--djr-yellow2));
  color:#111827;border-radius:999px;padding:6px 10px;font-size:.75rem;font-weight:950;
  box-shadow:0 10px 25px rgba(0,0,0,.36);
}

.djr-pager{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:18px 0;}
.djr-pager a,.djr-pager b,.djr-pager span{
  color:var(--djr-text);text-decoration:none;border:1px solid var(--djr-stroke);border-radius:12px;padding:7px 10px;background:rgba(255,255,255,.05);
}
.djr-pager b{color:#111827;background:linear-gradient(135deg,var(--djr-yellow),var(--djr-yellow2));}
.djr-pager span{color:var(--djr-soft);}
.djr-footer{text-align:center;color:var(--djr-soft);font-size:.82rem;margin:26px 0 4px;}

body.djr-store-v3 .toast{
  position:fixed;left:50%;transform:translateX(-50%);bottom:24px;z-index:100;
  background:#081a35;color:#fff;border:1px solid var(--djr-stroke);border-radius:999px;padding:11px 16px;opacity:0;pointer-events:none;transition:.2s;
}
body.djr-store-v3 .toast.show{opacity:1;bottom:34px;}

@media(max-width:820px){
  .djr-page{padding:10px 10px 28px;}
  .djr-header{border-radius:0 0 24px 24px;padding:13px 10px 12px;}
  .djr-logo img{height:62px;max-width:92vw;}
  .djr-header-title{font-size:.78rem;margin-top:-3px;}
  .djr-nav{justify-content:flex-start;overflow:auto;flex-wrap:nowrap;padding-bottom:2px;margin-top:12px;}
  .djr-nav a{flex:0 0 auto;font-size:.8rem;padding:8px 10px;}
  .djr-store-intro{margin-top:10px;padding:12px;border-radius:20px;}
  .djr-intro-line strong{font-size:.92rem;}
  .djr-search{grid-template-columns:auto 1fr;gap:6px;border-radius:18px;}
  .djr-search button{grid-column:1/3;width:100%;}
  .djr-category-bar a{font-size:.82rem;padding:8px 10px;}
  .djr-filter-row{grid-template-columns:1fr 1fr;gap:8px;}
  .djr-filter-row button,.djr-clear{grid-column:span 1;}
  .djr-benefits{grid-template-columns:1fr;gap:8px;margin-bottom:14px;}
  .djr-benefits a{padding:10px 12px;}
  .djr-section-head{align-items:flex-start;}
  .djr-section-head h1{font-size:1.18rem;}
  .djr-section-head p{font-size:.8rem;}
  .djr-section-head > span{font-size:.78rem;}
  .djr-products.products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .djr-product{border-radius:19px;}
  .djr-product-img{margin:8px 8px 0;width:calc(100% - 16px);border-radius:15px;}
  .djr-product-body{padding:9px 10px 8px;}
  .djr-product-body h2{font-size:.86rem;}
  .djr-product-body p{font-size:.74rem;}
  .djr-price-row{align-items:flex-start;flex-direction:column;gap:5px;}
  .djr-price-row strong{font-size:.96rem;}
  .djr-price-row span{font-size:.72rem;padding:3px 7px;}
  .djr-card-actions{grid-template-columns:1fr;padding:0 8px 8px;gap:6px;}
  .djr-card-actions .btn-cart,.djr-card-actions a{padding:9px 8px;font-size:.78rem;border-radius:13px;}
}

@media(max-width:430px){
  .djr-logo img{height:54px;}
  .djr-search input{font-size:.94rem;}
  .djr-filter-row{grid-template-columns:1fr;}
  .djr-filter-row button,.djr-clear{grid-column:auto;}
}

/* V4 ajustes: topo fixo, DJRCOINS integrado, login obrigatório para comprar */
body.djr-store-v3{padding-top:0;}
.djr-page{max-width:1260px;}
.djr-header{
  position:sticky;
  top:0;
  z-index:60;
  margin:0 0 18px;
  border-radius:0 0 28px 28px;
  padding:12px 16px 14px;
  backdrop-filter:blur(18px);
}
.djr-logo img{height:104px;max-width:min(620px,90vw);}
.djr-header-title{
  color:#ffe681;
  font-size:.88rem;
  letter-spacing:.18em;
  margin-top:-12px;
}
.djr-nav{margin-top:12px;}
.djr-nav a{min-height:38px;padding:8px 12px;}
.djr-nav .djr-coin-pill{
  background:linear-gradient(135deg,#ffd426,#ffb000);
  color:#101827!important;
  border-color:rgba(255,212,38,.9);
  box-shadow:0 10px 24px rgba(255,212,38,.18);
}
.djr-nav .djr-coin-pill b{
  background:rgba(17,24,39,.92);
  color:#ffd426;
  border:1px solid rgba(17,24,39,.20);
}
.djr-nav .djr-login-pill{
  background:rgba(255,212,38,.10);
  border-color:rgba(255,212,38,.36);
}
.djr-login-cart{
  background:rgba(255,212,38,.10)!important;
  border-color:rgba(255,212,38,.34)!important;
  color:#ffe681!important;
}
.djr-card-actions{grid-template-columns:1fr auto;}
@media(max-width:820px){
  .djr-header{position:sticky;padding:10px 10px 12px;margin:0 0 12px;}
  .djr-logo img{height:72px;}
  .djr-header-title{margin-top:-8px;font-size:.70rem;}
  .djr-nav{justify-content:flex-start;}
  .djr-card-actions{grid-template-columns:1fr;}
}
@media(max-width:430px){.djr-logo img{height:62px;}}
