:root {
  --brand-ink: #111518;
  --brand-navy: #2c3e50;
  --brand-teal: #2f5f5d;
  --brand-gold: #a8977b;
  --brand-gold-light: #d9ccb4;
  --accent: #766449;
  --surface: #fff;
  --line: #dce2e7;
  --muted: #526172;
  --soft: #edf1f3;
  background: #cbd3d9;
  color: var(--brand-ink);
}

:root[data-theme="dark"] {
  --accent: #d9ccb4;
  --surface: #1c2631;
  --line: #344353;
  --muted: #b9c6d3;
  --soft: #263746;
  background: #111820;
  color: #eef2f7;
}

body {
  background: linear-gradient(180deg, #dce2e6 0, #cbd3d9 390px);
}

:root[data-theme="dark"] body {
  background: linear-gradient(180deg, #1c2935 0, #111820 390px);
}

.frame-header {
  min-height: 86px;
  padding-block: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  color: #fff;
  background: linear-gradient(105deg, #111518, #263746 72%, #2f5f5d);
  box-shadow: 0 16px 36px rgba(17, 21, 24, .15);
}

.frame-header img { width: min(240px, 50vw); }

.frame-header nav { align-items: center; gap: 10px; }

.frame-header nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: rgba(255, 255, 255, .84);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .025em;
  transition: background 150ms ease, color 150ms ease;
}

.frame-header nav a:hover,
.frame-header nav a:focus-visible {
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
  background: rgba(255, 255, 255, .08);
  text-decoration: none;
}

.frame-main { max-width: 1240px; padding-top: 30px; }

.frame-intro {
  position: relative;
  isolation: isolate;
  max-width: none;
  min-height: 218px;
  overflow: hidden;
  padding: 31px clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(112deg, #111518 1%, #2c3e50 59%, #2f5f5d);
  box-shadow: 0 20px 54px rgba(17, 21, 24, .15);
}

.frame-intro::after {
  position: absolute;
  z-index: -1;
  top: -140px;
  right: -65px;
  width: 410px;
  height: 410px;
  border: 2px solid rgba(217, 204, 180, .17);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(217, 204, 180, .045), 0 0 0 76px rgba(217, 204, 180, .035), inset 0 0 0 72px rgba(17, 21, 24, .13);
  content: "";
  pointer-events: none;
}

.frame-intro .eyebrow,
.frame-results-head .eyebrow { color: var(--brand-gold-light); }

.frame-intro h1 {
  max-width: 780px;
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 900;
}

.frame-intro p:last-child {
  max-width: 650px;
  color: rgba(255, 255, 255, .78);
}

.frame-finder {
  position: relative;
  margin: -20px clamp(10px, 2vw, 26px) 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(130deg, rgba(17, 21, 24, .97), rgba(47, 95, 93, .94));
  box-shadow: 0 24px 65px rgba(17, 21, 24, .2), inset 0 1px rgba(255, 255, 255, .12);
}

.frame-selects label {
  color: rgba(255, 255, 255, .83);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .015em;
}

.frame-selects select {
  min-height: 46px;
  border-color: rgba(255, 255, 255, .25);
  border-radius: 4px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px rgba(255, 255, 255, .08);
}

.frame-selects select option { color: #172236; background: #fff; }
.frame-selects select:disabled { opacity: .55; }

.frame-selects select:focus-visible,
.frame-finder button:focus-visible,
.frame-overview-search input:focus-visible,
.frame-header a:focus-visible,
.frame-card a:focus-visible {
  outline: 2px solid var(--brand-gold-light);
  outline-offset: 3px;
}

.frame-finder button {
  min-height: 45px;
  margin-top: 16px;
  border-radius: 4px;
  color: #111518;
  background: var(--brand-gold-light);
  font-size: .82rem;
  font-weight: 900;
}

.frame-finder button:not(:disabled):hover { background: #f0e3cb; }
.frame-status { color: rgba(255, 255, 255, .81); }

.frame-results,
.frame-overview { scroll-margin-top: 22px; }

.frame-results-head {
  align-items: center;
  border-bottom: 2px solid var(--brand-gold);
}

.frame-results-head .eyebrow { color: var(--accent); }
.frame-results-head h2 { color: inherit; font-weight: 850; }
.frame-results-head > span { color: var(--muted); }

.frame-note {
  border-left-color: var(--brand-gold);
  color: var(--muted);
  background: var(--surface);
}

.frame-card,
.frame-overview-item {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(17, 21, 24, .055);
}

.frame-card { border-top: 3px solid var(--brand-gold); }
.frame-card h3 { font-weight: 850; }
.frame-card img { border-color: var(--line); }
.frame-sku { color: var(--muted); letter-spacing: .045em; }
.frame-price { color: inherit; }
.frame-availability { color: var(--muted); }
.frame-card .frame-links a,
.frame-overview-item a { color: var(--accent); }
.frame-card .frame-links a:hover,
.frame-overview-item a:hover { text-decoration: underline; }
.frame-card details { border-top-color: var(--line); }
.frame-card summary { color: var(--accent); }

.frame-overview-search input {
  border-color: var(--line);
  color: inherit;
  background: var(--surface);
}

:root[data-theme="dark"] .frame-intro,
:root[data-theme="dark"] .frame-finder { border-color: rgba(255, 255, 255, .15); }
:root[data-theme="dark"] .frame-card img { background: #fff; }
:root[data-theme="dark"] .frame-card,
:root[data-theme="dark"] .frame-overview-item { box-shadow: 0 10px 30px rgba(0, 0, 0, .13); }

@media (max-width: 650px) {
  .frame-header { min-height: 72px; padding: 10px 16px; }
  .frame-header img { width: min(184px, 48vw); }
  .frame-header nav { gap: 2px; }
  .frame-header nav a { padding: 8px 6px; font-size: .74rem; }
  .frame-main { padding: 15px 12px 56px; }
  .frame-intro { min-height: 0; padding: 24px 20px 39px; }
  .frame-intro::after { right: -235px; }
  .frame-intro h1 { font-size: clamp(1.8rem, 8vw, 2.45rem); }
  .frame-finder { margin: -15px 8px 0; padding: 17px; }
  .frame-finder button { width: 100%; }
  .frame-results-head { align-items: flex-end; }
  .frame-results-head h2 { font-size: 1.35rem; }
}

/* The selector is a regular webshop page; its finder remains self-contained. */
.frame-page { display: flex; flex-direction: column; }
.frame-page .frame-main {
  width: min(1240px, 100%);
  flex: 1;
  margin: var(--site-header-height) auto 0;
}
.frame-page .site-header .nav-link { font: inherit; font-weight: 760; cursor: pointer; }
.frame-page .frame-tools-nav > button.nav-link { color: rgba(255,255,255,.78); background: transparent; }
.frame-page .frame-tools-nav > button.nav-link:hover,
.frame-page .frame-tools-nav > button.nav-link:focus-visible { color: #fff; background: rgba(255,255,255,.045); }
.frame-page .header-actions a { color: #fff; }
.frame-page .frame-cart-count { position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; color: #111518; background: var(--brand-gold-light); font-size: 11px; font-weight: 900; line-height: 18px; text-align: center; }
.frame-page .frame-cart-count[hidden] { display: none; }
.frame-page .site-header .nav-link.is-active { color: #fff; }
.frame-page .frame-tools-nav > .nav-dropdown { display: grid; }
.frame-page .frame-tools-nav > .nav-dropdown a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }
.frame-page .frame-tools-nav > .nav-dropdown a { text-decoration: none; }
.frame-page .frame-tools-nav > .nav-dropdown a:hover { text-decoration: none; }
.frame-page .site-footer { flex: none; }
.frame-page .frame-overview { margin-top: 54px; }
.frame-page .frame-overview > p { color: var(--muted); font-size: .89rem; line-height: 1.5; }
.frame-page .frame-overview-search { display: grid; gap: 7px; max-width: 450px; margin: 20px 0; font-size: .8rem; font-weight: 750; }
.frame-page .frame-overview-search input { height: 43px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: inherit; }
.frame-page .frame-overview-rows { display: grid; gap: 9px; }
.frame-page .frame-overview-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 15px; }
.frame-page .frame-overview-item summary { display: grid; grid-template-columns: 150px minmax(0,1fr) auto; align-items: center; gap: 12px; cursor: pointer; }
.frame-page .frame-overview-item strong { font-size: .88rem; }
.frame-page .frame-overview-item span { font-size: .82rem; color: var(--muted); }
.frame-page .frame-overview-item .status { font-weight: 700; }
.frame-page .frame-overview-item ul { columns: 2; padding-left: 20px; line-height: 1.6; font-size: .83rem; }
.frame-page .frame-overview-item a { color: var(--accent); font-weight: 700; font-size: .83rem; }
@media (min-width: 981px), (min-width: 831px) and (min-height: 541px) {
  .frame-page .frame-tools-nav:hover > .nav-dropdown,
  .frame-page .frame-tools-nav:focus-within > .nav-dropdown,
  .frame-page .frame-tools-nav.is-open > .nav-dropdown { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
}
@media (max-width: 830px), (max-width: 980px) and (max-height: 540px) {
  .frame-page .frame-tools-nav > .nav-dropdown { display: none; }
  .frame-page .frame-tools-nav.is-mobile-open > .nav-dropdown { display: grid; }
  .frame-page .frame-main { margin-top: var(--site-header-height); }
}
@media (max-width: 650px) {
  .frame-page .frame-overview-item summary { grid-template-columns: 1fr; gap: 4px; }
  .frame-page .frame-overview-item ul { columns: 1; }
}

@media (max-width: 450px) {
  .frame-header { flex-wrap: wrap; gap: 4px 10px; }
  .frame-header nav { width: 100%; justify-content: flex-start; }
  .frame-header nav a { padding: 4px 6px 3px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .frame-header nav a { transition: none; }
}
