/* GardenPlants.ro — Shared account shell (header, sidebar, footer, tokens) */

:root {
  --bg:        oklch(98.5% 0.005 150);
  --surface:   oklch(100% 0 0);
  --surface-2: oklch(96% 0.008 150);
  --surface-3: oklch(94% 0.012 150);
  --fg:        oklch(20% 0.02 160);
  --fg-soft:   oklch(35% 0.02 160);
  --muted:     oklch(52% 0.015 160);
  --border:    oklch(91% 0.008 150);
  --border-strong: oklch(82% 0.012 150);
  --accent:    oklch(48% 0.13 160);
  --accent-2:  oklch(56% 0.14 160);
  --accent-soft: oklch(94% 0.04 160);
  --warm:      oklch(70% 0.13 60);
  --warn:      oklch(72% 0.14 70);
  --danger:    oklch(55% 0.18 25);
  --success:   oklch(58% 0.13 150);
  --gold:      oklch(75% 0.13 80);
  --font-display: 'Söhne', 'Avenir Next', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --font-mono:    ui-monospace, 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px oklch(20% 0.02 160 / 0.04);
  --shadow:    0 6px 24px oklch(20% 0.02 160 / 0.06);
  --shadow-lg: 0 24px 60px oklch(20% 0.02 160 / 0.10);
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin:0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); line-height: 1.55;
  font-feature-settings: "ss01","ss02","cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width:100%; display:block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1,h2,h3,h4 { font-family: var(--font-display); letter-spacing: -0.02em; font-weight: 600; line-height: 1.15; margin:0; }
.num { font-variant-numeric: tabular-nums; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ─── Announcement bar ─── */
.announcement {
  background: var(--fg); color: oklch(95% 0.01 160);
  font-size: 13px; letter-spacing: 0.01em;
  text-align: center; padding: 10px 24px;
  display: flex; justify-content: center; gap: 28px;
  flex-wrap: wrap;
}
.announcement strong { color: oklch(85% 0.08 160); font-weight: 500; }
.announcement span { display: inline-flex; align-items: center; gap: 8px; }

/* ─── Header / nav ─── */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: oklch(98.5% 0.005 150 / 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 32px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; font-family: var(--font-display); }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display:grid; place-items:center; color: white;
}
.brand-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 28px; justify-content: center; font-size: 14px; }
.nav-links a { color: var(--fg-soft); position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.nav-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display:grid; place-items:center; color: var(--fg-soft);
  transition: background .2s, color .2s;
  position: relative;
}
.nav-icon:hover { background: var(--surface-2); color: var(--fg); }
.nav-icon svg { width: 18px; height: 18px; stroke-width: 1.6; }
.cart-badge {
  position: absolute; top: 6px; right: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--accent); color: white;
  border-radius: 999px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  display: grid; place-items: center;
  font-weight: 600; font-size: 13px;
  margin-left: 6px;
  border: 2px solid transparent;
  transition: border-color .2s;
  font-family: var(--font-display);
}
.nav-avatar:hover { border-color: var(--accent); }

/* ─── Account page shell ─── */
.account-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}

/* Sidebar */
.side {
  position: sticky; top: 96px;
  align-self: start;
}
.side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  margin-bottom: 16px;
}
.side-profile {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.side-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  display: grid; place-items: center;
  font-weight: 600; font-size: 22px;
  font-family: var(--font-display);
  margin-bottom: 12px;
  position: relative;
}
.side-avatar .edit {
  position: absolute; right: -2px; bottom: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); color: var(--fg);
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
  cursor: pointer; transition: border-color .15s;
}
.side-avatar .edit:hover { border-color: var(--accent); color: var(--accent); }
.side-avatar .edit svg { width: 11px; height: 11px; }
.side-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}
.side-email { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.side-tier {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: linear-gradient(135deg, oklch(75% 0.13 80 / 0.18), oklch(70% 0.15 50 / 0.18));
  color: oklch(48% 0.13 60);
  border: 1px solid oklch(75% 0.13 80 / 0.4);
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.side-tier svg { width: 11px; height: 11px; }

.side-nav {
  display: flex; flex-direction: column;
  padding: 8px 0;
}
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--fg-soft);
  transition: background .15s, color .15s;
  position: relative;
}
.side-nav a:hover {
  background: var(--surface-2);
  color: var(--fg);
}
.side-nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.side-nav a svg {
  width: 16px; height: 16px;
  stroke-width: 1.8;
}
.side-nav a .badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.side-nav .sep {
  height: 1px; background: var(--border);
  margin: 8px 4px;
}
.side-nav .logout {
  color: var(--danger);
}
.side-nav .logout:hover {
  background: oklch(55% 0.18 25 / 0.06);
}

/* Loyalty mini card */
.loyalty-mini {
  background: linear-gradient(135deg, oklch(28% 0.06 160), oklch(18% 0.04 160));
  color: white;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}
.loyalty-mini::before {
  content:''; position: absolute;
  inset: -20px -20px auto auto;
  width: 100px; height: 100px;
  background: radial-gradient(circle, oklch(58% 0.14 160 / 0.4), transparent 70%);
}
.loyalty-mini h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: oklch(85% 0.08 160); margin-bottom: 4px;
}
.loyalty-mini .points {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  margin-bottom: 6px;
}
.loyalty-mini .next {
  font-size: 12px; color: oklch(85% 0.02 160); margin-bottom: 10px;
  line-height: 1.4;
}
.loyalty-mini .pbar {
  height: 5px; border-radius: 999px;
  background: oklch(100% 0 0 / 0.12);
  overflow: hidden;
  position: relative; z-index: 1;
}
.loyalty-mini .pbar-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, oklch(75% 0.13 80), oklch(70% 0.15 50));
}

/* Main content area */
.main {
  min-width: 0;
}

/* Page header (inside main) */
.page-h {
  margin-bottom: 28px;
}
.page-h .kicker {
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 6px;
}
.page-h h1 {
  font-size: clamp(28px, 3vw, 36px);
  margin-bottom: 8px;
}
.page-h p {
  color: var(--muted); margin: 0; font-size: 15px;
}
.page-h-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card-h {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  gap: 12px; flex-wrap: wrap;
}
.card-h h3 {
  font-size: 18px;
}
.card-h .see-all {
  color: var(--accent); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
}
.card-h .see-all:hover { text-decoration: underline; }
.card-h .see-all svg { width: 12px; height: 12px; transition: transform .2s; }
.card-h .see-all:hover svg { transform: translateX(2px); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  transition: all .15s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--fg); color: white;
}
.btn-primary:hover { background: oklch(10% 0.02 160); }
.btn-accent {
  background: var(--accent); color: white;
}
.btn-accent:hover { background: var(--accent-2); }
.btn-ghost {
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn svg { width: 14px; height: 14px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* Status pills */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-success { background: oklch(58% 0.13 150 / 0.12); color: var(--success); }
.pill-warn    { background: oklch(72% 0.14 70 / 0.16);  color: oklch(50% 0.14 60); }
.pill-info    { background: oklch(60% 0.13 240 / 0.10); color: oklch(45% 0.18 240); }
.pill-muted   { background: var(--surface-2); color: var(--muted); }
.pill-danger  { background: oklch(55% 0.18 25 / 0.10); color: var(--danger); }

/* Footer */
footer {
  margin-top: 80px;
  padding: 48px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.foot-brand { max-width: 320px; }
.foot-brand p { color: var(--muted); font-size: 13px; margin-top: 12px; line-height: 1.6; }
.foot-h {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg); margin-bottom: 14px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-col a { color: var(--muted); font-size: 13px; transition: color .2s; }
.foot-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}

/* Mobile sidebar drawer */
.mobile-account-bar {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  position: sticky; top: 73px; z-index: 40;
  align-items: center; gap: 14px;
  backdrop-filter: blur(10px);
}
.mobile-account-bar .mab-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  display: grid; place-items: center;
  font-weight: 600; font-size: 14px;
  font-family: var(--font-display);
  flex-shrink: 0;
}
.mobile-account-bar .mab-info { flex: 1; min-width: 0; }
.mobile-account-bar .mab-info .t {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
}
.mobile-account-bar .mab-info .s {
  font-size: 12px; color: var(--muted);
}
.mobile-account-bar .mab-menu {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--fg-soft);
}
.mobile-account-bar .mab-menu svg { width: 18px; height: 18px; }

.drawer-overlay {
  position: fixed; inset: 0;
  background: oklch(20% 0.02 160 / 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  z-index: 90;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer-side {
  position: fixed; left: 0; top: 0; bottom: 0;
  width: 290px; max-width: 90vw;
  background: var(--surface);
  z-index: 100;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 20px;
}
.drawer-side.open { transform: translateX(0); }
.drawer-close {
  position: absolute; right: 16px; top: 16px;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface-2);
  display: grid; place-items: center;
  color: var(--fg-soft);
}
.drawer-close svg { width: 18px; height: 18px; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .mobile-account-bar { display: flex; }
  .account-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0 60px;
  }
  .side { display: none; }
  .container { padding: 0 16px; }
  .announcement { gap: 16px; font-size: 12px; padding: 8px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-h h1 { font-size: 26px; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--fg); color: white;
  padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast svg { width: 16px; height: 16px; color: var(--success); }

@media (max-width: 560px) {
  .toast { left: 16px; right: 16px; bottom: 16px; }
}
