/* NOIR — dark luxury. On a wide screen the header is a symmetric grid: navigation left, the logo
 * centered, account right, a thin search line under them. The hero fills the screen with centered
 * thin serif type; product cards are portrait with name and price laid over the photo. Body gets
 * data-bs-theme="dark" (layout) so Bootstrap's own components follow. Cormorant Garamond +
 * Montserrat, black and champagne gold. Same markup as every other theme. */

body.theme-noir {
  --gold: #c9a96e;
  --bg: #0c0c0d;
  --surface: #151517;
  --surface-alt: #1c1c1f;
  --border: #2b2b2f;
  --text: #ece7de;
  --text-muted: #9a948a;
  --accent: #c9a96e;
  --accent-dark: #e0c590;
  --accent-soft: rgba(201, 169, 110, 0.12);
  --accent-ink: #0c0c0d;
  --success: #8fc79f;
  --success-soft: rgba(143, 199, 159, 0.14);
  --danger: #ef8a84;
  --danger-soft: rgba(239, 138, 132, 0.14);
  --dark: #070708;
  --dark-2: #111113;
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --shadow-sm: none;
  --shadow-md: 0 1.5rem 3rem rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 1.5rem 3rem rgba(0, 0, 0, 0.6);
  --gradient-accent: var(--accent);
  --gradient-dark: var(--dark);

  --font-body: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --heading-weight: 400;
  --heading-tracking: 0.01em;
  --header-bg: var(--bg);
  --topbar-bg: var(--dark);
  --topbar-ink: var(--text-muted);
  --catnav-bg: var(--bg);
  --catnav-ink: var(--gold);
  --catnav-ink-muted: var(--text);
  --catnav-hover-bg: transparent;
  --catnav-all-bg: transparent;
  --catnav-all-ink: var(--text);
  --search-border: 0;
  --search-radius: 0;
  --btn-radius: 0;
  --card-radius: 0;
  --card-border: 0;
  --card-shadow: none;
  --card-media-bg: var(--surface);
  --card-body-bg: transparent;
  --trust-bg: var(--surface);
  --trust-ink: var(--text);
  --trust-ink-muted: var(--text-muted);
  --trust-icon-bg: transparent;
  --footer-bg: var(--dark);
  --footer-ink: var(--gold);
  --footer-ink-muted: var(--text-muted);
  --hero-min-h: 32rem;
  --hero-min-h-lg: calc(100vh - 11rem);
  font-size: 0.9rem;
}

.theme-noir h1,
.theme-noir h2 {
  font-weight: 400;
}

.theme-noir .topbar {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.theme-noir .header-brand {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

/* An uploaded logo is drawn for a light background: shown as light lines on the dark. */
.theme-noir .brand-logo {
  filter: grayscale(1) invert(1) brightness(1.1);
  mix-blend-mode: screen;
}

.theme-noir .brand-mark {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 500;
}

.theme-noir .header-search-combo {
  border-bottom: 1px solid var(--border);
}

.theme-noir .header-search-combo:focus-within {
  border-bottom-color: var(--gold);
}

.theme-noir .search-category-select,
.theme-noir .header-search-input {
  background: transparent;
  color: var(--text);
}

.theme-noir .search-category-select {
  border-right: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
}

.theme-noir .search-category-select option {
  background: var(--surface);
}

.theme-noir .header-search-btn {
  background: transparent;
  color: var(--text-muted);
}

.theme-noir .header-search-btn:hover {
  background: transparent;
  color: var(--gold);
}

.theme-noir .header-action-btn {
  color: var(--text);
}

.theme-noir .header-action-btn:hover {
  background: transparent;
  color: var(--gold);
}

.theme-noir .header-action-label,
.theme-noir .catnav-all-toggle,
.theme-noir .catnav-link {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 500;
}

.theme-noir .cart-count {
  border-color: var(--bg);
}

.theme-noir .header-catnav .navbar-toggler {
  color: var(--text);
}

.theme-noir .header-catnav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Symmetric header (wide screens) ────────────────────────────────────────────────────────── */
@media (min-width: 992px) {
  .theme-noir .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas:
      "top top top"
      "nav brand actions"
      "search search search";
    align-items: center;
    background: rgba(12, 12, 13, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
  }

  .theme-noir .topbar { grid-area: top; }

  .theme-noir .header-main,
  .theme-noir .header-main-inner {
    display: contents;
  }

  .theme-noir .header-catnav {
    grid-area: nav;
    border: 0;
    background: transparent;
  }

  .theme-noir .header-brand {
    grid-area: brand;
    justify-self: center;
    padding: 1.4rem 0 1rem;
  }

  .theme-noir .header-actions {
    grid-area: actions;
    justify-self: end;
    padding-right: var(--gutter);
  }

  .theme-noir .header-search-combo {
    grid-area: search;
    justify-self: center;
    width: min(34rem, 80%);
    margin-bottom: 1rem;
  }

  .theme-noir .catnav-all-toggle {
    padding-left: 0;
  }
}

.theme-noir .dropdown-menu {
  background: var(--surface);
  border-color: var(--border);
}

.theme-noir .dropdown-item {
  color: var(--text);
}

.theme-noir .dropdown-item:hover,
.theme-noir .dropdown-item:focus {
  background: var(--accent-soft);
  color: var(--gold);
}

.theme-noir .btn {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
}

.theme-noir .btn-primary {
  background-image: none;
}

.theme-noir .btn-light {
  --bs-btn-hover-bg: var(--surface-alt);
}

/* ── Hero: full screen, centered thin serif ─────────────────────────────────────────────────── */
.theme-noir .hero-slide {
  justify-content: center;
  text-align: center;
  color: var(--text);
}

.theme-noir .hero-slide-image::before {
  background: radial-gradient(ellipse at center, rgba(12, 12, 13, 0.55) 0%, rgba(12, 12, 13, 0.75) 70%, rgba(12, 12, 13, 0.9) 100%);
}

.theme-noir .hero-slide-content {
  max-width: 52rem;
}

.theme-noir .hero-slide-content::before {
  content: "";
  display: block;
  width: 1px;
  height: 3.5rem;
  margin: 0 auto 1.75rem;
  background: var(--gold);
}

.theme-noir .hero-slide h1 {
  color: var(--text);
  font-weight: 300;
  font-size: clamp(2.6rem, 7vw, 6.2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theme-noir .hero-slide p {
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.theme-noir .hero-slide .btn-primary {
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--gold);
  --bs-btn-color: var(--gold);
  --bs-btn-hover-bg: var(--gold);
  --bs-btn-hover-border-color: var(--gold);
  --bs-btn-hover-color: var(--bg);
}

.theme-noir .hero-slide-1 { background: radial-gradient(ellipse at 50% 30%, #2a2418 0%, #0c0c0d 70%); }
.theme-noir .hero-slide-2 { background: radial-gradient(ellipse at 50% 70%, #1f2228 0%, #0c0c0d 70%); }
.theme-noir .hero-slide-3 { background: radial-gradient(ellipse at 30% 50%, #2a1a1a 0%, #0c0c0d 70%); }

.theme-noir .hero-slider .carousel-control-prev,
.theme-noir .hero-slider .carousel-control-next {
  filter: none;
  opacity: 0.5;
}

.theme-noir .hero-slider .carousel-indicators [data-bs-target] {
  width: 32px;
  height: 1px;
  border-radius: 0;
  background-color: var(--text-muted);
}

.theme-noir .hero-slider .carousel-indicators .active {
  background-color: var(--gold);
}

/* ── Sections ──────────────────────────────────────────────────────────────────────────────── */
.theme-noir .fb-section:not(.fb-band-trust) {
  background: var(--bg);
  padding: 5rem 0;
}

.theme-noir .fb-band-alt {
  background: var(--bg);
}

.theme-noir .fb-band-trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.theme-noir .fb-section-title {
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

.theme-noir .fb-section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  margin: 1rem auto 0;
  background: var(--gold);
}

.theme-noir .category-item {
  width: 7.5rem;
}

.theme-noir div.category-tile,
.theme-noir .category-tile.category-tile-photo {
  box-shadow: none;
  border: 1px solid var(--border);
  filter: saturate(0.6) brightness(0.9);
  transition: filter 0.25s ease, border-color 0.25s ease;
}

.theme-noir div.category-tile {
  background: var(--surface) !important;
  color: var(--gold);
}

.theme-noir .category-card:hover {
  box-shadow: none;
}

.theme-noir .category-card:hover .category-tile {
  filter: none;
  border-color: var(--gold);
}

.theme-noir .category-card-name {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.66rem;
  font-weight: 500;
}

.theme-noir .category-scroll-btn {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}

.theme-noir .fb-feature svg {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.theme-noir .fb-feature h3 {
  font-size: 1.15rem;
}

/* ── Products: portrait, text over the photo ───────────────────────────────────────────────── */
.theme-noir .product-card {
  position: relative;
}

.theme-noir .product-card:hover {
  transform: none;
  box-shadow: none;
}

.theme-noir .product-card .product-tile,
.theme-noir .product-card img.product-tile {
  aspect-ratio: 3 / 4;
}

.theme-noir .product-card img.product-tile {
  filter: brightness(0.92);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.theme-noir .product-card:hover img.product-tile {
  transform: scale(1.05);
  filter: brightness(1);
}

.theme-noir .product-card .card-body-link {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.theme-noir .product-card .card-body {
  padding: 3.5rem 1rem 1rem;
  background: linear-gradient(0deg, rgba(8, 8, 9, 0.96) 0%, rgba(8, 8, 9, 0.82) 50%, rgba(8, 8, 9, 0) 100%);
}

.theme-noir .card-title {
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 500 !important;
  font-size: 1.1rem;
}

.theme-noir .product-card .card-text,
.theme-noir .product-card .sku-row {
  display: none;
}

.theme-noir .price-row {
  text-align: left !important;
  padding-top: 0.25rem;
}

.theme-noir .price {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.theme-noir .stock-ribbon {
  left: 0.75rem;
  right: auto;
  top: 0.75rem;
  border-radius: 0;
  letter-spacing: 0.14em;
  font-weight: 500;
  background: rgba(12, 12, 13, 0.7);
  transition: opacity 0.2s ease;
}

.theme-noir .stock-ribbon-in {
  color: var(--gold);
}

.theme-noir .product-card:hover .stock-ribbon {
  opacity: 0;
}

/* Quick add comes down from the top (the bottom is the text). */
.theme-noir .quick-add-form {
  top: -3.5rem;
  bottom: auto;
  z-index: 2;
  transition: top 0.2s ease;
}

.theme-noir .product-card:hover .quick-add-form {
  top: 0.6rem;
  bottom: auto;
}

.theme-noir .quick-add-btn {
  background: var(--gold);
  color: var(--bg);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.66rem;
  padding: 0.75rem;
  box-shadow: none;
}

/* ── Light defaults in application.css that need the dark treatment ─────────────────────────── */
.theme-noir .form-control,
.theme-noir .form-select,
.theme-noir .filter-select,
.theme-noir .form-control:focus,
.theme-noir .form-select:focus {
  background-color: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.theme-noir img.product-tile.product-tile-lg {
  background: var(--surface);
}

.theme-noir .searchable-select-menu {
  background: var(--surface);
}

.theme-noir .badge.text-bg-light {
  color: var(--text-muted) !important;
}

.theme-noir .text-dark {
  color: var(--text) !important;
}

.theme-noir .table {
  --bs-table-bg: transparent;
  color: var(--text);
}

.theme-noir .footer-heading {
  letter-spacing: 0.18em;
  font-weight: 500;
}

.theme-noir .footer-brand {
  font-family: var(--font-heading);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.theme-noir .footer-social-link {
  border: 1px solid var(--border);
  background: transparent;
}

.theme-noir .footer-social-link:hover {
  background: var(--gold);
  color: var(--bg);
}

.theme-noir .search-category-select {
  max-width: 11rem;
}

.theme-noir div.category-tile {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
