/* ============================
   PET POINT — Design Tokens
   ============================ */
:root {
  /* Type Scale (fluid) */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);

  /* Spacing (4px grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Palette — Warm Pet Store: earthy cream + teal/green accent */
  --color-bg: #faf8f4;
  --color-surface: #ffffff;
  --color-surface-2: #f5f2ec;
  --color-surface-offset: #eee9e0;
  --color-divider: #ddd8cf;
  --color-border: #cec8bd;
  --color-text: #2a2520;
  --color-text-muted: #6e685e;
  --color-text-faint: #a19b90;
  --color-text-inverse: #faf8f4;

  /* Primary — Warm Teal */
  --color-primary: #1a8a7d;
  --color-primary-hover: #147167;
  --color-primary-active: #0e5951;
  --color-primary-light: #e0f5f1;

  /* Accent — Warm Orange for CTAs */
  --color-accent: #e67e22;
  --color-accent-hover: #d35400;
  --color-accent-active: #b34700;
  --color-accent-light: #fef0e0;

  /* Success / Error / Warning */
  --color-success: #27ae60;
  --color-error: #c0392b;
  --color-warning: #f39c12;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(42, 37, 32, 0.06);
  --shadow-md: 0 4px 12px rgba(42, 37, 32, 0.08);
  --shadow-lg: 0 12px 32px rgba(42, 37, 32, 0.12);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-body: 'General Sans', 'Inter', sans-serif;
  --font-display: 'Cabinet Grotesk', 'General Sans', sans-serif;
}

/* Dark mode */
[data-theme="dark"] {
  --color-bg: #1a1816;
  --color-surface: #221f1c;
  --color-surface-2: #2a2723;
  --color-surface-offset: #1f1d1a;
  --color-divider: #332f2b;
  --color-border: #3d3935;
  --color-text: #d5d0c8;
  --color-text-muted: #8a847a;
  --color-text-faint: #5e5950;
  --color-text-inverse: #1a1816;
  --color-primary: #3dbfae;
  --color-primary-hover: #2da99a;
  --color-primary-active: #1e8d7e;
  --color-primary-light: #1f2e2c;
  --color-accent: #f0923a;
  --color-accent-hover: #e67e22;
  --color-accent-active: #d35400;
  --color-accent-light: #2e2418;
  --color-success: #3dd68c;
  --color-error: #e74c3c;
  --color-warning: #f5b041;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #1a1816;
    --color-surface: #221f1c;
    --color-surface-2: #2a2723;
    --color-surface-offset: #1f1d1a;
    --color-divider: #332f2b;
    --color-border: #3d3935;
    --color-text: #d5d0c8;
    --color-text-muted: #8a847a;
    --color-text-faint: #5e5950;
    --color-text-inverse: #1a1816;
    --color-primary: #3dbfae;
    --color-primary-hover: #2da99a;
    --color-primary-active: #1e8d7e;
    --color-primary-light: #1f2e2c;
    --color-accent: #f0923a;
    --color-accent-hover: #e67e22;
    --color-accent-active: #d35400;
    --color-accent-light: #2e2418;
    --color-success: #3dd68c;
    --color-error: #e74c3c;
    --color-warning: #f5b041;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
  }
}

/* ============================
   Reset & Base
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}
body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; line-height: 1.2; font-family: var(--font-display); }
p, li, figcaption { text-wrap: pretty; max-width: 72ch; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; }

a, button, [role='button'], input, textarea, select {
  transition: color var(--transition), background var(--transition),
    border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

::selection {
  background: rgba(26, 138, 125, 0.2);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================
   Layout
   ============================ */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ============================
   Header
   ============================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  backdrop-filter: blur(12px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 64px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
}
.header__logo svg { flex-shrink: 0; }

.header__nav { display: flex; gap: var(--space-6); align-items: center; }
.header__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  padding: var(--space-1) 0;
}
.header__nav a:hover,
.header__nav a.active { color: var(--color-text); }
.header__nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.header__actions { display: flex; align-items: center; gap: var(--space-4); }

.theme-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover { background: var(--color-surface-2); color: var(--color-text); }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
}
.cart-btn:hover { background: var(--color-primary-hover); }
.cart-btn__count {
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: var(--radius-full);
  position: absolute;
  top: -4px; right: -4px;
}
.cart-btn__count:empty { display: none; }

/* Mobile menu */
.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}
.menu-toggle:hover { background: var(--color-surface-2); }

@media (max-width: 768px) {
  .menu-toggle { display: grid; }
  .sync-status { display: none; }
  .cart-btn span:not(.cart-btn__count) { display: none; }
  .header__nav {
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    background: var(--color-surface);
    padding: var(--space-8);
    gap: var(--space-6);
    transform: translateX(-100%);
    transition: transform 300ms ease;
    z-index: 99;
  }
  .header__nav.open { transform: translateX(0); }
  .header__nav a { font-size: var(--text-lg); }
}

/* ============================
   Hero Banner
   ============================ */
.hero {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-surface-2));
  padding: clamp(var(--space-12), 6vw, var(--space-24)) 0;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}
.hero__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.hero__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.hero__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  background: var(--color-surface-offset);
}

@media (max-width: 768px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__img { max-width: 400px; margin: 0 auto; }
}

/* ============================
   Buttons
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--primary:active { background: var(--color-primary-active); transform: scale(0.98); }

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover { background: var(--color-accent-hover); }
.btn--accent:active { background: var(--color-accent-active); transform: scale(0.98); }

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover { background: var(--color-primary-light); }

.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
}
.btn--ghost:hover { background: var(--color-surface-2); color: var(--color-text); }

.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* ============================
   Section Headings
   ============================ */
.section {
  padding: clamp(var(--space-10), 5vw, var(--space-20)) 0;
}
.section__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.section__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

/* ============================
   Category Chips
   ============================ */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.chip {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.chip.active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

/* ============================
   Product Grid
   ============================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--color-surface-2);
}
.product-card__body { padding: var(--space-4); }
.product-card__category {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}
.product-card__name {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.product-card__price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}
.product-card__price--old {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-decoration: line-through;
  font-weight: 400;
}
.product-card__stock {
  font-size: var(--text-xs);
  color: var(--color-success);
  font-weight: 500;
}
.product-card__stock--low { color: var(--color-warning); }
.product-card__stock--out { color: var(--color-error); }

.product-card__actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.product-card__add {
  flex: 1;
}
.product-card__qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex: 1;
}
.product-card__qty-val {
  font-weight: 700;
  font-size: var(--text-sm);
  min-width: 24px;
  text-align: center;
}
.product-card__qty-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Badge */
.badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  z-index: 1;
}
.badge--new { background: var(--color-success); }
.product-card__img-wrap { position: relative; }

/* ============================
   Search
   ============================ */
.search-bar {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.search-bar__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition);
}
.search-bar__input:focus { border-color: var(--color-primary); }
.search-bar__input::placeholder { color: var(--color-text-faint); }

/* ============================
   Cart Sidebar / Overlay
   ============================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 90vw);
  background: var(--color-surface);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 300ms ease;
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }

.cart-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.cart-sidebar__title { font-size: var(--text-lg); font-weight: 700; }
.cart-sidebar__close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.cart-sidebar__close:hover { background: var(--color-surface-2); color: var(--color-text); }

.cart-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}

.cart-sidebar__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-divider);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}
.cart-item__name { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-1); }
.cart-item__price { font-size: var(--text-sm); color: var(--color-text-muted); }

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.cart-item__qty button {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: var(--text-sm);
  font-weight: 600;
}
.cart-item__qty button:hover { background: var(--color-surface-2); }
.cart-item__qty span { min-width: 20px; text-align: center; font-size: var(--text-sm); font-weight: 600; }

.cart-item__remove {
  color: var(--color-error);
  font-size: var(--text-xs);
  cursor: pointer;
  margin-top: var(--space-1);
}
.cart-item__remove:hover { text-decoration: underline; }

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cart-empty {
  text-align: center;
  padding: var(--space-12) 0;
  color: var(--color-text-muted);
}
.cart-empty svg { margin: 0 auto var(--space-4); opacity: 0.4; }

/* ============================
   Checkout Form
   ============================ */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 300;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  padding: var(--space-4);
}
.checkout-overlay.open { opacity: 1; pointer-events: auto; }

.checkout-form {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8);
}
.checkout-form__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}
.checkout-form__title { font-size: var(--text-xl); font-weight: 700; }
.checkout-form__close {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.checkout-form__close:hover { background: var(--color-surface-2); }

.form-group {
  margin-bottom: var(--space-4);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.form-group label .required { color: var(--color-error); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group .error { font-size: var(--text-xs); color: var(--color-error); margin-top: var(--space-1); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.checkout-summary {
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
}
.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
}
.checkout-summary__row:last-child {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
}

/* Payment methods */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
.payment-method {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}
.payment-method:hover { border-color: var(--color-primary); }
.payment-method.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.payment-method input[type="radio"],
.delivery-option input[type="radio"] { display: none; }
.payment-method__radio {
  width: 18px; height: 18px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.payment-method.active .payment-method__radio {
  border-color: var(--color-primary);
}
.payment-method.active .payment-method__radio::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}
.payment-method__label { font-size: var(--text-sm); font-weight: 500; }
.payment-method__desc { font-size: var(--text-xs); color: var(--color-text-muted); }

/* Delivery options */
.delivery-options { margin-bottom: var(--space-6); }
.delivery-option {
  display: flex;
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  cursor: pointer;
  transition: all var(--transition);
}
.delivery-option:hover { border-color: var(--color-primary); }
.delivery-option.active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.delivery-option.active .payment-method__radio {
  border-color: var(--color-primary);
}
.delivery-option.active .payment-method__radio::after {
  content: '';
  width: 8px; height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ============================
   Toast Notification
   ============================ */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  box-shadow: var(--shadow-lg);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: toastIn 300ms ease forwards;
  max-width: 360px;
}
.toast--success { border-left: 3px solid var(--color-success); }
.toast--error { border-left: 3px solid var(--color-error); }
.toast.hiding { animation: toastOut 300ms ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(12px); }
}

/* ============================
   Footer
   ============================ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-12) 0 var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}
.footer__col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer__col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.footer__col a:hover { color: var(--color-text); }

.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__legal { display: flex; gap: var(--space-6); }
.footer__legal a { color: var(--color-text-faint); }
.footer__legal a:hover { color: var(--color-text-muted); }

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================
   Evotor Sync Status
   ============================ */
@media (max-width: 768px) {
  .sync-status { display: none !important; }
}
.sync-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
}
.sync-status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}
.sync-status__dot--pending { background: var(--color-warning); }
.sync-status__dot--error { background: var(--color-error); }

/* ============================
   Loading Skeleton
   ============================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface-2) 25%, var(--color-surface-offset) 50%, var(--color-surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
