* { box-sizing: border-box; }
body, html { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, sans-serif; }
a { color: #e76f51; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.page-header { padding: 24px 0; border-bottom: 1px solid #eee; }
.page-header h1 { margin: 0; font-size: 24px; }
.btn { display: inline-block; padding: 12px 24px; background: #e76f51; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; text-decoration: none; }
.btn:hover { background: #d64933; }
.btn-secondary { background: #666; }
.btn-secondary:hover { background: #555; }
input, select, textarea { padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; width: 100%; }
label { display: block; margin-bottom: 4px; font-weight: 500; font-size: 14px; }
.form-group { margin-bottom: 16px; }
.error { color: #c00; font-size: 13px; margin-top: 4px; }
header.app-header { background: #1a1a1a; color: white; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; }
header.app-header a { color: white; }
header.app-header .logo { font-weight: bold; font-size: 18px; }

/* Global site header (anasayfa, kategori, ürün, sayfa) - koyu kahverengi */
:root { --header-offset: 120px; }
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  z-index: 2000;
  background: #2c2416;
  color: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  isolation: isolate;
}
.global-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 88px;
  gap: 28px;
}
.global-header .logo-wrap {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  color: white;
}
.global-header .logo-wrap:hover { color: white; opacity: 0.95; }
.global-header .logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  background: #f3e4cf;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.global-header .header-logo {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
}
.global-header.scrolled .header-logo {
  height: 46px;
}
.global-header.scrolled .logo-badge {
  padding: 7px 12px;
}
.global-header .logo-text { display: none; }
.global-header nav { flex: 1; display: flex; justify-content: center; }
.global-header nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.global-header nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.global-header nav a:hover { color: #e8b88a; background: rgba(255,255,255,0.08); }
.global-header .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.global-header .header-right a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}
.global-header .header-right a:hover { color: #e8b88a; background: rgba(255,255,255,0.08); }
.global-header .header-right .icon-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.global-header .cart-link { font-weight: 600; }

/* Giriş Yap / Üye Ol – modern buton çifti */
#headerUser {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#headerUser a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
/* İlk link: Giriş Yap / Hesabım – outline */
#headerUser a:first-of-type {
  color: rgba(255,255,255,0.95);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
}
#headerUser a:first-of-type:hover {
  color: #fff;
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
/* İkinci link: Üye Ol – dolu vurgu */
#headerUser a:last-of-type:not([href="#"]) {
  color: #fff;
  background: #e76f51;
  border: none;
}
#headerUser a:last-of-type:not([href="#"]):hover {
  background: #d64933;
  box-shadow: 0 4px 14px rgba(231, 111, 81, 0.4);
  transform: translateY(-1px);
}
/* Çıkış (son link, href="#") – outline, hafif kırmızı vurgu */
#headerUser a:last-of-type[href="#"] {
  color: rgba(255,255,255,0.9);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 10px 18px;
  font-weight: 600;
}
#headerUser a:last-of-type[href="#"]:hover {
  color: #ffb4a8;
  background: rgba(200, 80, 60, 0.25);
  border-color: rgba(255, 180, 168, 0.6);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}
#headerUser .icon-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Content below fixed header - use on main content wrappers */
.page-under-header { padding-top: var(--header-offset, 120px); }
.global-header .hamburger {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.global-header .hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 1px; }
@media (max-width: 768px) {
  .global-header { padding: 12px 16px; }
  .global-header .header-logo { height: 40px; }
  .global-header .logo-badge { padding: 6px 10px; border-radius: 12px; }
  .global-header .hamburger { display: flex; }
  .global-header nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100vh;
    background: #1a1a1a;
    padding: 70px 20px 24px;
    transition: right 0.3s;
    z-index: 999;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  }
  .global-header nav.open { right: 0; }
  .global-header nav ul { flex-direction: column; gap: 0; }
  .global-header nav a { display: block; padding: 14px 0; border-bottom: 1px solid #333; text-transform: none; }
}

/* Site footer (kategori, ürün, sayfa) - koyu kahverengi header ile uyumlu */
.site-footer {
  background: #2c2416;
  color: #ccc;
  padding: 40px 24px 24px;
  margin-top: 48px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 24px;
}
.site-footer .footer-grid h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.site-footer .footer-grid p,
.site-footer .footer-grid a {
  font-size: 14px;
  color: #aaa;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}
.site-footer .footer-grid a:hover { color: #e8b88a; }
.site-footer .footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid #333;
  font-size: 13px;
  text-align: center;
  color: #888;
}
.site-footer .footer-bottom a { color: #aaa; }
