:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e5e7eb;
  --card:#ffffff;
  --primary:#0b1220;
  --primaryText:#ffffff;
  --ring:rgba(15,23,42,.12);
  --shadow:0 10px 30px rgba(2,6,23,.08);
  --radius:18px;
  --radiusSm:12px;
  --max:1100px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}

a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:var(--max);margin:0 auto;padding:18px}

/* ===== Header ===== */
.header{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:flex-start;
}
.nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap
}
.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  background:var(--primary);
  color:var(--primaryText);
  font-size:12px;
  font-weight:700
}

/* Brand (logo + yazı) */
.brand{
  display:flex;
  align-items:center;
  gap:10px;              /* yakınlık */
  line-height:1;
  white-space:nowrap;
  font-weight:900;
  letter-spacing:.2px;
}
.brand-logo{
  width:126px;
  height:126px;
  display:block;
  margin:0;
}
.brand-name{
  display:flex;
  align-items:center;
  font-size:22px;
  font-weight:900;
  line-height:1;
  letter-spacing:.2px;
  margin:0;
  padding:0;
  transform:translateY(-2px);  /* yazı biraz yukarı */
}

/* Search */
.search{
  flex:1;
  min-width:220px;
  max-width:560px;
  display:flex;
  gap:10px
}
.search input{
  flex:1;
  height:42px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--border);
  outline:none;
}
.search button{
  height:42px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer
}
.search button:hover{box-shadow:0 0 0 4px var(--ring)}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:42px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid var(--primary);
  background:var(--primary);
  color:var(--primaryText);
  font-weight:800;
  cursor:pointer;
}
.btn:hover{box-shadow:0 0 0 4px var(--ring);text-decoration:none}

.btn-ghost{
  border:1px solid var(--border);
  background:#fff;
  color:var(--text);
}

.linklike{
  border:none;
  background:transparent;
  padding:8px 10px;
  cursor:pointer;
  color:inherit;
  font:inherit;
  border-radius:999px;
}
.linklike:hover{
  text-decoration:none;
  background:#fff;
  box-shadow:0 0 0 4px rgba(15,23,42,.06);
}

.nav a:not(.btn){
  padding:8px 10px;
  border-radius:999px;
}
.nav a:not(.btn):hover{
  text-decoration:none;
  background:#fff;
  box-shadow:0 0 0 4px rgba(15,23,42,.06);
}

/* ===== Layout / Components ===== */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.pad{padding:16px}

.grid{display:grid;gap:14px}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}

.h1{font-size:44px;line-height:1.05;margin:0}
.muted{color:var(--muted)}
.small{font-size:13px}

.hero{display:flex;align-items:center;justify-content:space-between;gap:16px}
.hero .actions{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}

.product{display:flex;flex-direction:column;gap:10px}
.product img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:var(--radiusSm);
  border:1px solid var(--border);
  background:#fff;
}
.price{font-weight:900}
.row{display:flex;align-items:center;justify-content:space-between;gap:10px}

hr{border:none;border-top:1px solid var(--border);margin:12px 0}

/* ===== Category Icons ===== */
.cat-icon{width:18px;height:18px;display:inline-block;object-fit:contain}
.cat-emoji{font-size:16px;line-height:1}

/* ===== Auth (Login/Register) ===== */
.auth{
  margin:24px auto;
  padding:0 18px;
}
.auth.auth-narrow{max-width:520px}
.auth.auth-wide{max-width:760px}

.auth-card{overflow:hidden}
.auth-head{padding:22px 22px 0 22px}
.auth-head h1{margin:0 0 6px 0;font-size:32px;letter-spacing:-.4px}
.auth-head p{margin:0}

.auth-body{padding:16px 22px 22px 22px}

.auth label{
  display:block;
  margin:10px 0;
  font-size:13px;
  color:var(--muted);
}
.auth input{
  width:100%;
  height:44px;
  padding:0 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  outline:none;
  margin-top:6px;
  color:var(--text);
}
.auth input:focus{box-shadow:0 0 0 4px rgba(15,23,42,.08)}

.auth-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.auth-actions .btn{height:44px}
.auth-actions .btn-ghost{height:44px}

/* Register sayfası iki kolon düzeni (varsa) */
.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

/* ===== Admin küçük dokunuşlar ===== */
table{width:100%;border-collapse:collapse}
th,td{padding:10px 8px;border-bottom:1px solid var(--border);text-align:left;font-size:14px}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}
.page-head h1{margin:0}

/* ===== Responsive ===== */
@media (max-width:1000px){
  .brand-logo{width:92px;height:92px}
  .brand-name{font-size:20px}
}

@media (max-width:640px){
  .header-inner{flex-wrap:wrap}
  .search{order:3;min-width:100%}
  .grid-3,.grid-2{grid-template-columns:1fr}
  .two-col{grid-template-columns:1fr}
  .brand-logo{width:72px;height:72px}
  .brand-name{font-size:18px;transform:translateY(-1px)}
  .container{padding:14px}
}
