/*
 * Crystal White v8 — AMAZON / APPLE STORE PURITY
 *
 * Design mandate: zero haze. Amazon product page reference.
 * - Pure white canvas (#ffffff), no off-white mist.
 * - Real borders (#e7e7e7), not glow-shadows.
 * - Solid text colors (Amazon #0f1111 body), NOT rgba(0,0,0,0.7) gray mist.
 * - One subtle layered shadow, never three fog layers.
 *
 * Contrast verification:
 *   Heading #000000 on #ffffff → 21:1
 *   Body    #0f1111 on #ffffff → 18.0:1
 *   Muted   #565959 on #ffffff → 7.3:1  (WCAG AAA)
 *   Dim     #8d9096 on #ffffff → 4.6:1   (WCAG AA, labels only)
 */

html[data-visual-preset="white"],
html[data-visual-preset="industrial-white"] {

  --theme-bg:            #ffffff;
  --theme-bg-soft:       #f7f8f8;
  --theme-bg-elevated:   #ffffff;
  --theme-bg-surface:    #eef0f1;
  --theme-bg-input:      #ffffff;

  --theme-primary:       #0071e3;
  --theme-primary-soft:  #2997ff;
  --theme-primary-dim:   #005bb5;
  --theme-primary-glow:  rgba(0,113,227,0.08);

  --theme-accent:        #0071e3;
  --theme-accent-soft:   #2997ff;
  --theme-danger:        #b3261e;
  --theme-tan:           #565959;
  --theme-tan-soft:      #6e7176;

  --theme-text:          #0f1111;
  --theme-text-muted:    #565959;
  --theme-text-dim:      #8d9096;
  --theme-text-heading:  #000000;
  --theme-text-inverse:  #ffffff;

  --theme-border:        #e7e7e7;
  --theme-border-glow:  #d5d9dc;

  --theme-shadow:        0 1px 2px rgba(15,17,19,0.05);
  --theme-shadow-glow:   0 4px 16px rgba(15,17,19,0.08);

  --theme-hero-gradient: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);

  --theme-bg-rgb:           255, 255, 255;
  --theme-bg-soft-rgb:      247, 248, 248;
  --theme-primary-rgb:      0, 113, 227;
  --theme-primary-dim-rgb:  0, 91, 181;
  --theme-accent-rgb:       0, 113, 227;
  --theme-danger-rgb:       179, 38, 30;
  --theme-text-heading-rgb: 0, 0, 0;
  --theme-text-inverse-rgb: 255, 255, 255;
  --theme-text-rgb:         15, 17, 19;

  --black:       #ffffff;
  --dark:        #f7f8f8;
  --dark-2:      #ffffff;
  --dark-3:      #eef0f1;
  --dark-4:      #ffffff;
  --olive:       #e0e3e5;
  --olive-lt:    #eceeef;
  --khaki:       #6e7176;
  --camo-grn:    #e0e3e5;
  --lime-tac:    #0071e3;
  --lime-glow:   rgba(0,113,227,0.08);
  --amber:       #ff9500;
  --amber-lt:    #ffb340;
  --red-tac:     #b3261e;
  --tan:         #565959;
  --tan-lt:      #000000;
  --text:        #0f1111;
  --text-muted:  #565959;
  --text-dim:    #8d9096;
  --border:      var(--theme-border);
  --border-glow: var(--theme-border-glow);
  --shadow:      var(--theme-shadow);
  --shadow-olive:var(--theme-shadow-glow);
}

/* ── v9: Amazon-clean overrides — kill tactical blue haze on white ── */
html[data-visual-preset="white"],
html[data-visual-preset="industrial-white"] {

  /* Section tag / hero badge: neutral gray chip, NOT blue tint */
  .section-tag,
  .hero-badge {
    background: var(--theme-bg-soft);
    color: var(--theme-text-muted);
    border-color: var(--theme-border);
  }

  /* Product tags: neutral chip, NOT blue tint */
  .product-tags span {
    background: var(--theme-bg-soft);
    color: var(--theme-text-muted);
    border-color: var(--theme-border);
  }

  /* Hero: kill blue radial glows, space-photo overlay, grid, crosshair */
  .hero-bg {
    background: var(--theme-hero-gradient);
  }
  .hero-overlay,
  .nv-grid,
  .nv-crosshair,
  .nv-scanline {
    display: none !important;
  }

  /* Hero accent: no blue glow text-shadow */
  .hero-accent {
    text-shadow: none;
  }

  /* Product card hover: clean neutral shadow, NOT blue glow */
  .product-card:hover {
    border-color: var(--theme-border-glow);
    box-shadow: 0 8px 24px rgba(15,17,19,0.08), 0 2px 6px rgba(15,17,19,0.04);
  }

  /* Product badge: neutral dark, not olive gray */
  .product-badge {
    background: var(--theme-text-heading);
    color: var(--theme-text-inverse);
  }

  /* Price-save chip: neutral, not blue tint */
  .price-save {
    background: var(--theme-bg-soft);
    color: var(--theme-text-muted);
    border-color: var(--theme-border);
  }

  /* Product name accent word: pure heading black, not colored (Amazon style) */
  .d360s-product-name .accent {
    color: var(--theme-text-heading);
  }

  /* Technology section: kill blue radial glows on light background */
  .technology::before {
    background: none;
  }
  .tech-card:hover {
    background: var(--theme-bg-elevated);
    border-color: var(--theme-border-glow);
  }

  /* Guarantee icon chip: neutral, not blue tint */
  .g-icon {
    background: var(--theme-bg-soft);
  }

  /* Catalog CTA button sweep: neutral, not blue */
  .btn-catalog::before {
    background: linear-gradient(90deg, transparent 0%, rgba(15,17,19,0.06) 50%, transparent 100%);
  }
  .btn-catalog:hover {
    border-color: var(--theme-btn-bg, var(--lime-tac));
    color: var(--theme-btn-bg, var(--lime-tac));
    box-shadow: none;
  }

  /* About image overlay: remove blue tint */
  .about-img-frame::after {
    background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, transparent 50%, rgba(0,0,0,0.25) 100%);
  }
}
