/* Clearer hierarchy: sidebar / TOC vs article body */

:root {
  --mg-ink: #0f172a;
  --mg-ink-muted: #64748b;
  --mg-nav-active-bg: rgba(13, 148, 136, 0.14);
  --mg-nav-section: #0f766e;
}

/* —— Primary nav (left) —— */
.md-nav--primary .md-nav__title {
  color: var(--mg-ink);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.md-nav--primary .md-nav__link {
  color: var(--mg-ink-muted);
  font-weight: 500;
}

.md-nav--primary .md-nav__link:hover {
  color: var(--mg-ink);
}

/* Page icons in the left nav */
.md-nav--primary .md-nav__icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-right: 0.35rem;
  color: inherit;
  opacity: 0.92;
  flex-shrink: 0;
}

.md-nav--primary .md-nav__link--active > .md-nav__icon,
.md-nav--primary .md-nav__link:hover > .md-nav__icon {
  opacity: 1;
}

/*
  Material marks parent sections as .md-nav__item--active when a child page
  is open. Only highlight the leaf page link — never the section label.
*/
.md-nav--primary .md-nav__item--active > .md-nav__link:not(.md-nav__link--active) {
  color: var(--mg-ink-muted) !important;
  font-weight: 500 !important;
  background: transparent !important;
}

.md-nav--primary .md-nav__item--section > .md-nav__link,
.md-nav--primary .md-nav__item--section.md-nav__item--active > .md-nav__link {
  color: var(--mg-nav-section) !important;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.65rem;
  background: transparent !important;
  box-shadow: none !important;
}

.md-nav--primary .md-nav__link--active {
  color: var(--mg-nav-section) !important;
  font-weight: 700 !important;
  background-color: var(--mg-nav-active-bg) !important;
  border-radius: 0.35rem;
}

/* —— On-this-page TOC (right) —— */
.md-nav--secondary .md-nav__title {
  color: var(--mg-ink);
  font-weight: 800;
}

.md-nav--secondary .md-nav__link {
  color: var(--mg-ink-muted);
  font-weight: 500;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
}

.md-nav--secondary .md-nav__link--active,
.md-nav--secondary .md-nav__link:hover {
  color: var(--mg-nav-section);
  font-weight: 700;
  border-left-color: var(--mg-nav-section);
}

/* —— Article headings (body size = theme default) —— */
.md-typeset h1 {
  color: var(--mg-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  border-bottom: 2px solid rgba(13, 148, 136, 0.35);
  padding-bottom: 0.35em;
}

.md-typeset h2 {
  color: var(--mg-ink);
  font-weight: 800;
  margin-top: 1.6em;
  padding-left: 0.55rem;
  border-left: 4px solid var(--mg-nav-section);
}

.md-typeset h3 {
  color: #134e4a;
  font-weight: 700;
}

.md-typeset a {
  font-weight: 600;
}

/* —— Product / used-stock pages —— */
.mg-product-meta {
  margin: 0.25rem 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.4rem;
  background: rgba(13, 148, 136, 0.08);
  color: #134e4a;
  font-size: 0.9em;
}

.mg-wa-btn {
  display: inline-block !important;
  margin: 0.35rem 0 0.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: #128c7e !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.mg-wa-btn:hover {
  background: #0f766e !important;
  color: #fff !important;
}

/* —— Price list / shop CTA banner —— */
.mg-cta {
  margin: 1.25rem 0 0.5rem;
  padding: 1.25rem 1.15rem 1.15rem;
  border-radius: 0.65rem;
  text-align: center;
  background: linear-gradient(105deg, #0f766e 0%, #0d9488 55%, #115e59 100%);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.14);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.mg-cta__title {
  margin: 0 0 0.35rem !important;
  color: #fff !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em;
}

.mg-cta__text {
  margin: 0 auto 0.9rem !important;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.mg-cta__btn {
  display: inline-block !important;
  padding: 0.45rem 1.15rem !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #0f766e !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mg-cta__btn:hover {
  background: #f0fdfa !important;
  color: #115e59 !important;
}

.mg-cta--compact {
  display: block;
  margin: 0.85rem 0 0.35rem;
  padding: 0.7rem 0.85rem 0.75rem;
  text-align: center;
  border-radius: 0.45rem;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
}

.mg-cta--compact .mg-cta__text {
  margin: 0 auto 0.55rem !important;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.mg-cta--compact .mg-cta__btn {
  display: inline-block !important;
  padding: 0.32rem 0.85rem !important;
  font-size: 0.7rem !important;
  box-shadow: none;
}

@media (max-width: 600px) {
  .mg-cta {
    padding: 1.1rem 0.85rem 1rem;
  }

  .mg-cta__title {
    font-size: 0.92rem !important;
  }

  .mg-cta--compact {
    padding: 0.65rem 0.7rem 0.7rem;
  }
}

.mg-unit {
  margin: 1.75rem 0 2.25rem;
  padding: 1rem 1rem 0.35rem;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 0.5rem;
  background: rgba(13, 148, 136, 0.04);
}

.mg-unit > h3 {
  margin-top: 0.15rem !important;
}

/* Pre-owned / product listings */
.mg-listing {
  position: relative;
  margin: 1.35rem 0 1.85rem;
  padding: 0.85rem 0.9rem 0.85rem;
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 0.65rem;
  background: rgba(13, 148, 136, 0.035);
  box-shadow: 0 1px 0 rgba(15, 118, 110, 0.04);
}

.mg-listing > h3 {
  margin-top: 0.1rem !important;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(15, 118, 110, 0.14);
}

.mg-listing .mg-gallery--gear-album {
  margin-bottom: 0.35rem;
}

.mg-listing--sold {
  border-color: rgba(100, 116, 139, 0.28);
  background: rgba(148, 163, 184, 0.07);
  overflow: hidden;
}

.mg-listing--sold > h3 {
  color: #64748b !important;
  border-bottom-color: rgba(100, 116, 139, 0.18);
}

.mg-listing--sold > h3 del {
  color: #94a3b8;
  text-decoration-thickness: 1.5px;
}

.mg-listing--sold .mg-gallery--gear-album a {
  position: relative;
  border-color: rgba(100, 116, 139, 0.2);
}

.mg-listing--sold .mg-gallery--gear-album a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(15, 23, 42, 0.28);
  pointer-events: none;
}

.mg-listing--sold .mg-listing__wa {
  display: none;
}

.mg-listing__sold-badge {
  position: absolute;
  top: 0.85rem;
  right: -1.65rem;
  z-index: 4;
  width: 7.5rem;
  padding: 0.28rem 0;
  background: #334155;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(35deg);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  pointer-events: none;
}

.mg-listing__wa {
  position: sticky;
  bottom: 0.75rem;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0 0;
  pointer-events: none;
}

.mg-listing__cart-btn {
  pointer-events: auto;
  width: 2.55rem;
  height: 2.55rem;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.mg-listing__wa-btn {
  pointer-events: auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px !important;
  background: #25d366 !important;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mg-listing__wa-btn:hover {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
  background: #1ebe57 !important;
  color: #fff !important;
}

.mg-listing__wa-btn svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  fill: currentColor;
}

@media (max-width: 600px) {
  .mg-listing {
    margin: 1.1rem 0 1.5rem;
    padding: 0.75rem 0.7rem 0.75rem;
  }

  .mg-listing__wa {
    bottom: 0.55rem;
  }

  .mg-listing__cart-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  .mg-listing__wa-btn {
    width: 2.35rem;
    height: 2.35rem;
  }

  .mg-listing__wa-btn svg {
    width: 1.2rem;
    height: 1.2rem;
  }
}

.md-typeset .mg-unit table {
  width: 100%;
  margin: 0.6rem 0 0.85rem;
  display: table;
  font-size: 0.85rem;
}

.md-typeset .mg-unit table th,
.md-typeset .mg-unit table td {
  padding: 0.45rem 0.65rem;
  border-color: rgba(15, 118, 110, 0.18);
  vertical-align: top;
}

.md-typeset .mg-unit table th:first-child,
.md-typeset .mg-unit table td:first-child {
  width: 28%;
  white-space: nowrap;
  font-weight: 700;
  background-color: rgba(13, 148, 136, 0.1);
}

.mg-unit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0.35rem 0 0.9rem;
}

.mg-copy-wa {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  background: #0f766e;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.mg-copy-wa:hover {
  background: #115e59;
}

.mg-copy-wa--done {
  background: #047857 !important;
}

.mg-unit .mg-wa-btn {
  margin: 0 !important;
}

.mg-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.75rem 0 1.75rem;
}

.mg-gallery a {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.35rem;
  background: #e2e8f0;
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.mg-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

@media (max-width: 600px) {
  .mg-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Packaging page: compact thumbs (full image opens in lightbox) */
.mg-gallery--pack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 22rem;
}

.mg-gallery--pack a {
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

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

.mg-gallery--timelines a {
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
}

/* Gear album: first two images = hero pair, rest = thumbs (lightbox on all) */
.mg-gallery--gear-album {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
  max-width: 26rem;
  margin: 0.75rem 0 1.35rem;
}

.mg-gallery--gear-album > a:nth-child(1),
.mg-gallery--gear-album > a:nth-child(2) {
  grid-column: span 2;
  aspect-ratio: 3 / 4;
  max-height: 17rem;
  cursor: zoom-in;
}

.mg-gallery--gear-album > a:not(:nth-child(1)):not(:nth-child(2)) {
  aspect-ratio: 1;
  cursor: zoom-in;
}

@media (max-width: 600px) {
  .mg-gallery--gear-album {
    max-width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.3rem;
  }

  .mg-gallery--gear-album > a:nth-child(1),
  .mg-gallery--gear-album > a:nth-child(2) {
    max-height: 14rem;
  }

  .mg-gallery--pack,
  .mg-gallery--timelines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— Gallery lightbox —— */
body.mg-lightbox-open {
  overflow: hidden;
}

.mg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3.5rem 1.5rem;
  background: rgba(15, 23, 42, 0.82);
  cursor: zoom-out;
}

.mg-lightbox[hidden] {
  display: none !important;
}

.mg-lightbox__stage {
  position: relative;
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  cursor: default;
}

.mg-lightbox__img {
  display: block;
  max-width: min(90vw, 1100px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  background: #0f172a;
}

.mg-lightbox__meta {
  margin-top: 0.65rem;
  text-align: center;
}

.mg-lightbox__counter {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mg-lightbox__hint {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 500;
}

.mg-lightbox__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.mg-lightbox__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.mg-lightbox__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.mg-lightbox__close,
.mg-lightbox__nav {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  line-height: 1;
  z-index: 1;
}

.mg-lightbox__close {
  top: 0.75rem;
  right: 0.85rem;
  width: 2.4rem;
  height: 2.4rem;
  font-size: 1.6rem;
}

.mg-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.85rem;
  padding-bottom: 0.15rem;
}

.mg-lightbox__prev {
  left: 0.65rem;
}

.mg-lightbox__next {
  right: 0.65rem;
}

.mg-lightbox__close:hover,
.mg-lightbox__nav:hover {
  background: #fff;
}

.mg-lightbox__nav[hidden],
.mg-lightbox__counter[hidden],
.mg-lightbox__hint[hidden],
.mg-lightbox__dots[hidden] {
  display: none !important;
}

.md-typeset .mg-price-table td.mg-price-thumb-wrap,
.md-typeset .mg-price-table .mg-price-thumb-wrap {
  position: relative;
}

.md-typeset .mg-price-thumb-count {
  position: absolute;
  right: 0.55rem;
  bottom: 0.5rem;
  z-index: 2;
  min-width: 1.15rem;
  padding: 0.08rem 0.28rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .mg-lightbox {
    padding: 3rem 0.5rem 1rem;
  }

  .mg-lightbox__nav {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.55rem;
  }
}

/* —— Shop FAQ: mark each question —— */
.mg-faq p {
  margin-top: 1.15em;
}

.mg-faq h2 + p {
  margin-top: 0.85em;
}

.mg-faq p > strong:first-child {
  color: #134e4a;
  font-weight: 800;
  font-size: 1.02em;
}

.mg-faq p > strong:first-child::before {
  content: "Q";
  display: inline-block;
  margin-right: 0.45em;
  padding: 0.1em 0.42em;
  border-radius: 0.3em;
  background: rgba(13, 148, 136, 0.16);
  color: #0f766e;
  font-size: 0.78em;
  font-weight: 800;
  line-height: 1.2;
  vertical-align: 0.12em;
}

.md-typeset table th {
  color: var(--mg-ink);
  font-weight: 700;
  background-color: rgba(13, 148, 136, 0.08);
}

/* —— Price list product thumbs —— */
.md-typeset .mg-price-table table td:first-child {
  width: 4.75rem;
  padding: 0.4rem 0.45rem;
  vertical-align: middle;
}

.md-typeset .mg-price-table table img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: cover;
  border-radius: 0.35rem;
  margin: 0 !important;
  display: block;
  background: #e2e8f0;
  cursor: zoom-in;
}

.md-typeset .mg-price-table--preowned table td:first-child {
  width: 11rem;
  padding: 0.5rem 0.55rem;
  vertical-align: top;
  position: relative;
  overflow: hidden;
}

.md-typeset .mg-price-table--preowned table td:nth-child(2) {
  vertical-align: top;
  padding-top: 0.55rem;
  color: var(--mg-ink);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.md-typeset .mg-price-table--preowned tbody tr.mg-price-row--sold td:nth-child(2) {
  color: #475569;
}

.md-typeset .mg-price-table--preowned table img {
  width: 10.5rem;
  height: 10.5rem;
  border-radius: 0.5rem;
}

.md-typeset .mg-price-table--preowned .mg-price-slides {
  position: relative;
  width: 10.5rem;
  height: 10.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #e2e8f0;
  cursor: zoom-in;
}

.md-typeset .mg-price-table--preowned .mg-price-slides__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
}

.md-typeset .mg-price-table--preowned .mg-price-slides__img.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .md-typeset .mg-price-table--preowned .mg-price-slides__img {
    transition: none;
  }
}

.md-typeset .mg-price-table--preowned .mg-price-more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 3.25rem;
  gap: 0.3rem;
  margin-top: 0.4rem;
  width: 10.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

.md-typeset .mg-price-table--preowned .mg-price-more img,
.md-typeset .mg-price-table--preowned .mg-price-more__thumb {
  width: 100%;
  height: 3.25rem;
  border-radius: 0.3rem;
  object-fit: cover;
  margin: 0 !important;
  display: block;
  background: #e2e8f0;
  cursor: zoom-in;
}

.md-typeset .mg-price-table--preowned .mg-price-more__more {
  position: relative;
  width: 100%;
  height: 3.25rem;
  padding: 0;
  border: 0;
  border-radius: 0.3rem;
  overflow: hidden;
  cursor: zoom-in;
  background: #0f172a;
  appearance: none;
  -webkit-appearance: none;
}

.md-typeset .mg-price-table--preowned .mg-price-more__more img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  cursor: zoom-in;
}

.md-typeset .mg-price-table--preowned .mg-price-more__more-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.md-typeset .mg-price-table--preowned .mg-price-more__more:hover {
  outline: 2px solid rgba(15, 118, 110, 0.45);
  outline-offset: 1px;
}

.md-typeset .mg-price-table table img:hover {
  outline: 2px solid rgba(15, 118, 110, 0.45);
  outline-offset: 1px;
}

.mg-price-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0.35rem 0 0.85rem !important;
  font-size: 0.72rem;
  font-weight: 650;
  color: #64748b;
}

.md-typeset h2 .mg-list-meta {
  display: inline-block;
  margin-left: 0.55rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: #0f766e !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  vertical-align: middle;
  line-height: 1.35 !important;
  border: 0 !important;
}

.mg-home-help:not(:has(.mg-home-help__text)) .mg-home-help__links {
  margin: 0 !important;
}

.mg-price-legend__blade,
.mg-price-legend__rubber,
.mg-price-legend__stock {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.mg-price-legend__blade {
  background: rgba(217, 119, 6, 0.12);
  color: #b45309;
}

.mg-price-legend__blade::before,
.mg-price-legend__rubber::before,
.mg-price-legend__stock::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.mg-price-legend__blade::before {
  background: #d97706;
}

.mg-price-legend__rubber {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.mg-price-legend__rubber::before {
  background: #2563eb;
}

.mg-price-legend__stock {
  background: rgba(13, 148, 136, 0.14);
  color: #0f766e;
}

.mg-price-legend__stock::before {
  background: #0d9488;
}

.md-typeset .mg-price-table tbody tr.mg-price-row--blade > td {
  background-color: rgba(217, 119, 6, 0.08) !important;
}

.md-typeset .mg-price-table tbody tr.mg-price-row--rubber > td {
  background-color: rgba(37, 99, 235, 0.08) !important;
}

.md-typeset .mg-price-table tbody tr.mg-price-row--stock > td {
  background-color: rgba(13, 148, 136, 0.07) !important;
}

.md-typeset .mg-price-table tbody tr.mg-price-row--blade:hover > td {
  background-color: rgba(217, 119, 6, 0.14) !important;
}

.md-typeset .mg-price-table tbody tr.mg-price-row--rubber:hover > td {
  background-color: rgba(37, 99, 235, 0.14) !important;
}

.md-typeset .mg-price-table tbody tr.mg-price-row--stock:hover > td {
  background-color: rgba(13, 148, 136, 0.12) !important;
}

.mg-price-legend__sold {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.14);
  color: #475569;
}

.mg-price-legend__sold::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #64748b;
}

.md-typeset .mg-price-table tbody tr.mg-price-row--sold > td {
  background-color: rgba(100, 116, 139, 0.08) !important;
  color: #64748b;
}

.md-typeset .mg-price-table tbody tr.mg-price-row--sold td:first-child {
  position: relative;
}

.md-typeset .mg-price-table tbody tr.mg-price-row--sold td:first-child::after {
  content: "";
  position: absolute;
  inset: 0.35rem 0.4rem;
  z-index: 1;
  border-radius: 0.3rem;
  background: rgba(15, 23, 42, 0.28);
  pointer-events: none;
}

.md-typeset .mg-price-table--preowned tbody tr.mg-price-row--sold td:first-child::after {
  inset: 0.5rem 0.55rem;
  border-radius: 0.45rem;
}

.md-typeset .mg-price-table tbody tr.mg-price-row--sold del {
  color: #94a3b8;
  text-decoration-thickness: 1.5px;
}

.mg-price-sold-tag {
  position: absolute;
  top: 0.42rem;
  right: 0.35rem;
  z-index: 3;
  display: inline-block;
  margin: 0;
  padding: 0.12rem 0.38rem;
  border-radius: 0.22rem;
  background: #1e293b;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
}

.md-typeset .mg-price-table--preowned .mg-price-sold-tag {
  top: 0.58rem;
  right: 0.5rem;
  padding: 0.16rem 0.42rem;
  font-size: 0.62rem;
}

.mg-price-inline {
  display: inline-block;
  font-size: 1.12em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #dc2626;
  white-space: nowrap;
}

.mg-price-sep {
  display: inline-block;
  margin: 0 0.35rem;
  color: #cbd5e1;
  font-weight: 500;
}

.mg-price-inline--sold,
.mg-price-inline--sold del {
  color: #f87171;
  font-weight: 650;
}

.mg-price-inline--sold del {
  text-decoration-thickness: 1.5px;
}

.md-typeset .mg-price-table--preowned .mg-price-col--overlay {
  display: none !important;
}

/* —— Tip at the bottom of every article (subtle Material admonition) —— */
.md-typeset .admonition.mg-page-note {
  margin: 1.5rem 0 0.25rem;
  font-size: 0.7rem;
  border-color: rgba(15, 118, 110, 0.35);
  /* force fill on mobile / Safari (theme can drop plain backgrounds) */
  background-color: #eef6f5 !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  color: #64748b;
}

.md-typeset .admonition.mg-page-note > .admonition-title {
  font-size: 0.7rem;
  font-weight: 600;
  background-color: #e2f0ee !important;
  border-color: rgba(15, 118, 110, 0.35);
  color: #64748b;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

.md-typeset .admonition.mg-page-note > .admonition-title::before {
  background-color: #0f766e;
  opacity: 0.55;
}

.md-typeset .admonition.mg-page-note > :not(.admonition-title) {
  font-size: 0.7rem;
  color: #64748b;
}

/* —— Cusdis comments (guide pages) —— */
.md-typeset #__comments {
  margin-top: 2.5rem;
  padding-top: 0.5rem;
}

.md-typeset #cusdis_thread {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  /* Cusdis iframe often fails to auto-resize; give the form room */
  min-height: 28rem;
}

.md-typeset #cusdis_thread iframe {
  display: block;
  width: 100% !important;
  min-height: 28rem !important;
  border: 0;
}

/* —— Price list cart —— */
.md-typeset .mg-price-table table th.mg-cart-col,
.md-typeset .mg-price-table table td.mg-cart-col {
  width: 2.4rem;
  padding: 0.3rem 0.35rem;
  text-align: center;
  vertical-align: middle;
}

.mg-cart-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 118, 110, 0.25);
}

.mg-cart-add:hover {
  background: #0d9488;
}

.mg-cart-add--done {
  background: #25d366;
}

.mg-float-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.mg-cart-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 118, 110, 0.35);
}

.mg-cart-fab svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: currentColor;
}

.mg-wa-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38);
  text-decoration: none;
}

.mg-wa-fab:hover {
  filter: brightness(1.05);
  color: #fff;
}

.mg-wa-fab svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

.mg-cart-fab__count {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2rem;
  text-align: center;
}

.mg-cart-toast {
  position: fixed;
  left: 50%;
  bottom: 9.5rem;
  z-index: 85;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.65rem 0.9rem;
  border-radius: 0.55rem;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
  transform: translate(-50%, 0.5rem);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.mg-cart-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.mg-cart-open {
  overflow: hidden;
}

.mg-cart-drawer[hidden] {
  display: none !important;
}

.mg-cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.mg-cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.mg-cart-drawer__panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(22rem, 100%);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -8px 0 28px rgba(15, 23, 42, 0.18);
}

.mg-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(15, 118, 110, 0.14);
}

.mg-cart-drawer__head strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.mg-cart-drawer__x {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.mg-cart-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 0.75rem 0.85rem;
}

.mg-cart-empty {
  margin: 1rem 0.25rem;
  color: #64748b;
  font-size: 0.82rem;
}

.mg-cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.45rem;
  align-items: center;
  padding: 0.65rem 0.2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.mg-cart-line__name {
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.3;
}

.mg-cart-line__price {
  color: #64748b;
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

.mg-cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 700;
}

.mg-cart-line__qty--fixed {
  justify-content: center;
  min-width: 2.2rem;
}

.mg-cart-qty,
.mg-cart-remove {
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 0.35rem;
  background: #f8fafc;
  color: #0f766e;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.mg-cart-remove {
  border-color: rgba(148, 163, 184, 0.45);
  color: #64748b;
}

.mg-cart-drawer__foot {
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid rgba(15, 118, 110, 0.14);
  background: #f8fafc;
}

.mg-cart-drawer__total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
}

.mg-cart-drawer__wa {
  display: block !important;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.85rem !important;
  border-radius: 999px !important;
  background: #25d366 !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  text-align: center;
  text-decoration: none !important;
}

.mg-cart-drawer__wa.is-disabled {
  pointer-events: none;
  opacity: 0.45;
}

.mg-cart-drawer__clear {
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
}

.md-typeset .mg-price-table--preowned tbody tr[hidden] {
  display: none !important;
}

/* —— Pre-owned product card grid (mobile 2 / PC 5) —— */
.mg-preowned-showing {
  margin: 0.15rem 0 0.65rem !important;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
}

.mg-rubbers-showing {
  margin: 0.15rem 0 0.65rem !important;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
}

.mg-blades-showing,
.mg-addons-showing {
  margin: 0.15rem 0 0.65rem !important;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
}

.md-typeset .mg-price-table--preowned:has(.mg-preowned-grid) > table,
.md-typeset .mg-price-table--preowned:has(.mg-preowned-grid) > .md-typeset__table,
.md-typeset .mg-price-table--rubbers:has(.mg-preowned-grid) > table,
.md-typeset .mg-price-table--rubbers:has(.mg-preowned-grid) > .md-typeset__table,
.md-typeset .mg-price-table--blades:has(.mg-preowned-grid) > table,
.md-typeset .mg-price-table--blades:has(.mg-preowned-grid) > .md-typeset__table,
.md-typeset .mg-price-table--addons:has(.mg-preowned-grid) > table,
.md-typeset .mg-price-table--addons:has(.mg-preowned-grid) > .md-typeset__table {
  display: none !important;
}

.md-typeset .mg-price-table--preowned:has(.mg-preowned-grid),
.md-typeset .mg-price-table--rubbers:has(.mg-preowned-grid),
.md-typeset .mg-price-table--blades:has(.mg-preowned-grid),
.md-typeset .mg-price-table--addons:has(.mg-preowned-grid) {
  overflow: visible;
}

/* Hide empty table chrome if grid script is delayed */
.md-typeset .mg-price-table--preowned thead,
.md-typeset .mg-price-table--rubbers thead,
.md-typeset .mg-price-table--blades thead,
.md-typeset .mg-price-table--addons thead {
  display: none !important;
}

.mg-preowned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.75rem;
  margin: 0.25rem 0 0.5rem;
}

@media (min-width: 760px) {
  .mg-preowned-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem 1rem;
  }
}

@media (min-width: 1100px) {
  .mg-preowned-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem 1.1rem;
  }

  /* Give the Pre-owned grid room for 5 columns */
  .md-main__inner:has(.mg-preowned-grid) {
    max-width: 78rem;
  }

  .md-content:has(.mg-preowned-grid) {
    max-width: none;
  }
}

.mg-preowned-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  background: #fff;
}

.mg-preowned-card[hidden] {
  display: none !important;
}

.mg-preowned-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e2e8f0;
  cursor: zoom-in;
}

.md-typeset .mg-preowned-card__media > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  display: block;
}

.mg-preowned-card__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.28rem;
  margin: 0.35rem 0 0;
  width: 100%;
}

.md-typeset .mg-preowned-card__thumb {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1.5px solid transparent;
  border-radius: 0.25rem;
  overflow: hidden;
  background: #e2e8f0;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  line-height: 0;
  appearance: none;
  -webkit-appearance: none;
}

.md-typeset .mg-preowned-card__thumb.is-active {
  border-color: #0f766e;
}

.md-typeset .mg-preowned-card__thumb:hover {
  border-color: rgba(15, 118, 110, 0.55);
}

.md-typeset .mg-preowned-card__thumb--more {
  position: relative;
  background: #0f172a;
}

.md-typeset .mg-preowned-card__thumb--more img {
  filter: brightness(0.45);
}

.mg-preowned-card__thumb-more-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.md-typeset .mg-preowned-card__thumb img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

@media (max-width: 600px) {
  .mg-preowned-card__thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.22rem;
    margin-top: 0.28rem;
  }
}

.md-typeset .mg-preowned-card .mg-price-slides {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  cursor: zoom-in;
  background: #e2e8f0;
}

.md-typeset .mg-preowned-card .mg-price-slides__img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
}

.md-typeset .mg-preowned-card .mg-price-slides__img.is-active {
  opacity: 1;
}

.mg-preowned-card--sold .mg-preowned-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.mg-preowned-card__oos {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.92);
  color: #2563eb;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.12);
}

.md-typeset .mg-preowned-card__title {
  margin: 0.55rem 0 0.2rem !important;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.md-typeset .mg-preowned-card__price {
  margin: 0 0 0.55rem !important;
  color: #dc2626;
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.md-typeset .mg-preowned-card--sold .mg-preowned-card__title {
  color: #475569;
}

.md-typeset .mg-preowned-card--sold .mg-preowned-card__price,
.md-typeset .mg-preowned-card--sold .mg-preowned-card__price del {
  color: #94a3b8;
}

.md-typeset .mg-preowned-card__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: auto;
  padding: 0.55rem 0.45rem;
  border-radius: 0.35rem;
  background: #25d366;
  color: #fff !important;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-decoration: none !important;
  box-sizing: border-box;
}

.md-typeset .mg-preowned-card__wa:hover {
  background: #1ebe57;
  color: #fff !important;
}

.md-typeset .mg-preowned-card__wa--preorder {
  background: #2563eb;
}

.md-typeset .mg-preowned-card__wa--preorder:hover {
  background: #1d4ed8;
}

.mg-preowned-card__wa-icon {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

.mg-preowned-card__badge {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  padding: 0.18rem 0.4rem;
  border-radius: 0.2rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #fff;
  pointer-events: none;
}

.mg-preowned-card__badge--stock {
  background: #0f766e;
}

.mg-preowned-card__badge--proxy {
  background: #d97706;
}

.md-typeset .mg-preowned-card__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: auto;
  padding: 0.55rem 0.45rem;
  border: 0;
  border-radius: 0.35rem;
  background: #0f766e;
  color: #fff !important;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.md-typeset .mg-preowned-card__cart:hover {
  background: #0d9488;
}

.md-typeset .mg-preowned-card__cart.mg-cart-add--done {
  background: #115e59;
}

@media (max-width: 600px) {
  .md-typeset .mg-preowned-card__title {
    font-size: 0.72rem;
  }

  .md-typeset .mg-preowned-card__price {
    font-size: 0.88rem;
  }

  .md-typeset .mg-preowned-card__wa,
  .md-typeset .mg-preowned-card__cart {
    font-size: 0.62rem;
    padding: 0.5rem 0.3rem;
  }
}

/* —— Pre-owned table pagination —— */
.mg-pager__meta {
  margin: 0.85rem 0 0.45rem !important;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.mg-price-table--preowned .mg-pager__meta {
  display: none;
}

.mg-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  margin: 0 0 0.5rem;
}

.mg-pager__btn {
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.55rem;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 0.4rem;
  background: #fff;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.mg-pager__btn:hover:not(:disabled):not(.mg-pager__btn--active) {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(15, 118, 110, 0.4);
}

.mg-pager__btn--active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
  cursor: default;
}

.mg-pager__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mg-pager__ellipsis {
  min-width: 1.4rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 600px) {
  .mg-float-stack {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .md-typeset .mg-price-table table th.mg-cart-col,
  .md-typeset .mg-price-table table td.mg-cart-col {
    width: 2.1rem;
    padding: 0.25rem 0.2rem;
  }

  .mg-pager__btn {
    min-width: 1.95rem;
    height: 1.95rem;
    padding: 0 0.4rem;
  }
}

/* —— Home (shop-forward) —— */
.mg-home,
.mg-shop {
  margin: -0.35rem 0 0.5rem;
}

.mg-home-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 1.35rem;
  border-radius: 0.75rem;
  min-height: 16.5rem;
  background:
    linear-gradient(105deg, rgba(15, 61, 58, 0.92) 0%, rgba(15, 118, 110, 0.78) 48%, rgba(15, 23, 42, 0.55) 100%),
    var(--mg-home-hero-image) center / cover no-repeat;
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.18);
}

.mg-home-hero--shop {
  min-height: 14.5rem;
}

.mg-shop .mg-home-help {
  margin-bottom: 0.15rem;
}

/* Shop hero photo slideshow (Gallery picks) */
.mg-hero-slides {
  background-image: none;
  background-color: #0f3d3a;
}

.mg-hero-slides::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    rgba(15, 61, 58, 0.92) 0%,
    rgba(15, 118, 110, 0.78) 48%,
    rgba(15, 23, 42, 0.55) 100%
  );
}

.mg-hero-slides__track {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.mg-hero-slides__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.mg-hero-slides__img.is-active {
  opacity: 1;
}

.mg-hero-slides .mg-home-hero__inner {
  z-index: 2;
}

.mg-home-hero__inner {
  position: relative;
  z-index: 1;
  padding: 1.65rem 1.4rem 1.55rem;
  max-width: 34rem;
}

.mg-home-hero__brand {
  margin: 0 0 0.55rem !important;
  color: #5eead4 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.2 !important;
}

.mg-home-hero__title {
  margin: 0 0 0.55rem !important;
  padding: 0 !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  line-height: 1.18 !important;
}

.mg-home-hero__lead {
  margin: 0 0 1.1rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

.mg-home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mg-home-hero__btn {
  display: inline-block !important;
  padding: 0.48rem 1.05rem !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.mg-home-hero__btn--primary {
  background: #25d366 !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.mg-home-hero__btn--primary:hover {
  background: #1ebe57 !important;
  color: #fff !important;
}

.mg-home-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.mg-home-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  color: #fff !important;
}

.mg-home-section-title {
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--mg-ink) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mg-home-cats {
  margin: 0 0 1.25rem;
}

.mg-home-cats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.mg-home-cat {
  display: flex !important;
  align-items: stretch;
  gap: 0.75rem;
  min-height: 5.5rem;
  padding: 0.55rem;
  border-radius: 0.65rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 118, 110, 0.14);
  text-decoration: none !important;
  color: inherit !important;
  font-weight: 500 !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mg-home-cat:hover {
  border-color: rgba(15, 118, 110, 0.4);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
  color: inherit !important;
}

.mg-home-cat__img {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: cover;
  border-radius: 0.45rem;
  margin: 0 !important;
  flex-shrink: 0;
  background: #e2e8f0;
}

.mg-home-cat__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.mg-home-cat__name {
  color: var(--mg-ink);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mg-home-cat__desc {
  color: var(--mg-ink-muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
}

.mg-home-help {
  margin: 0 0 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: 0.55rem;
  background: rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.14);
}

.mg-home-help__text {
  margin: 0 0 0.55rem !important;
  color: #134e4a !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

.mg-home-help__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin: 0 !important;
}

.mg-home-help__links a {
  color: #0f766e !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.mg-home-help__links a:hover {
  text-decoration: underline !important;
}

@media (max-width: 700px) {
  .mg-home,
  .mg-shop {
    margin: 0 -0.8rem 0.75rem;
  }

  .mg-home-hero {
    margin: 0 0 1.1rem;
    border-radius: 0;
    min-height: 19.5rem;
    background:
      linear-gradient(
        180deg,
        rgba(15, 61, 58, 0.55) 0%,
        rgba(15, 118, 110, 0.72) 42%,
        rgba(15, 23, 42, 0.92) 100%
      ),
      var(--mg-home-hero-image) 72% center / cover no-repeat;
    box-shadow: none;
  }

  .mg-home-hero--shop {
    min-height: 17.5rem;
  }

  .mg-hero-slides::before {
    background: linear-gradient(
      180deg,
      rgba(15, 61, 58, 0.55) 0%,
      rgba(15, 118, 110, 0.72) 42%,
      rgba(15, 23, 42, 0.92) 100%
    );
  }

  .mg-hero-slides__img {
    object-position: 72% center;
  }

  .mg-home-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 19.5rem;
    padding: 1.35rem 1.15rem 1.25rem;
    max-width: none;
    box-sizing: border-box;
  }

  .mg-home-hero--shop .mg-home-hero__inner {
    min-height: 17.5rem;
  }

  .mg-home-hero__brand {
    font-size: 0.7rem !important;
    letter-spacing: 0.14em;
  }

  .mg-home-hero__title {
    font-size: 1.45rem !important;
    line-height: 1.15 !important;
    max-width: 14ch;
  }

  .mg-home-hero--shop .mg-home-hero__title {
    max-width: 22ch;
  }

  .mg-home-hero__lead {
    font-size: 0.8rem !important;
    margin: 0 0 1rem !important;
    max-width: 28ch;
  }

  .mg-home-hero--shop .mg-home-hero__lead {
    max-width: 34ch;
  }

  .mg-home-hero__actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .mg-home-hero__btn {
    width: 100%;
    box-sizing: border-box;
    text-align: center !important;
    padding: 0.72rem 1rem !important;
    font-size: 0.84rem !important;
  }

  .mg-home-cats,
  .mg-home-help {
    margin-left: 0.8rem;
    margin-right: 0.8rem;
  }

  .mg-home-section-title {
    margin: 0 0 0.65rem !important;
  }

  .mg-home-cats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .mg-home-cat {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 0.7rem;
  }

  .mg-home-cat:hover,
  .mg-home-cat:active {
    transform: none;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.14);
  }

  .mg-home-cat__img {
    width: 100%;
    height: 7.75rem;
    border-radius: 0;
  }

  .mg-home-cat__body {
    padding: 0.6rem 0.65rem 0.75rem;
    gap: 0.15rem;
  }

  .mg-home-cat__name {
    font-size: 0.92rem;
  }

  .mg-home-cat__desc {
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .mg-home-help {
    margin-top: 0.15rem;
    margin-bottom: 0.25rem;
    padding: 0.9rem 0.95rem;
  }

  .mg-home-help__text {
    font-size: 0.76rem !important;
  }

  .mg-home-help__links {
    gap: 0.55rem 1rem;
  }

  .mg-home-help__links a {
    font-size: 0.8rem !important;
  }
}

@media (max-width: 380px) {
  .mg-home-cat__img {
    height: 6.5rem;
  }

  .mg-home-hero__title {
    font-size: 1.28rem !important;
  }
}

