:root {
  --page-gutter: 1rem;
  --page-max: 1440px;
  --page-inline: calc((100% - min(100% - (var(--page-gutter) * 2), var(--page-max))) / 2);
}

html { color-scheme: dark; }
body.mh-site {
  margin: 0;
  overflow-x: hidden;
  background-color: #050505 !important;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08));
  background-attachment: fixed;
  color: #f4f4f5;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

#page-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: transparent;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 18px);
  opacity: 0.4;
}

#primary,
.page-shell,
.mh-category-banner,
.mh-catalog-offers,
.mh-woo-shell,
footer.mh-foot-a,
footer.mh-foot-b {
  position: relative;
  z-index: 1;
}

.page-shell {
  padding-top: calc(var(--header-height, 88px) + 1.5rem);
  padding-bottom: 3rem;
}

.mh-home-notices.page-shell {
  padding-bottom: 0;
}

.page-shell--after-banner {
  padding-top: 1.5rem;
  padding-bottom: 3rem;
}

.page-wrap,
.mh-section-wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  box-sizing: border-box;
}

.mh-scroll-hidden {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mh-scroll-hidden::-webkit-scrollbar {
  display: none;
}

.mh-woo-shell,
#primary.content-area {
  min-width: 0;
  max-width: 100%;
}

/* Breadcrumbs: share site gutters wherever WooCommerce outputs them */
.woocommerce-breadcrumb {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto 1.5rem;
  padding-inline: var(--page-gutter);
  box-sizing: border-box;
  color: #71717a;
  font-size: .875rem;
  line-height: 1.35;
}
.page-wrap > .woocommerce-breadcrumb,
.mh-section-wrap > .woocommerce-breadcrumb,
.mh-category-banner__inner > .woocommerce-breadcrumb {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-inline: 0;
}
.woocommerce-breadcrumb a {
  color: #71717a;
  text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
  color: #fff;
}

.page-kicker {
  margin: 0;
  color: #a1a1aa;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-title {
  margin: .35rem 0 0;
  color: #fff;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -.02em;
}

.page-lead {
  max-width: 42rem;
  margin: .65rem 0 0;
  color: #a1a1aa;
  font-size: .95rem;
  line-height: 1.6;
}

.mh-card {
  border: 1px solid #72727a !important;
  background: #18191b !important;
}

.mh-input {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .75rem;
  outline: none;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: .9rem;
}

.mh-input:focus {
  border-color: rgba(239,68,68,.55);
}

.mh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  border-radius: 9999px;
  font-size: .875rem;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.mh-btn-primary {
  background: #dc2626;
  color: #fff;
}

.mh-btn-primary:hover {
  background: #ef4444;
}

.mh-btn-ghost {
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: #e4e4e7;
}

.mh-btn-ghost:hover {
  background: rgba(255,255,255,.06);
}

.rb-gutter,
.mh-gutter {
  padding-right: var(--page-gutter);
  padding-left: var(--page-gutter);
}

.mh-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mh-header-search {
  position: relative;
  min-width: 0;
}

.mh-header-search__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 130;
  display: flex;
  max-height: min(70vh, 420px);
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #18191b;
  box-shadow: 0 18px 44px rgba(0,0,0,.5);
}

.mh-header-search__dropdown[hidden] { display: none !important; }
.mh-header-search__scroll { min-height: 0; overflow: auto; padding: 6px; }
.mh-header-search__status { padding: 14px; color: #a1a1aa; font-size: .8125rem; }
.mh-header-search__status--loading { display: flex; align-items: center; gap: 10px; }
.mh-header-search__spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,#f4f4f5 0deg 14deg,transparent 14deg 28deg);
  -webkit-mask: radial-gradient(circle,transparent 50%,#000 51%);
  mask: radial-gradient(circle,transparent 50%,#000 51%);
  animation: mh-search-spin .9s linear infinite;
}
@keyframes mh-search-spin { to { transform: rotate(360deg); } }
.mh-header-search__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  color: #e4e4e7;
  text-decoration: none;
}
.mh-header-search__item:hover,
.mh-header-search__item:focus-visible { background: rgba(255,255,255,.06); color: #fff; outline: none; }
.mh-header-search__thumb { width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; border-radius: 8px; background: #09090b; }
.mh-header-search__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mh-header-search__meta { min-width: 0; flex: 1; }
.mh-header-search__title { margin: 0 0 3px; overflow: hidden; color: #fff; font-size: .8125rem; font-weight: 600; line-height: 1.3; text-overflow: ellipsis; }
.mh-header-search__price { color: #e4e4e7; font-size: .75rem; }
.mh-header-search__price del { margin-right: 5px; color: #71717a; }
.mh-header-search__price ins { color: #f87171; text-decoration: none; }
.mh-header-search__footer { flex: 0 0 auto; padding: 8px 12px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.mh-header-search__view-all { display: block; padding: 9px 12px; border-radius: 9999px; background: #dc2626; color: #fff; font-size: .8125rem; font-weight: 700; text-align: center; text-decoration: none; }
.mh-header-search__view-all:hover { background: #ef4444; color: #fff; }

/* Shared sale badge + stacked sale prices (all product cards / single product) */
.mh-product-card__sale-label.electric-promo {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 0;
  padding: 6px 12px !important;
  border-radius: 9999px;
  overflow: visible;
  pointer-events: none;
  color: #fff !important;
}
.mh-product-card__sale-label.electric-promo .electric-promo__card {
  background: linear-gradient(145deg, #9f1239 0%, #7f1d1d 55%, #641414 100%);
}
.mh-product-card__sale-label-text {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.mh-product-card__price del,
.woocommerce ul.products li.product .mh-product-card__price del {
  display: block;
  margin: 0;
  color: #71717a;
  font-weight: 500;
  opacity: 1;
}
.mh-product-card__price ins,
.woocommerce ul.products li.product .mh-product-card__price ins {
  display: block;
  margin: .15rem 0 0;
  color: #ef4444;
  font-weight: 700;
  text-decoration: none;
}
