/* styles.css — dark shop layout with floating Pokéball background */

/* Theme */
:root{
  --bg:#0b0c10;
  --panel:#12141b;
  --text:#eef2ff;
  --muted:#a8b0c2;
  --line:#23283a;
  --accent:#7c3aed;
}

/* Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background:url("logo.jpeg");
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  color:var(--text);
}

/* Floating Pokéball pattern */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  opacity:0.08;

  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Ccircle cx='70' cy='70' r='46' fill='none' stroke='white' stroke-opacity='0.5' stroke-width='3'/%3E%3Cpath d='M24 70h92' stroke='white' stroke-opacity='0.5' stroke-width='3'/%3E%3Ccircle cx='70' cy='70' r='10' fill='none' stroke='white' stroke-opacity='0.6' stroke-width='3'/%3E%3C/svg%3E");

  background-repeat:repeat;
  background-size:160px 160px;

  animation: floatPattern 30s linear infinite;
}

@keyframes floatPattern{
  from{ background-position:0 0; }
  to{ background-position:320px -320px; }
}

/* Dark overlay so text stays readable */
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  background:rgba(0,0,0,.55);
}

a{ color:inherit; }

/* Layout */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 16px;
}

/* Header */
.site-header{
  padding:18px 0;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:240px;
}
.brand-logo{
  width:52px;
  height:52px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  object-fit:cover;
}
.brand-name{
  font-weight:900;
  font-size:24px;
}
.brand-tagline{
  margin-top:2px;
  color:var(--muted);
  font-size:13px;
}

/* Header links */
.header-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:right;
}
.pill{
  border:3px solid var(--line);
  background:rgba(255,255,255,.04);
  padding:8px 20px;
  border-radius:999px;
  font-size:20px;
  font-weight:700;
  text-decoration:none;
  transition:.2s;
}
.pill:hover{
  border-color:#fff200;
  transform:translateY(-5px);
  opacity:.92;
}

/* Controls */
.controls{
  padding:12px 0 12px;
}
.controls-inner{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.input,.select{
  border:1px solid var(--line);
  background:#1f2937;
  color:pink;
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
.input{
  flex:1;
  min-width:240px;
}
.select{
  min-width:170px;
}

/* Main spacing so cart bar doesn't cover content */
main.container{
  padding-top:6px;
  padding-bottom:140px;
}

/* Category headings + grid */
.section-title{
  margin:26px 0 12px;
  font-size:20px;
  font-weight:900;
  text-align:center;
  letter-spacing:1px;
}
.grid{
  display:grid;
  grid-template-columns:repeat(1, minmax(0, 1fr));
  gap:12px;
}
@media (min-width:720px){
  .grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (min-width:1020px){
  .grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
}

/* Product card */
.card{
  border:1px solid var(--line);
  background:rgba(18,20,27,.75);
  border-radius:18px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.card-media{
  height:150px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(135deg, rgba(124,58,237,.35), rgba(255,255,255,.05));
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.75);
  font-size:13px;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.card-body{
  padding:12px;
}
.card-title{
  font-size:30px;
  font-weight:900;
  margin:0 0 10px;
}
.meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:12px;
}
.badge{
  border:1px solid var(--line);
  padding:4px 10px;
  border-radius:999px;
  background:pink;
  color:black;
  font-size:12px;
  font-weight:600;
}

.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
}
.price{
  font-weight:900;
}

.status{
  font-size:15px;
  font-weight:600;
  margin-top:2px;
}
.status.in{ color:#86efac; }
.status.out{ color:#ff1919; }
.status.pre{ color:#fde68a; }

/* Variant select */
.variant{
  width:100%;
  margin-top:10px;
  border:1px solid var(--line);
  background:pink;
  border-radius:12px;
  padding:9px 10px;
  color:black;
  outline:none;
}

/* Qty controls */
.qty{
  display:flex;
  align-items:center;
  gap:10px;
}
.qtynum{
  min-width:24px;
  text-align:center;
  font-weight:900;
}
.btn-mini{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
}
.btn-mini:disabled{ opacity:.55; cursor:not-allowed; }

/* minus red */
.qty .btn-mini:first-child{
  background:#ef4444;
  color:white;
  border:none;
}

/* plus green */
.qty .btn-mini:last-child{
  background:#22c55e;
  color:white;
  border:none;
}

.qty .btn-mini:hover{
  transform:scale(1.05);
  opacity:0.9;
}

/* Cart bar */
.cartbar{
  position:fixed;
  left:0; right:0; bottom:0;
  border-top:1px solid var(--line);
  background:rgba(10,11,16,.88);
  backdrop-filter: blur(10px);
}
.cartbar-inner{
  padding:14px 0;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.cart-title{ font-weight:950; }
.cart-total{ color:var(--muted); font-size:13px; }

.cart-actions{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Buttons */
.btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  border-radius:14px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:850;
}
.btn.primary{
  background:var(--accent);
  border-color:#4c1d95;
  color:white;
}
.btn.primary:disabled{ opacity:.55; cursor:not-allowed; }

/* Cart drawer */
.cart-box{
  border:1px solid var(--line);
  background:rgba(18,20,27,.75);
  border-radius:18px;
  padding:12px;
}

.lineitem{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:8px 0;
  border-bottom:1px dashed rgba(255,255,255,.10);
}

.small{
  color:var(--muted);
  font-size:12px;
}

/* Brand buttons */
#linkCarousell{
  background:#e61710 !important;
  color:white !important;
  border:none !important;
}

#linkTelegram{
  background:#229ED9 !important;
  color:white !important;
  border:none !important;
}

#linkWhatsApp{
  background:#25D366 !important;
  color:white !important;
  border:none !important;
}

/* Toast notification */
.toast{
  position:fixed;
  top:18px;
  right:18px;
  z-index:9999;
  max-width:320px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(17,24,39,.92);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  font-weight:800;
  font-size:14px;
  box-shadow:0 12px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  transform: translateY(-8px);
  opacity:0;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show{
  opacity:1;
  transform: translateY(0);
}

.toast.success{ border-color: rgba(34,197,94,.45); }
.toast.danger{ border-color: rgba(239,68,68,.45); }
.toast.info{ border-color: rgba(99,102,241,.45); }

.qty .btn-mini:active{
  transform:scale(.92);
}
/* Category pill */
.cat-pill{
  display:inline-block;
  padding:10px 26px;
  border-radius:999px;
  font-size:45px;
  font-weight:900;
  border:none;
  transition:all .25s ease;
}

/* English category */
.cat-pill.english{
  background:#65d4e0;
  color:black;
  animation:blueGlow 1s ease-in-out infinite alternate;
}

/* Japanese category */
.cat-pill.japanese{
  background:#facc15;
  color:black;
  animation:goldGlow 1s ease-in-out infinite alternate;
}

/* Hover animation */
.cat-pill:hover{
  transform:translateY(-3px) scale(1.05);
}

/* Center title */
.section-title{
  text-align:center;
}

/* Blue glow animation */
@keyframes blueGlow{
  from{
    box-shadow:
      0 0 12px rgba(37,99,235,.8),
      0 0 24px rgba(37,99,235,.7),
      0 0px 40px rgba(37,99,235,.6),
      0 10px 25px rgba(0,0,0,.45);
  }
  to{
    box-shadow:
      0 0 20px rgba(37,99,235,1),
      0 0 40px rgba(37,99,235,.9),
      0 0px 70px rgba(37,99,235,.8),
      0 14px 35px rgba(0,0,0,.55);
  }
}

/* Gold glow animation */
@keyframes goldGlow{
  from{
    box-shadow:
      0 0 6px rgba(250,204,21,.6),
      0 0 12px rgba(250,204,21,.4),
      0 6px 14px rgba(0,0,0,.35);
  }
  to{
    box-shadow:
      0 0 16px rgba(250,204,21,.9),
      0 0 30px rgba(250,204,21,.6),
      0 10px 22px rgba(0,0,0,.45);
  }
}

/* Checkout loading spinner */
.btn-spinner{
  display:inline-block;
  width:16px;
  height:16px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#ffffff;
  border-radius:50%;
  animation:spin .8s linear infinite;
  vertical-align:middle;
  margin-right:8px;
}

@keyframes spin{
  to{ transform:rotate(360deg); }
}

/* Shipping extra slide-down animation */
.shipping-extra{
  grid-column:1 / -1;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .35s ease, opacity .25s ease;
}

.shipping-extra.show{
  max-height:120px;
  opacity:1;
}

.shipping-extra-inner{
  display:grid;
  grid-template-columns:1fr 220px;
  gap:10px;
  padding-top:10px;
}

@media (max-width:720px){
  .shipping-extra-inner{
    grid-template-columns:1fr;
  }
}

.pokeball-fly {
  position: fixed;
  width: 34px;
  height: 34px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, opacity;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}

.cartbar.bump-cart {
  animation: cartBounce 0.45s ease;
}

@keyframes cartBounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-6px); }
  60%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

/* Make space so content can scroll above fixed cart bar */
body {
  padding-bottom: 120px;
}

/* Legal footer links */
.legal-links{
  display:flex;
  justify-content:center;
  gap:24px;
  padding:18px 12px 90px;
  font-size:13px;
  color:#ccc;
  border-top:1px solid rgba(255,255,255,0.08);
}

.legal-links a{
  text-decoration:none;
  color:#ccc;
  transition:all .2s ease;
}

.legal-links a:hover{
  color:#ffffff;
  text-decoration:underline;
  transform:translateY(-1px);
}

/* ===============================
   Premium Legal Page Styling
   =============================== */

.legal-page{
  max-width:900px;
  margin:auto;
  padding:40px 20px 140px;
}

.legal-card{
  background:rgba(0,0,0,0.60);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  padding:32px;
  backdrop-filter:blur(6px);
  box-shadow:0 10px 30px rgba(0,0,0,0.35);
}

.legal-card h1{
  margin-top:0;
  margin-bottom:10px;
  font-size:28px;
  font-weight:700;
}

.legal-card h2{
  margin-top:28px;
  margin-bottom:8px;
  font-size:18px;
  font-weight:600;
}

.legal-card p{
  line-height:1.6;
  opacity:0.95;
}

.legal-card ul{
  margin-left:20px;
  line-height:1.6;
}

.legal-card li{
  margin-bottom:6px;
}

/* Professional brand link */

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  cursor:pointer;
}

.brand-logo{
  width:42px;
  height:42px;
  border-radius:10px;
}

.brand-name{
  font-weight:700;
  font-size:18px;
  letter-spacing:.2px;
}

.brand-tagline{
  font-size:12px;
  opacity:.7;
}

/* subtle professional hover */

.brand:hover{
  opacity:0.9;
}


