/* ===== Variables ===== */
:root {
  --bg-dark: #0f1419;
  --bg-card: #1a2332;
  --bg-card-hover: #222d3f;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --primary: #3b82f6;
  --accent-muted: rgba(59, 130, 246, 0.15);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --success: #22c55e;
  --notice-bg: #1e3a5f;
  --font-sans: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header Top - Sabit Üst Alan (tüm sayfalarda) ===== */
.header-top-fixed {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
}

/* ===== Notice Banner ===== */
.notice-banner {
  background: var(--notice-bg);
  color: var(--text);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.notice-banner p { margin: 0; }

/* ===== Header ===== */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
/* Logo | Sepet+Dil+Giriş (sol) | Nav (orta) | Mobil menü – tek satırda, asla alt satıra düşmez */
.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  order: 1;
}
.logo:hover { color: var(--accent); }
.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: center;
  min-width: 0;
  order: 2;
}
/* Sepet, Dil, Giriş – sağda */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 1rem;
  order: 3;
}
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover,
.nav-link.active { color: var(--accent); }
.lang-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-wrap select {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  cursor: pointer;
}
.legal-dropdown { position: relative; }
.legal-dropdown .nav-link { cursor: pointer; }
.legal-dropdown ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 180px;
  z-index: 50;
  box-shadow: var(--shadow);
}
.legal-dropdown:hover ul,
.legal-dropdown:focus-within ul { display: block; }
.legal-dropdown ul a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.legal-dropdown ul a:hover { color: var(--accent); background: var(--accent-muted); }
.btn-mobile-menu {
  display: none;
  flex-shrink: 0;
  order: 4;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Hero ===== */
.hero {
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 100%);
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: var(--accent-muted);
  color: var(--accent);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.hero-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}
.hero-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto 1rem;
  gap: 0.5rem;
}
.search-input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-dark);
  color: var(--text);
  font-size: 1rem;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.tag {
  padding: 0.4rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-muted);
}
.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ===== Trust Badges ===== */
.trust-badges {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.badge-item strong { color: var(--text); }
.badge-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* ===== Sections ===== */
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-align: center;
}
.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}
.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-header .section-title { text-align: left; }
.section-header .section-subtitle { margin-bottom: 0; text-align: left; margin-left: 0; }

/* ===== Categories ===== */
.categories {
  padding: 4rem 0;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.cat-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}
.category-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ===== Why Us ===== */
.why-us {
  padding: 4rem 0;
  background: var(--bg-card);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.why-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--accent);
}
.why-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Featured Products ===== */
.featured {
  padding: 4rem 0;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--bg-dark);
  margin: -1.5rem -1.5rem 1rem -1.5rem;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.product-card {
  animation: marketplace-card-fade 0.3s ease-out;
}
@keyframes marketplace-card-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-body {
  flex: 1;
  margin-bottom: 1rem;
}
.product-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  line-height: 1.3;
}
.product-card .product-body p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--success);
}
.orders {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Guarantees ===== */
.guarantees {
  padding: 4rem 0;
  background: var(--bg-card);
}
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.guarantee-item {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.guarantee-item h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--text);
}
.guarantee-value {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}
.guarantee-item p:last-child {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Seller CTA ===== */
.seller-cta {
  padding: 4rem 0;
  text-align: center;
}
.seller-highlight {
  margin: 1.5rem 0 2rem;
}
.big-percent {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.seller-highlight p {
  margin: 0.5rem 0 0;
  color: var(--text-muted);
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-address {
  order: 1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
}
.footer-links { order: 2; display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-copyright { order: 3; margin: 0; font-size: 0.85rem; }
.page-content { max-width: 800px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.page-content h1 { margin-bottom: 1rem; }
.page-content h2 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.page-content p { margin: 0 0 1rem; }
.page-content ul { margin: 0 0 1rem; padding-left: 1.5rem; }
.page-content li { margin-bottom: 0.35rem; }
.company-block { margin-top: 2rem; padding: 1.25rem; background: var(--bg-card, #f5f5f5); border-radius: 8px; border: 1px solid var(--border, #e0e0e0); }
.company-block p { margin: 0 0 0.5rem; }
.company-block p:last-child { margin-bottom: 0; }
.company-block a { color: var(--primary, #2563eb); }

/* ===== Marketplace Page ===== */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.page-header p {
  margin: 0;
  color: var(--text-muted);
}
/* Marketplace guarantees – referans tarzı */
.marketplace-guarantees {
  padding: 1.5rem 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.guarantees-grid-mp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.guarantee-item-mp {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.guarantee-icon-mp {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.guarantee-item-mp strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: var(--text);
}
.guarantee-item-mp p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.filter-brand-section {
  width: 100%;
}
.filter-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.filters-bar label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-right: 0.5rem;
}
.filters-bar select {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-chip {
  padding: 0.4rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
}
.filter-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59, 130, 246, 0.15);
}
.marketplace-content {
  padding: 2rem 0 4rem;
}
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.empty-state p { margin: 0 0 1rem; }
.loading-text { color: var(--text-muted); text-align: center; padding: 2rem; margin: 0; }

/* ===== Forum Page ===== */
.forum-hero {
  padding: 4rem 0;
  text-align: center;
}
.forum-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}
.forum-hero p {
  margin: 0;
  color: var(--text-muted);
}

/* ===== Auth ===== */
.auth-page { max-width: 420px; padding-top: 3rem; }
.auth-box { background: var(--bg-card); border-radius: 12px; padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.auth-box h1 { margin: 0 0 1.5rem; font-size: 1.5rem; }
.auth-box label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.auth-box input { width: 100%; padding: 0.6rem 0.75rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 6px; box-sizing: border-box; }
.auth-box .btn-block { width: 100%; margin-top: 0.5rem; }
.auth-footer { margin-top: 1.25rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.auth-footer a { color: var(--primary); }
.form-error { color: #c00; margin-bottom: 1rem; font-size: 0.9rem; }

/* ===== Cart & Checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.cart-table th, .cart-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.cart-table th { font-weight: 600; color: var(--text-muted); }
.cart-total { font-size: 1.25rem; font-weight: 700; margin-top: 1rem; }
/* Sepet: ikon üstte, yazı altta, küçük ve ortalanmış */
.header-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.2;
}
.header-cart:hover { background: var(--bg-card); color: var(--accent); }
.header-cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.header-cart-icon { font-size: 1.15rem; }
.header-cart-label { font-size: 0.7rem; font-weight: 500; white-space: nowrap; }
.header-cart .cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  min-width: 1rem;
  height: 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
}
.user-dropdown { position: relative; }
.user-dropdown .nav-link { cursor: pointer; }
.user-dropdown ul { display: none; position: absolute; top: 100%; right: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); min-width: 160px; padding: 0.5rem; z-index: 100; list-style: none; margin: 0; }
.user-dropdown.open ul { display: block; }
.user-dropdown ul a { display: block; padding: 0.5rem 0.75rem; color: inherit; text-decoration: none; border-radius: 4px; }
.user-dropdown ul a:hover { background: var(--border); }
.checkout-form label { display: block; margin-bottom: 0.35rem; font-weight: 500; }
.checkout-form input { width: 100%; padding: 0.6rem 0.75rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: 6px; box-sizing: border-box; }
/* ===== Admin Panel ===== */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg-dark); }
.admin-wrap { display: flex; width: 100%; min-height: 100vh; }
.admin-sidebar {
  width: 260px; min-width: 260px; background: linear-gradient(180deg, #1a2332 0%, #0f1419 100%);
  border-right: 1px solid var(--border); padding: 1.5rem 0;
  display: flex; flex-direction: column;
}
.admin-sidebar .admin-brand {
  padding: 0 1.25rem 1.25rem; font-size: 1.1rem; font-weight: 700; color: var(--accent);
  border-bottom: 1px solid var(--border); margin-bottom: 0.75rem;
}
.admin-sidebar .admin-nav { flex: 1; }
.admin-sidebar a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1.25rem;
  color: var(--text-muted); text-decoration: none; font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.admin-sidebar a:hover { background: var(--accent-muted); color: var(--accent); }
.admin-sidebar a.active { background: var(--accent-muted); color: var(--accent); font-weight: 600; }
.admin-sidebar .admin-nav-icon { width: 1.25rem; text-align: center; font-size: 1.1rem; opacity: 0.9; }
.admin-sidebar .admin-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); }
.admin-sidebar .admin-footer a { color: var(--text-muted); padding: 0.5rem 0; }
.admin-main { flex: 1; padding: 2rem 2.5rem; overflow-x: auto; }
.admin-main h1 { font-size: 1.75rem; margin: 0 0 1.5rem; font-weight: 700; }
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2rem;
}
.admin-stat {
  background: var(--bg-card); padding: 1.5rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: border-color 0.2s, box-shadow 0.2s;
}
.admin-stat:hover { border-color: var(--accent); box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1); }
.admin-stat .value { font-size: 1.75rem; font-weight: 700; color: var(--accent); display: block; }
.admin-stat .label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }
.admin-stat a { text-decoration: none; color: inherit; }
.admin-quick-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.admin-table-wrap { background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { font-weight: 600; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; background: rgba(0,0,0,0.2); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(59, 130, 246, 0.04); }
.admin-table select { padding: 0.4rem 0.6rem; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-dark); color: var(--text); font-size: 0.9rem; }
.admin-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.admin-toolbar .btn { flex-shrink: 0; }
.admin-search { padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-dark); color: var(--text); min-width: 200px; }
.admin-form-card {
  background: var(--bg-card); border-radius: var(--radius-lg); border: 1px solid var(--border);
  padding: 1.5rem 2rem; margin-bottom: 1.5rem; max-width: 560px;
}
.admin-form-card label { display: block; margin-bottom: 0.35rem; font-weight: 500; font-size: 0.9rem; }
.admin-form-card input, .admin-form-card select, .admin-form-card textarea {
  width: 100%; padding: 0.6rem 0.75rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-dark); color: var(--text); font-size: 1rem; box-sizing: border-box;
}
.admin-form-card .form-actions { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.admin-login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
  padding: 2rem;
}
.admin-login-box {
  width: 100%; max-width: 400px; background: var(--bg-card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 2rem; box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.admin-login-box h1 { font-size: 1.5rem; margin: 0 0 0.5rem; text-align: center; }
.admin-login-box .sub { color: var(--text-muted); text-align: center; font-size: 0.9rem; margin-bottom: 1.5rem; }
.admin-login-box .form-error { color: #ef4444; font-size: 0.9rem; margin-bottom: 0.75rem; }
.admin-login-box input { width: 100%; padding: 0.75rem 1rem; margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-dark); color: var(--text); box-sizing: border-box; }
.admin-login-box button { width: 100%; padding: 0.85rem; font-weight: 600; border-radius: var(--radius); border: none; background: var(--accent); color: #fff; cursor: pointer; font-size: 1rem; }
.admin-login-box button:hover { background: var(--accent-hover); }
.admin-logout { padding: 0 1.25rem; margin-top: 0.5rem; }
.admin-logout button { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; padding: 0.5rem 0; }
.admin-logout button:hover { color: var(--accent); }
.product-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.product-actions .btn { flex: 1; min-width: 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .header-right { flex: 1; min-width: 0; }
  .btn-mobile-menu { display: block; }
  .hero-search { flex-direction: column; }
  .badges-grid { grid-template-columns: 1fr; gap: 1rem; }
  .section-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}
