:root {
  color-scheme: dark;
  --canvas: #101011;
  --header: #0b0b0c;
  --surface: #19191b;
  --raised: #242426;
  --gold: #dbbd7e;
  --gold-light: #f0d9a6;
  --on-gold: #19150e;
  --text: #f3efe7;
  --secondary: #c6c1b6;
  --edge: #443e32;
  --control-edge: #827458;
  accent-color: var(--gold);
}
body { background: var(--canvas); color: var(--text); }
a, summary, h1, h2, h3 { color: var(--gold); }
small, footer, .watch-specs dt, .catalog-choice legend { color: var(--secondary); }
::selection { color: var(--on-gold); background: var(--gold); }

header, header.masthead, #sections {
  background: var(--header);
  color: var(--gold);
  border-color: var(--edge);
}
header a, .masthead .wordmark, .shop-menu summary,
.utilities button, .utilities #basket { color: var(--gold); }
.wordmark span { color: var(--secondary); }
.delivery-note {
  background: var(--gold);
  color: var(--on-gold);
}
.shop-menu nav { background: var(--surface); border-color: var(--edge); }
#sections a, #sections a[aria-current] { background: transparent; color: var(--secondary); }
#sections a[aria-current] { color: var(--gold); box-shadow: inset 0 -2px var(--gold); }
#sections a:hover, .shop-menu a:hover { color: var(--gold-light); }
.featured-tools .discover, .store-links a { color: var(--gold); }
.featured-pages button::before { border-color: var(--gold); }
.featured-pages button[aria-current="true"]::before { background: var(--gold); }

#cards article, .watch-tile h2 button, .viewer-header, .related-watches button,
#about, #branches, #orders {
  background: var(--surface);
  color: var(--text);
  border-color: var(--edge);
}
.watch-tile h2, .tile-name { color: var(--text); }
.watch-tile .tile-price, .details strong, .basket-summary strong, #total { color: var(--gold); }
.product-tile > .quick-add, .photo .zoom-open {
  background: var(--header);
  color: var(--gold-light);
  border: 1px solid var(--control-edge);
  box-shadow: 0 2px 6px #0005;
}
.product-tile > .quick-add:disabled, button:disabled { background: var(--raised); color: var(--secondary); }
#cards article:focus-within { border-color: var(--gold); }

button, a.action, .action, #watch-content .bar button, .details .bar button {
  background: var(--gold);
  color: var(--on-gold);
}
.featured-pages button, .utilities button, .utilities #basket { background: transparent; }
#watch-close, #close, #zoom-close, #edit-recipient, #extra-add, .order-line button,
#watch-content .bar .buy-now, .details .buy-now {
  background: var(--raised);
  color: var(--gold-light);
  border-color: var(--control-edge);
}
dialog, #watch-viewer, #photo-zoom { background: var(--surface); color: var(--text); }
dialog::backdrop, #watch-viewer::backdrop, #photo-zoom::backdrop { background: rgb(0 0 0 / 75%); }
#watch-content .bar, .details .bar, .zoom-tools { background: var(--raised); }
#zoom-stage { background: var(--header); }
.photos button, .photos button[aria-pressed=true], .labeled-views button {
  background: var(--raised);
  color: var(--text);
}
.photos button[aria-pressed=true] { border-color: var(--gold); }
.related-watches, .row, .order-line, #branches article + article, details + details {
  border-color: var(--edge);
}
.basket-summary { color: var(--text); }

input, select, textarea, .catalog-tools #catalog-search, #suggestions button,
#brand-toggle, .choice-strip, .catalog-tools #brands button {
  background: var(--surface);
  color: var(--text);
  border-color: var(--control-edge);
}
#customer-form input, #customer-form select, #customer-form textarea, #extra-product {
  border-color: var(--control-edge);
  background-color: var(--raised);
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--secondary); opacity: 1; }
.catalog-search-box::before, .catalog-search-box::after { color: var(--gold); }
.choice-strip span { color: var(--secondary); }
.choice-strip input:checked + span, .catalog-tools #brands button[aria-pressed=true] {
  background: var(--gold);
  color: var(--on-gold);
}
#suggestions, .catalog-tools #brands { border-color: var(--edge); }
#suggestions button:hover, #suggestions button:focus { background: var(--raised); color: var(--gold-light); }
:focus-visible, #featured-watches :focus-visible, .product-tile > .quick-add:focus-visible,
.watch-tile button:focus-visible, #catalog-search:focus-visible, #brand-toggle:focus-visible,
.catalog-tools #brands button:focus-visible, .choice-strip input:focus-visible + span,
#customer-form .phone-boxes input:focus-visible {
  outline-color: var(--gold-light);
}

.collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.catalog-back:not([hidden]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--control-edge);
  border-radius: 8px;
  background: var(--surface);
  color: var(--gold-light);
  text-decoration: none;
}
.catalog-back:hover { border-color: var(--gold); }
