:root {
  /* Palette: ham renk değerleri. Rol değişkenleri ve bileşenler bu paleti gösterir;
     bir tonu değiştirmek için yalnız buradaki değer düzenlenir. */
  /* Marka: kimlik belgesindeki tam değerler (brand/tokens.json). */
  --brand-green: #002d1b; --brand-green-rgb: 0 45 27;
  --brand-gold: #c58f37; --brand-gold-rgb: 197 143 55;
  --brand-bordo: #590800; --brand-bordo-rgb: 89 8 0;
  --brand-cream: #f7cf9c; --brand-cream-rgb: 247 207 156;

  /* Ton merdivenleri marka renklerinden türetildi: forest (yeşil), cream (krem), gold (altın), leaf (açık yeşil).
     Sayı, tonun basamak etiketidir. */
  --pal-white: #ffffff; --pal-white-rgb: 255 255 255;
  --pal-white-99: #fffdf8;

  /* Kavrulmuş çekirdek tonları: Kahvemiz sayfasındaki 3B sahne bu değerleri okur (coffee.css, coffee-scene.js). */
  --pal-roast-34: #6b3f22;
  --pal-roast-22: #472a16;
  --pal-roast-12: #26150b;
  /* Değirmen modelinin pirinç tonu: marka altınının metal yüzeyde okunacak açık hali. */
  --pal-brass-66: #d8aa50; --pal-brass-66-rgb: 216 170 80;

  --pal-black-03: #0b0704; --pal-black-03-rgb: 11 7 4;
  --pal-black-02: #090603; --pal-black-02-rgb: 9 6 3;
  --pal-black: #000000; --pal-black-rgb: 0 0 0;

  --pal-gray-97: #f7f7f7;
  --pal-gray-95-b: #f3f3f3;
  --pal-gray-95: #f1f1f1;
  --pal-gray-94-b: #f0f0f0;
  --pal-gray-94: #efefef;
  --pal-gray-93-b: #ededed;
  --pal-gray-93: #ececec;
  --pal-gray-90-b: #e6e6e6;
  --pal-gray-90: #e5e5e5;
  --pal-gray-89-b: #e4e4e4;
  --pal-gray-89: #e2e2e2;
  --pal-gray-87-c: #dfdfdf;
  --pal-gray-87-b: #dedede;
  --pal-gray-87: #dddddd;
  --pal-gray-85: #d9d9d9;
  --pal-gray-84-b: #d7d7d7;
  --pal-gray-84: #d6d6d6;
  --pal-gray-78: #c7c7c7;
  --pal-gray-56: #8f8f8f;
  --pal-gray-55: #8b8b8b;
  --pal-gray-54: #8a8a8a;
  --pal-gray-48: #7a7a7a;
  --pal-gray-47: #777777;
  --pal-gray-46: #767676;
  --pal-gray-44: #6f6f6f;
  --pal-gray-40: #666666;
  --pal-gray-37: #5f5f5f;
  --pal-gray-36: #5b5b5b;
  --pal-gray-33-b: #555555;
  --pal-gray-33: #535353;
  --pal-gray-29: #4a4a4a;
  --pal-gray-27: #444444;
  --pal-gray-25: #3f3f3f;
  --pal-gray-23: #3a3a3a; --pal-gray-23-rgb: 58 58 58;
  --pal-gray-20: #333333;
  --pal-gray-18-b: #2f2f2f;
  --pal-gray-18: #2d2d2d;
  --pal-gray-17: #2b2b2b;
  --pal-gray-13: #222222;
  --pal-gray-13-b: #24211f;
  --pal-gray-12: #1f1f1f;
  --pal-gray-09: #181818; --pal-gray-09-rgb: 24 24 24;
  --pal-gray-07: #111111;

  --pal-forest-54: #729587;
  --pal-forest-50: #688a7c;
  --pal-forest-48: #6a8d7f;
  --pal-gold-45: #b07d2a;
  --pal-forest-44: #5b796d;
  --pal-brown-42: #9a3b56;
  --pal-forest-41: #567267;
  --pal-gold-40: #926926;
  --pal-forest-34: #48665a;
  --pal-gold-32: #885b13;
  --pal-gold-31-b: #785011;
  --pal-gold-31: #6e4f1f; --pal-gold-31-rgb: 110 79 31;
  --pal-forest-28: #25503f;
  --pal-forest-27-b: #25503f;
  --pal-forest-27-c: #234d3c; --pal-forest-27-c-rgb: 35 77 60;
  --pal-gold-27-d: #8e6014;
  --pal-forest-27: #214e3c;
  --pal-forest-26: #214f3c; --pal-forest-26-rgb: 33 79 60;
  --pal-forest-24: #194835; --pal-forest-24-rgb: 25 72 53;
  --pal-forest-23: #154431;
  --pal-forest-21: #0f3b2a; --pal-forest-21-rgb: 15 59 42;
  --pal-forest-14: #052a1b;
  --pal-forest-13: #032518; --pal-forest-13-rgb: 3 37 24;
  --pal-forest-13-b: #04291a; --pal-forest-13-b-rgb: 4 41 26;
  --pal-forest-12: #032517; --pal-forest-12-rgb: 3 37 23;
  --pal-forest-11: #022215;
  --pal-forest-10-b: #012014; --pal-forest-10-b-rgb: 1 32 20;
  --pal-forest-10-c: #012014;
  --pal-forest-10: #012014;
  --pal-forest-10-d: #012013;
  --pal-forest-09: #011b11;
  --pal-forest-07-b: #00180e; --pal-forest-07-b-rgb: 0 24 14;
  --pal-forest-07-c: #00180e;
  --pal-forest-07: #00150d; --pal-forest-07-rgb: 0 21 13;
  --pal-forest-06-c: #00140c; --pal-forest-06-c-rgb: 0 20 12;
  --pal-forest-06-b: #00130b; --pal-forest-06-b-rgb: 0 19 11;
  --pal-forest-06: #00120b; --pal-forest-06-rgb: 0 18 11;
  --pal-forest-05-c: #00110a; --pal-forest-05-c-rgb: 0 17 10;
  --pal-forest-05-d: #00120b;
  --pal-forest-05-b: #00110a; --pal-forest-05-b-rgb: 0 17 10;
  --pal-forest-05: #00110a; --pal-forest-05-rgb: 0 17 10;

  --pal-cream-96-b: #fdf7f1;
  --pal-cream-96: #fdf6ee; --pal-cream-96-rgb: 253 246 238;
  --pal-cream-95: #f7f2eb;
  --pal-cream-92: #f4ece1;
  --pal-cream-90-b: #f8e9d6;
  --pal-cream-90: #eee7dc;
  --pal-cream-89-b: #efe6db;
  --pal-cream-89-c: #f3e7d8;
  --pal-cream-89: #ebe2d6;
  --pal-cream-88: #eee2d2;
  --pal-cream-88-b: #f5e2ca;
  --pal-cream-86: #f3dfc4;
  --pal-cream-82-c: #ebd6b9; --pal-cream-82-c-rgb: 235 214 185;
  --pal-cream-82: #dfd1bd;
  --pal-cream-82-b: #e1d2bd;
  --pal-cream-76: #d7c4ab; --pal-cream-76-rgb: 215 196 171;
  --pal-cream-67: #d9b483;
  --pal-cream-64: #f0a94c;

  --pal-amber-98-b: #fffcf6; --pal-amber-98-b-rgb: 255 252 246;
  --pal-amber-98: #fffaf4;
  --pal-amber-97-b: #fffaf2;
  --pal-amber-97: #fffaf0;
  --pal-amber-95: #fff9e8;
  --pal-amber-92: #fff0d4;
  --pal-amber-78: #f6df9a;
  --pal-amber-67: #f4c263; --pal-amber-67-rgb: 244 194 99;
  --pal-amber-56: #fbbf24;
  --pal-amber-55: #f5b923; --pal-amber-55-rgb: 245 185 35;
  --pal-amber-50: #f59e0b;
  --pal-amber-50-b: #ff5a00; --pal-amber-50-b-rgb: 255 90 0;
  --pal-amber-50-c: #ff6200;
  --pal-amber-50-d: #ff7000;
  --pal-amber-49: #ea7a12;
  --pal-amber-48: #f4b400;
  --pal-amber-44-b: #e05800;
  --pal-amber-44: #d97706;

  --pal-red-98: #fff5f8;
  --pal-red-96: #fdecef;
  --pal-red-94: #fae9e4;
  --pal-red-86: #efc8d4;
  --pal-red-82: #f2b0b9;
  --pal-red-57: #e74c3c; --pal-red-57-rgb: 231 76 60;
  --pal-red-56: #dc4b42; --pal-red-56-rgb: 220 75 66;
  --pal-red-50: #ff3800;
  --pal-red-46: #b84634;
  --pal-red-46-b: #c0392b; --pal-red-46-b-rgb: 192 57 43;
  --pal-red-40: #b42318; --pal-red-40-rgb: 180 35 24;
  --pal-red-38: #9c2b25;
  --pal-red-33: #8f1f17;
  --pal-red-28: #721c24;

  --pal-pistachio-66: #b5cc74;
  --pal-rose-74: #ee8fa3;
  --pal-green-95: #e9f9ee;
  --pal-leaf-94: #e9f6f1;
  --pal-leaf-92-b: #e3f6ef;
  --pal-green-92: #dff4ea;
  --pal-green-74: #9fd9b0;
  --pal-green-52: #2edb6e;
  --pal-green-49: #25d366; --pal-green-49-rgb: 37 211 102;
  --pal-green-47: #3bb463;
  --pal-green-46: #27c465; --pal-green-46-rgb: 39 196 101;
  --pal-green-45-b: #22c55e; --pal-green-45-b-rgb: 34 197 94;
  --pal-green-45: #20c55a;
  --pal-leaf-43: #429976; --pal-leaf-43-rgb: 66 153 118;
  --pal-green-40: #22a857; --pal-green-40-rgb: 34 168 87;
  --pal-green-39: #12b76a; --pal-green-39-rgb: 18 183 106;
  --pal-green-37-b: #3f7f4f;
  --pal-green-37: #1d9e50; --pal-green-37-rgb: 29 158 80;
  --pal-green-36: #16a34a;
  --pal-green-34: #0f9f5f; --pal-green-34-rgb: 15 159 95;
  --pal-leaf-34-b: #308160; --pal-leaf-34-b-rgb: 48 129 96;
  --pal-leaf-33: #2b7d5c;
  --pal-green-31: #0f8f5d;
  --pal-green-30-b: #16834a;
  --pal-green-30: #0d8a50;
  --pal-green-27: #256348;
  --pal-green-24: #106b46;
  --pal-leaf-24-b: #1f5a43; --pal-leaf-24-b-rgb: 31 90 67;
  --pal-green-23: #23533e; --pal-green-23-rgb: 35 83 62;
  --pal-green-21-c: #16564b; --pal-green-21-c-rgb: 22 86 75;
  --pal-green-21-b: #155724;
  --pal-green-21: #11584b; --pal-green-21-rgb: 17 88 75;
  --pal-green-19: #174b32;
  --pal-green-15: #123b2a; --pal-green-15-rgb: 18 59 42;

  --pal-teal-95: #e8f8fb;
  --pal-teal-93: #e4f3f4;
  --pal-teal-76: #9fdbe7;
  --pal-teal-31: #246f7a;
  --pal-teal-21: #0c5460;

  --pal-blue-95: #e8f0ff;
  --pal-blue-83: #a9c0ff;
  --pal-blue-60: #3b82f6; --pal-blue-60-rgb: 59 130 246;
  --pal-blue-53: #2563eb;
  --pal-blue-26: #004085;
  --pal-blue-10: #131920; --pal-blue-10-rgb: 19 25 32;

  /* Typography */
  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-ui: "Montserrat", "Segoe UI", system-ui, sans-serif;
  /* Cinzel yalnız büyük harf biçimlidir; başlıklar büyük harfe çevrilir (Türkçede i/ı doğru dönüşsün diye). */
  --display-transform: uppercase;
  --display-tracking: 0.02em;
  --font-body: var(--font-ui);
  --font-heading: var(--font-display);

  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 15px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 22px;
  --text-3xl: 28px;
  --text-4xl: 36px;

  --lh-tight: 1.2;
  --lh-snug: 1.3;
  --lh-normal: 1.45;
  --lh-relaxed: 1.6;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Spacing scale (Baklava-inspired scale rhythm, custom values) */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows / depth */
  --shadow-xs: 0 1px 2px rgb(var(--pal-forest-13-rgb) / 0.06);
  --shadow-sm: 0 4px 12px rgb(var(--pal-forest-13-rgb) / 0.08);
  --shadow-md: 0 8px 24px rgb(var(--pal-forest-13-rgb) / 0.10);
  --shadow-lg: 0 16px 40px rgb(var(--pal-forest-13-rgb) / 0.14);
  --shadow-xl: 0 24px 56px rgb(var(--pal-forest-13-rgb) / 0.18);
  --shadow-focus: 0 0 0 3px rgb(var(--pal-leaf-34-b-rgb) / 0.26);

  /* Motion */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --dur-slow: 280ms;

  /* Layering */
  --z-base: 1;
  --z-sticky: 100;
  --z-overlay: 400;
  --z-drawer: 500;
  --z-modal: 600;
  --z-toast: 700;

  /* Layout */
  --container-mobile-padding: 12px;
  --container-tablet-padding: 16px;
  --container-desktop-padding: 24px;
  --content-max: 1280px;

  /* Product image ratios */
  --ratio-product-card: 1 / 1;
  --ratio-hero-mobile: 16 / 9;
  --ratio-hero-desktop: 21 / 8;

  /* Color roles */
  --color-bg: var(--pal-cream-96);
  --color-surface: var(--pal-white-99);
  --color-surface-soft: var(--pal-cream-90-b);
  --color-surface-elevated: var(--pal-white);
  --color-border: var(--pal-cream-82-c);
  --color-border-strong: var(--pal-cream-67);

  --color-text: var(--pal-forest-10-d);
  --color-text-soft: var(--pal-forest-27-b);
  --color-text-muted: var(--pal-forest-44);
  --color-text-inverse: var(--pal-white);
  --color-text-primary: var(--color-text);

  --color-brand: var(--pal-forest-21);
  --color-brand-strong: var(--brand-green);
  --color-brand-soft: var(--pal-cream-86);
  --color-primary: var(--color-brand);

  --color-accent-commerce: var(--pal-leaf-34-b);
  --color-accent-commerce-strong: var(--pal-leaf-24-b);
  --color-accent-commerce-soft: var(--pal-leaf-92-b);
  --color-accent: var(--color-accent-commerce);
  --color-focus-ring: var(--color-brand);
  --color-gold: var(--brand-gold);
  --color-gold-ink: var(--pal-gold-32);

  --color-success: var(--pal-leaf-33);
  --color-success-soft: var(--pal-leaf-94);
  --color-danger: var(--pal-red-46);
  --color-danger-soft: var(--pal-red-94);
  --color-warning: var(--pal-gold-32);
  --color-warning-soft: var(--pal-amber-92);
  --color-info: var(--pal-teal-31);
  --color-info-soft: var(--pal-teal-93);

  /* Component sizing */
  --touch-target-min: 44px;
  --btn-height-sm: 36px;
  --btn-height-md: 44px;
  --btn-height-lg: 52px;
  --input-height: 46px;
  --header-height-mobile: 56px;
  --header-height-desktop: 72px;
}

/* Breakpoints (mobile-first) */
@custom-media --bp-sm (min-width: 480px);
@custom-media --bp-md (min-width: 768px);
@custom-media --bp-lg (min-width: 1024px);
@custom-media --bp-xl (min-width: 1280px);

/* Fallback comments for environments without @custom-media support:
   sm: 480px, md: 768px, lg: 1024px, xl: 1280px */
