:root {
  --ink: #151512;
  --muted: #6d6a62;
  --line: #dedbd2;
  --paper: #f7f5ef;
  --white: #ffffff;
  --brass: #b38a46;
  --olive: #56645a;
  --terracotta: #b45f43;
  --blue: #31495a;
  --shadow: 0 18px 48px rgba(21, 21, 18, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.topbar {
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0;
  padding: 8px 20px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: 1320px;
  min-height: 76px;
  padding: 0 28px;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  letter-spacing: 0;
}

.brand img {
  height: 38px;
  width: 38px;
}

.brand-word {
  display: grid;
  line-height: 1;
}

.brand-word strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 500;
}

.brand-word span {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
  text-transform: uppercase;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}

.nav-links a {
  border-bottom: 2px solid transparent;
  color: #34332f;
  display: block;
  font-size: 14px;
  padding: 27px 11px 23px;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--brass);
  color: var(--ink);
}

.nav-dropdown {
  position: relative;
}

.nav-mega {
  background: #fbfaf7;
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(21, 21, 18, 0.11);
  left: 50%;
  min-width: 490px;
  opacity: 0;
  padding: 22px 28px;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 35;
}

.nav-dropdown:hover .nav-mega,
.nav-dropdown:focus-within .nav-mega {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-mega-columns {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 142px;
}

.nav-mega-primary,
.nav-mega-secondary {
  display: grid;
  gap: 11px;
}

.nav-mega-primary {
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.nav-mega-secondary {
  align-content: start;
  min-width: 210px;
  padding-left: 22px;
}

.nav-mega button,
.nav-mega a {
  background: transparent;
  border: 0;
  border-bottom: 0;
  color: #2d2b27;
  cursor: pointer;
  font-size: 14px;
  min-height: 22px;
  padding: 0;
  text-align: left;
}

.nav-mega button {
  color: #88847c;
}

.nav-mega button.active,
.nav-mega button:hover,
.nav-mega a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.icon-link,
.menu-toggle {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.menu-toggle {
  background: var(--paper);
  cursor: pointer;
  display: none;
}

.icon {
  height: 18px;
  width: 18px;
}

.hero {
  align-items: center;
  background: #171611;
  color: var(--white);
  display: flex;
  min-height: clamp(560px, 38vw, 720px);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  margin: 0 auto;
  max-width: 1320px;
  padding: 64px 28px;
  position: relative;
  width: 100%;
}

.eyebrow {
  color: var(--brass);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(50px, 8vw, 106px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  max-width: 980px;
}

.hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.45vw, 20px);
  margin: 20px 0 0;
  max-width: 620px;
}

.hero-actions,
.split-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 9px;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  box-shadow: 0 12px 26px rgba(21, 21, 18, 0.13);
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--ink);
  color: var(--white);
}

.btn.light {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn.ghost-light {
  border-color: rgba(255, 255, 255, 0.62);
  color: var(--white);
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  min-height: 38px;
  padding: 0 15px;
}

.section {
  padding: 86px 28px;
}

.section.compact {
  padding-top: 54px;
}

.section-inner {
  margin: 0 auto;
  max-width: 1320px;
}

.section-head {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 34px;
}

.section-head h2,
.split-copy h2,
.story-copy h2,
.admin-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.04;
  margin: 0;
}

.section-head p,
.split-copy p,
.story-copy p,
.page-hero p {
  color: var(--muted);
  font-size: 17px;
  margin: 10px 0 0;
  max-width: 680px;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-link {
  display: grid;
  height: 100%;
}

.product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.product-media {
  aspect-ratio: 1 / 1;
  background: #d7d2c5;
  display: block;
  overflow: hidden;
}

.product-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  width: 100%;
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-info {
  align-items: center;
  display: grid;
  grid-template-rows: 16px 52px 21px;
  justify-items: center;
  min-height: 0;
  padding: 18px 18px 20px;
  row-gap: 7px;
  text-align: center;
}

.product-category {
  color: var(--brass);
  display: block;
  font-size: 12px;
  letter-spacing: 0.28em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  width: 100%;
}

.product-title {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.22vw, 22px);
  height: 52px;
  justify-content: center;
  line-height: 1.18;
  margin-top: 0;
  max-width: 92%;
  overflow: hidden;
  text-align: center;
}

.product-title-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.catalog-price {
  color: #3a3832;
  display: inline-block;
  font-family: "Inter", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 0;
  padding-top: 0;
  position: relative;
}

.catalog-price::before {
  display: none;
}

.price-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.price {
  color: var(--ink);
  display: block;
  font-weight: 700;
}

.product-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.text-link {
  color: var(--olive);
  font-weight: 700;
}

.band {
  background: var(--ink);
  color: var(--white);
}

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

.service-item {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  min-height: 178px;
  padding: 24px;
}

.service-item svg {
  color: var(--brass);
  height: 27px;
  width: 27px;
}

.service-item h3,
.case-card h3,
.step h3,
.value-card h3 {
  font-size: 20px;
  margin: 16px 0 8px;
}

.service-item p {
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
}

.split {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: 1.04fr 0.96fr;
}

.split.reverse {
  grid-template-columns: 0.94fr 1.06fr;
}

.split-media {
  min-height: 500px;
  overflow: hidden;
}

.split-media img {
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  width: 100%;
}

.stats {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.stat strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 500;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.page-hero .section-inner {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.5fr);
  padding-bottom: 16px;
  padding-top: 16px;
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(32px, 4.8vw, 62px);
}

.page-kicker {
  align-self: end;
  color: var(--muted);
  max-width: 460px;
}

.filters {
  align-items: end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(160px, 1fr));
  margin-bottom: 12px;
  margin-top: -28px;
  padding: 16px;
  position: relative;
  z-index: 2;
}

.product-filters {
  box-shadow: 0 16px 42px rgba(21, 21, 18, 0.06);
}

.search-field input {
  min-height: 42px;
}

.filter-summary {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.filter-reset {
  background: transparent;
  border: 0;
  color: var(--olive);
  cursor: pointer;
  font-weight: 700;
  padding: 0;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 45px;
  padding: 10px 12px;
  width: 100%;
}

.price-input {
  align-items: center;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  min-height: 45px;
  overflow: hidden;
}

.price-input span {
  color: var(--muted);
  font-weight: 800;
  padding-left: 13px;
}

.price-input input {
  background: transparent;
  border: 0;
  min-height: 43px;
  padding-left: 6px;
}

.price-input input:focus {
  outline: none;
}

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

.option-group label {
  cursor: pointer;
  display: block;
}

.option-group input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.option-group span {
  align-items: center;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  display: flex;
  gap: 3px;
  justify-content: center;
  min-height: 45px;
  padding: 8px 10px;
  text-align: center;
}

.option-group strong {
  color: inherit;
}

.option-group small {
  color: inherit;
  font-size: 12px;
}

.option-group input:checked + span {
  background: #171611;
  border-color: #171611;
  color: #fff;
}

.temperature-options span {
  display: grid;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.empty-state {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  padding: 38px;
  text-align: center;
}

.detail-layout {
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.74fr);
}

.detail-gallery-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.breadcrumb {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 9px;
}

.breadcrumb a {
  color: var(--olive);
  font-weight: 700;
}

.gallery {
  display: grid;
  gap: 14px;
}

.gallery-main {
  aspect-ratio: 1 / 1;
  background: #d7d2c5;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-main img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.gallery-thumbs {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.thumb {
  aspect-ratio: 1 / 1;
  background: #dedbd2;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
}

.thumb.active {
  border-color: var(--brass);
}

.thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.detail-copy {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(21, 21, 18, 0.06);
  padding: 30px;
  position: sticky;
  top: 104px;
}

.detail-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.detail-badge {
  background: #171611;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.detail-copy h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 500;
  line-height: 1.05;
  margin: 5px 0 0;
}

.detail-summary {
  color: var(--muted);
  margin: 16px 0 20px;
}

.detail-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.detail-price-box {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
}

.detail-price-box p {
  color: var(--muted);
  margin: 0;
}

.detail-price {
  color: #3a3832;
  display: block;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-top: 5px;
}

.detail-metrics {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.detail-metric {
  background: #fbfaf7;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px;
}

.detail-metric + .detail-metric {
  border-left: 1px solid var(--line);
}

.detail-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-metric strong {
  font-size: 14px;
  line-height: 1.25;
}

.product-contact-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.spec-list {
  border-top: 1px solid var(--line);
}

.spec-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 130px 1fr;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row span {
  color: var(--muted);
}

.detail-section-block {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
}

.detail-section-block h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

.detail-section-block p {
  color: var(--muted);
  margin: 0;
}

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

.detail-support-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  grid-template-columns: 28px 1fr;
  padding: 16px;
}

.support-item svg {
  color: var(--brass);
  height: 22px;
  width: 22px;
}

.support-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.support-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 5px 0 0;
}

.related-products {
  grid-column: 1 / -1;
  margin-top: 36px;
}

.compact-head h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-grid {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.story-copy {
  position: sticky;
  top: 110px;
}

.values-grid,
.steps-grid,
.case-grid,
.contact-grid,
.trade-grid {
  display: grid;
  gap: 22px;
}

.values-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card,
.step,
.case-card,
.contact-card,
.admin-panel,
.trade-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.value-card p,
.step p,
.case-card p,
.contact-card p,
.trade-card p {
  color: var(--muted);
  margin: 8px 0 0;
}

.steps-grid {
  counter-reset: step;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  min-height: 220px;
  position: relative;
}

.step::before {
  color: var(--brass);
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  margin-bottom: 28px;
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
  overflow: hidden;
  padding: 0;
}

.case-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.case-card div {
  padding: 22px;
}

.case-meta {
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 700;
}

.trade-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-band {
  background: var(--olive);
  color: var(--white);
  padding: 76px 28px;
}

.quote-band blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.12;
  margin: 0;
  max-width: 960px;
}

.quote-band cite {
  color: rgba(255, 255, 255, 0.74);
  display: block;
  font-style: normal;
  margin-top: 18px;
}

.contact-grid {
  grid-template-columns: 0.8fr 1.2fr;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-line {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.contact-line strong {
  display: block;
}

.contact-form,
.admin-form {
  display: grid;
  gap: 16px;
}

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

.admin-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
}

.upload-box {
  align-items: center;
  background: #fbfaf7;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  min-height: 86px;
  padding: 14px;
}

.upload-box input {
  width: 100%;
}

.upload-copy {
  display: grid;
  gap: 4px;
}

.upload-copy strong {
  color: var(--ink);
}

.upload-copy small {
  color: var(--muted);
  font-size: 13px;
}

.check-field {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 10px;
}

.check-field input {
  accent-color: var(--ink);
  height: 18px;
  width: 18px;
}

.check-field span {
  display: grid;
  gap: 2px;
}

.check-field strong {
  color: var(--ink);
}

.check-field small {
  color: var(--muted);
  font-size: 13px;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-product {
  align-items: center;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 14px;
  grid-template-columns: 78px 1fr auto;
  padding: 12px;
}

.admin-product img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 78px;
}

.admin-product h3 {
  font-size: 16px;
  margin: 0;
}

.admin-product p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.toast {
  border-radius: var(--radius);
  display: none;
  padding: 12px 14px;
}

.toast.show {
  display: block;
}

.toast.success {
  background: #e8f2e9;
  border: 1px solid #b7d3bc;
  color: #265134;
}

.toast.error {
  background: #f9e8e4;
  border: 1px solid #e2b3a7;
  color: #7d2d20;
}

.site-footer {
  background: #10100d;
  color: var(--white);
  padding: 58px 28px 30px;
}

.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.5fr));
  margin: 0 auto;
  max-width: 1320px;
}

.footer-logo {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  filter: invert(1);
  height: 38px;
  width: 38px;
}

.footer-logo strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.footer-grid p,
.footer-grid a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid h3 {
  font-size: 15px;
  margin: 0 0 14px;
}

.footer-grid nav {
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.54);
  display: flex;
  justify-content: space-between;
  margin: 42px auto 0;
  max-width: 1320px;
  padding-top: 20px;
}

.admin-body {
  background: #f7f7f6;
  min-height: 100vh;
}

.admin-body .field input,
.admin-body .field textarea,
.admin-body .field select {
  background: #fff;
}

.admin-auth {
  align-items: center;
  background: #111111;
  display: flex;
  min-height: 100vh;
  padding: 28px;
}

.login-card {
  background: #fff;
  border-radius: 8px;
  margin: 0 auto;
  max-width: 460px;
  padding: 34px;
  width: 100%;
}

.admin-login-brand,
.admin-brand {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.admin-login-brand {
  margin-bottom: 30px;
}

.admin-login-brand img,
.admin-brand img {
  height: 28px;
  width: 28px;
}

.admin-login-brand strong,
.admin-brand strong {
  font-size: 14px;
  letter-spacing: 0.08em;
}

.login-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}

.login-card p {
  color: var(--muted);
}

.admin-console {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #111111;
  color: #fff;
  min-height: 100vh;
  position: sticky;
  top: 0;
}

.admin-brand {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  height: 76px;
  padding: 0 22px;
  width: 100%;
}

.admin-brand img {
  filter: invert(1);
}

.admin-sidebar nav {
  display: grid;
  padding-top: 18px;
}

.admin-sidebar a,
.admin-sidebar button {
  align-items: center;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  text-align: left;
}

.admin-sidebar a.active,
.admin-sidebar a:hover,
.admin-sidebar button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.admin-main {
  padding: 38px 40px 64px;
}

.admin-top {
  align-items: start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.admin-top h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.admin-top p {
  color: var(--muted);
  margin: 12px 0 0;
}

.admin-add {
  background: #171717;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  min-height: 48px;
  padding: 0 34px;
}

.admin-table-wrap {
  background: #fff;
  border: 1px solid #ecebe7;
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #ecebe7;
  padding: 18px 16px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #55524c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-table td {
  font-size: 14px;
}

.admin-table td strong {
  font-weight: 800;
}

.feature-pill {
  border: 1px solid #e6e1d8;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-width: 48px;
  padding: 4px 10px;
  justify-content: center;
}

.feature-pill.active {
  background: #171611;
  border-color: #171611;
  color: #fff;
}

.table-action {
  background: #fff;
  border: 1px solid #e4e1da;
  cursor: pointer;
  font-size: 12px;
  margin-right: 8px;
  min-height: 30px;
  padding: 0 14px;
}

.table-action:hover {
  border-color: #111;
}

.admin-toast {
  margin-bottom: 18px;
}

.modal-backdrop {
  align-items: center;
  background: rgba(0, 0, 0, 0.48);
  display: flex;
  inset: 0;
  justify-content: center;
  overflow: auto;
  padding: 28px;
  position: fixed;
  z-index: 40;
}

.modal-backdrop[hidden],
.admin-console[hidden],
.admin-auth[hidden] {
  display: none;
}

.product-modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 56px);
  max-width: 1180px;
  overflow: auto;
  padding: 0;
  width: 100%;
}

.product-modal header {
  align-items: start;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 28px 28px 22px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.product-modal h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
  margin: 0;
}

.modal-close {
  background: #111;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  height: 40px;
  line-height: 1;
  width: 40px;
}

.modal-form {
  gap: 18px;
  padding: 24px 28px 28px;
}

.modal-form-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.modal-form-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.form-section {
  border: 1px solid #ecebe7;
  border-radius: var(--radius);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.form-section-head {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px 1fr;
}

.form-section-head > span {
  align-items: center;
  background: #171611;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.form-section-head h3 {
  font-size: 17px;
  margin: 0;
}

.form-section-head p {
  color: var(--muted);
  font-size: 13px;
  margin: 2px 0 0;
}

.product-preview-panel {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 114px;
}

.preview-card {
  background: #fbfaf7;
  border: 1px solid #ecebe7;
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.preview-image {
  align-items: center;
  aspect-ratio: 1 / 1;
  background: #e8e4db;
  border-radius: var(--radius);
  color: var(--muted);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.preview-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.preview-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
}

.preview-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.preview-card > strong {
  font-size: 15px;
}

.product-preview-panel .form-actions {
  display: grid;
  margin-top: 0;
}

.product-preview-panel .btn {
  width: 100%;
}

.product-preview-panel .btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.sidebar-dot {
  background: currentColor;
  border-radius: 999px;
  display: inline-block;
  height: 7px;
  width: 7px;
}

.current-images {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.current-image {
  aspect-ratio: 1 / 1;
  background: #f2f0ea;
  border: 1px solid var(--line);
  cursor: grab;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.current-image.dragging {
  cursor: grabbing;
  opacity: 0.55;
}

.current-image.drag-over {
  border-color: var(--brass);
  box-shadow: 0 0 0 2px rgba(179, 138, 70, 0.18);
}

.current-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.current-image button {
  align-items: center;
  background: #111;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  height: 26px;
  justify-content: center;
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  z-index: 2;
}

.image-order-badge {
  background: rgba(17, 17, 17, 0.82);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  left: 8px;
  line-height: 1;
  padding: 7px 9px;
  position: absolute;
  top: 8px;
  z-index: 2;
}

@media (max-width: 1080px) {
  .nav-wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    background: var(--paper);
    border-top: 1px solid var(--line);
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    padding-bottom: 14px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 6px;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-mega {
    box-shadow: none;
    left: 0;
    min-width: 100%;
    opacity: 1;
    padding: 18px;
    pointer-events: auto;
    position: static;
    transform: none;
  }

  .nav-mega-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .nav-mega-primary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    padding-right: 0;
  }

  .nav-mega-secondary {
    padding-left: 0;
  }

  .header-actions .icon-link {
    display: none;
  }

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

  .split,
  .split.reverse,
  .story-grid,
  .detail-layout,
  .admin-shell,
  .modal-form-grid,
  .contact-grid,
  .page-hero .section-inner {
    grid-template-columns: 1fr;
  }

  .story-copy,
  .detail-copy,
  .product-preview-panel {
    position: static;
  }

  .detail-support-strip,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .admin-console {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    min-height: auto;
    position: static;
  }

  .admin-sidebar nav {
    display: flex;
    overflow-x: auto;
    padding: 0;
  }

  .admin-main {
    padding: 28px 20px 48px;
  }
}

@media (max-width: 740px) {
  .topbar {
    font-size: 12px;
  }

  .nav-wrap {
    padding: 0 18px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-inner,
  .section,
  .quote-band,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding-bottom: 62px;
    padding-top: 62px;
  }

  .section-head,
  .filters,
  .product-grid,
  .service-grid,
  .stats,
  .values-grid,
  .steps-grid,
  .case-grid,
  .trade-grid,
  .two-col,
  .detail-metrics,
  .detail-secondary-actions,
  .detail-support-strip,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
  }

  .split-media,
  .split-media img {
    min-height: 340px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .spec-row {
    grid-template-columns: 1fr;
  }

  .admin-product {
    grid-template-columns: 64px 1fr;
  }

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

  .admin-product a {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
  }

  .admin-top,
  .product-modal header {
    display: grid;
  }

  .admin-add {
    width: 100%;
  }

  .detail-price-box {
    grid-template-columns: 1fr;
  }

  .detail-metric + .detail-metric {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .modal-backdrop {
    padding: 12px;
  }

  .product-modal header,
  .modal-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .upload-box {
    grid-template-columns: 1fr;
  }

  .filter-summary {
    align-items: start;
    display: grid;
    gap: 8px;
  }
}
