:root{
  --bg1:#f6f9fc;
  --bg2:#eef3f9;
  --amber1:#fff7ed;
  --amber2:#fffbeb;
  --amber3:#fff4d6;
  --accent:#f59e0b; /* bal/amber ton */
  --accent2:#b45309; /* daha koyu amber */
  --text:#0f172a;
  --muted:#64748b;
  --card:#ffffffcc;
  --shadow:0 10px 30px rgba(15,23,42,0.10);
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  display:flex; flex-direction:column; min-height:100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:radial-gradient(1200px 600px at 15% 0%, #f9fbff 0%, var(--bg2) 35%, var(--bg1) 100%);
}

/* Sayfa içerik alanı footer'ı alta itmek için esner */
.page-content{flex:1 0 auto}

/* Genel konteyner */
.container{max-width:760px;margin:0 auto;padding:16px}

/* HEADER */
.header{
  display:flex;align-items:center;gap:16px;margin:12px 0 20px 0;
  padding:14px 16px;
  background:linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border:1px solid #e6eef7;
  border-radius:18px;
  box-shadow:var(--shadow);
}
.header img{
  height:67px; width:auto;
  border-radius:14px;
  box-shadow:0 6px 16px rgba(15,23,42,0.10);
}
.brand{display:flex;flex-direction:column;gap:4px;min-width:0}
.brand h1{font-size:22px; line-height:1.1; margin:0; letter-spacing:0.2px}
.brand .sub{font-size:13px; color:var(--muted); margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.header-accent{
  margin-left:auto; display:flex; align-items:center; gap:8px;
  background:linear-gradient(135deg, var(--amber1), var(--amber2));
  color:#92400e; border:1px solid #fde68a;
  padding:8px 12px; border-radius:999px; font-size:12px; white-space:nowrap;
  box-shadow:0 6px 16px rgba(245, 158, 11, 0.20);
}

/* CATEGORY + PRODUCT CARDS */
.category{
  background:var(--card);
  backdrop-filter: saturate(180%) blur(4px);
  border-radius:16px;
  box-shadow:var(--shadow);
  margin:12px 0;
  padding:12px;
}
.category-title{
  display:flex;justify-content:space-between;align-items:center;
  font-weight:700;font-size:16px;margin-bottom:8px;
}
.category-desc{color:var(--muted);font-size:13px;margin-bottom:8px}

.product{
  display:flex;justify-content:space-between;align-items:flex-start;
  padding:12px;border-radius:12px;margin:8px 0;background:#fff;
  border:1px solid #e6eef7;
}
.product-name{font-weight:700}
.product-desc{color:var(--muted);font-size:13px;margin-top:4px}
.product img{flex-shrink:0; cursor:pointer}
.price{color:#0b5; font-weight:800; min-width:90px; text-align:right}

/* Liste görünümünde küçük ürün görseli (thumbnail) */
.product .thumb{
  width:72px;
  height:72px;
  object-fit:cover;
  border-radius:12px;
  border:1px solid #e6eef7;
  box-shadow:0 4px 10px rgba(15,23,42,.06);
}

/* TABLES (Admin) */
.table{
  width:100%;background:#fff;border:1px solid #e6eef7;border-radius:12px;overflow:hidden;
}
.table thead{background:#f2f6fb}
.table th,.table td{padding:10px;border-bottom:1px solid #eef3f9;text-align:left;font-size:14px}

/* FORMS & BUTTONS */
.input, select, textarea{
  width:100%;padding:10px;border:1px solid #dbe5f2;border-radius:10px;background:#fff;font-size:14px
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}

.button{
  background:var(--accent);
  color:#fff; border:none; padding:10px 14px; border-radius:10px; cursor:pointer;
  box-shadow:var(--shadow);
  transition:transform .08s ease, filter .12s ease;
}
.button:hover{filter:brightness(1.05)}
.button:active{transform:translateY(1px)}
.button.secondary{background:var(--accent2)}

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

.badge{
  background:#eef7ff;color:#0369a1;border:1px solid #cde6ff;
  padding:4px 8px;border-radius:999px;font-size:12px
}

/* FOOTER: soft sarı, ikon kapsülleri, daha göz alıcı */
.footer{
  background:
    radial-gradient(900px 100px at 50% 0%, #fffbe6 0%, transparent 70%),
    linear-gradient(135deg, var(--amber1) 0%, var(--amber2) 55%, var(--amber3) 100%);
  border-top:1px solid #f5d78a;
  box-shadow:0 -10px 28px rgba(245,158,11,.18);
  color:#7a4a0a;
  padding:16px 20px;
}
.footer-inner{
  display:flex;align-items:center;justify-content:center;gap:12px;
  flex-wrap:wrap; text-align:center;
  font-size:14px;font-weight:600;letter-spacing:.2px;
}
.footer-inner .brand{
  display:inline-flex;align-items:center;gap:8px;color:#8a520c;
}
.footer-inner .rmark{
  display:inline-flex;align-items:center;justify-content:center;
  width:22px;height:22px;border-radius:50%;background:#fff7ed;border:1px solid #f5d78a;color:#8a520c;
  font-size:12px;box-shadow:0 3px 8px rgba(245,158,11,.20);
}

/* MODAL (Popup) */
.modal-backdrop{
  position:fixed; inset:0;
  background:rgba(15,23,42,0.55);
  backdrop-filter:saturate(180%) blur(4px);
  display:none; /* varsayılan gizli */
  align-items:flex-start; justify-content:center;
  z-index:1000;
}
.modal-backdrop.show{display:flex}

.modal{
  margin-top:6vh;
  width:90vw; max-width:720px;
  background:#fff; border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  overflow:hidden;
}
.modal-header{
  position:relative;
  padding:10px 14px;
  background:linear-gradient(135deg,#fff7ed,#fffbeb);
  border-bottom:1px solid #f5d78a;
}
.modal-close{
  position:absolute; left:10px; top:10px;
  width:32px; height:32px; border:none; border-radius:10px;
  background:#fff; color:#111; font-size:18px; line-height:1;
  box-shadow:0 6px 16px rgba(245,158,11,.20);
  cursor:pointer;
}
.modal-title{
  text-align:center; font-weight:700; color:#7a4a0a;
}
.modal-body{display:flex; gap:16px; padding:16px}
.modal-body img{
  width:160px; height:160px; object-fit:cover;
  border-radius:14px; border:1px solid #e6eef7;
}
.modal-info{flex:1 1 auto}
.modal-info .name{font-size:18px; font-weight:800}
.modal-info .desc{color:var(--muted); margin-top:6px; white-space:pre-wrap}
.modal-info .price{margin-top:10px; font-weight:800; color:#0b5}

/* RESPONSIVE */
@media(min-width:768px){
  .container{max-width:880px}
  .modal-body img{width:200px; height:200px}
}

/* UTILS */
.hidden{display:none !important}
.center{display:flex;align-items:center;justify-content:center}