:root {
  --zmsc-ink: #0b1220;
  --zmsc-muted: #5b6b7f;
  --zmsc-navy: #0b1f36;
  --zmsc-blue: #178ed9;
  --zmsc-blue-soft: #dff5ff;
  --zmsc-sky: #64c7e8;
  --zmsc-gold: #ffd23c;
  --zmsc-red: #ef3f35;
  --zmsc-bg: #f7fbff;
  --zmsc-card: #ffffff;
  --zmsc-border: rgba(17, 32, 52, 0.12);
  --zmsc-shadow: 0 24px 70px rgba(15, 33, 55, 0.10);
}

html body {
  background: var(--zmsc-bg) !important;
  color: var(--zmsc-ink);
}

/* Remove demo top bar and the US Dollar/demo text row. */
#topbar,
.topbar,
.header-top,
.site-header .header-top,
.site-header .topbar,
#site-header .topbar,
#site-header .mf-currency-widget,
#site-header .lang_sel,
#site-header #lang_sel {
  display: none !important;
}

/* Martfury header cleanup: light, branded, not two dark bars. */
#site-header,
.site-header,
.header-main,
.site-header .header-main,
.site-header .header-content,
.site-header .header-bottom,
#site-header .header-main,
#site-header .header-content,
#site-header .header-bottom,
.site-header .main-menu,
.header-layout-1 .site-header,
.header-layout-2 .site-header,
.header-layout-3 .site-header,
.header-layout-4 .site-header,
.header-layout-5 .site-header,
.header-layout-6 .site-header,
.header-layout-7 .site-header,
.header-layout-8 .site-header,
.header-layout-9 .site-header {
  background: #fff !important;
  color: var(--zmsc-ink) !important;
  border-color: rgba(15, 33, 55, .08) !important;
}

.site-header .header-main,
#site-header .header-main {
  box-shadow: 0 10px 28px rgba(15, 33, 55, .06) !important;
}

.site-header .logo img.site-logo,
#site-header .logo img.site-logo {
  max-width: 230px !important;
  width: 230px !important;
  height: auto !important;
}

.site-header .site-title,
.site-header .site-description,
#site-header .site-title,
#site-header .site-description {
  display: none !important;
}

.primary-nav > ul > li > a,
.site-header .primary-nav > ul > li > a,
#site-header .primary-nav > ul > li > a,
.site-header .main-menu a,
#site-header .main-menu a {
  color: var(--zmsc-ink) !important;
  font-weight: 800 !important;
  letter-spacing: -.01em;
}

.primary-nav > ul > li.current-menu-item > a,
.primary-nav > ul > li.current_page_item > a,
.primary-nav > ul > li:hover > a,
.site-header a:hover,
#site-header a:hover {
  color: var(--zmsc-blue) !important;
}

.products-cats-menu .cats-menu-title,
.site-header .products-cats-menu .cats-menu-title,
#site-header .products-cats-menu .cats-menu-title {
  background: linear-gradient(135deg, #fff7d6, #e9f8ff) !important;
  border: 1px solid rgba(11, 31, 54, .12) !important;
  color: var(--zmsc-ink) !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.product-extra-search .search-field,
.site-header .product-extra-search .search-field,
.site-header .search-field,
.site-header input[type="search"] {
  background: #fff !important;
  border: 1px solid rgba(15, 33, 55, .16) !important;
  color: var(--zmsc-ink) !important;
}

.site-header button,
.site-header .search-submit,
.site-header .product-extra-search .search-submit,
button[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.button,
.btn,
.zmsc-btn,
.zmsc-small-btn {
  border-radius: 999px !important;
}

.site-header .search-submit,
.site-header .product-extra-search .search-submit,
button[type="submit"],
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.zmsc-btn-primary {
  background: linear-gradient(135deg, var(--zmsc-blue), #0b5ea4) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 14px 34px rgba(23, 142, 217, .20);
}

.site-header .extras-menu > li > a,
.site-header .extras-menu .extra-icon,
.site-header .menu-item-account > a,
.site-header .menu-item-cart > a,
.site-header .menu-item-wishlist > a {
  color: var(--zmsc-navy) !important;
}

/* Zapcart home. */
.zmsc-home {
  background: var(--zmsc-bg);
  color: var(--zmsc-ink);
  overflow: hidden;
}

.zmsc-wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.zmsc-hero {
  padding: 64px 0 46px;
  background:
    radial-gradient(circle at 78% 16%, rgba(100, 199, 232, .32), transparent 28%),
    radial-gradient(circle at 8% 0%, rgba(255, 210, 60, .30), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #f3fbff 52%, #eaf6fc 100%);
  border-bottom: 1px solid rgba(15, 33, 55, .08);
}

.zmsc-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr);
  gap: 42px;
  align-items: center;
}

.zmsc-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  font-weight: 900;
  color: #0b78bd;
}

.zmsc-kicker:before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--zmsc-gold);
  box-shadow: 12px 0 0 var(--zmsc-red);
}

.zmsc-hero h1,
.zmsc-section h2,
.zmsc-final-cta h2 {
  margin: 0 0 18px;
  color: var(--zmsc-ink);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.03;
}

.zmsc-hero h1 {
  max-width: 820px;
  font-size: clamp(40px, 5.5vw, 72px);
}

.zmsc-lead {
  max-width: 780px;
  margin: 0 0 24px;
  color: var(--zmsc-muted);
  font-size: 18px;
  line-height: 1.7;
}

.zmsc-search {
  max-width: 820px;
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid rgba(15, 33, 55, .12);
  border-radius: 22px;
  padding: 10px;
  box-shadow: 0 18px 50px rgba(15, 33, 55, .08);
  margin-bottom: 22px;
}

.zmsc-search input[type="search"] {
  flex: 1;
  min-height: 54px;
  border: 0 !important;
  background: #f7fbff !important;
  border-radius: 16px !important;
  padding: 0 18px;
  color: var(--zmsc-ink);
  font-size: 15px;
}

.zmsc-search button {
  min-height: 54px;
  border: 0 !important;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--zmsc-gold), #ffb23a) !important;
  color: #111827 !important;
  font-weight: 900;
  box-shadow: none !important;
}

.zmsc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.zmsc-btn,
.zmsc-small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  font-weight: 900;
  line-height: 1;
}

.zmsc-btn {
  min-height: 50px;
  padding: 0 22px;
}

.zmsc-btn-secondary {
  background: #fff !important;
  color: var(--zmsc-ink) !important;
  border: 1px solid rgba(15, 33, 55, .14) !important;
}

.zmsc-btn-soft {
  background: var(--zmsc-blue-soft) !important;
  color: #07588d !important;
  border: 1px solid rgba(23, 142, 217, .16) !important;
}

.zmsc-inline {
  color: var(--zmsc-blue) !important;
  font-weight: 900;
  text-decoration: none !important;
}

.zmsc-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.zmsc-trust-row span,
.zmsc-category-card strong {
  display: inline-flex;
  background: rgba(23, 142, 217, .09);
  color: #07588d;
  border: 1px solid rgba(23, 142, 217, .13);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
}

.zmsc-hero-card {
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(15, 33, 55, .12);
  box-shadow: var(--zmsc-shadow);
  border-radius: 30px;
  padding: 28px;
  backdrop-filter: blur(16px);
}

.zmsc-hero-logo {
  display: block;
  max-width: 300px;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}

.zmsc-card-inner {
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, #0b1f36, #1e6fa8);
  color: #fff;
}

.zmsc-card-inner span {
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: var(--zmsc-gold);
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 12px;
}

.zmsc-card-inner strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}

.zmsc-card-inner p {
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.zmsc-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.zmsc-mini-stats div {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 33, 55, .08);
}

.zmsc-mini-stats strong,
.zmsc-mini-stats span {
  display: block;
}

.zmsc-mini-stats span {
  color: var(--zmsc-muted);
  font-size: 12px;
  font-weight: 800;
}

.zmsc-section {
  padding: 58px 0;
}

.zmsc-section-white {
  background: #fff;
}

.zmsc-section-soft {
  background: linear-gradient(180deg, #f8fcff, #eef8ff);
}

.zmsc-section-head {
  margin-bottom: 28px;
}

.zmsc-section-head h2,
.zmsc-final-cta h2 {
  font-size: clamp(30px, 3.5vw, 48px);
}

.zmsc-section-head p {
  max-width: 850px;
  color: var(--zmsc-muted);
  line-height: 1.7;
  font-size: 16px;
}

.zmsc-section-head-inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.zmsc-path-grid,
.zmsc-category-grid,
.zmsc-product-grid {
  display: grid;
  gap: 18px;
}

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

.zmsc-path-grid a,
.zmsc-category-card,
.zmsc-product-card,
.zmsc-checklist p,
.zmsc-rfq-form {
  background: #fff;
  border: 1px solid var(--zmsc-border);
  box-shadow: 0 18px 40px rgba(15, 33, 55, .06);
  border-radius: 22px;
}

.zmsc-path-grid a {
  padding: 24px;
  text-decoration: none !important;
}

.zmsc-path-grid strong,
.zmsc-path-grid span {
  display: block;
}

.zmsc-path-grid strong {
  color: var(--zmsc-ink);
  font-size: 19px;
  margin-bottom: 8px;
}

.zmsc-path-grid span {
  color: var(--zmsc-muted);
  line-height: 1.55;
}

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

.zmsc-category-card {
  padding: 24px;
  color: var(--zmsc-ink) !important;
  text-decoration: none !important;
  min-height: 230px;
}

.zmsc-category-card > span {
  display: inline-flex;
  color: #07588d;
  background: var(--zmsc-blue-soft);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.zmsc-category-card h3,
.zmsc-product-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -.025em;
  color: var(--zmsc-ink);
}

.zmsc-category-card p {
  color: var(--zmsc-muted);
  line-height: 1.6;
  min-height: 76px;
}

.zmsc-products {
  background: #fff;
}

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

.zmsc-product-card {
  overflow: hidden;
}

.zmsc-product-image {
  display: flex;
  min-height: 210px;
  background: #f6f9fc;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.zmsc-product-image img {
  max-height: 180px;
  width: auto;
  object-fit: contain;
}

.zmsc-product-body {
  padding: 18px;
}

.zmsc-product-body h3 {
  font-size: 16px;
  line-height: 1.35;
}

.zmsc-product-body h3 a {
  color: var(--zmsc-ink) !important;
  text-decoration: none !important;
}

.zmsc-price {
  color: var(--zmsc-red);
  font-weight: 900;
  margin-bottom: 14px;
}

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

.zmsc-small-btn {
  min-height: 38px;
  padding: 0 14px;
  background: var(--zmsc-blue-soft) !important;
  color: #07588d !important;
  border: 1px solid rgba(23, 142, 217, .16);
}

.zmsc-small-btn-dark {
  background: var(--zmsc-navy) !important;
  color: #fff !important;
}

.zmsc-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.zmsc-split p {
  color: var(--zmsc-muted);
  line-height: 1.7;
}

.zmsc-checklist {
  display: grid;
  gap: 12px;
}

.zmsc-checklist p {
  margin: 0;
  padding: 18px 20px;
  font-weight: 800;
}

.zmsc-checklist p:before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--zmsc-gold);
  border-radius: 50%;
  margin-right: 10px;
  box-shadow: 12px 0 0 var(--zmsc-red);
}

.zmsc-final-cta {
  padding: 56px 0;
  background: linear-gradient(135deg, #eef9ff, #fff8d8);
}

.zmsc-final-card {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--zmsc-border);
  border-radius: 28px;
  box-shadow: var(--zmsc-shadow);
  padding: 28px;
}

.zmsc-rfq-wrap {
  max-width: 1000px;
  margin: 34px auto;
}

.zmsc-rfq-form {
  padding: 28px;
}

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

.zmsc-rfq-form input,
.zmsc-rfq-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 33, 55, .14) !important;
  border-radius: 14px !important;
  padding: 12px 14px !important;
}

.zmsc-success {
  padding: 14px 18px;
  background: #e7f7ec;
  border: 1px solid #b4e4c1;
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 800;
}

.zmsc-product-rfq {
  clear: both;
  margin: 20px 0;
  padding: 20px;
  background: linear-gradient(135deg, #fffbea, #eef9ff);
  border: 1px solid rgba(15, 33, 55, .12);
  border-radius: 20px;
}

.zmsc-product-rfq strong {
  display: block;
  margin-bottom: 8px;
  color: var(--zmsc-ink);
}

/* Keep old automation dark home from staying too heavy if both plugins are active. */
.zma-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f4fbff 58%, #eaf7ff 100%) !important;
  color: var(--zmsc-ink) !important;
}
.zma-hero h1,
.zma-hero .zma-lead {
  color: var(--zmsc-ink) !important;
}
.zma-hero .zma-link {
  color: var(--zmsc-blue) !important;
}

@media (max-width: 1024px) {
  .zmsc-hero-grid,
  .zmsc-split,
  .zmsc-final-card { grid-template-columns: 1fr; display: grid; }
  .zmsc-path-grid,
  .zmsc-category-grid,
  .zmsc-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .zmsc-hero { padding: 42px 0 32px; }
  .zmsc-hero h1 { font-size: 38px; }
  .zmsc-search { flex-direction: column; }
  .zmsc-path-grid,
  .zmsc-category-grid,
  .zmsc-product-grid,
  .zmsc-form-grid,
  .zmsc-mini-stats { grid-template-columns: 1fr; }
  .site-header .logo img.site-logo,
  #site-header .logo img.site-logo { max-width: 190px !important; width: 190px !important; }
}
