:root {
  --brand: #b48c5a;
  --brand-dark: #a07a4a;
  --bg: #f8fafc;
  --text: #222;
  --muted: #666;
  --shadow: 0 8px 26px rgba(180, 140, 90, 0.22);
}

* { box-sizing: border-box; }

body {
  font-family: 'Cairo', Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg) 0%, #f3e7e9 100%);
  margin: 0 auto;
  max-width: 1440px;
  color: var(--text);
}

.page-header {
  background: #fff;
  box-shadow: 0 2px 8px #eee;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-link {
  color: var(--brand);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-word {
  white-space: nowrap;
}

.page-header .brand-logo.admin-brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  object-fit: cover;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.page-nav a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 700;
}

.page-nav a:hover { color: var(--brand); }

.hero {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, rgba(180, 140, 90, 0.9), rgba(160, 122, 74, 0.85));
}

.hero h1 {
  margin: 0 0 8px 0;
  font-size: 2.2rem;
}

.hero p {
  margin: 0;
  font-size: 1.05rem;
}

.grid-section {
  padding: 30px 16px 60px;
  max-width: 1100px;
  margin: 0 auto;
}

.grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.grid-header h2 {
  color: var(--brand);
  margin: 0;
}

.back-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}

.brand-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(180, 140, 90, 0.35);
}

.brand-card .brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid #f3e7e9;
  background: #fafafa;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.status {
  color: var(--muted);
  text-align: center;
  padding: 12px 0;
}

.page-footer {
  background: #fff;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  box-shadow: 0 -2px 8px #eee;
}

@media (max-width: 600px) {
  .grid-header {
    flex-direction: column;
    gap: 8px;
  }
  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}
