/* Theme shell + additions on top of the ZMS design system */
html, body { margin: 0; padding: 0; }
body { background: #fff; }
img { max-width: 100%; }
.site-main { display: block; }
.zms-page { overflow: hidden; }

/* product gallery thumbs */
.zms-media-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.zms-media-thumbs .zms-media-thumb { border: 1px solid var(--zms-line); overflow: hidden; background: #fff; }
.zms-media-thumbs img { width: 100%; aspect-ratio: 1.7; object-fit: cover; display: block; }

/* pagehero with photo background */
.zms-pagehero[style*="background-image"] { background-size: cover; background-position: center; }

/* map block */
.zms-map { position: relative; overflow: hidden; padding: 0; min-height: 320px; }
.zms-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zms-map > div { position: relative; z-index: 2; }

/* light stats variant used on dark packing section */
.zms-stats.zms-stats-light b { font-size: 30px; }

/* contact form basic field styling for the native form */
.zms-form-card form p, .zms-contact-form form p { margin: 0 0 14px; }
.zms-form-card label, .zms-contact-form label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #27485f; margin-bottom: 6px; }
.zms-form-card input, .zms-form-card select, .zms-form-card textarea,
.zms-contact-form input, .zms-contact-form select, .zms-contact-form textarea {
  width: 100%; background: #f8fafc; border: 1px solid #cfdde8; border-radius: 2px;
  padding: 12px 14px; font-size: 13px; color: var(--zms-ink); font-family: inherit; outline: none; min-height: 46px;
}
.zms-form-card textarea, .zms-contact-form textarea { min-height: 110px; resize: vertical; }
.zms-form-card input:focus, .zms-contact-form input:focus { border-color: var(--zms-blue); background: #fff; }
.zms-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.zms-form-card button, .zms-contact-form button {
  background: var(--zms-blue); color: #fff; border: 0; border-radius: 2px; padding: 14px 26px;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; font-family: inherit;
}
.zms-form-card button:hover, .zms-contact-form button:hover { background: var(--zms-ink); }
.zms-form-note { font-size: 11px; color: #7a8e9d; margin-top: 10px; }

/* footer logo rendered white on the dark footer */
.zms-foot-brand img { filter: brightness(0) invert(1); opacity: .95; }

/* blog single */
.zms-post-wrap { background: var(--zms-paper); padding: 40px 0 70px; }
.zms-post-card { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--zms-line); box-shadow: 0 20px 60px rgba(6,26,44,.07); }
.zms-post-head { background: var(--zms-navy); color: #fff; padding: 54px 58px; position: relative; overflow: hidden; }
.zms-post-head h1 { color: #fff; font-size: clamp(32px,4vw,52px); text-transform: uppercase; margin: 0; position: relative; z-index: 2; }
.zms-post-head .meta { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #9ed0f2; margin-bottom: 14px; position: relative; z-index: 2; }
.zms-post-body { padding: 42px 58px 52px; }
@media (max-width: 760px) {
  .zms-post-head { padding: 32px 22px; }
  .zms-post-body { padding: 26px 22px 34px; }
  .zms-form-row { grid-template-columns: 1fr; }
  .zms-media-thumbs { grid-template-columns: 1fr 1fr; }
}

/* product composite images: show the whole diagram instead of cropping it */
.zms-cat-card .thumb{background:#f2f5f9;padding:10px}
.zms-cat-card .thumb img{object-fit:contain}
.zms-product .thumb:not(.custom-thumb){background:#fff;padding:12px}
.zms-product .thumb:not(.custom-thumb) img{object-fit:contain}

/* 4-item card rows fill the width instead of leaving an orphan */
.zms-app-cards{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
