/* ==========================================================================
   Marie Beauty Hub — dark mode (black & gold)
   Always loaded, but only applies when <html data-theme="dark"> is set by
   the header switch (see head.js / app.js). The default look is unchanged.
   ========================================================================== */

/* Header switch: moon in light mode, sun in dark mode. Needs JS. */
.theme-toggle .icon--sun { display: none; }
.no-js .theme-toggle { display: none; }
[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
[data-theme="dark"] .theme-toggle .icon--sun { display: block; }

:root[data-theme="dark"] {
  color-scheme: dark;

  /* Brand palette — gold replaces berry as the accent */
  --berry: #c9a24b;          /* gold: buttons, wordmark, eyebrows, links */
  --berry-hover: #dcb865;
  --berry-deep: #a8832f;
  --cream: #0e0d0b;          /* page background: warm black */
  --ink: #f2e9d8;            /* body text: ivory */
  --blush: #171410;          /* hero + page-header bands */
  --blush-deep: #1d1913;
  --sage: #13110d;
  --line: #3a3124;           /* hairlines: dark gold-brown */
  --muted: #b5a88c;          /* secondary text — ~8:1 on black */

  --tile: #1a1712;
  --stage: #1a1712;
  --card: #141210;
  --card-line: #2b2519;
  --sand: #181511;
  --clay: #1d1913;
  --white: #0e0d0b;          /* used as "text on accent" and input fill */

  --focus: #e6c77f;
  --success: #a9c79a;
  --success-bg: #17200f;
  --error: #ef8a8a;
  --error-bg: #2a1214;
  --dev: #e6c77f;
  --dev-bg: #221c0e;

  --shadow-soft: 0 3px 20px rgba(0, 0, 0, .45);
  --shadow-lift: 0 14px 34px -18px rgba(201, 162, 75, .35);
  --shadow-drawer: -16px 0 48px rgba(0, 0, 0, .6);
  --backdrop: rgba(0, 0, 0, .7);
}

[data-theme="dark"] body { background: var(--cream); color: var(--ink); }

/* Hard-coded light colours in the base theme */
[data-theme="dark"] .search input::placeholder { color: #8f846f; }
[data-theme="dark"] .icon-button:hover,
[data-theme="dark"] .close-button:hover { background: rgba(201, 162, 75, .12); }
[data-theme="dark"] .button[disabled],
[data-theme="dark"] .button[aria-disabled="true"] { background: #2a261e; border-color: #2a261e; color: #7d735f; }
[data-theme="dark"] .button--light { background: var(--berry); border-color: var(--berry); color: #0e0d0b; }
[data-theme="dark"] .button--light:hover { background: var(--berry-hover); border-color: var(--berry-hover); color: #0e0d0b; }
[data-theme="dark"] .product-card:hover { border-color: var(--berry-deep); }
[data-theme="dark"] .fav:hover { background: #2a2419; }
[data-theme="dark"] .badge--soldout { background: #2a261e; }
[data-theme="dark"] .badge--concept { background: rgba(14, 13, 11, .85); }
[data-theme="dark"] .input,
[data-theme="dark"] .select,
[data-theme="dark"] .textarea,
[data-theme="dark"] .qty,
[data-theme="dark"] .check-pill { border-color: #4a4030; color: var(--ink); }
[data-theme="dark"] .input:hover,
[data-theme="dark"] .select:hover,
[data-theme="dark"] .textarea:hover { border-color: #7a6a4a; }
[data-theme="dark"] .field--error .input,
[data-theme="dark"] .field--error .select,
[data-theme="dark"] .field--error .textarea { background: #1c1011; }
[data-theme="dark"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c9a24b' stroke-width='1.5'/%3E%3C/svg%3E"); }
[data-theme="dark"] .notice { border-color: var(--line); }
[data-theme="dark"] .notice--success { border-color: #33452a; }
[data-theme="dark"] .notice--error,
[data-theme="dark"] .error-summary { border-color: #5a2a2c; border-left-color: var(--error); }
[data-theme="dark"] .breadcrumbs li + li::before { color: #6b604c; }
[data-theme="dark"] .page-header__art { box-shadow: 0 0 0 8px rgba(201, 162, 75, .15); }
[data-theme="dark"] .prose p,
[data-theme="dark"] .prose li { color: #d9cfbc; }
[data-theme="dark"] .how__steps li { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
[data-theme="dark"] .toast--error { background: #7a2a2a; color: #fff; }

/* Newsletter band: gold with black text */
[data-theme="dark"] .newsletter { color: #0e0d0b; }
[data-theme="dark"] .newsletter__intro { border-left-color: rgba(14, 13, 11, .3); }
[data-theme="dark"] .newsletter__row .input { background: #0e0d0b; border-color: #0e0d0b; color: var(--ink); }
[data-theme="dark"] .newsletter__row .button { background: #0e0d0b; border-color: #0e0d0b; color: var(--berry); }
[data-theme="dark"] .newsletter__status.is-error { color: #5a0f0f; }

/* Photo placeholders */
[data-theme="dark"] .photo-pending { background: radial-gradient(circle at 50% 42%, #221d15 0, var(--stage) 60%); }

/* Thin gold rule under the header */
[data-theme="dark"] .site-header { border-bottom: 1px solid var(--line); }

/* About: story band watermark */
[data-theme="dark"] .about-story__watermark { color: rgba(201, 162, 75, .07); }
