/*
Theme Name: Royal Tins
Theme URI: https://royalpackgroup.com/
Author: Royal Tins
Description: A custom multipage WordPress theme for Royal Tins, a premium tin and protective packaging supplier.
Version: 1.3.5
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: royal-tins
*/

:root {
  --ink: #111827;
  --soft-ink: #2f3a4a;
  --muted: #667085;
  --line: #e5e7eb;
  --paper: #f8f7f3;
  --white: #ffffff;
  --sage: #5f776a;
  --clay: #a15c38;
  --gold: #c9a45a;
  --night: #10151f;
  --shadow: 0 28px 70px rgba(17, 24, 39, 0.12);
  --header-bg: rgba(248, 247, 243, 0.94);
  --hover-bg: #efede6;
  --subtle-bg: #fbfaf6;
  --band-bg: #ebe6dc;
  --process-bg: #ebe6dc;
  --service-bg: #eef1ec;
  --detail-bg: #f2f0ea;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f7f1e6;
  --soft-ink: #d8cfbf;
  --muted: #afa694;
  --line: rgba(238, 226, 205, 0.16);
  --paper: #11100e;
  --white: #191816;
  --sage: #87a08f;
  --clay: #d2a06f;
  --gold: #dec37a;
  --night: #f3ead7;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(17, 16, 14, 0.94);
  --hover-bg: #292620;
  --subtle-bg: #171614;
  --band-bg: #211f1a;
  --process-bg: #201e19;
  --service-bg: #181c18;
  --detail-bg: #181715;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.86);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

body.admin-bar .site-header {
  top: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 600;
}

.site-nav a {
  padding: 9px 8px;
  border-radius: 8px;
}

.site-nav a:hover {
  background: var(--hover-bg);
}

.nav-cta {
  color: var(--paper) !important;
  background: var(--night);
}

:root[data-theme="dark"] .nav-cta {
  color: #141210 !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.theme-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px 5px 6px;
  color: var(--soft-ink);
  background: color-mix(in srgb, var(--white) 84%, transparent);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.theme-toggle:hover {
  background: var(--hover-bg);
  transform: translateY(-1px);
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  width: 58px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #f7d978, #f4efe1);
  overflow: hidden;
  transition: background 240ms ease;
}

.theme-toggle-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.22);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms ease;
}

.theme-toggle-label {
  min-width: 42px;
  text-align: left;
}

:root[data-theme-choice="light"] .theme-toggle-knob {
  transform: translateX(14px);
}

:root[data-theme-choice="dark"] .theme-toggle-knob {
  transform: translateX(28px);
  background: #202631;
}

:root[data-theme-choice="dark"] .theme-toggle-track {
  background: linear-gradient(135deg, #1b2533, #52657c);
}

.section {
  padding: 92px clamp(20px, 5vw, 76px);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 6vw, 92px);
  min-height: calc(100vh - 77px);
  padding-top: 54px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0,
      transparent 18px,
      rgba(201, 164, 90, 0.08) 19px,
      transparent 21px
    );
  mask-image: linear-gradient(90deg, black 0%, transparent 72%);
}

:root[data-theme="dark"] .hero::before {
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0,
      transparent 18px,
      rgba(222, 195, 122, 0.07) 19px,
      transparent 21px
    );
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.section-copy,
.contact-panel p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--night);
}

.button.secondary {
  border-color: var(--line);
  background: var(--white);
}

.hero-showcase {
  position: relative;
  min-height: min(66vh, 650px);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(201, 164, 90, 0.23), transparent 28%),
    linear-gradient(145deg, var(--white) 0%, var(--band-bg) 100%);
  box-shadow: var(--shadow);
}

.hero-main-img {
  position: absolute;
  right: -4%;
  bottom: 2%;
  width: min(88%, 620px);
  filter: drop-shadow(0 28px 28px rgba(17, 24, 39, 0.18));
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 260ms ease, transform 260ms ease;
}

.hero-main-img.is-changing {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-strip div {
  padding: 28px clamp(20px, 5vw, 76px);
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  color: var(--muted);
}

.customers {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 72px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: var(--subtle-bg);
}

.customers h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 44px);
}

.customers-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.customer-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.customer-logo {
  display: grid;
  min-height: 118px;
  min-width: 0;
  aspect-ratio: 1.65 / 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 2.2vw, 24px);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.06);
}

.customer-logo img {
  width: min(100%, 150px);
  max-height: 64px;
  object-fit: contain;
}

.split {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 6vw, 96px);
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--white) 86%, transparent), transparent 72%),
    linear-gradient(180deg, var(--white), color-mix(in srgb, var(--detail-bg) 74%, var(--white)));
}

.split::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0,
      transparent 22px,
      rgba(201, 164, 90, 0.055) 23px,
      transparent 25px
    );
  mask-image: linear-gradient(90deg, black 0%, transparent 78%);
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.image-band {
  display: grid;
  grid-template-columns: 0.85fr 1fr 0.85fr;
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  padding: 54px clamp(20px, 5vw, 76px);
  background: var(--band-bg);
}

.image-band img {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(17, 24, 39, 0.14));
}

.section-heading {
  max-width: 900px;
  margin-bottom: 44px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  color: var(--clay);
  font-weight: 800;
}

.text-link:hover {
  color: var(--night);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(
    circle 260px at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(201, 164, 90, 0.1),
    rgba(201, 164, 90, 0.04) 38%,
    transparent 76%
  );
  opacity: 0;
  transition: opacity 180ms ease;
}

.product-card:hover {
  border-color: rgba(201, 164, 90, 0.55);
  box-shadow: 0 22px 54px rgba(17, 24, 39, 0.13);
  transform: translateY(-5px);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-image-link {
  display: block;
}

.product-card > img,
.product-image-link img {
  width: 100%;
  height: clamp(220px, 22vw, 300px);
  padding: 22px;
  object-fit: contain;
  background: transparent;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px;
}

.card-body .text-link {
  margin-top: auto;
  padding-top: 20px;
}

.category {
  margin-bottom: 8px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

ul {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

li + li {
  margin-top: 8px;
}

.services {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--service-bg) 88%, var(--sage)), var(--service-bg)),
    repeating-linear-gradient(90deg, transparent 0, transparent 70px, rgba(95, 119, 106, 0.055) 71px);
}

.page-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 420px;
  align-items: center;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--white) 86%, transparent), transparent 68%),
    linear-gradient(180deg, var(--white), color-mix(in srgb, var(--detail-bg) 82%, var(--white)));
}

.page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0,
      transparent 22px,
      rgba(201, 164, 90, 0.06) 23px,
      transparent 25px
    );
  mask-image: linear-gradient(90deg, black 0%, transparent 76%);
}

.page-hero h1 {
  max-width: 980px;
}

.product-detail-hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 88px);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--white) 84%, transparent), transparent 62%),
    linear-gradient(180deg, var(--white), color-mix(in srgb, var(--detail-bg) 78%, var(--white)));
}

.detail-product-art {
  display: grid;
  min-height: 420px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--subtle-bg);
  box-shadow: var(--shadow);
}

.detail-product-art img {
  width: min(82%, 460px);
  max-height: 420px;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(17, 24, 39, 0.16));
}

.product-detail-body {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(201, 164, 90, 0.16), transparent 36%),
    radial-gradient(circle at 86% 18%, rgba(95, 119, 106, 0.16), transparent 30%),
    linear-gradient(180deg, color-mix(in srgb, var(--detail-bg) 90%, var(--white)), color-mix(in srgb, var(--paper) 76%, var(--band-bg)));
  overflow: hidden;
}

.detail-section {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--detail-bg) 84%, var(--white)), var(--white)),
    repeating-linear-gradient(90deg, transparent 0, transparent 86px, rgba(17, 24, 39, 0.035) 87px);
}

.process-section {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--process-bg) 88%, var(--gold)), var(--process-bg)),
    repeating-linear-gradient(118deg, transparent 0, transparent 34px, rgba(201, 164, 90, 0.06) 35px, transparent 37px);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  background: var(--white);
}

.detail-panel h3 {
  margin-bottom: 18px;
}

.detail-panel p {
  color: var(--muted);
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.timeline-list div {
  min-height: 170px;
  padding: 26px;
  background: var(--white);
}

.timeline-list span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 8px;
  color: var(--white);
  background: var(--night);
  font-weight: 800;
}

.timeline-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-overview-page {
  padding-top: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--detail-bg) 88%, transparent), transparent 68%),
    var(--paper);
}

.products-hero {
  min-height: 500px;
}

.product-capability-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.product-capability-strip div {
  min-height: 180px;
  padding: 34px;
  background:
    linear-gradient(145deg, var(--white), color-mix(in srgb, var(--detail-bg) 72%, var(--white)));
}

.product-capability-strip strong,
.product-capability-strip span {
  display: block;
}

.product-capability-strip strong {
  margin-bottom: 12px;
  font-size: 18px;
}

.product-capability-strip span {
  color: var(--muted);
}

.product-gallery-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--service-bg) 82%, var(--white)), var(--white)),
    repeating-linear-gradient(90deg, transparent 0, transparent 82px, rgba(95, 119, 106, 0.05) 83px);
}

.products-overview-intro {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--white) 88%, var(--gold)), var(--white)),
    repeating-linear-gradient(118deg, transparent 0, transparent 30px, rgba(201, 164, 90, 0.06) 31px, transparent 33px);
}

.overview-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.overview-metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.06);
}

.overview-metrics strong,
.overview-metrics span {
  display: block;
}

.overview-metrics strong {
  margin-bottom: 10px;
  font-size: 20px;
}

.overview-metrics span {
  color: var(--muted);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.product-gallery article {
  display: grid;
  min-height: 220px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.06);
}

.product-gallery img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(17, 24, 39, 0.12));
}

.product-gallery span {
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}


.source-categories-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--detail-bg) 74%, var(--white)), var(--white)),
    repeating-linear-gradient(90deg, transparent 0, transparent 74px, rgba(201, 164, 90, 0.06) 75px);
}

.source-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.source-category-grid article {
  display: grid;
  min-height: 170px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.source-category-grid strong,
.source-category-grid span,
.source-category-grid em {
  display: block;
}

.source-category-grid strong {
  font-size: 18px;
}

.source-category-grid span {
  margin-top: 10px;
  color: var(--muted);
}

.source-category-grid em {
  margin-top: 18px;
  color: var(--clay);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.source-products-section {
  background:
    linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--service-bg) 58%, var(--white))),
    repeating-linear-gradient(118deg, transparent 0, transparent 42px, rgba(95, 119, 106, 0.055) 43px, transparent 45px);
}

.catalog-controls,
.source-catalog-controls {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 0 28px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.055);
}

.catalog-search-row,
.source-catalog-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.catalog-search,
.catalog-search-field,
.source-catalog-search {
  min-width: 0;
}

.source-catalog-search label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.catalog-search input,
.catalog-search-field,
.catalog-search-input,
.source-catalog-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 650;
}

.catalog-search input::placeholder,
.catalog-search-field::placeholder,
.catalog-search-input::placeholder,
.source-catalog-search input::placeholder {
  color: color-mix(in srgb, var(--muted) 74%, transparent);
  font-weight: 600;
}

.catalog-search input:focus,
.catalog-search-field:focus,
.catalog-search-input:focus,
.source-catalog-search input:focus {
  border-color: color-mix(in srgb, var(--gold) 72%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent);
}

.catalog-clear,
.catalog-clear-button,
.clear-catalog-button,
.source-catalog-clear {
  display: inline-flex;
  min-width: max-content;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--line) 88%, var(--clay));
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--soft-ink);
  background: color-mix(in srgb, var(--white) 92%, var(--detail-bg));
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.catalog-clear:hover,
.catalog-clear-button:hover,
.clear-catalog-button:hover,
.source-catalog-clear:hover {
  border-color: color-mix(in srgb, var(--clay) 54%, var(--line));
  color: var(--night);
  background: color-mix(in srgb, var(--hover-bg) 82%, var(--white));
}

.catalog-result-status,
.catalog-results-status,
.catalog-status,
.source-catalog-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.catalog-category-chips,
.catalog-chip-list,
.category-chip-list,
.source-catalog-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.category-chip,
.catalog-chip,
.source-catalog-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--line) 92%, var(--sage));
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--soft-ink);
  background: color-mix(in srgb, var(--white) 90%, transparent);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  overflow-wrap: anywhere;
  text-align: center;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.category-chip:hover,
.catalog-chip:hover,
.source-catalog-chip:hover {
  border-color: color-mix(in srgb, var(--gold) 64%, var(--line));
  color: var(--night);
  background: color-mix(in srgb, var(--gold) 14%, var(--white));
}

.category-chip.is-selected,
.category-chip.is-active,
.category-chip[aria-pressed="true"],
.category-chip[aria-selected="true"],
.catalog-chip.is-selected,
.catalog-chip.is-active,
.catalog-chip[aria-pressed="true"],
.catalog-chip[aria-selected="true"],
.source-catalog-chip.is-active,
.source-catalog-chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--clay) 72%, var(--gold));
  color: var(--white);
  background: var(--clay);
  box-shadow: 0 8px 20px rgba(161, 92, 56, 0.18);
}

.source-product-card.is-hidden,
.source-product-card[hidden],
.product-card.is-hidden,
.product-card[hidden] {
  display: none;
}

.catalog-empty-state,
.catalog-empty,
.source-catalog-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  margin-top: 18px;
  border: 1px dashed color-mix(in srgb, var(--line) 74%, var(--clay));
  border-radius: 8px;
  padding: clamp(28px, 5vw, 48px);
  color: var(--muted);
  background: color-mix(in srgb, var(--white) 82%, transparent);
  text-align: center;
}

.catalog-empty-state[hidden],
.catalog-empty[hidden],
.source-catalog-empty[hidden] {
  display: none;
}

.catalog-empty-state h3,
.catalog-empty h3,
.source-catalog-empty h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.catalog-empty-state p,
.catalog-empty p,
.source-catalog-empty p {
  max-width: 540px;
  margin: 0;
  overflow-wrap: anywhere;
}

.source-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.source-product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.source-product-card:hover {
  border-color: rgba(201, 164, 90, 0.55);
  box-shadow: 0 22px 48px rgba(17, 24, 39, 0.13);
  transform: translateY(-4px);
}

.source-product-image {
  display: grid;
  min-height: 230px;
  place-items: center;
  padding: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--detail-bg) 64%, var(--white)), var(--white));
}

.source-product-image img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(17, 24, 39, 0.16));
}

.source-product-body {
  padding: 22px;
}

.source-product-body h3 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.25;
}

.source-product-body p:not(.category) {
  color: var(--muted);
  font-size: 14px;
}

.source-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 82px);
  background:
    linear-gradient(132deg, color-mix(in srgb, var(--paper) 88%, #ffffff), color-mix(in srgb, #e9dfca 62%, var(--white)) 58%, color-mix(in srgb, #d7e0df 42%, var(--paper))),
    repeating-linear-gradient(102deg, transparent 0, transparent 54px, rgba(160, 116, 70, 0.065) 55px, transparent 57px);
  position: relative;
  overflow: hidden;
}

.source-product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent 45%),
    repeating-linear-gradient(0deg, transparent 0, transparent 86px, rgba(17, 24, 39, 0.045) 87px, transparent 88px);
  opacity: 0.72;
}

.source-product-hero > * {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.breadcrumb a {
  color: var(--ink);
}

.source-product-copy h1 {
  max-width: 880px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.98;
}

.source-product-visual {
  display: grid;
  min-height: clamp(420px, 56vw, 680px);
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(244, 238, 226, 0.38)),
    repeating-linear-gradient(90deg, transparent 0, transparent 68px, rgba(201, 164, 90, 0.05) 69px, transparent 70px);
  box-shadow: 0 32px 90px rgba(17, 24, 39, 0.14);
}

.source-product-visual img {
  width: min(86%, 560px);
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(17, 24, 39, 0.2));
}

.source-product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 24px;
  align-items: stretch;
  background:
    linear-gradient(180deg, var(--white), color-mix(in srgb, var(--detail-bg) 70%, var(--white))),
    repeating-linear-gradient(135deg, transparent 0, transparent 48px, rgba(95, 119, 106, 0.06) 49px, transparent 51px);
}

.source-product-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  box-shadow: 0 18px 46px rgba(17, 24, 39, 0.08);
}

.source-product-main-copy {
  padding: clamp(30px, 5vw, 64px);
}

.source-product-main-copy h2 {
  max-width: 820px;
}

.source-product-main-copy p:not(.eyebrow) {
  max-width: 900px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.product-spec-card {
  padding: 30px;
}

.product-spec-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.product-spec-card div {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.product-spec-card dt {
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.product-spec-card dd {
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 750;
}

.source-product-feature-section {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--service-bg) 74%, var(--white)), var(--paper) 72%),
    repeating-linear-gradient(90deg, transparent 0, transparent 72px, rgba(201, 164, 90, 0.052) 73px, transparent 75px);
}

.source-product-feature-section .detail-panel {
  min-height: 180px;
  display: flex;
  align-items: flex-end;
}

.source-product-use-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, #e7d4b2 28%, var(--paper)), color-mix(in srgb, #c9d6d5 34%, var(--white))),
    repeating-linear-gradient(28deg, transparent 0, transparent 36px, rgba(17, 24, 39, 0.045) 37px, transparent 39px);
}

.source-product-use-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.source-product-use-list span {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.07);
}

.related-source-products .source-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

:root[data-theme="dark"] .source-product-hero {
  background:
    linear-gradient(132deg, #101214, #1f211e 54%, #162027),
    repeating-linear-gradient(102deg, transparent 0, transparent 54px, rgba(222, 195, 122, 0.07) 55px, transparent 57px);
}

:root[data-theme="dark"] .source-product-hero::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 48%),
    repeating-linear-gradient(0deg, transparent 0, transparent 86px, rgba(255, 248, 232, 0.04) 87px, transparent 88px);
}

:root[data-theme="dark"] .source-product-visual,
:root[data-theme="dark"] .source-product-panel,
:root[data-theme="dark"] .source-product-use-list span {
  background: rgba(255, 248, 232, 0.055);
}

@media (max-width: 1100px) {
  .source-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .source-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-product-hero,
  .source-product-detail-grid,
  .source-product-use-section {
    grid-template-columns: 1fr;
  }

  .source-product-hero {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .source-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-controls,
  .source-catalog-controls {
    margin-bottom: 22px;
    padding: 14px;
  }

  .catalog-search-row,
  .source-catalog-search-row {
    grid-template-columns: 1fr;
  }

  .catalog-clear,
  .catalog-clear-button,
  .clear-catalog-button,
  .source-catalog-clear {
    width: 100%;
  }

  .category-chip,
  .catalog-chip,
  .source-catalog-chip {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .source-product-image {
    min-height: 190px;
  }

  .source-product-image img {
    height: 160px;
  }

  .related-source-products .source-product-grid,
  .source-product-use-list {
    grid-template-columns: 1fr;
  }

  .source-product-copy h1 {
    font-size: clamp(38px, 13vw, 68px);
  }
}

@media (max-width: 520px) {
  .source-category-grid,
  .source-product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-category-chips,
  .catalog-chip-list,
  .category-chip-list,
  .source-catalog-chip-group {
    gap: 6px;
  }

  .category-chip,
  .catalog-chip,
  .source-catalog-chip {
    flex-basis: 100%;
    min-height: 36px;
  }
}

:root[data-theme="dark"] .page-hero::before,
:root[data-theme="dark"] .split::before {
  background:
    repeating-linear-gradient(
      118deg,
      transparent 0,
      transparent 22px,
      rgba(222, 195, 122, 0.055) 23px,
      transparent 25px
    );
}

:root[data-theme="dark"] .detail-section {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--detail-bg) 92%, var(--white)), var(--white)),
    repeating-linear-gradient(90deg, transparent 0, transparent 86px, rgba(255, 248, 232, 0.035) 87px);
}

:root[data-theme="dark"] .product-detail-body,
:root[data-theme="dark"] .process-section {
  background:
    linear-gradient(135deg, rgba(222, 195, 122, 0.08), transparent 38%),
    radial-gradient(circle at 86% 18%, rgba(135, 160, 143, 0.1), transparent 30%),
    linear-gradient(180deg, var(--detail-bg), color-mix(in srgb, var(--detail-bg) 88%, #000000));
}

.customers-page {
  min-height: 520px;
  align-items: center;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.service-list div {
  padding: 30px;
  background: var(--white);
}

.service-list span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--white);
  background: var(--sage);
  font-weight: 800;
}

.service-list p {
  color: var(--muted);
}

.contact {
  background: var(--night);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--white);
}

.contact-panel .eyebrow {
  color: var(--gold);
}

.contact-panel p {
  color: #c8ced8;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

label {
  display: grid;
  gap: 7px;
  color: #edf0f5;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 76px);
  background: #0b0f17;
  color: var(--white);
}

.site-footer span {
  display: block;
  color: #b9c0cc;
  font-size: 14px;
}

.site-footer a {
  color: #dcc17c;
  font-weight: 800;
}

:root[data-theme="dark"] .button.primary {
  color: #141210;
}

:root[data-theme="dark"] .button.secondary,
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .detail-panel,
:root[data-theme="dark"] .service-list div,
:root[data-theme="dark"] .timeline-list div,
:root[data-theme="dark"] .quote-form {
  background: var(--white);
}

:root[data-theme="dark"] .customer-logo {
  border-color: rgba(255, 255, 255, 0.26);
  background: #ffffff;
}

:root[data-theme="dark"] .contact {
  background: #080807;
}

:root[data-theme="dark"] .contact-panel p {
  color: #cfc6b6;
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  color: var(--ink);
  background: #22201c;
}

@media (max-width: 1180px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }
}

@media (max-width: 1080px) {
  .hero,
  .split,
  .customers,
  .product-detail-hero,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-showcase {
    min-height: 560px;
  }

  .product-grid,
  .service-list,
  .detail-grid,
  .feature-grid,
  .timeline-list,
  .product-capability-strip,
  .product-gallery,
  .overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 680px;
  }
}

@media (max-width: 820px) {
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-showcase {
    min-height: 430px;
  }

  .trust-strip,
  .product-grid,
  .service-list,
  .product-capability-strip,
  .product-gallery,
  .overview-metrics,
  .feature-grid,
  .timeline-list,
  .detail-grid,
  .image-band {
    grid-template-columns: 1fr;
  }

  .customer-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  .image-band img {
    max-height: 340px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  h1 {
    font-size: 38px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-showcase {
    min-height: 340px;
  }

  .hero-main-img {
    width: 98%;
  }

  .card-body,
  .detail-panel,
  .timeline-list div,
  .service-list div,
  .quote-form {
    padding: 20px;
  }

  .customer-logos {
    grid-template-columns: 1fr;
  }

  .customer-logo {
    aspect-ratio: auto;
    min-height: 108px;
  }
}

/* Visual system refinements for the static Royal Tins site. */
:root {
  --surface-glass: color-mix(in srgb, var(--white) 88%, transparent);
  --quiet-shadow: 0 18px 46px rgba(17, 24, 39, 0.085);
  --lift-shadow: 0 24px 58px rgba(17, 24, 39, 0.13);
}

:root[data-theme="dark"] {
  --surface-glass: color-mix(in srgb, var(--white) 92%, transparent);
  --quiet-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  --lift-shadow: 0 26px 62px rgba(0, 0, 0, 0.36);
}

body {
  text-rendering: optimizeLegibility;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 70%, #ffffff);
  outline-offset: 3px;
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 3.25rem;
}

.site-header {
  min-height: 78px;
}

.site-nav a,
.button,
.theme-toggle,
.text-link {
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.button.secondary:hover {
  border-color: color-mix(in srgb, var(--gold) 58%, var(--line));
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.hero,
.page-hero,
.source-product-hero {
  background-blend-mode: normal;
}

.hero-showcase,
.detail-product-art,
.source-product-visual,
.product-card,
.detail-panel,
.overview-metrics article,
.source-category-grid article,
.source-product-card,
.source-product-panel,
.source-product-use-list span {
  box-shadow: var(--quiet-shadow);
}

.product-card:hover,
.source-product-card:hover {
  box-shadow: var(--lift-shadow);
}

.product-card {
  height: 100%;
}

.product-image-link {
  display: grid;
  min-height: 292px;
  place-items: center;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--detail-bg) 58%, transparent), transparent 78%),
    color-mix(in srgb, var(--white) 78%, transparent);
}

.product-card > img,
.product-image-link img {
  height: 292px;
  padding: 28px;
}

.card-body {
  min-height: 430px;
}

.product-overview-page .product-card .card-body {
  min-height: 470px;
}

.source-product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.source-product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.source-product-body .text-link {
  margin-top: auto;
  padding-top: 18px;
}

.source-products-section {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--paper) 96%, var(--white)), color-mix(in srgb, var(--service-bg) 44%, var(--white)));
}

.source-product-body h3,
.source-product-body p,
.source-product-body .category,
.card-body h3,
.card-body p,
.card-body li {
  overflow-wrap: anywhere;
}

.source-product-image {
  min-height: 248px;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--detail-bg) 72%, var(--white)), color-mix(in srgb, var(--white) 96%, transparent));
}

.source-product-image img {
  height: 204px;
}

.customers,
.detail-section,
.product-detail-body,
.source-product-detail-grid,
.source-product-feature-section,
.source-product-use-section {
  background-attachment: scroll;
}

.product-detail-body {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--gold) 18%, transparent), transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--detail-bg) 92%, var(--white)), color-mix(in srgb, var(--paper) 78%, var(--band-bg)));
}

.source-product-hero {
  background:
    linear-gradient(132deg, color-mix(in srgb, var(--paper) 92%, #ffffff), color-mix(in srgb, #eadfc9 62%, var(--white)) 58%, color-mix(in srgb, #d6e0dd 38%, var(--paper)));
}

.source-product-hero::before {
  opacity: 0.46;
}

.source-product-detail-grid {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--white) 92%, var(--detail-bg)), color-mix(in srgb, var(--detail-bg) 74%, var(--white)));
}

.source-product-feature-section {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--service-bg) 78%, var(--white)), color-mix(in srgb, var(--paper) 88%, var(--gold)) 72%);
}

.source-product-use-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, #e7d4b2 26%, var(--paper)), color-mix(in srgb, #c9d6d5 30%, var(--white)));
}

:root[data-theme="dark"] .hero-text,
:root[data-theme="dark"] .section-heading p,
:root[data-theme="dark"] .section-copy,
:root[data-theme="dark"] .contact-panel p,
:root[data-theme="dark"] .customers-copy p:last-child,
:root[data-theme="dark"] .detail-panel p,
:root[data-theme="dark"] .source-product-main-copy p:not(.eyebrow),
:root[data-theme="dark"] .source-product-body p:not(.category),
:root[data-theme="dark"] .overview-metrics span,
:root[data-theme="dark"] .source-category-grid span,
:root[data-theme="dark"] ul,
:root[data-theme="dark"] .timeline-list p,
:root[data-theme="dark"] .service-list p {
  color: #cfc6b7;
}

:root[data-theme="dark"] .product-image-link {
  background:
    linear-gradient(180deg, rgba(222, 195, 122, 0.06), transparent 76%),
    rgba(255, 248, 232, 0.035);
}

:root[data-theme="dark"] .source-product-hero {
  background:
    linear-gradient(132deg, #0f1112, #1d1f1b 55%, #141d20);
}

:root[data-theme="dark"] .source-product-detail-grid,
:root[data-theme="dark"] .source-product-feature-section,
:root[data-theme="dark"] .source-product-use-section {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--detail-bg) 88%, #000000), color-mix(in srgb, var(--white) 88%, #000000));
}

:root[data-theme="dark"] .catalog-controls,
:root[data-theme="dark"] .catalog-empty-state,
:root[data-theme="dark"] .catalog-empty,
:root[data-theme="dark"] .source-catalog-controls,
:root[data-theme="dark"] .source-catalog-empty {
  border-color: var(--line);
  background: color-mix(in srgb, var(--white) 84%, transparent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .catalog-search input,
:root[data-theme="dark"] .catalog-search-field,
:root[data-theme="dark"] .catalog-search-input,
:root[data-theme="dark"] .source-catalog-search input {
  border-color: var(--line);
  color: var(--ink);
  background: color-mix(in srgb, var(--white) 92%, #000000);
}

:root[data-theme="dark"] .catalog-clear,
:root[data-theme="dark"] .catalog-clear-button,
:root[data-theme="dark"] .clear-catalog-button,
:root[data-theme="dark"] .source-catalog-clear,
:root[data-theme="dark"] .category-chip,
:root[data-theme="dark"] .catalog-chip,
:root[data-theme="dark"] .source-catalog-chip {
  border-color: var(--line);
  color: var(--soft-ink);
  background: rgba(255, 248, 232, 0.045);
}

:root[data-theme="dark"] .category-chip:hover,
:root[data-theme="dark"] .catalog-chip:hover,
:root[data-theme="dark"] .catalog-clear:hover,
:root[data-theme="dark"] .catalog-clear-button:hover,
:root[data-theme="dark"] .clear-catalog-button:hover,
:root[data-theme="dark"] .source-catalog-clear:hover,
:root[data-theme="dark"] .source-catalog-chip:hover {
  color: var(--night);
  background: rgba(222, 195, 122, 0.11);
}

:root[data-theme="dark"] .category-chip.is-selected,
:root[data-theme="dark"] .category-chip.is-active,
:root[data-theme="dark"] .category-chip[aria-pressed="true"],
:root[data-theme="dark"] .category-chip[aria-selected="true"],
:root[data-theme="dark"] .catalog-chip.is-selected,
:root[data-theme="dark"] .catalog-chip.is-active,
:root[data-theme="dark"] .catalog-chip[aria-pressed="true"],
:root[data-theme="dark"] .catalog-chip[aria-selected="true"],
:root[data-theme="dark"] .source-catalog-chip.is-active,
:root[data-theme="dark"] .source-catalog-chip[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--gold) 72%, var(--clay));
  color: #191816;
  background: var(--gold);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1180px) {
  .site-header {
    align-items: center;
    gap: 14px;
  }

  .brand {
    min-width: 210px;
  }

  .site-nav {
    top: calc(100% + 8px);
  }
}

@media (max-width: 1080px) {
  h1,
  .source-product-copy h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  .hero-showcase {
    min-height: 520px;
  }

  .product-image-link {
    min-height: 260px;
  }

  .product-card > img,
  .product-image-link img {
    height: 260px;
  }

  .card-body,
  .product-overview-page .product-card .card-body {
    min-height: 0;
  }

  .source-product-visual {
    min-height: 460px;
  }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .section {
    padding-right: clamp(32px, 6vw, 56px);
    padding-left: clamp(32px, 6vw, 56px);
  }

  .product-grid,
  .feature-grid,
  .source-product-grid {
    gap: 18px;
  }

  .source-product-card {
    min-width: 0;
  }
}

@media (min-width: 641px) and (max-width: 820px) {
  .product-grid,
  .source-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  h1,
  .source-product-copy h1 {
    font-size: 3.25rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 2.35rem;
  }

  .site-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .theme-toggle {
    min-height: 38px;
    padding-right: 8px;
  }

  .theme-toggle-track {
    width: 52px;
    height: 28px;
  }

  .theme-toggle-knob {
    width: 20px;
    height: 20px;
  }

  .hero-text,
  .section-heading p,
  .section-copy,
  .contact-panel p,
  .customers-copy p:last-child,
  .source-product-main-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-showcase {
    min-height: 390px;
  }

  .detail-product-art,
  .source-product-visual {
    min-height: 360px;
  }

  .source-product-visual img {
    max-height: 340px;
  }

  .product-image-link {
    min-height: 232px;
  }

  .product-card > img,
  .product-image-link img,
  .source-product-image img {
    height: 210px;
  }

  .source-product-image {
    min-height: 232px;
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 auto;
  }

  .theme-toggle {
    order: 3;
    margin-left: auto;
  }

  .nav-toggle {
    order: 2;
  }

  .site-nav {
    top: calc(100% + 8px);
  }

  .hero-actions .button {
    flex: 1 1 180px;
  }
}

@media (max-width: 520px) {
  h1,
  .source-product-copy h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-showcase {
    min-height: 320px;
  }

  .detail-product-art,
  .source-product-visual {
    min-height: 300px;
  }

  .product-image-link,
  .source-product-image {
    min-height: 210px;
  }

  .product-card > img,
  .product-image-link img,
  .source-product-image img {
    height: 188px;
    padding: 20px;
  }
}
