/* ============================================================
   DJSE Diamonds — Unified Brand Stylesheet
   Single source of truth for colors, header, footer, buttons.
   Loaded on every page; page-specific CSS stays inline per-page.
   ============================================================ */

:root {
  /* Brand palette (unified across the whole site) */
  --gold: #b9934c;
  --gold-light: #d4a96a;
  --gold-dim: #8a6a30;

  --bg: #f5f1eb;
  --bg2: #ffffff;
  --bg3: #efe7db;
  --bg4: #e8ddd0;

  --card: #ffffff;
  --border: #e0d8cc;

  --text: #1a1510;
  --text-dim: #4a3c28;
  --text-muted: #9a8a78;
  --white: #ffffff;

  --ok: #1f7a3f;
  --bad: #a73838;

  --radius: 6px;
  --shadow: 0 18px 40px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d4c4a8; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Top info bar (identical on every customer-facing page) ── */
.topbar { background: #efe7dc; border-bottom: 1px solid #e0d5c6; font-size: 12px; color: var(--text-dim); }
.topbar-inner {
  max-width: 1280px; margin: 0 auto; min-height: 40px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.topbar-item { display: flex; align-items: center; gap: 7px; letter-spacing: .3px; }
.topbar-item svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; flex-shrink: 0; }
@media (max-width: 720px) {
  .topbar-inner { justify-content: center; padding: 8px 16px; }
  .topbar-right .topbar-item:nth-child(2) { display: none; }
}

/* ── Site header (identical on every customer-facing page) ── */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.logo img { height: 44px; width: auto; display: block; object-fit: contain; }
.logo span { font-style: italic; }
.logo:hover { opacity: 0.85; }

.nav-links { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 14px;
  white-space: nowrap;
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 14px; right: 14px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.cart-link { display: flex; align-items: center; gap: 6px; position: relative; padding-right: 18px; }
.nav-links a.cart-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.cart-badge {
  display: none;
  position: absolute; top: -6px; right: 2px;
  background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 700;
  border-radius: 999px; min-width: 16px; height: 16px; line-height: 16px;
  text-align: center; padding: 0 4px;
}

@media (max-width: 720px) {
  header.site-header { padding: 0 16px; }
  .header-inner { min-height: 64px; gap: 12px; }
  .logo { font-size: 17px; letter-spacing: 2px; }
  .logo img { height: 32px; }
  .nav-links { gap: 0; }
  .nav-links a { font-size: 9.5px; padding: 5px 8px; letter-spacing: 1px; }
}

/* ── Buttons ── */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 30px; border-radius: 3px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase;
  transition: .2s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--gold); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--gold-dim); transform: translateY(-1px); }
.btn-secondary { border: 1px solid var(--border); color: var(--text-dim); background: rgba(255,255,255,.6); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-dim); }

/* ── Site footer (identical on every customer-facing page) ── */
footer.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.68);
  padding: 48px 24px 0;
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.site-footer-brand img { height: 40px; }
.site-footer-brand span { font-family: 'Cormorant Garamond', serif; font-size: 19px; letter-spacing: 3px; color: #fff; }
.site-footer p { font-size: 13px; line-height: 1.8; max-width: 320px; }
.site-footer h4 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light);
  margin-bottom: 14px; font-weight: 600;
}
.site-footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer-links a { font-size: 13px; color: rgba(255,255,255,0.68); transition: color .2s; }
.site-footer-links a:hover { color: var(--gold-light); }
.site-footer-bottom {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 18px 0; font-size: 12px; color: rgba(255,255,255,0.45);
}
.site-footer-bottom a { color: rgba(255,255,255,0.45); }
.site-footer-bottom a:hover { color: var(--gold-light); }

@media (max-width: 720px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .site-footer-bottom { justify-content: center; text-align: center; }
}
