/* ==========================================================================
   Goldoun — design tokens
   Colours come from the brand board (CLAUDE.md §6.1). Components must use
   these variables, never hard-coded hex values.
   ========================================================================== */

:root {
	/* Primary — deep maroon */
	--primary-50:  #f6f1f1;
	--primary-100: #e9dbdb;
	--primary-200: #d3b8b8;
	--primary-300: #b58888;
	--primary-400: #975858;
	--primary-500: #7d2e2e;
	--primary-600: #6b1111; /* brand primary */
	--primary-700: #580e0e; /* hover / pressed */
	--primary-800: #460b0b;
	--primary-900: #300808;

	/* Secondary — icy blue */
	--secondary-50:  #eff5f7;
	--secondary-100: #e0ecee;
	--secondary-200: #cde4e8; /* brand-board panel colour */
	--secondary-300: #b0cfd5;
	--secondary-400: #96bfc7; /* brand secondary */
	--secondary-500: #80a2a9;
	--secondary-600: #69868b;
	--secondary-700: #52696d;
	--secondary-800: #3c4c50;
	--secondary-900: #263032;

	/* Neutrals & accent */
	--color-text-dark:  #1e1515;
	--color-text-muted: #6a5f5f;
	--color-bg:         #fcfdfd;
	--color-white:      #fff;
	--border-light:     #eee;
	--border-mid:       #ccc;
	--color-black:      #000;    /* top price bar, checkout button */
	--color-footer:     #111;    /* footer */
	--color-footer-text: #B9AFAF; /* body text on the footer (9:1) */
	--color-footer-faint: #948A8A; /* designer credit on the footer (5.6:1) */
	--color-footer-line: #2A2222; /* 1px lines and boxes on the footer */
	--color-accent:     #d4af37; /* gold: decorative lines, or text on black only */
	--color-placeholder: #f0f0f0; /* image placeholders until real photos exist */
	--color-bg-rgb: 252 253 253;  /* --color-bg as channels, for veils: rgb(var(--color-bg-rgb) / .8) */
	--color-black-rgb: 0 0 0;       /* for faint shadows: rgb(var(--color-black-rgb) / .45) */
	--color-white-rgb: 255 255 255;

	/* Hero veil: opacity at the START of the eased hero gradient (screen edge
	   on desktop, hero bottom on phones; hero.css). Where the text ends the
	   curve is at ×.59 (desktop) / ≥ ×.73 (phones) of it; AA on a black photo
	   needs ≥ .51 there for dark text, ≥ .62 for small maroon text. */
	--hero-veil-desktop: .95;
	--hero-veil-mobile:  .95;
	/* «چرا گلدون» veil behind the text on the left (why.css); same AA limit (~.63). */
	--why-veil-desktop: .80;
	--color-scrim: rgba(30, 21, 21, .5); /* --color-text-dark at 50%, behind drawers */

	/* Gold colour swatches (product variations زرد / سفید / رزگلد) */
	--gold-yellow: #e3c16f;
	--gold-white:  #e4e7e8;
	--gold-rose:   #e0b2a2;

	/* Semantic aliases used by components */
	--color-primary:         var(--primary-600);
	--color-primary-hover:   var(--primary-700);
	--color-secondary:       var(--secondary-400);
	--color-secondary-light: var(--secondary-200);
	--color-surface:         var(--secondary-50);

	/* Typography */
	--font-sans: "Vazirmatn", system-ui, "Segoe UI", Tahoma, sans-serif;
	--fs-micro: .75rem;

	/* Underlines of text links and link-buttons (one look sitewide, base.css). */
	--underline-offset:    4px;
	--underline-thickness: 1px;

	--fs-small: .8125rem;
	--fs-base:  .9375rem;
	--fs-lead:  1.0625rem;
	--fs-h3:    1.1875rem;
	--fs-h2:    clamp(1.5rem, 1.05rem + 1.6vw, 2.25rem);
	--fs-h1:    clamp(2rem, 1.2rem + 3.4vw, 3.9rem);

	/* Layout (CLAUDE.md §6.6 A): one content width for every section; the
	   gutter sits outside it (.wrap = content + 2 gutters). */
	--content-max: 1440px;
	--gutter:      clamp(32px, 4vw, 64px); /* desktop; 24px tablet, 18px phones (below) */
	--drawer-pad:  24px; /* inner padding of drawers and the search panel */
	--header-h:    74px;
	--topbar-h:    38px; /* fixed one-line top bar; the hero height subtracts it */

	/* Spacing scale (03.2 review 2; used by the product page buy column first). */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-8: 32px;

	/* Corner radius (CLAUDE.md §6.6 B). No pill-shaped buttons; small round
	   markers (cart count, gold colour dots) stay circles. */
	--radius-control: 6px; /* buttons, fields, chips, qty, toasts, dropdowns, arrows */
	--radius-badge:   4px; /* tags / badges, rows inside a dropdown */
	--radius-surface: 0;   /* cards, bento cells, photos, drawers */

	/* Bento label veil: opacity at the bottom of the eased gradient behind a
	   category name (bento.css). The text top sits where the veil is ≥ .79 of
	   this (≥ .55 at .70): dark text ≥ 5.2:1 on a black photo. */
	--bento-veil: .70;

	/* Motion */
	--ease:   cubic-bezier(.2, .7, .2, 1);
	--t-fast: .2s;
	--t-mid:  .38s;
	--t-slow: .8s;
}

@media (max-width: 1080px) {
	:root { --gutter: 24px; }
}

@media (max-width: 768px) {
	:root {
		--gutter:     18px;
		--drawer-pad: 18px;
		--header-h:   64px;
	}
}
