@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ═══════════════════════════════════════════════
   BALICRAFT — Jony Ive Design System
   "Design is not just what it looks like.
    Design is how it works." — Steve Jobs
   ═══════════════════════════════════════════════ */

:root {
  /* Warm palette — Apple-level restraint */
  --stone-50: #fafaf9;  --stone-100: #f5f5f4; --stone-200: #e7e5e4;
  --stone-300: #d6d3d1; --stone-400: #a8a29e;  --stone-500: #78716c;
  --stone-600: #57534e; --stone-700: #44403c;  --stone-800: #292524;
  --stone-900: #1c1917; --stone-950: #0c0a09;

  --gold-50: #fef9ec;   --gold-100: #fdf0c8;  --gold-200: #fce08d;
  --gold-300: #f9cb4a;  --gold-400: #f5b623;  --gold-500: #d8960a;
  --gold-600: #b47307;  --gold-700: #8f540a;

  --sage-50: #f6f7f4;   --sage-100: #e8ebe3;  --sage-200: #d3d8c9;
  --sage-300: #a9b49a;  --sage-400: #87967a;  --sage-500: #67775a;

  --bg: #fafaf9;        --bg-alt: #ffffff;     --bg-warm: #f7f5f2;
  --bg-card: #ffffff;   --bg-elevated: rgba(255,255,255,0.8);
  --bg-frosted: rgba(250,250,249,0.72);

  --text-primary: #1c1917;    --text-secondary: #57534e;
  --text-tertiary: #a8a29e;   --text-accent: #b47307;

  --border: rgba(0,0,0,0.06); --border-hover: rgba(0,0,0,0.12);
  --border-active: rgba(180,115,7,0.3);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.04);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  --radius-sm: 8px;  --radius-md: 12px;  --radius-lg: 16px;
  --radius-xl: 20px; --radius-2xl: 28px; --radius-full: 9999px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.3s var(--ease);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body { font-family: var(--font); background: var(--bg); color: var(--text-primary); line-height: 1.6; min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--stone-300); border-radius: 999px; }

::selection { background: var(--gold-200); color: var(--stone-900); }

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.section { padding: clamp(3rem, 8vw, 6rem) 0; }

/* ══════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0.875rem 0;
  background: var(--bg-frosted);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.navbar-brand { display: flex; align-items: center; gap: 0.625rem; }
.brand-icon { font-size: 1.25rem; }
.brand-text { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }
.brand-sub { font-size: 0.625rem; color: var(--text-tertiary); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-link {
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.01em;
  color: var(--text-secondary); transition: color 0.2s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0;
  height: 1.5px; background: var(--gold-500); border-radius: 1px;
  transform: scaleX(0); transition: transform 0.25s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.375rem; }

.cart-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.875rem; font-size: 0.8125rem; font-weight: 500;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-full); transition: all 0.2s;
}
.cart-badge:hover { border-color: var(--border-hover); background: var(--bg-alt); box-shadow: var(--shadow-sm); }
.cart-count {
  min-width: 18px; height: 18px; padding: 0 5px;
  font-size: 0.6875rem; font-weight: 600; line-height: 18px;
  background: var(--stone-900); color: white;
  border-radius: var(--radius-full); text-align: center;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.375rem; font-weight: 500; font-size: 0.875rem;
  border-radius: var(--radius-full); letter-spacing: 0.01em;
  transition: all 0.25s var(--ease); white-space: nowrap;
  text-decoration: none; border: none; cursor: pointer;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--stone-900); color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.btn-primary:hover { background: var(--stone-800); box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn-secondary:hover { border-color: var(--stone-400); background: var(--bg-alt); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: white; box-shadow: 0 2px 8px rgba(213,150,10,0.2);
}
.btn-gold:hover { box-shadow: 0 4px 16px rgba(213,150,10,0.3); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text-secondary); padding: 0.5rem; border-radius: var(--radius-md); }
.btn-ghost:hover { color: var(--text-primary); background: var(--stone-100); }

.btn-lg { padding: 0.875rem 2rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.375rem 1rem; font-size: 0.8125rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-md); }

/* ══════════════════════════════════════
   BADGES
   ══════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 10px; font-size: 0.6875rem; font-weight: 600;
  border-radius: var(--radius-full); letter-spacing: 0.03em;
}
.badge-gold { background: var(--gold-50); color: var(--gold-600); border: 1px solid var(--gold-200); }
.badge-green { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-coral { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.badge-teal { background: var(--sage-50); color: var(--sage-500); border: 1px solid var(--sage-200); }
.badge-red { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ══════════════════════════════════════
   HERO — Cinematic, Apple editorial
   ══════════════════════════════════════ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; padding-top: 64px;
  background: var(--stone-950); color: white;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/images/hero-bali.png');
  background-size: cover; background-position: center;
  opacity: 0.55;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,10,9,0.4) 0%, rgba(12,10,9,0.2) 40%, rgba(12,10,9,0.85) 100%);
}
.hero-content {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem); width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 6px 16px; margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 1.25rem; max-width: 700px;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1875rem); font-weight: 300;
  color: rgba(255,255,255,0.65); line-height: 1.6;
  margin-bottom: 2.5rem; max-width: 520px;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-bottom: 4rem; }
.hero-actions .btn-primary { background: white; color: var(--stone-900); }
.hero-actions .btn-primary:hover { background: var(--stone-100); }
.hero-actions .btn-secondary { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); }
.hero-actions .btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }

.hero-stats { display: flex; gap: clamp(2rem, 6vw, 4rem); }
.hero-stat-value {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600; color: var(--gold-300); letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 0.6875rem; color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500;
}

/* ══════════════════════════════════════
   SECTION HEADERS — Apple editorial
   ══════════════════════════════════════ */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.15;
}
.section-title .accent { color: var(--gold-600); }
.section-subtitle {
  font-size: 0.875rem; color: var(--text-tertiary);
  margin-top: 0.375rem; font-weight: 400;
}

/* ══════════════════════════════════════
   PRODUCT GRID — Clean Apple-Store style
   ══════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

.product-card {
  background: var(--bg-card); border-radius: var(--radius-xl);
  overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
}
.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.product-image {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--bg-warm);
}
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image .emoji {
  font-size: 3.5rem; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-image .emoji { transform: translate(-50%, -50%) scale(1.12); }
.product-image .card-badge { position: absolute; top: 12px; left: 12px; z-index: 2; }

.product-body { padding: 1.125rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-category {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--sage-500); font-weight: 600; margin-bottom: 0.25rem;
}
.product-name {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600;
  line-height: 1.3; margin-bottom: 0.5rem; letter-spacing: -0.01em;
}
.product-meta {
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; color: var(--text-tertiary); margin-bottom: 0.375rem;
}
.product-stars { color: var(--gold-500); letter-spacing: 1px; }
.product-footer {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: auto; padding-top: 0.75rem;
}
.product-price {
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--text-primary);
}
.original-price {
  font-size: 0.8125rem; font-weight: 400; color: var(--text-tertiary);
  text-decoration: line-through; margin-left: 0.375rem;
}
.stock-low { font-size: 0.6875rem; color: #ea580c; font-weight: 500; }
.stock-ok { font-size: 0.6875rem; color: var(--text-tertiary); }

.product-actions { padding: 0 1.25rem 1.25rem; display: flex; gap: 0.5rem; }
.product-actions .btn { flex: 1; font-size: 0.8125rem; border-radius: var(--radius-md); }

/* ══════════════════════════════════════
   FILTER BAR — Minimal
   ══════════════════════════════════════ */
.filter-bar { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; padding: 0.75rem 0; }
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 500;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius-full); color: var(--text-secondary);
  transition: all 0.2s; cursor: pointer; text-decoration: none;
}
.filter-chip:hover { border-color: var(--stone-400); color: var(--text-primary); }
.filter-chip.active {
  background: var(--stone-900); color: white; border-color: var(--stone-900);
}

.search-box { position: relative; }
.search-box input {
  width: 220px; padding: 0.5rem 1rem 0.5rem 2.25rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-full); font-size: 0.8125rem;
  outline: none; transition: all 0.2s;
}
.search-box input:focus { border-color: var(--stone-400); box-shadow: 0 0 0 3px rgba(168,162,158,0.15); }
.search-box .search-icon {
  position: absolute; top: 50%; left: 0.75rem; transform: translateY(-50%);
  color: var(--text-tertiary); font-size: 0.875rem;
}

select.filter-select {
  padding: 0.5rem 0.75rem; background: var(--bg-alt);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-size: 0.8125rem; outline: none; cursor: pointer;
}
.result-count { font-size: 0.8125rem; color: var(--text-tertiary); margin-left: auto; }

/* ══════════════════════════════════════
   GLASS CARD — Frosted surfaces
   ══════════════════════════════════════ */
.glass-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.5rem;
  box-shadow: var(--shadow-xs); transition: all 0.25s var(--ease);
}
.glass-card:hover { box-shadow: var(--shadow-md); }

/* ══════════════════════════════════════
   STAT CARDS — Apple Health style
   ══════════════════════════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.5rem;
  transition: all 0.3s var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon { font-size: 1.375rem; margin-bottom: 0.75rem; }
.stat-value {
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600;
  letter-spacing: -0.03em; color: var(--text-primary);
}
.stat-label {
  font-size: 0.75rem; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 500; margin-top: 0.125rem;
}

/* ══════════════════════════════════════
   CART
   ══════════════════════════════════════ */
.cart-page { padding-top: 100px; min-height: 80vh; }
.cart-item {
  display: flex; gap: 1rem; padding: 1rem; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 0.625rem;
  transition: all 0.2s;
}
.cart-item:hover { box-shadow: var(--shadow-sm); }
.cart-item-image {
  width: 72px; height: 72px; border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-warm); flex-shrink: 0;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9375rem; margin-bottom: 2px; }
.cart-item-price { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.cart-controls { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn {
  width: 30px; height: 30px; border-radius: var(--radius-md);
  background: var(--stone-100); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 600; cursor: pointer; color: var(--text-primary);
  transition: all 0.15s;
}
.qty-btn:hover { background: var(--stone-200); }
.qty-value { font-weight: 600; min-width: 24px; text-align: center; }
.cart-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9375rem; }
.summary-row.total {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 0.5rem;
}
.free-shipping-note {
  font-size: 0.75rem; color: var(--sage-500); text-align: center; margin: 1rem 0;
  font-weight: 500;
}

/* ══════════════════════════════════════
   CHECKOUT / FORMS
   ══════════════════════════════════════ */
.checkout-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.8125rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 0.375rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.6875rem 1rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-primary);
  outline: none; transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--stone-400); box-shadow: 0 0 0 3px rgba(168,162,158,0.15);
}

/* ══════════════════════════════════════
   ORDER CONFIRMATION
   ══════════════════════════════════════ */
.confirmation-box { max-width: 560px; margin: 0 auto; text-align: center; }
.confirmation-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.order-number {
  font-family: var(--font-display); font-size: 1.375rem;
  font-weight: 600; color: var(--gold-600); margin: 1rem 0; letter-spacing: -0.02em;
}

/* ══════════════════════════════════════
   TABLE — Clean Apple-Notes style
   ══════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; font-size: 0.6875rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-tertiary); font-weight: 600;
  padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.875rem 1rem; border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.data-table tr:hover td { background: var(--stone-50); }

/* ══════════════════════════════════════
   SUPPLIER SIDEBAR — macOS Finder style
   ══════════════════════════════════════ */
.dashboard-layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; padding-top: 60px; }
.sidebar {
  background: var(--stone-50); border-right: 1px solid var(--border);
  padding: 1.25rem 0; position: sticky; top: 60px; height: calc(100vh - 60px);
}
.sidebar-link {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 1.25rem; margin: 0.125rem 0.5rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--text-secondary);
  border-radius: var(--radius-md); transition: all 0.15s;
}
.sidebar-link:hover { background: var(--stone-200); color: var(--text-primary); }
.sidebar-link.active {
  background: var(--stone-900); color: white;
}
.sidebar-badge { margin-left: auto; }
.dashboard-main { padding: clamp(1.5rem, 4vw, 2.5rem); overflow-y: auto; }
.dashboard-title {
  font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 600; letter-spacing: -0.02em; margin-bottom: 0.25rem;
}
.dashboard-subtitle { color: var(--text-tertiary); font-size: 0.875rem; margin-bottom: 2rem; }

/* ══════════════════════════════════════
   MESSAGES
   ══════════════════════════════════════ */
.message-list { display: flex; flex-direction: column; gap: 0.625rem; }
.message-card {
  padding: 1rem 1.25rem; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: box-shadow 0.2s;
}
.message-card:hover { box-shadow: var(--shadow-sm); }
.message-card.unread { border-left: 3px solid var(--gold-500); }
.message-sender { font-weight: 600; font-size: 0.875rem; }
.message-role { font-size: 0.6875rem; color: var(--sage-500); font-weight: 500; }
.message-content { font-size: 0.875rem; color: var(--text-secondary); margin: 0.375rem 0; line-height: 1.5; }
.message-time { font-size: 0.6875rem; color: var(--text-tertiary); }
.message-form { display: flex; gap: 0.625rem; margin-top: 1.5rem; }
.message-form textarea {
  flex: 1; min-height: 56px; padding: 0.625rem 1rem;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); resize: vertical; outline: none;
}
.message-form textarea:focus { border-color: var(--stone-400); box-shadow: 0 0 0 3px rgba(168,162,158,0.12); }

/* ══════════════════════════════════════
   PRODUCT DETAIL — Apple Store layout
   ══════════════════════════════════════ */
.product-detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.product-detail-image {
  aspect-ratio: 1; border-radius: var(--radius-2xl); overflow: hidden;
  background: var(--bg-warm);
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600; letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.product-features { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 1rem 0; }
.feature-tag {
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500;
  background: var(--sage-50); border: 1px solid var(--sage-200);
  border-radius: var(--radius-full); color: var(--sage-500);
}

/* ══════════════════════════════════════
   TRUST SECTION — Horizontal icons
   ══════════════════════════════════════ */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.trust-card {
  text-align: center; padding: 1.5rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--bg-card); transition: all 0.3s var(--ease);
}
.trust-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.trust-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.trust-title { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.25rem; }
.trust-desc { font-size: 0.75rem; color: var(--text-tertiary); line-height: 1.4; }

/* ══════════════════════════════════════
   FOOTER — Minimal Apple-style
   ══════════════════════════════════════ */
.footer {
  background: var(--stone-50); border-top: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem; margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { font-family: var(--font-display); font-size: 1.125rem; font-weight: 600; margin-bottom: 0.625rem; }
.footer-desc { font-size: 0.8125rem; color: var(--text-tertiary); max-width: 260px; line-height: 1.5; }
.footer h4 {
  font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-tertiary); font-weight: 600; margin-bottom: 0.875rem;
}
.footer-links a {
  display: block; font-size: 0.8125rem; color: var(--text-secondary);
  padding: 0.1875rem 0; transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-size: 0.75rem; color: var(--text-tertiary);
}

/* ══════════════════════════════════════
   TOAST
   ══════════════════════════════════════ */
.toast {
  position: fixed; top: 80px; right: 20px; z-index: 5000;
  padding: 0.75rem 1.25rem;
  background: var(--stone-900); color: white;
  border-radius: var(--radius-lg); font-size: 0.875rem; font-weight: 500;
  box-shadow: var(--shadow-xl);
  animation: slideInToast 0.4s var(--ease-spring), fadeOutToast 0.3s 2.7s forwards;
}
@keyframes slideInToast { from { opacity: 0; transform: translateY(-8px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes fadeOutToast { to { opacity: 0; transform: translateY(-8px); } }

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.animate-in { animation: fadeIn 0.6s var(--ease) forwards; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state-icon { font-size: 2.5rem; opacity: 0.35; margin-bottom: 1rem; }
.empty-state p { color: var(--text-tertiary); margin-bottom: 1rem; }

/* ── About ── */
.about-hero { padding: 8rem 0 4rem; text-align: center; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* ── Login ── */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--bg-warm); }
.login-box { width: 380px; max-width: 90vw; }

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 968px) {
  .hero-content { text-align: center; }
  .checkout-grid { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}
