:root {
  --blue-900: #073b78;
  --blue-800: #0a4f9e;
  --blue-700: #0a66c2;
  --blue-500: #1687e8;
  --cyan-400: #36c9e8;
  --green-600: #0f9f6e;
  --ink: #102033;
  --muted: #5b6b80;
  --line: #d8e5f2;
  --soft: #f3f8fd;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(9, 64, 125, 0.12);
  --radius: 8px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--blue-900);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: var(--header-height);
  padding: 10px max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(216, 229, 242, 0.75);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 52px;
  color: #050b14;
  font-size: 1.22rem;
  font-weight: 950;
  text-decoration: none;
}

.brand img {
  width: 58px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-800);
  background: var(--soft);
  outline: none;
}

.site-nav a.active {
  color: var(--blue-800);
  background: var(--soft);
}

.header-call,
.button,
.filter-button,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.header-call {
  padding: 0 16px;
  border: 1px solid var(--blue-700);
  color: var(--blue-800);
  background: var(--white);
}

.header-call:hover,
.header-call:focus-visible {
  color: var(--white);
  background: var(--blue-700);
  outline: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  padding: 0 12px;
  color: var(--blue-800);
  background: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 102, 194, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10, 102, 194, 0.06) 1px, transparent 1px),
    var(--white);
  background-size: 42px 42px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(243, 248, 253, 0.95));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 56px;
  align-items: end;
  min-height: auto;
  padding: clamp(28px, 5vw, 54px) 0 18px;
}

.hero-copy {
  max-width: 850px;
}

.hero-logo {
  width: min(170px, 54vw);
  height: auto;
  margin-bottom: 14px;
  mix-blend-mode: multiply;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 980px;
  margin-bottom: 20px;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--blue-900);
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--ink);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.lead {
  max-width: 780px;
  margin-bottom: 20px;
  color: #2f465f;
  font-size: 1.08rem;
  line-height: 1.6;
}

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

.button {
  min-width: 164px;
  padding: 0 18px;
  border: 1px solid transparent;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button.primary {
  color: var(--white);
  background: var(--blue-700);
  box-shadow: 0 10px 24px rgba(10, 102, 194, 0.22);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--blue-800);
}

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

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--blue-500);
}

.button.full {
  width: 100%;
}

.button.small {
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.button.danger {
  border-color: #f1c7cf;
  color: #9d1d2d;
  background: #fff6f8;
}

.button.danger:hover,
.button.danger:focus-visible {
  border-color: #d4475f;
  color: var(--white);
  background: #b51f36;
}

.hero-stats {
  display: grid;
  gap: 12px;
  margin: 0;
}

.hero-stats div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-stats dt {
  color: var(--blue-800);
  font-size: 2.25rem;
  font-weight: 950;
  line-height: 1;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.quick-links {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 16px;
}

.quick-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue-900);
  background: var(--white);
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(9, 64, 125, 0.08);
}

.quick-links a:hover,
.quick-links a:focus-visible {
  border-color: var(--blue-500);
  outline: none;
}

.flash {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue-900);
  background: #f8fbff;
  font-weight: 800;
}

.flash.success {
  border-color: rgba(15, 159, 110, 0.28);
  color: #08714d;
  background: #effbf6;
}

.flash.error {
  border-color: #f1c7cf;
  color: #9d1d2d;
  background: #fff6f8;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  transform: translateY(18px);
  padding: 13px 16px;
  border: 1px solid rgba(10, 102, 194, 0.22);
  border-radius: var(--radius);
  color: var(--blue-900);
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10, 102, 194, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10, 102, 194, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #eef7ff);
  background-size: 42px 42px, 42px 42px, auto;
}

.page-hero-inner {
  max-width: 880px;
  padding: clamp(58px, 9vw, 108px) 0 clamp(48px, 8vw, 86px);
}

.page-hero .lead {
  margin-bottom: 26px;
}

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

.feature-card {
  display: grid;
  gap: 14px;
  min-height: 280px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(9, 64, 125, 0.07);
  text-decoration: none;
}

.feature-card > .icon {
  width: 32px;
  height: 32px;
  color: var(--blue-700);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.65;
}

.feature-card span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: end;
  color: var(--blue-800);
  font-weight: 900;
}

.feature-card:hover,
.feature-card:focus-visible {
  border-color: var(--blue-500);
  outline: none;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(26px, 4vw, 42px) 0;
}

.cta-band h2 {
  max-width: 820px;
}

.cta-band p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.section {
  padding: clamp(58px, 8vw, 96px) 0;
}

.intro,
.machines {
  background: var(--white);
}

.values,
.shop,
.process {
  background: var(--soft);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.text-flow {
  color: #344b63;
  font-size: 1.08rem;
  line-height: 1.75;
}

.text-flow p:last-child {
  margin-bottom: 0;
}

.value-grid,
.service-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card,
.service-card,
.process-grid article,
.product-card,
.inquiry-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(9, 64, 125, 0.07);
}

.value-card {
  padding: 26px;
}

.value-card .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  color: var(--blue-700);
}

.value-card p,
.service-card p,
.process-grid p,
.product-card p {
  color: var(--muted);
  line-height: 1.6;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.service-card {
  padding: 26px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #33475d;
  line-height: 1.45;
}

.check-list .icon {
  margin-top: 2px;
  color: var(--green-600);
}

.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  color: var(--blue-900);
  background: var(--white);
}

.filter-button.active,
.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--blue-700);
  color: var(--white);
  background: var(--blue-700);
  outline: none;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 20px;
  align-items: start;
}

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

.catalog-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 0;
  color: var(--muted);
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100%;
  padding: 0;
}

.product-card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.product-card-media .product-media-link {
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.product-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #6b8195;
  background: #f1f5f8;
}

.product-visual .icon {
  width: 58px;
  height: 58px;
}

.product-card h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.product-kicker {
  margin-bottom: 6px;
  color: var(--blue-700);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-image {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--white);
}

.product-status-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border-radius: 6px;
  color: #08714d;
  background: #dffbec;
  font-size: 0.8rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(7, 26, 43, 0.12);
}

.product-card-body {
  display: grid;
  padding: 20px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.product-meta span {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  background: #f8fbff;
}

.product-card .button {
  min-width: 0;
  min-height: 40px;
  padding-inline: 12px;
}

.product-media-link,
.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-media-link:hover,
.product-media-link:focus-visible,
.product-title-link:hover,
.product-title-link:focus-visible {
  color: var(--blue-700);
  outline: none;
}

.product-card-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.product-price {
  color: #07111f;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.product-actions {
  display: grid;
  gap: 10px;
}

.product-actions .button {
  width: 100%;
  min-height: 48px;
}

.product-more-link {
  justify-self: center;
  color: var(--blue-800);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.product-more-link:hover,
.product-more-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.inquiry-panel {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-head h3 {
  margin: 0;
}

.panel-head span {
  color: var(--blue-800);
  font-size: 0.88rem;
  font-weight: 900;
}

.cart-empty {
  padding: 16px 0;
  color: var(--muted);
  line-height: 1.55;
}

.cart-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.cart-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.cart-list strong {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.cart-list li > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cart-list a {
  text-decoration: none;
}

.cart-list a:hover {
  color: var(--blue-700);
}

.cart-list span {
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-remove {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #8b1f2b;
  background: var(--white);
  cursor: pointer;
}

.machine-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.machine-list span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue-900);
  font-size: 0.92rem;
  font-weight: 800;
  background: var(--soft);
}

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

.process-grid article {
  padding: 24px;
}

.process-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 950;
  background: var(--blue-700);
}

.contact {
  background: linear-gradient(180deg, var(--white), #eef7ff);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 6vw, 72px);
  align-items: start;
}

.contact-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin: 26px 0;
  font-style: normal;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--blue-900);
  font-weight: 800;
  text-decoration: none;
  line-height: 1.4;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--blue-700);
  outline: none;
}

.small-note {
  font-size: 0.92rem;
}

.field-note {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
}

.map-section {
  background: #eef5fb;
}

.location-card {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 52px rgba(9, 64, 125, 0.1);
}

.location-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(18px, 3vw, 30px);
}

.location-copy h2 {
  margin-bottom: 14px;
  color: var(--blue-900);
  font-size: 2.15rem;
}

.location-copy p {
  color: #445a72;
  line-height: 1.65;
}

.location-details {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.location-details div {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.location-details dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.location-details dd {
  margin: 0;
  color: #07111f;
  font-weight: 850;
  line-height: 1.45;
}

.location-details a {
  color: inherit;
  text-decoration: none;
}

.location-details a:hover,
.location-details a:focus-visible {
  color: var(--blue-700);
  outline: none;
}

.map-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid #c4d9ec;
  border-radius: var(--radius);
  color: inherit;
  background: #dbeaf8;
  text-decoration: none;
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 460px;
  border: 0;
  filter: saturate(0.95) contrast(1.03);
  pointer-events: none;
}

.map-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(7, 59, 120, 0), rgba(7, 59, 120, 0.2));
  pointer-events: none;
}

.map-card:hover,
.map-card:focus-visible {
  outline: 3px solid rgba(22, 135, 232, 0.22);
}

.map-pin-card {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 36px);
  padding: 12px 14px;
  border-radius: var(--radius);
  color: #07111f;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(7, 26, 43, 0.18);
  font-weight: 900;
}

.product-detail {
  background: #f3f7fb;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.product-media-panel,
.product-inquiry-copy {
  min-width: 0;
}

.product-media-panel {
  display: grid;
  gap: 14px;
}

.product-main-frame {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(9, 64, 125, 0.09);
}

.product-main-image,
.product-main-placeholder {
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 520px;
  border-radius: 6px;
  background: #f8fbff;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  background: var(--white);
}

.product-main-placeholder {
  color: #6b8195;
  background: #f1f5f8;
}

.product-main-placeholder .icon {
  width: 118px;
  height: 118px;
}

.product-thumbs,
.admin-gallery,
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.admin-gallery a,
.attachment-grid a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.admin-gallery img,
.attachment-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-thumbs {
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  margin-top: 0;
}

.product-thumb {
  overflow: hidden;
  min-height: 0;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 22px rgba(9, 64, 125, 0.08);
  cursor: pointer;
}

.product-thumb.active,
.product-thumb:hover,
.product-thumb:focus-visible {
  border-color: var(--blue-700);
  outline: none;
}

.product-thumb img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  object-fit: contain;
}

.product-buy-card {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(9, 64, 125, 0.09);
}

.product-buy-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-buy-heading span {
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.product-buy-heading strong {
  padding: 8px 10px;
  border-radius: 6px;
  color: #08714d;
  background: #dffbec;
  font-size: 0.82rem;
}

.product-buy-card h1 {
  margin-bottom: 0;
  color: #07111f;
  font-size: 2.25rem;
  line-height: 1.08;
}

.product-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 850;
}

.product-rating span {
  color: #ff9f0a;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.product-detail-price {
  color: #07111f;
  font-size: 1.85rem;
  line-height: 1.05;
}

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

.product-detail-facts div {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border-radius: var(--radius);
  background: #f1f6fc;
}

.product-detail-facts span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.product-detail-facts strong {
  color: #07111f;
  font-size: 1.02rem;
  line-height: 1.35;
}

.product-detail-actions {
  display: grid;
  grid-template-columns: minmax(96px, 120px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 2px;
}

.product-detail-actions label {
  gap: 8px;
}

.product-detail-actions input {
  min-height: 50px;
  font-weight: 900;
}

.product-detail-actions .button {
  width: 100%;
  min-height: 50px;
}

.product-detail-secondary .button {
  min-width: 224px;
}

.product-description-section {
  background: var(--white);
}

.product-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 20px;
  align-items: start;
}

.product-description-card,
.product-help-card {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(9, 64, 125, 0.07);
}

.product-description-card h2 {
  max-width: 780px;
  font-size: 2rem;
}

.product-help-card {
  background: #f3f8fd;
}

.product-help-card p {
  color: var(--muted);
  line-height: 1.65;
}

.product-help-card .button {
  margin-top: 6px;
  width: 100%;
}

.product-reviews-section {
  background: #f3f8fd;
}

.product-reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 20px;
  align-items: start;
}

.product-reviews-list {
  display: grid;
  gap: 14px;
}

.review-card,
.review-form-card {
  padding: clamp(18px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(9, 64, 125, 0.07);
}

.review-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.review-card-header strong {
  display: block;
  color: #07111f;
}

.review-card-header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.review-stars {
  color: #ff9f0a;
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.review-card p,
.empty-review p {
  margin-bottom: 0;
  color: #2f465f;
  line-height: 1.65;
}

.review-form-card {
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.review-form {
  display: grid;
  gap: 14px;
}

.review-form .button {
  width: 100%;
}

.product-inquiry-copy > h2,
.product-inquiry-copy > p {
  max-width: 700px;
}

.product-inquiry-copy .contact-form {
  margin-top: 18px;
}

.admin-gallery {
  grid-template-columns: repeat(auto-fill, minmax(84px, 120px));
  margin-top: 0;
}

.attachment-grid {
  grid-template-columns: repeat(auto-fill, minmax(86px, 110px));
}

.delete-inquiry-form {
  margin-top: 12px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 30px);
}

.form-inquiry {
  min-width: 0;
  padding-block: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.form-inquiry .panel-head {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.form-inquiry h3 {
  font-size: 1rem;
}

.form-inquiry .cart-empty,
.form-inquiry .cart-list {
  margin: 0;
}

.form-inquiry .cart-empty {
  padding: 0;
  font-size: 0.9rem;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #c9d9e8;
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-500);
  outline: 3px solid rgba(22, 135, 232, 0.16);
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.consent a {
  color: var(--blue-800);
  font-weight: 850;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--blue-900);
  font-weight: 750;
  line-height: 1.45;
}

.form-status.error {
  color: #9d1d2d;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 72px);
  align-items: start;
}

.auth-layout h1,
.admin-main h1 {
  font-size: 2.7rem;
}

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

.panel-page {
  background: linear-gradient(180deg, #ffffff, #f3f8fd);
}

.admin-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-nav {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(9, 64, 125, 0.07);
}

.admin-nav strong {
  margin-bottom: 6px;
  color: var(--blue-900);
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a:focus-visible,
.admin-nav a.active {
  color: var(--blue-800);
  background: var(--soft);
  outline: none;
}

.admin-main {
  min-width: 0;
}

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

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-number {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-800);
  font-size: 2.05rem;
  font-weight: 950;
  line-height: 1.05;
  word-break: break-word;
}

.admin-form {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(9, 64, 125, 0.07);
}

.admin-form h2 {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.55rem;
}

.admin-form h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.admin-form-section {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.4vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.admin-form-section-header {
  display: grid;
  gap: 4px;
}

.admin-form-section .eyebrow,
.admin-form-section h2 {
  margin: 0;
}

.admin-form-section h2 {
  padding: 0;
  border: 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.product-image-editor {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
}

.main-image-editor,
.gallery-image-editor {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.admin-main-photo,
.admin-gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.admin-main-photo {
  max-width: 240px;
}

.admin-main-photo img,
.admin-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}

.admin-gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.admin-photo-empty,
.admin-photo-missing {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px;
  color: var(--muted);
  background: #f1f5f8;
  font-size: 0.8rem;
  text-align: center;
}

.admin-photo-empty .icon {
  width: 48px;
  height: 48px;
}

.photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #9d1d2d;
  background: var(--white);
  cursor: pointer;
}

.photo-remove:hover,
.photo-remove:focus-visible {
  border-color: #9d1d2d;
}

.upload-status {
  margin: 0;
  color: var(--blue-800);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.upload-status:empty {
  display: none;
}

.upload-status.error {
  color: #9d1d2d;
}

[data-product-form] button:disabled,
[data-product-form] input:disabled {
  opacity: 0.6;
  cursor: wait;
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
}

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

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.admin-subcard {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbff;
}

.admin-subcard h3 {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(9, 64, 125, 0.07);
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--blue-900);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  background: #f8fbff;
}

.data-table td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-actions form,
.status-form {
  margin: 0;
}

.badge {
  display: inline-flex !important;
  width: max-content;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-900) !important;
  font-size: 0.78rem !important;
  font-weight: 900;
  background: #f8fbff;
}

.badge.success {
  border-color: rgba(15, 159, 110, 0.28);
  color: #08714d !important;
  background: #effbf6;
}

.badge.muted {
  color: var(--muted) !important;
}

details summary {
  color: var(--blue-800);
  font-weight: 900;
  cursor: pointer;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 12px;
  border-radius: var(--radius);
  color: #21384f;
  background: #f3f8fd;
  white-space: pre-wrap;
}

.site-footer {
  padding: 18px 0;
  color: #d9e8f7;
  background: #082f5f;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer a {
  color: #eff7ff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: start;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: none;
    grid-auto-rows: minmax(48px, auto);
    justify-content: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 18px 42px rgba(9, 64, 125, 0.14);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    justify-content: flex-start;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .header-call {
    justify-self: end;
  }

  .hero-inner,
  .two-column,
  .contact-layout,
  .location-card,
  .shop-layout,
  .product-detail-layout,
  .product-info-grid,
  .product-reviews-layout {
    grid-template-columns: 1fr;
  }

  .product-buy-card,
  .review-form-card {
    position: static;
  }

  .product-main-image,
  .product-main-placeholder {
    min-height: 420px;
  }

  .hero-inner {
    gap: 28px;
    align-items: start;
    min-height: auto;
  }

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

  .quick-links,
  .value-grid,
  .service-grid,
  .feature-grid,
  .dashboard-grid,
  .auth-cards {
    grid-template-columns: 1fr;
  }

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

  .inquiry-panel {
    position: static;
  }

  .auth-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

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

  .admin-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .cta-band,
  .admin-heading {
    display: grid;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(100% - 28px, 1160px);
  }

  .site-header {
    gap: 10px;
    padding-inline: 14px;
  }

  .brand img {
    width: 48px;
  }

  .brand span {
    font-size: 1rem;
  }

  .nav-toggle span,
  .header-call span {
    display: none;
  }

  .header-call,
  .nav-toggle {
    width: 44px;
    padding: 0;
  }

  .hero-inner {
    padding: 42px 0 28px;
  }

  .hero-logo {
    width: min(160px, 70vw);
    margin-bottom: 18px;
  }

  .hero-stats,
  .quick-links,
  .product-grid,
  .process-grid,
  .form-row,
  .auth-cards,
  .admin-nav {
    grid-template-columns: 1fr;
  }

  .product-visual .icon {
    width: 34px;
    height: 34px;
  }

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

  .location-card {
    padding: 12px;
  }

  .location-copy h2,
  .product-buy-card h1 {
    font-size: 2rem;
  }

  .map-card,
  .map-card iframe {
    min-height: 360px;
  }

  .product-main-image,
  .product-main-placeholder {
    min-height: 320px;
  }

  .product-detail-price {
    font-size: 1.55rem;
  }

  .footer-inner {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  .button,
  .filter-button {
    width: 100%;
  }

  .hero-actions,
  .shop-toolbar {
    display: grid;
  }

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

  .product-actions {
    display: grid;
  }

  .location-copy {
    padding: 14px;
  }

  .map-card,
  .map-card iframe {
    min-height: 300px;
  }

  .map-pin-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .product-main-frame,
  .product-buy-card,
  .product-description-card,
  .product-help-card {
    padding: 14px;
  }

  .product-main-image,
  .product-main-placeholder {
    min-height: 260px;
  }

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

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