/* =========================================================
   Abu Khaled Sweets — Global Design System
   Shared design tokens + base elements used across every
   customer-facing page. Loaded BEFORE page-specific CSS.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap");

:root {
  /* Brand palette (warm bakery tones) */
  --bg: #f6f1eb;
  --surface: #fffdfb;
  --surface-soft: #f9efe3;
  --text: #2a1f18;
  --muted: #7a695b;
  --line: #eadfce;

  --brand: #b05024;
  --brand-strong: #833a17;
  --brand-light: #e08a54;
  --accent: #bf2f42;

  --beige: #f5e8dd;
  --honey: #f2d9b8;
  --gold: #d6b07a;
  --gold-r: rgba(214, 176, 122, 0.9);
  --success: #4a9166;
  --danger: #bf2f42;
  --warning: #c9852f;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 4px 12px rgba(74, 41, 21, 0.08);
  --shadow-md: 0 10px 22px rgba(77, 46, 24, 0.11);
  --shadow-lg: 0 20px 44px rgba(74, 41, 21, 0.16);

  --header-h: 118px;
  --search-h: 0px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Section heads shared by every listing page */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-head h2 { margin: 6px 0 4px; font-size: 26px; font-weight: 800; color: var(--brand-strong); }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

.badge {
  display: inline-block;
  background: var(--surface-soft);
  color: var(--brand-strong);
  border: 1px solid var(--gold-r);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
}

/* Shared button system */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
.btn-outline { background: var(--surface); color: var(--brand-strong); border: 1.5px solid var(--gold); }
.btn-outline:hover { background: var(--surface-soft); }
.btn-ghost { background: transparent; color: var(--brand-strong); }
.btn-whatsapp { background: #25d366; color: #fff; }

/* Reusable card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Skeleton / empty state helper */
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }

/* Custom scrollbar for drawers / carousels */
.scroll-thin::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll-thin::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 6px; }

::selection { background: var(--honey); color: var(--brand-strong); }
