: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;
}

.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;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}

.category-tile {
  position: relative;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #f8f1e8, #e9d7c5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(180, 140, 90, 0.35);
}

.category-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.65));
}

.category-name {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.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;
  }
}
