/* WooCommerce skin for Moonamo */

.woocommerce .mm-woo-main,
.woocommerce-page .mm-woo-main {
  padding: 1.5rem 0 3rem;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
@media (min-width: 1024px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none !important;
}
.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  overflow: hidden;
  padding: 0 !important;
  transition: all 200ms;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--mm-steel-300);
  transform: translateY(-4px);
  box-shadow: var(--mm-shadow-hover);
}
.woocommerce ul.products li.product a img {
  margin: 0;
  border-radius: 0;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 13px !important;
  padding: 0.75rem 1rem 0.25rem !important;
  font-weight: 700;
}
.woocommerce ul.products li.product .price {
  padding: 0 1rem;
  color: var(--mm-text-primary) !important;
  font-weight: 800;
  font-size: 13px;
}
.woocommerce ul.products li.product .button {
  margin: 0.75rem 1rem 1rem !important;
  border-radius: 10px !important;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}

/* Legacy WC single layout — NOT for Moonamo PDP (.mm-pdp has its own structure) */
.woocommerce div.product:not(.mm-pdp) {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .woocommerce div.product:not(.mm-pdp) {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}
.woocommerce div.product:not(.mm-pdp) .woocommerce-product-gallery {
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  overflow: hidden;
  padding: 0.75rem;
}
.woocommerce div.product:not(.mm-pdp) .summary {
  margin: 0 !important;
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  padding: 1.25rem;
}
.woocommerce div.product .product_title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.woocommerce div.product p.price {
  color: var(--mm-text-primary) !important;
  font-size: 1.25rem;
  font-weight: 900;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  padding: 0.875rem 1.5rem !important;
}

.woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  padding: 1rem 1.25rem 1.5rem;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  margin: 0 0 1rem !important;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--mm-border-faint);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 0.75rem 1rem !important;
  font-weight: 700;
  font-size: 13px;
  color: var(--mm-text-muted) !important;
  border-bottom: 2px solid transparent;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--mm-steel-600) !important;
  border-bottom-color: var(--mm-gold);
}

.woocommerce table.shop_table {
  border: 1px solid var(--mm-border-faint) !important;
  border-radius: 12px;
  overflow: hidden;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce #payment #place_order,
.woocommerce button.button.alt {
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 12px !important;
  border-top: 0 !important;
  border-right: 3px solid var(--mm-gold) !important;
}

.woocommerce .quantity .qty {
  border-radius: 8px;
  border: 1px solid var(--mm-border-light);
  padding: 0.5rem;
}

.related.products,
.upsells.products {
  grid-column: 1 / -1;
  margin-top: 2rem;
}
.related.products > h2,
.upsells.products > h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.related.products > h2::before,
.upsells.products > h2::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: var(--mm-gold);
}

/* Account navigation & content — see Account section at file end */

.mm-pdp-specs-wrap,
.mm-pdp-specs {
  display: block;
}
.mm-pdp-lower {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .mm-pdp-lower {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
}
.mm-pdp-gallery.is-video .mm-pdp-gallery__zoom { display: none; }
.mm-pdp-player {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1rem;
  background: #0f172a;
  object-fit: contain;
}
.mm-pdp-thumb--video {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
}
.mm-pdp-thumb--video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mm-pdp-thumb__play {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
}
.mm-pdp-thumb__play .mm-icon {
  width: 18px;
  height: 18px;
}
.mm-lightbox__video {
  max-width: min(92vw, 960px);
  max-height: 80vh;
  width: auto;
  border-radius: 12px;
  background: #0f172a;
}
.mm-blog-article__body video,
.mm-blog-article__body .wp-video,
.mm-blog-article__body iframe {
  width: 100%;
  max-width: 100%;
  border-radius: 1rem;
  background: #0f172a;
  aspect-ratio: 16 / 9;
  height: auto;
}
.mm-pdp-buybox {
  position: sticky;
  top: 1rem;
  background: var(--mm-bg-elevated);
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  padding: 1rem;
}
.mm-pdp-buybox .price {
  font-size: 1.125rem;
  font-weight: 900;
  margin: 0.5rem 0 1rem;
}


/* ===== Moonamo PDP (ProductPage.tsx parity) ===== */
.woocommerce div.product.mm-pdp,
.mm-pdp {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  grid-template-columns: none !important;
  padding-bottom: 5rem;
}
@media (min-width: 1024px) {
  .mm-pdp { padding-bottom: 0; }
}
.mm-pdp-top {
  width: 100%;
  display: grid;
  gap: 2rem;
  margin-top: 0.5rem;
}
@media (min-width: 1024px) {
  .mm-pdp-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.mm-pdp .mm-breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.375rem; list-style: none; margin: 0; padding: 0;
  font-size: 12px; color: var(--mm-text-muted);
}
@media (min-width: 640px) {
  .mm-pdp .mm-breadcrumb ol { justify-content: flex-start; }
}
.mm-pdp .mm-breadcrumb a { font-weight: 700; color: var(--mm-steel-600); }
.mm-pdp .mm-breadcrumb li:last-child {
  font-weight: 500; color: var(--mm-text-secondary);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 16rem;
}

.mm-pdp-gallery__main {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.mm-pdp-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-pdp-gallery__wish {
  position: absolute; top: 12px; left: 12px;
  width: 36px; height: 36px; border-radius: 9999px;
  background: rgba(255,255,255,0.95); border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #94a3b8;
}
.mm-pdp-gallery__thumbs { display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 0.75rem; padding-bottom: 0.25rem; }
.mm-pdp-thumb {
  width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
  border: 1px solid #e2e8f0; padding: 0; background: #fff; cursor: pointer; flex-shrink: 0;
}
.mm-pdp-thumb.is-active { border-color: var(--mm-steel-600); box-shadow: 0 0 0 1px var(--mm-steel-400); }
.mm-pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.mm-pdp-summary { text-align: center; }
@media (min-width: 1024px) { .mm-pdp-summary { text-align: right; } }
.mm-pdp-cat {
  display: inline-flex; font-size: 11px; font-weight: 700;
  padding: 0.25rem 0.625rem; border-radius: 8px;
  background: var(--mm-steel-50); color: var(--mm-steel-700); border: 1px solid var(--mm-steel-200);
}
.mm-pdp .product_title {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem); font-weight: 800;
  margin: 0.75rem 0 0.5rem; line-height: 1.35; letter-spacing: -0.02em;
}
.mm-pdp-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; justify-content: center;
  font-size: 12px; color: var(--mm-text-muted); align-items: center;
}
@media (min-width: 1024px) { .mm-pdp-meta { justify-content: flex-start; } }
.mm-pdp-rating {
  display: inline-flex; align-items: center; gap: 0.25rem;
  color: #d97706; font-weight: 700;
}
.mm-pdp-rating .mm-icon--star { color: #fbbf24; }
.mm-pdp-reviews-link { color: inherit; text-decoration: none; }
.mm-pdp-reviews-link:hover { color: var(--mm-steel-600); }
.mm-pdp-sku { font-family: ui-monospace, monospace; }

.mm-pdp-signals { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1rem; }
@media (min-width: 1024px) { .mm-pdp-signals { justify-content: flex-start; } }
.mm-signal {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 11px; font-weight: 700; padding: 0.375rem 0.625rem; border-radius: 8px; border: 1px solid;
}
.mm-signal--view { background: #fffbeb; color: #78350f; border-color: #fde68a; }
.mm-signal--sales { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }

.mm-pdp-price {
  margin: 1rem 0 0.25rem; font-size: 1.5rem; font-weight: 900;
  color: var(--mm-text-primary);
}
.mm-pdp-price__cur {
  font-size: 0.875rem; font-weight: 500; color: var(--mm-text-muted);
}
.mm-pdp-breakdown-link {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: none; border: 0; color: var(--mm-steel-700); font-size: 12px; font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer; padding: 0; margin-top: 0.375rem;
}
.mm-pdp-breakdown-link:hover { color: var(--mm-steel-900); }
.mm-pdp-note { font-size: 12px; color: var(--mm-text-muted); margin: 0.25rem 0 0; font-weight: 500; }
.mm-pdp-notes--boxed {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.mm-pdp-notes--boxed li {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}
.mm-pdp-gallery__thumbs { flex-wrap: wrap; }
.mm-pdp-gallery__buyers {
  flex: 1 0 100%;
  margin: 0.35rem 0 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--mm-text-secondary);
}
.mm-pdp-excerpt {
  margin-top: 1rem; font-size: 14px; color: var(--mm-text-secondary);
  line-height: 1.7; max-width: 32rem; margin-inline: auto; font-weight: 500;
}
.mm-pdp-excerpt p { margin: 0; }
@media (min-width: 1024px) { .mm-pdp-excerpt { margin-inline: 0; } }

.mm-pdp-weights { margin-top: 1.25rem; text-align: right; max-width: 28rem; margin-inline: auto; }
@media (min-width: 1024px) { .mm-pdp-weights { margin-inline: 0; } }
.mm-pdp-weights__label {
  font-size: 11px; font-weight: 800; color: var(--mm-text-primary); margin: 0 0 0.5rem;
}
.mm-pdp-weights__list {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
@media (min-width: 1024px) { .mm-pdp-weights__list { justify-content: flex-start; } }
.mm-pdp-weight {
  min-width: 4.5rem; padding: 0.625rem 0.75rem; border-radius: 12px;
  border: 1px solid #e2e8f0; background: #fff; color: var(--mm-text-secondary);
  font-size: 12px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.mm-pdp-weight:hover { border-color: var(--mm-steel-300); }
.mm-pdp-weight.is-active {
  border-color: var(--mm-steel-600); background: var(--mm-steel-50); color: var(--mm-steel-800);
}

.mm-pdp-cart-row { margin-top: 1.5rem; }
.mm-pdp-cart-row .stock { display: none; }
.mm-pdp-cart-wrap {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center;
}
@media (min-width: 1024px) { .mm-pdp-cart-wrap { justify-content: flex-start; } }

.mm-pdp-stepper {
  display: none;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.mm-pdp-cart-wrap.has-qty .mm-pdp-stepper { display: inline-flex; }
.mm-pdp-cart-wrap.has-qty .mm-pdp-atc { display: none !important; }
.mm-pdp-stepper__btn {
  width: 2.75rem; height: 2.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #475569; cursor: pointer; padding: 0;
}
.mm-pdp-stepper__btn:hover { background: #f8fafc; }
.mm-pdp-stepper__val {
  min-width: 2.5rem; text-align: center; font-size: 14px; font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.mm-pdp-cart-wrap.is-loading { opacity: 0.65; pointer-events: none; }

.mm-pdp-atc {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem !important; border-radius: 12px !important;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important; font-size: 14px !important; font-weight: 700 !important;
  border: 0 !important; box-shadow: 0 4px 12px rgba(29, 62, 97, 0.25);
  cursor: pointer; position: relative;
}
.mm-pdp-atc .mm-icon { color: #fff; }
.mm-pdp-atc.is-loading { opacity: 0.7; pointer-events: none; }
.mm-pdp-atc--disabled { opacity: 0.5; cursor: not-allowed; }

.mm-pdp-gallery__zoom {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0; background: transparent; cursor: zoom-in;
}
.mm-pdp-gallery__zoom img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Lightbox */
html.mm-lightbox-open { overflow: hidden; }
.mm-lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.mm-lightbox[hidden] { display: none !important; }
.mm-lightbox__backdrop {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
  background: rgba(15, 23, 42, 0.88);
}
.mm-lightbox__panel {
  position: relative; z-index: 1; width: min(92vw, 56rem);
  max-height: 90vh; display: flex; align-items: center; justify-content: center;
}
.mm-lightbox__img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  border-radius: 0.75rem; background: #0f172a; box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}
.mm-lightbox__close {
  position: absolute; top: -0.25rem; left: -0.25rem; z-index: 2;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px; border: 0;
  background: rgba(255,255,255,0.95); color: #0f172a; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mm-lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem; border-radius: 9999px; border: 0;
  background: rgba(255,255,255,0.92); color: #0f172a; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.mm-lightbox__nav--prev { right: 0.5rem; }
.mm-lightbox__nav--next { left: 0.5rem; }
.mm-lightbox__nav:hover,
.mm-lightbox__close:hover { background: #fff; }
.mm-lightbox__counter {
  position: absolute; bottom: -2rem; inset-inline: 0; text-align: center;
  margin: 0; color: #e2e8f0; font-size: 12px; font-weight: 700;
}
@media (max-width: 640px) {
  .mm-lightbox__nav--prev { right: 0; }
  .mm-lightbox__nav--next { left: 0; }
}

.mm-pdp-share { margin-top: 1.25rem; text-align: right; max-width: 28rem; margin-inline: auto; }
@media (min-width: 1024px) { .mm-pdp-share { margin-inline: 0; } }
.mm-pdp-share > p { font-size: 11px; font-weight: 800; margin: 0 0 0.5rem; }
.mm-pdp-share .mm-share { justify-content: center; margin: 0; }
@media (min-width: 1024px) { .mm-pdp-share .mm-share { justify-content: flex-start; } }
.mm-pdp-share .mm-share a {
  padding: 0.375rem 0.625rem; border-radius: 8px; font-size: 10px; font-weight: 700; color: #fff;
}

.mm-pdp-trust {
  list-style: none; margin: 1.5rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--mm-text-secondary);
}
@media (min-width: 1024px) { .mm-pdp-trust { justify-content: flex-start; } }
.mm-pdp-trust li { display: inline-flex; align-items: center; gap: 0.375rem; }
.mm-pdp-trust .mm-icon { color: var(--mm-gold); }

/* Tabs */
.mm-pdp-tabs-wrap { margin-top: 0; scroll-margin-top: 6rem; }
.mm-pdp-tabs-wrap .woocommerce-tabs {
  display: block; margin-top: 0; padding: 0;
  background: transparent; border: 0; border-radius: 0;
}
.mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs {
  padding: 0 !important; margin: 0 !important;
  display: flex; gap: 0; overflow-x: auto;
  background: #fff; border: 1px solid #e2e8f0; border-bottom: 0;
  border-radius: 1rem 1rem 0 0;
}
.mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs::before { display: none !important; }
.mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs li {
  border: 0 !important; background: transparent !important;
  margin: 0 !important; padding: 0 !important; border-radius: 0 !important;
}
.mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs li a {
  display: block; padding: 0.875rem 1rem !important;
  font-weight: 800; font-size: 12px; white-space: nowrap;
  color: var(--mm-text-muted) !important;
  border-bottom: 2px solid transparent !important;
}
@media (min-width: 640px) {
  .mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs li a {
    padding: 0.875rem 1.5rem !important; font-size: 14px;
  }
}
.mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs li.active a {
  color: var(--mm-steel-800) !important;
  border-bottom-color: var(--mm-steel-700) !important;
}
.mm-pdp-tabs-wrap .woocommerce-Tabs-panel {
  background: #fff; border: 1px solid #e2e8f0; border-top: 0;
  border-radius: 0 0 1rem 1rem; padding: 1.25rem 1.25rem 1.75rem !important;
  margin: 0 !important;
}
@media (min-width: 640px) {
  .mm-pdp-tabs-wrap .woocommerce-Tabs-panel { padding: 1.75rem !important; }
}
.mm-pdp-desc-tab {
  font-size: 14px; color: var(--mm-text-secondary); line-height: 1.75; font-weight: 500; text-align: right;
}
.mm-pdp-desc-tab p { margin: 0; }

.mm-spec-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #f1f5f9; }
.mm-spec-nav__item {
  padding: 0.375rem 0.75rem; border-radius: 8px; font-size: 11px; font-weight: 800;
  border: 1px solid #e2e8f0; background: #fff; color: var(--mm-text-secondary); text-decoration: none;
}
.mm-spec-nav__item.is-active { background: var(--mm-steel-700); color: #fff; border-color: var(--mm-steel-700); }
.mm-spec-group { margin-bottom: 2rem; scroll-margin-top: 6rem; }
.mm-spec-group__title {
  font-size: 14px; font-weight: 800; margin-bottom: 0.75rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--mm-steel-700); display: inline-block;
}
.mm-pdp-specs-wrap .mm-specs-table {
  width: 100%; border: 0 !important; border-collapse: collapse;
}
.mm-pdp-specs-wrap .mm-specs-table th,
.mm-pdp-specs-wrap .mm-specs-table td {
  border: 0 !important; border-bottom: 1px solid #f1f5f9 !important;
  padding: 0.875rem 0 !important; font-size: 13px; text-align: right; vertical-align: top;
}
.mm-pdp-specs-wrap .mm-specs-table th {
  width: 38%; font-weight: 700; color: var(--mm-text-muted); padding-left: 1rem !important;
}
.mm-pdp-specs-wrap .mm-specs-table td { font-weight: 800; color: var(--mm-text-primary); }
.mm-pdp-specs-wrap .mm-specs-table tr:last-child th,
.mm-pdp-specs-wrap .mm-specs-table tr:last-child td { border-bottom: 0 !important; }

.mm-pdp-buybox {
  position: sticky; top: 6rem;
  background: var(--mm-bg-page); border: 1px solid #e2e8f0;
  border-radius: 1rem; padding: 1rem; text-align: right;
  box-shadow: var(--mm-shadow-subtle);
}
.mm-pdp-buybox .price { font-size: 1.125rem; font-weight: 900; margin: 1rem 0 0.25rem; }
.mm-pdp-buybox__head { display: flex; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.75rem; }
.mm-pdp-buybox__head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid #e2e8f0; background: #fff; flex-shrink: 0; }
.mm-pdp-buybox__head strong { font-size: 11px; color: var(--mm-steel-600); display: block; font-weight: 700; }
.mm-pdp-buybox__head p { margin: 0.25rem 0 0; font-size: 12px; font-weight: 800; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mm-pdp-buybox__list { list-style: none; margin: 0 0 0.75rem; padding: 0; font-size: 10px; font-weight: 500; color: var(--mm-text-secondary); }
.mm-pdp-buybox__list li { margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.375rem; }
.mm-pdp-buybox__list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 9999px; background: var(--mm-gold); flex-shrink: 0;
}

/* Reviews tab polish */
#tab-reviews .woocommerce-Reviews-title { font-size: 14px; font-weight: 800; margin: 0 0 1rem; }
#tab-reviews .commentlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
#tab-reviews .comment {
  background: #fff; border: 1px solid #f1f5f9; border-radius: 12px; padding: 1rem; margin: 0 !important;
}
#tab-reviews .comment-text { margin: 0; border: 0 !important; padding: 0 !important; }
#tab-reviews .meta { font-size: 12px; font-weight: 800; color: var(--mm-text-primary); }
#tab-reviews .description p { font-size: 12px; color: var(--mm-text-secondary); line-height: 1.7; margin: 0.5rem 0 0; }
#review_form_wrapper {
  margin-top: 1.25rem; border: 1px solid #e2e8f0; border-radius: 12px;
  background: var(--mm-bg-page); padding: 1rem;
}
#review_form_wrapper .comment-reply-title { font-size: 12px; font-weight: 800; margin: 0 0 0.75rem; }
#review_form_wrapper .comment-notes { font-size: 10px; color: var(--mm-text-muted); }
#review_form_wrapper input[type="text"],
#review_form_wrapper input[type="email"],
#review_form_wrapper textarea {
  border: 1px solid #e2e8f0 !important; border-radius: 12px !important;
  padding: 0.5rem 0.75rem !important; font-size: 12px !important; background: #fff !important;
  width: 100%;
}
#review_form_wrapper .form-submit input {
  background: var(--mm-steel-700) !important; color: #fff !important;
  border-radius: 12px !important; font-size: 12px !important; font-weight: 700 !important;
  padding: 0.625rem 1.25rem !important; border: 0 !important;
}

/* Related */
.mm-pdp-related { margin-top: 3rem; }
.mm-pdp-related > h2 {
  font-size: 1.125rem; font-weight: 800; margin: 0 0 1.25rem;
  text-align: center;
}
@media (min-width: 640px) { .mm-pdp-related > h2 { text-align: right; } }
.mm-pdp-related > h2::before { display: none !important; }
.mm-pdp-related__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.875rem;
}
@media (min-width: 640px) {
  .mm-pdp-related__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.mm-product-card--related {
  border: 1px solid #e2e8f0; border-radius: 1rem; overflow: hidden; background: #fff;
  transition: box-shadow 0.2s;
}
.mm-product-card--related:hover { box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
.mm-product-card--related .mm-product-card__media { aspect-ratio: 1; background: #f8fafc; }
.mm-product-card--related .mm-product-card__media a { display: block; height: 100%; position: relative; }
.mm-product-card--related .mm-product-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.3s;
}
.mm-product-card--related .mm-product-card__media img.hover { opacity: 0; }
.mm-product-card--related:hover .mm-product-card__media img.main { opacity: 0; }
.mm-product-card--related:hover .mm-product-card__media img.hover { opacity: 1; }
.mm-product-card--related .mm-product-card__body { padding: 0.75rem; }
.mm-product-card__title--related {
  font-size: 12px; font-weight: 700; margin: 0; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2rem;
}
.mm-product-card__title--related a { color: inherit; text-decoration: none; }
.mm-product-card__price--related {
  margin: 0.25rem 0 0; font-size: 12px; font-weight: 900;
}
.mm-product-card__price--related .woocommerce-Price-amount { font-weight: 900; }

/* Modal */
.mm-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.mm-modal[hidden] { display: none !important; }
.mm-modal__backdrop {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
  background: rgba(15, 23, 42, 0.5);
}
.mm-modal__panel {
  position: relative; width: 100%; max-width: 28rem; background: #fff;
  border-radius: 1rem; border: 1px solid #e2e8f0;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25); max-height: 90vh; overflow: auto;
  z-index: 1;
}
.mm-modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; border-bottom: 1px solid #f1f5f9;
}
.mm-modal__head h2,
.mm-modal__title { font-size: 14px; font-weight: 800; margin: 0; }
.mm-modal__close {
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.mm-modal__close:hover { background: #f8fafc; }
.mm-modal__rows {
  list-style: none; margin: 0; padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.625rem;
}
.mm-modal__rows li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding-bottom: 0.625rem; border-bottom: 1px solid #f8fafc;
  font-size: 12px;
}
.mm-modal__rows li > span:first-child { font-weight: 500; color: var(--mm-text-secondary); }
.mm-modal__rows li > span:last-child { font-weight: 700; color: var(--mm-text-primary); }
.mm-modal__rows--total { border-bottom: 0 !important; padding-top: 0.25rem; }
.mm-modal__rows--total > span:first-child { font-weight: 800; color: var(--mm-text-primary); }
.mm-modal__rows--total > span:last-child { font-weight: 900; font-size: 1rem; }
.mm-modal__ok {
  display: block; width: calc(100% - 2.5rem); margin: 0 1.25rem 1.25rem;
  text-align: center; padding: 0.75rem !important; border-radius: 12px !important;
  background: var(--mm-steel-700) !important; color: #fff !important;
  font-size: 12px !important; font-weight: 700 !important; border: 0 !important; cursor: pointer;
}

.mm-pdp-mobile-bar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 40;
  border-top: 1px solid #e2e8f0; background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px); padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  box-shadow: 0 -8px 24px rgba(15,23,42,0.08);
}
@media (min-width: 1024px) { .mm-pdp-mobile-bar { display: none; } }
.mm-pdp-mobile-bar__info { min-width: 0; flex: 1; text-align: right; }
.mm-pdp-mobile-bar__title {
  margin: 0; font-size: 11px; font-weight: 500; color: var(--mm-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mm-pdp-mobile-bar__price { margin: 0; font-size: 14px; font-weight: 900; }
.mm-pdp-mobile-bar__btn {
  display: inline-flex !important; align-items: center; gap: 0.375rem;
  white-space: nowrap; padding: 0.625rem 1rem !important;
  border-radius: 12px !important; font-size: 12px !important; font-weight: 700 !important;
  background: var(--mm-steel-700) !important; color: #fff !important; border: 0 !important; cursor: pointer;
}

body.single-product .mm-main { padding-bottom: 0; }
body.single-product .related.products:not(.mm-pdp-related) { display: none; }

/* legacy buybox grid kept */

/* —— Cart page (CartPage.tsx parity) —— */
.woocommerce-cart .mm-woo-main { padding: 2rem 0 3rem; }
@media (min-width: 640px) {
  .woocommerce-cart .mm-woo-main { padding: 3rem 0 4rem; }
}
.woocommerce-cart .mm-woo-head { margin-bottom: 1.5rem; }
.woocommerce-cart .mm-woo-head { text-align: center; }
@media (min-width: 640px) {
  .woocommerce-cart .mm-woo-head { text-align: right; }
}

.mm-cart-empty {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.mm-cart-empty__msg {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--mm-text-secondary);
}
.mm-cart-empty__cta {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.woocommerce-cart .return-to-shop,
.woocommerce-cart .wc-empty-cart-message { display: none !important; }

.mm-cart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .mm-cart-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

.mm-cart-lines { display: flex; flex-direction: column; gap: 0.75rem; }
.mm-cart-lines__head {
  display: none;
  grid-template-columns: 1fr 100px 120px 40px;
  gap: 0.75rem;
  padding: 0 1rem;
  font-size: 11px;
  font-weight: 700;
  color: var(--mm-text-muted);
}
@media (min-width: 640px) {
  .mm-cart-lines__head { display: grid; }
  .mm-cart-lines__head span:nth-child(1) { text-align: right; }
  .mm-cart-lines__head span:nth-child(2) { text-align: center; }
  .mm-cart-lines__head span:nth-child(3) { text-align: left; }
}

.mm-cart-line {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.875rem;
}
@media (min-width: 640px) {
  .mm-cart-line { gap: 1rem; padding: 1rem; }
}
.mm-cart-line__thumb {
  width: 5rem; height: 5rem; flex-shrink: 0;
  border-radius: 0.75rem; overflow: hidden;
  border: 1px solid #f1f5f9; background: #f8fafc;
}
@media (min-width: 640px) {
  .mm-cart-line__thumb { width: 6rem; height: 6rem; }
}
.mm-cart-line__thumb a { display: block; height: 100%; }
.mm-cart-line__thumb img,
.mm-cart-line__img {
  width: 100% !important; height: 100% !important;
  object-fit: cover; margin: 0 !important; border-radius: 0 !important;
}
.mm-cart-line__body { flex: 1; min-width: 0; text-align: right; }
.mm-cart-line__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 12px; font-weight: 700;
  color: var(--mm-text-primary); text-decoration: none; margin: 0;
}
@media (min-width: 640px) { .mm-cart-line__title { font-size: 14px; } }
.mm-cart-line__title:hover { color: var(--mm-steel-600); }
.mm-cart-line__meta {
  margin: 0.25rem 0 0; font-size: 11px; font-weight: 500; color: var(--mm-text-muted);
}
.mm-cart-line__price {
  margin-top: 0.25rem; font-size: 14px; font-weight: 900;
}
.mm-cart-line__price .woocommerce-Price-amount { font-weight: 900; }
.mm-cart-line__stock {
  margin: 0.15rem 0 0; font-size: 10px; font-weight: 700;
}
.mm-cart-line__stock.is-in { color: #047857; }
.mm-cart-line__stock.is-out { color: #be123c; }

.mm-cart-line__controls {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; flex-shrink: 0;
}
.mm-qty {
  display: inline-flex; align-items: center;
  border: 1px solid #e2e8f0; border-radius: 0.5rem; overflow: hidden; background: #fff;
}
.mm-qty__btn {
  width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--mm-text-primary); cursor: pointer; padding: 0;
}
.mm-qty__btn:hover { background: #f8fafc; }
.mm-qty .quantity { margin: 0 !important; }
.mm-qty .qty,
.mm-qty__input {
  width: 2rem !important; min-width: 2rem !important; height: 2rem !important;
  border: 0 !important; border-radius: 0 !important; padding: 0 !important;
  text-align: center; font-size: 12px; font-weight: 900; box-shadow: none !important;
  -moz-appearance: textfield;
}
.mm-qty .qty::-webkit-outer-spin-button,
.mm-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mm-cart-line__subtotal { font-size: 12px; font-weight: 800; }
.mm-cart-line__remove {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 11px; font-weight: 700; color: #e11d48; text-decoration: none;
}
.mm-cart-line__remove:hover { color: #be123c; }

.mm-cart-coupon {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1rem;
}
@media (min-width: 640px) {
  .mm-cart-coupon { flex-direction: row; }
}
.mm-cart-coupon__input {
  flex: 1; border: 1px solid #e2e8f0 !important; border-radius: 0.75rem !important;
  padding: 0.625rem 0.75rem !important; font-size: 14px !important; width: 100%;
}
.mm-cart-coupon__btn {
  border: 1px solid #e2e8f0 !important; border-radius: 0.75rem !important;
  background: var(--mm-bg-page) !important; color: var(--mm-text-primary) !important;
  font-size: 12px !important; font-weight: 700 !important; padding: 0.625rem 1rem !important;
  white-space: nowrap;
}

.mm-cart-trust {
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--mm-steel-50); border: 1px solid #e2e8f0; border-radius: 1rem;
  padding: 1rem; font-size: 11px; font-weight: 500; color: var(--mm-text-secondary);
}
@media (min-width: 640px) {
  .mm-cart-trust { flex-direction: row; gap: 1.25rem; }
}
.mm-cart-trust__item { display: inline-flex; align-items: center; gap: 0.375rem; }
.mm-cart-trust__item .mm-icon { color: var(--mm-gold); }
.mm-cart-trust__item--strong { font-weight: 700; color: var(--mm-steel-700); }

.mm-cart-update {
  align-self: flex-start;
  border: 1px solid #e2e8f0 !important; border-radius: 0.75rem !important;
  background: #fff !important; color: var(--mm-text-secondary) !important;
  font-size: 12px !important; font-weight: 700 !important; padding: 0.5rem 1rem !important;
}
.mm-cart-update[aria-disabled="true"],
.mm-cart-update:disabled { opacity: 0.45; }

.mm-cart-aside { position: relative; }
.mm-cart-totals {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem; padding: 1.25rem;
  position: sticky; top: 1.5rem;
}
.mm-cart-totals__title {
  margin: 0 0 1rem; font-size: 14px; font-weight: 800;
}
.mm-cart-totals__rows { display: flex; flex-direction: column; }
.mm-cart-totals__row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.625rem 0; border-bottom: 1px solid #f1f5f9;
  font-size: 12px; font-weight: 500; color: var(--mm-text-secondary);
}
.mm-cart-totals__row > span:last-child {
  font-weight: 700; color: var(--mm-text-primary);
}
.mm-cart-totals__row--discount { color: #047857; }
.mm-cart-totals__row--discount > span:last-child { color: #047857; }
.mm-cart-totals__row--total {
  border-bottom: 0; padding-top: 0.75rem; font-size: 14px; font-weight: 800;
  color: var(--mm-text-primary);
}
.mm-cart-totals__row--total > span:last-child { font-weight: 900; }
.mm-cart-totals__shipping table,
.mm-cart-totals__shipping .shop_table {
  width: 100%; border: 0 !important; margin: 0 !important;
}
.mm-cart-totals__shipping th,
.mm-cart-totals__shipping td {
  padding: 0.625rem 0 !important; border: 0 !important; border-bottom: 1px solid #f1f5f9 !important;
  font-size: 12px; font-weight: 500;
}
.mm-cart-totals__note {
  margin: 0 0 1rem; font-size: 10px; font-weight: 500;
  color: var(--mm-text-muted); line-height: 1.6;
}
.mm-cart-checkout-btn,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: flex !important; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%; padding: 0.75rem 1rem !important;
  border-radius: 0.75rem !important;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important; font-size: 12px !important; font-weight: 700 !important;
  text-decoration: none !important; border: 0 !important;
}
.mm-cart-checkout-btn__icon { color: #fcd34d; }
.mm-cart-totals__continue {
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.5rem; font-size: 11px; font-weight: 700;
  color: var(--mm-steel-600); text-decoration: none;
}
.mm-cart-totals__continue:hover { color: var(--mm-steel-700); }

/* Hide default WC table chrome if any leftover */
.woocommerce-cart table.shop_table.cart { display: none; }
.woocommerce-cart .cart-collaterals::before,
.woocommerce-cart .cart-collaterals::after { display: none; }
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; }

/* —— Checkout page (CheckoutPage.tsx parity) —— */
.woocommerce-checkout .mm-woo-main { padding: 2rem 0 3rem; }
@media (min-width: 640px) {
  .woocommerce-checkout .mm-woo-main { padding: 3rem 0 4rem; }
}
.woocommerce-checkout .mm-woo-head { margin-bottom: 1.5rem; }
.woocommerce-checkout .mm-woo-panel--checkout { display: contents; }

.mm-checkout { width: 100%; overflow: visible; }
.mm-checkout-form,
.woocommerce-checkout form.checkout { overflow: visible; }
.mm-checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  overflow: visible;
}
@media (min-width: 1024px) {
  .mm-checkout-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; }
  /* Sticky the aside itself — card-inside-short-aside cannot stick */
  .mm-checkout-aside {
    position: sticky;
    top: var(--mm-sticky-top); /* below fixed mm-header (live height) */
    z-index: 2;
    align-self: start;
  }
}
.mm-checkout-main { display: flex; flex-direction: column; gap: 1rem; }

.mm-checkout-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1.5rem;
}
@media (min-width: 640px) {
  .mm-checkout-card { padding: 1.5rem; }
}
.mm-checkout-card__title {
  margin: 0 0 1rem;
  font-size: 14px;
  font-weight: 800;
  color: var(--mm-text-primary);
}

.mm-checkout-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .mm-checkout-fields { grid-template-columns: 1fr 1fr; }
}
.mm-checkout-fields .form-row {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}
.mm-checkout-fields .form-row-wide,
.mm-checkout-fields .mm-checkout-field--full,
.mm-checkout-fields #order_comments_field,
.mm-checkout-fields #billing_address_1_field {
  grid-column: 1 / -1;
}
.mm-checkout-field--hide { display: none !important; }

.woocommerce-checkout .mm-checkout-fields label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-align: right;
  color: var(--mm-text-primary);
}
.woocommerce-checkout .mm-checkout-fields .required { color: #be123c; }
.woocommerce-checkout .mm-checkout-fields input.input-text,
.woocommerce-checkout .mm-checkout-fields textarea,
.woocommerce-checkout .mm-checkout-fields select,
.woocommerce-checkout .mm-checkout-fields .select2-container .select2-selection--single {
  width: 100%;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  padding: 0.625rem 0.75rem !important;
  font-size: 14px !important;
  font-weight: 500;
  background: #fff;
  min-height: 42px;
  box-shadow: none !important;
}
.woocommerce-checkout .mm-checkout-fields textarea { min-height: 5rem; resize: vertical; }
.woocommerce-checkout .mm-checkout-fields .select2-container { width: 100% !important; }

.mm-checkout-ship-diff { margin-top: 0.75rem; }
.mm-checkout-ship-diff__toggle {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}
.mm-checkout-notes { margin-top: 0.25rem; }
.mm-checkout-account-fields { margin-top: 0.75rem; font-size: 12px; }

.mm-checkout-ship-list,
.mm-checkout-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mm-checkout-ship-option,
.mm-checkout-pay-option {
  position: relative;
  margin: 0 !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.875rem;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.mm-checkout-ship-option:has(input:checked),
.mm-checkout-pay-option:has(input:checked) {
  border-color: var(--mm-steel-400, #94a3b8);
  background: var(--mm-steel-50, #f8fafc);
}
.mm-checkout-ship-option input,
.mm-checkout-pay-option > input.input-radio {
  position: absolute;
  inset-inline-start: 0.875rem;
  top: 1rem;
  margin: 0;
}
.mm-checkout-ship-option__label,
.mm-checkout-pay-option__label {
  display: block;
  padding-inline-start: 1.5rem;
  cursor: pointer;
}
.mm-checkout-ship-option__title,
.mm-checkout-pay-option__title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--mm-text-primary);
}
.mm-checkout-ship-option__title .mm-icon { color: var(--mm-gold); width: 14px; height: 14px; }
.mm-checkout-ship-option__desc,
.mm-checkout-pay-option__desc {
  display: block;
  margin-top: 0.2rem;
  font-size: 11px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.5;
}
.mm-checkout-shipping-empty {
  margin: 0;
  font-size: 12px;
  color: var(--mm-text-muted);
  font-weight: 500;
}

.mm-checkout-lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  max-height: 16rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mm-checkout-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 12px;
}
.mm-checkout-line__thumb {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
}
.mm-checkout-line__thumb img,
.mm-checkout-line__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mm-checkout-line__title {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  text-align: right;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mm-checkout-line__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mm-checkout-line__meta {
  font-weight: 500;
  color: var(--mm-text-secondary);
  font-size: 11px;
}
.mm-checkout-line__meta dl,
.mm-checkout-line__meta .variation {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}
.mm-checkout-line__meta dt,
.mm-checkout-line__meta dd {
  margin: 0;
  display: inline;
}
.mm-checkout-line__qty { font-weight: 500; color: var(--mm-text-muted); }
.mm-checkout-line__total {
  flex-shrink: 0;
  font-weight: 900;
}

.mm-checkout-coupon {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #f1f5f9;
  background: var(--mm-bg-page, #f8fafc);
}
.mm-checkout-coupon__label {
  margin: 0 0 0.5rem;
  font-size: 11px;
  font-weight: 800;
}
.mm-checkout-coupon__row { display: flex; gap: 0.5rem; }
.mm-checkout-coupon__input {
  flex: 1;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 12px !important;
  background: #fff;
}
.mm-checkout-coupon__btn {
  border: 0 !important;
  border-radius: 0.5rem !important;
  background: var(--mm-steel-700, #1e3a5f) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 0.5rem 0.75rem !important;
  white-space: nowrap;
}

.mm-checkout-totals {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mm-checkout-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--mm-text-secondary);
}
.mm-checkout-totals__row > span:last-child {
  font-weight: 700;
  color: var(--mm-text-primary);
}
.mm-checkout-totals__row--discount { color: #047857; }
.mm-checkout-totals__row--discount > span:last-child { color: #047857; }
.mm-checkout-totals__row--total {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  font-size: 14px;
  font-weight: 800;
  color: var(--mm-text-primary);
}
.mm-checkout-totals__row--total > span:last-child { font-weight: 900; }

.mm-checkout-payment { margin-top: 1rem; }
.mm-checkout-payment__heading {
  margin: 0 0 0.75rem;
  font-size: 12px;
  font-weight: 800;
}
.mm-checkout-place { margin: 1.25rem 0 0 !important; padding: 0 !important; }
.mm-checkout-submit,
.woocommerce-checkout #place_order {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border: 0 !important;
  border-radius: 0.75rem !important;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.mm-checkout-legal {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.6;
}
.mm-checkout-legal a { text-decoration: underline; color: inherit; }

.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading { background: transparent; border: 0; padding: 0; margin: 0; border-radius: 0; }
.woocommerce-checkout .woocommerce-privacy-policy-text { display: none; }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { font-size: 11px; margin-bottom: 0.5rem; }
.woocommerce-checkout .woocommerce-NoticeGroup { margin-bottom: 1rem; }

/* Force-hide WC fields not in CheckoutPage mock */
.woocommerce-checkout .mm-checkout-field--hide,
.woocommerce-checkout #billing_company_field,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #shipping_company_field,
.woocommerce-checkout #shipping_country_field,
.woocommerce-checkout #shipping_address_2_field {
  display: none !important;
}

/* —— Account page (AccountPage.tsx parity) —— */
.woocommerce-account .mm-woo-main { padding: 2rem 0 3rem; }
@media (min-width: 640px) {
  .woocommerce-account .mm-woo-main { padding: 3rem 0 4rem; }
}
.woocommerce-account .mm-woo-head { margin-bottom: 1.5rem; }
.woocommerce-account .mm-woo-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.woocommerce-account .mm-container { max-width: 64rem; }

/* Kill WC / entry-content bleed into auth card */
.woocommerce-account .mm-account-auth h2,
.woocommerce-account .mm-content .entry-content .mm-account-auth h2,
.woocommerce-account .mm-content .entry-content .mm-account-auth__title {
  margin: 0 !important;
  padding: 0 !important;
}

.mm-account-shell--guest {
  max-width: 28rem; /* max-w-md */
  margin: 0 auto;
}

.mm-account-auth__card {
  background: #fff;
  border: 1px solid #e2e8f0; /* slate-200 */
  border-radius: 1rem !important; /* rounded-2xl */
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(29, 62, 97, 0.06);
}
@media (min-width: 640px) {
  .mm-account-auth__card { padding: 2rem; }
}

.mm-account-auth__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  color: var(--mm-steel-700);
  margin: 0 0 0.875rem;
  line-height: 1;
}
.mm-account-auth__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem; /* rounded-xl */
  background: var(--mm-steel-50, #f8fafc);
  border: 1px solid var(--mm-steel-200, #e2e8f0);
  color: var(--mm-steel-700);
  flex-shrink: 0;
}
.mm-account-auth__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 0;
  margin: 0;
  color: inherit;
}
.mm-account-auth__icon svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}
.mm-account-auth__title {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.875rem; /* text-sm */
  font-weight: 800;
  line-height: 1.25;
  color: var(--mm-steel-700);
  letter-spacing: -0.01em;
}
.mm-account-auth__lead {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--mm-text-secondary);
}

.mm-account-auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  margin: 0 0 1.35rem;
  padding: 0.25rem;
  background: var(--mm-bg-page, #f8fafc);
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem; /* rounded-xl */
}
.mm-account-auth__tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 0.55rem;
  padding: 0.6rem 0.75rem;
  font-size: 12px;
  font-weight: 800;
  color: var(--mm-text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
}
.mm-account-auth__tab:hover { color: var(--mm-steel-700); }
.mm-account-auth__tab.is-active {
  background: #fff;
  color: var(--mm-steel-800);
  border-color: var(--mm-steel-200, #cbd5e1);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.mm-account-auth__panel[hidden] { display: none !important; }

.woocommerce-account .mm-account-auth__form .form-row {
  margin: 0 0 1rem !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
}
.woocommerce-account .mm-account-auth__form label {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 0.4rem !important;
  color: var(--mm-text-primary);
  line-height: 1.4;
}

/* Inputs — rounded-xl (12px), beat WC 3–4px + dark border overrides */
.woocommerce-account .mm-account-auth__form .woocommerce-Input,
.woocommerce-account .mm-account-auth__form input.input-text,
.woocommerce-account .mm-account-auth__form input[type="text"],
.woocommerce-account .mm-account-auth__form input[type="email"],
.woocommerce-account .mm-account-auth__form input[type="password"],
.woocommerce-account .mm-account-auth__form input[type="tel"],
.woocommerce.woocommerce-account .mm-account-auth input.input-text {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important; /* rounded-xl */
  padding: 0.7rem 0.9rem !important;
  min-height: 2.75rem !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  background: #fff !important;
  color: var(--mm-text-primary) !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .15s, box-shadow .15s;
}
.woocommerce-account .mm-account-auth__form input:focus,
.woocommerce-account .mm-account-auth__form input.input-text:focus {
  border-color: var(--mm-steel-300, #94a3b8) !important;
  box-shadow: 0 0 0 3px rgba(41, 82, 127, 0.12) !important;
}
.woocommerce-account .mm-account-auth__form input::placeholder {
  color: var(--mm-text-muted);
  font-weight: 500;
}
.woocommerce-account .mm-account-auth__form .required { color: #e11d48; }

/* Password field shell */
.woocommerce-account .mm-account-auth__form .password-input {
  display: flex !important;
  align-items: stretch;
  position: relative;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  overflow: hidden;
  background: #fff;
  min-height: 2.75rem;
  transition: border-color .15s, box-shadow .15s;
}
.woocommerce-account .mm-account-auth__form .password-input input.input-text {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 2.75rem !important;
  flex: 1;
  min-width: 0;
}
.woocommerce-account .mm-account-auth__form .password-input .show-password-input {
  appearance: none;
  border: 0 !important;
  background: transparent !important;
  padding: 0 0.85rem !important;
  margin: 0 !important;
  color: var(--mm-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
}
.woocommerce-account .mm-account-auth__form .password-input:focus-within {
  border-color: var(--mm-steel-300, #94a3b8) !important;
  box-shadow: 0 0 0 3px rgba(41, 82, 127, 0.12);
}

/* Remember + forgot on one row — no cramped link under CTA */
.mm-account-auth__meta {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1.35rem !important;
  float: none !important;
  width: 100% !important;
}
.woocommerce-account .mm-account-auth__form .form-row-wide:has(+ .mm-account-auth__meta),
.woocommerce-account .mm-account-auth__form .form-row:has(.password-input) {
  margin-bottom: 0.35rem !important;
}
.mm-account-auth__meta .woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 !important;
  font-size: 12px;
  font-weight: 600;
  color: var(--mm-text-secondary);
  cursor: pointer;
  line-height: 1.3;
}
.mm-account-auth__meta .woocommerce-form__input-checkbox {
  width: 0.95rem !important;
  height: 0.95rem !important;
  min-height: 0 !important;
  margin: 0 !important;
  border-radius: 0.25rem !important;
  accent-color: var(--mm-steel-700, #1d3e61);
}
.mm-account-auth__lost {
  font-size: 12px;
  font-weight: 700;
  color: var(--mm-steel-600);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.mm-account-auth__lost:hover {
  color: var(--mm-steel-800);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CTA — rounded-xl, full width, kill WC button chrome */
.woocommerce-account .mm-account-auth__submit,
.woocommerce-account .mm-account-auth__form button.button.mm-account-auth__submit,
.woocommerce.woocommerce-account .mm-account-auth button.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  padding: 0.9rem 1.1rem !important;
  min-height: 2.85rem !important;
  border: 0 !important;
  border-radius: 0.75rem !important; /* rounded-xl */
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(29, 62, 97, 0.28) !important;
  cursor: pointer;
  transition: filter .15s, transform .15s, box-shadow .15s;
}
.woocommerce-account .mm-account-auth__submit:hover,
.woocommerce-account .mm-account-auth__form button.button.mm-account-auth__submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(29, 62, 97, 0.34) !important;
}
.woocommerce-account .mm-account-auth__submit:active {
  transform: translateY(1px);
}
.mm-account-auth__submit-icon {
  display: inline-flex !important;
  line-height: 0;
  color: inherit;
}
.mm-account-auth__submit-icon svg {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
}

.mm-account-auth__hint {
  margin: 0 0 1rem;
  font-size: 12px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.7;
  text-align: center;
}
.mm-account-auth__note {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.6;
}

.mm-account-auth__footer {
  margin-top: 1.75rem;
  text-align: center;
}
.mm-account-auth__cart {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12px;
  font-weight: 800;
  color: var(--mm-steel-600);
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  transition: color .15s, background .15s;
}
.mm-account-auth__cart:hover {
  color: var(--mm-steel-800);
  background: var(--mm-steel-50, #f8fafc);
}
.mm-account-auth__cart .mm-icon {
  display: inline-flex !important;
  line-height: 0;
}
.mm-account-auth__cart .mm-icon svg { width: 0.9rem; height: 0.9rem; display: block; }

/* Password toggle — WC absolute; keep inside our flex shell */
.woocommerce-account .mm-account-auth__form .password-input {
  position: relative !important;
}
.woocommerce-account .mm-account-auth__form .password-input .show-password-input {
  position: absolute !important;
  inset: auto auto 50% 0.35rem !important;
  transform: translateY(50%) !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}
.woocommerce-account .mm-account-auth__form .password-input input.input-text {
  padding-inline-start: 2.75rem !important;
}

/* Kill WC float layout that collapses account grid */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.mm-account-nav,
.mm-account-content {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Logged-in account shell */
.mm-account-shell--member {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .mm-account-shell--member {
    grid-template-columns: minmax(13.5rem, 0.28fr) minmax(0, 0.72fr);
    gap: 1.25rem;
  }
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.mm-account-nav {
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  padding: 0.65rem;
  height: fit-content;
  box-shadow: var(--mm-shadow-subtle);
  overflow: hidden;
}
.mm-account-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mm-account-nav ul::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .mm-account-nav ul {
    flex-direction: column;
    overflow: visible;
    gap: 0.25rem;
  }
}
.mm-account-nav a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 12px;
  font-weight: 800;
  color: var(--mm-text-secondary);
  text-decoration: none;
  border: 1px solid transparent;
  text-align: right;
  line-height: 1.3;
  white-space: nowrap;
  transition: background var(--mm-transition-fast), color var(--mm-transition-fast), border-color var(--mm-transition-fast);
}
.mm-account-nav a:hover { background: var(--mm-bg-page); color: var(--mm-steel-800); }
.mm-account-nav .is-active a,
.mm-account-nav li.is-active a {
  background: var(--mm-steel-50);
  color: var(--mm-steel-800);
  border-color: var(--mm-steel-200);
}
.mm-account-nav__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: inherit;
  flex-shrink: 0;
  line-height: 0;
}
.mm-account-nav__icon svg { width: 0.9rem; height: 0.9rem; display: block; }
.mm-account-nav .woocommerce-MyAccount-navigation-link--customer-logout a {
  color: #e11d48;
}
.mm-account-nav .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
  background: #fff1f2;
  border-color: transparent;
}

.woocommerce-account .woocommerce-MyAccount-content,
.mm-account-content {
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  text-align: right;
  box-shadow: var(--mm-shadow-subtle);
  min-width: 0;
}
@media (min-width: 640px) {
  .woocommerce-account .woocommerce-MyAccount-content,
  .mm-account-content { padding: 1.5rem 1.6rem; }
}

.mm-account-section__title {
  margin: 0 0 0.85rem !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  color: var(--mm-text-primary) !important;
  letter-spacing: -0.02em;
}
.mm-account-section__lead {
  margin: 0 0 1.15rem;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--mm-text-secondary);
}

.mm-account-content p {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--mm-text-secondary);
}
.mm-account-content .woocommerce-notices-wrapper:empty { display: none; }

/* Dashboard cards */
.mm-account-dash__intro { margin-bottom: 1.25rem; }
.mm-account-dash__title {
  margin: 0 0 0.4rem !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: var(--mm-text-primary) !important;
}
.mm-account-dash__lead {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--mm-text-secondary);
}
.mm-account-dash__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .mm-account-dash__cards { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
}
.mm-account-dash__card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--mm-border-faint);
  border-radius: 0.85rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--mm-transition-fast), box-shadow var(--mm-transition-fast), transform var(--mm-transition-fast);
}
.mm-account-dash__card:hover {
  border-color: var(--mm-steel-300);
  box-shadow: var(--mm-shadow-card);
  transform: translateY(-2px);
}
.mm-account-dash__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: var(--mm-steel-50);
  border: 1px solid var(--mm-steel-200);
  color: var(--mm-steel-700);
  flex-shrink: 0;
}
.mm-account-dash__card-icon svg { width: 1rem; height: 1rem; display: block; }
.mm-account-dash__card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.mm-account-dash__card-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--mm-text-primary);
}
.mm-account-dash__card-desc {
  font-size: 10px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.5;
}
.mm-account-dash__card-arrow {
  color: var(--mm-steel-400);
  flex-shrink: 0;
  line-height: 0;
  transition: transform var(--mm-transition-fast), color var(--mm-transition-fast);
}
.mm-account-dash__card-arrow svg { width: 0.9rem; height: 0.9rem; display: block; }
.mm-account-dash__card:hover .mm-account-dash__card-arrow {
  color: var(--mm-steel-700);
  transform: translateX(-2px);
}

/* Empty states */
.mm-account-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 2rem 1rem;
  border: 1px dashed var(--mm-border-light);
  border-radius: 0.85rem;
  background: var(--mm-bg-page);
}
.mm-account-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid var(--mm-border-faint);
  color: var(--mm-steel-600);
}
.mm-account-empty__icon svg { width: 1.15rem; height: 1.15rem; display: block; }
.mm-account-empty__text {
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--mm-text-muted) !important;
}
.mm-account-empty__cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.7rem 1.15rem !important;
  border-radius: 0.75rem !important;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(29, 62, 97, 0.22);
}

/* Address cards */
.mm-account-addresses__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .mm-account-addresses__grid { grid-template-columns: repeat(2, 1fr); }
}
.mm-account-address-card {
  border: 1px solid var(--mm-border-faint);
  border-radius: 0.85rem;
  padding: 1rem 1.1rem;
  background: #fff;
  transition: border-color var(--mm-transition-fast), box-shadow var(--mm-transition-fast);
}
.mm-account-address-card:hover {
  border-color: var(--mm-steel-300);
  box-shadow: var(--mm-shadow-card);
}
.mm-account-address-card__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.mm-account-address-card__icon {
  display: inline-flex;
  color: var(--mm-steel-600);
  line-height: 0;
}
.mm-account-address-card__icon svg { width: 0.9rem; height: 0.9rem; display: block; }
.mm-account-address-card__title {
  flex: 1;
  margin: 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  color: var(--mm-text-primary) !important;
}
.mm-account-address-card__edit {
  font-size: 11px;
  font-weight: 800;
  color: var(--mm-steel-600);
  text-decoration: none;
  padding: 0.3rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid var(--mm-border-faint);
  background: var(--mm-bg-page);
  transition: background var(--mm-transition-fast), color var(--mm-transition-fast);
}
.mm-account-address-card__edit:hover {
  background: var(--mm-steel-50);
  color: var(--mm-steel-800);
}
.mm-account-address-card__body {
  display: block;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--mm-text-secondary);
}

/* Forms (edit account / address) */
.mm-account-form .form-row,
.mm-account-content .woocommerce-address-fields .form-row,
.mm-account-content form .form-row {
  margin: 0 0 0.9rem !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  clear: none !important;
}
.mm-account-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 640px) {
  .mm-account-form__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .mm-account-form__grid .form-row { margin-bottom: 0.9rem !important; }
}
.mm-account-content .mm-account-form label,
.mm-account-content form .form-row > label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 0.35rem !important;
  color: var(--mm-text-primary);
}
.mm-account-content .woocommerce-Input,
.mm-account-content input.input-text,
.mm-account-content select,
.mm-account-content textarea,
.mm-account-content .select2-container .select2-selection--single {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid var(--mm-border-faint) !important;
  border-radius: 0.75rem !important;
  padding: 0.65rem 0.85rem !important;
  min-height: 2.65rem !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  background: #fff !important;
  color: var(--mm-text-primary) !important;
  box-shadow: none !important;
  outline: none !important;
}
.mm-account-content input:focus,
.mm-account-content select:focus,
.mm-account-content textarea:focus {
  border-color: var(--mm-steel-300) !important;
  box-shadow: 0 0 0 3px rgba(41, 82, 127, 0.12) !important;
}
.mm-account-form__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 10px;
  font-weight: 500;
  color: var(--mm-text-muted);
  line-height: 1.5;
  font-style: normal;
}
.mm-account-form__hint--block { margin: 0 0 0.85rem; }
.mm-account-form__fieldset {
  margin: 1.35rem 0 0;
  padding: 1.15rem 0 0;
  border: 0;
  border-top: 1px dashed var(--mm-border-faint);
}
.mm-account-form__fieldset legend {
  padding: 0;
  float: none;
  width: 100%;
}
.mm-account-form__actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0 !important;
  float: none !important;
  width: 100% !important;
}
.mm-account-form__cancel {
  font-size: 12px;
  font-weight: 700;
  color: var(--mm-text-muted);
  text-decoration: none;
}
.mm-account-form__cancel:hover { color: var(--mm-steel-700); }

.mm-account-content .woocommerce-Button,
.mm-account-content button.button,
.mm-account-content a.button,
.mm-account-content .mm-btn--primary {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to left, #1d3e61, #29527f) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0.75rem !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  padding: 0.75rem 1.15rem !important;
  min-height: 2.65rem;
  box-shadow: 0 4px 12px rgba(29, 62, 97, 0.22);
  cursor: pointer;
  text-decoration: none !important;
  float: none !important;
  width: auto !important;
  transition: filter var(--mm-transition-fast);
}
.mm-account-content .woocommerce-Button:hover,
.mm-account-content button.button:hover,
.mm-account-content a.button:hover {
  filter: brightness(1.05);
}

/* Kill WC float columns inside account */
.mm-account-content .col2-set,
.mm-account-content .u-columns,
.mm-account-content .woocommerce-Addresses {
  display: contents;
}
.mm-account-content .clear { display: none; }

/* Orders table */
.mm-account-orders__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--mm-border-faint);
  border-radius: 0.85rem;
}
.mm-account-content .woocommerce-orders-table,
.mm-account-content table.shop_table,
.mm-account-orders__table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
}
.mm-account-orders__table thead th {
  background: var(--mm-bg-page);
  font-size: 11px;
  font-weight: 800;
  color: var(--mm-text-muted);
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--mm-border-faint);
  text-align: right;
  white-space: nowrap;
}
.mm-account-orders__table tbody td,
.mm-account-orders__table tbody th {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--mm-border-faint);
  font-weight: 600;
  color: var(--mm-text-secondary);
  text-align: right;
  vertical-align: middle;
}
.mm-account-orders__table tbody tr:last-child td,
.mm-account-orders__table tbody tr:last-child th {
  border-bottom: 0;
}
.mm-account-orders__table a {
  color: var(--mm-steel-700);
  font-weight: 800;
  text-decoration: none;
}
.mm-account-orders__status {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.55rem;
  border-radius: var(--mm-radius-pill);
  font-size: 10px;
  font-weight: 800;
  background: var(--mm-steel-50);
  color: var(--mm-steel-700);
  border: 1px solid var(--mm-steel-200);
  white-space: nowrap;
}
.mm-account-orders__status--completed,
.mm-account-orders__status--processing {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.mm-account-orders__status--on-hold,
.mm-account-orders__status--pending {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}
.mm-account-orders__status--cancelled,
.mm-account-orders__status--failed,
.mm-account-orders__status--refunded {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}
.mm-account-orders__action {
  padding: 0.45rem 0.75rem !important;
  min-height: 0 !important;
  font-size: 11px !important;
  box-shadow: none !important;
}
.mm-account-orders__pager {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

/* Mobile: WC responsive table → stacked cards */
@media (max-width: 767px) {
  .mm-account-orders__table-wrap { border: 0; overflow: visible; }
  .mm-account-orders__table,
  .mm-account-orders__table tbody {
    display: block;
    width: 100%;
  }
  .mm-account-orders__table thead { display: none; }
  .mm-account-orders__table tbody tr {
    display: block;
    margin-bottom: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--mm-border-faint);
    border-radius: 0.85rem;
    background: #fff;
  }
  .mm-account-orders__table tbody td,
  .mm-account-orders__table tbody th {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0 !important;
    border: 0 !important;
    text-align: left;
  }
  .mm-account-orders__table tbody td::before,
  .mm-account-orders__table tbody th::before {
    content: attr(data-title);
    font-size: 10px;
    font-weight: 800;
    color: var(--mm-text-muted);
    text-align: right;
    flex-shrink: 0;
  }
}

/* Notices */
.mm-account-content .woocommerce-Message,
.mm-account-content .woocommerce-info,
.mm-account-content .woocommerce-message,
.mm-account-content .woocommerce-error,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error {
  border-radius: 0.75rem !important;
  border: 1px solid var(--mm-border-faint) !important;
  background: #fff !important;
  color: var(--mm-text-secondary) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  padding: 0.85rem 1rem !important;
  margin: 0 0 1rem !important;
  box-shadow: none !important;
  list-style: none;
}
.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error {
  border-color: #fecdd3 !important;
  background: #fff1f2 !important;
  color: #9f1239 !important;
}

/* View order marks */
.mm-account-content mark {
  background: var(--mm-steel-50);
  color: var(--mm-steel-800);
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  font-weight: 800;
}

/* Oct 2026 feedback */
.mm-flow { margin: 0 0 1.25rem; }
.mm-flow ol { display: flex; gap: 0.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.mm-flow__step { font-size: 12px; font-weight: 700; color: var(--mm-text-muted); }
.mm-flow__step a { color: inherit; text-decoration: none; }
.mm-flow__step.is-current { color: var(--mm-steel-800); }
.mm-flow__step.is-done { color: #047857; }
.mm-flow__step + .mm-flow__step::before { content: "‹"; margin-left: 0.5rem; color: #cbd5e1; }

.mm-cart-empty-tip {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  color: var(--mm-text-primary);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  white-space: nowrap;
  z-index: 30;
}
.mm-header-cart { position: relative; }
@media (min-width: 768px) {
  .mm-header-cart:hover .mm-mini-cart,
  .mm-header-cart:focus-within .mm-mini-cart { display: block; }
  .mm-header-cart.is-empty:hover .mm-mini-cart { display: none; }
  .mm-header-cart.is-empty:hover .mm-cart-empty-tip,
  .mm-header-cart.is-empty:focus-within .mm-cart-empty-tip { display: block; }
}
.mm-mini-cart[hidden] { display: none !important; }
@media (min-width: 768px) {
  .mm-header-cart:hover .mm-mini-cart[hidden],
  .mm-header-cart:focus-within .mm-mini-cart[hidden] { display: block !important; }
  .mm-header-cart.is-empty:hover .mm-mini-cart[hidden] { display: none !important; }
}

@media (min-width: 640px) {
  .mm-cart-lines__head { grid-template-columns: 6rem minmax(0, 1fr) auto; }
  .mm-cart-lines__head span:first-child { grid-column: 1 / 3; }
  .mm-cart-line {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr) auto;
    align-items: center;
  }
  .mm-cart-line__controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
  }
  .mm-cart-line__subtotal { text-align: center; min-width: 7rem; }
}

.mm-pdp-tabs-wrap .woocommerce-tabs ul.tabs { display: none !important; }
.mm-pdp-tabs-wrap .woocommerce-Tabs-panel {
  display: block !important;
  margin-bottom: 1.5rem;
}
.mm-pdp-stock { margin: 0.5rem 0 0; font-size: 12px; font-weight: 700; color: #047857; }
.mm-pdp-mobile-bar__weights { display: flex; gap: 0.35rem; flex-wrap: wrap; margin: 0.25rem 0; }
.mm-pdp-weight--bar { font-size: 11px; padding: 0.15rem 0.4rem; }

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  border-inline-start: 4px solid var(--mm-gold) !important;
  background: #fff !important;
  color: var(--mm-text-primary);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.woocommerce-error { border-inline-start-color: #be123c !important; background: #fff7f8 !important; }
.woocommerce-message { border-inline-start-color: #047857 !important; background: #f3fbf7 !important; }
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a { color: inherit; font-weight: 800; }

#tab-reviews .commentlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
#tab-reviews .comment_container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0.9rem 1rem;
}
#tab-reviews .comment-text { margin: 0; }
#tab-reviews .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0 0 0.35rem;
}
.mm-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #173351;
  color: #fde68a;
  font-weight: 800;
}
.mm-review-photos { display: flex; gap: 0.4rem; grid-column: 1 / -1; }
.mm-review-photos__img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
/* LTR + no letter-spacing so WC width:% (2★=40%) matches real star width. */
#tab-reviews .star-rating {
  position: relative;
  display: inline-block;
  width: 5.5em;
  height: 1em;
  overflow: hidden;
  line-height: 1;
  font-size: 16px;
  letter-spacing: 0;
  vertical-align: middle;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}
#tab-reviews .star-rating::before {
  content: "★★★★★";
  color: #e2e8f0;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}
#tab-reviews .star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  overflow: hidden;
  color: transparent;
  height: 1em;
  padding-top: 1.5em;
}
#tab-reviews .star-rating span::before {
  content: "★★★★★";
  color: #f59e0b;
  letter-spacing: 0;
  position: absolute;
  top: 0;
  left: 0;
}
#respond p.stars {
  display: inline-flex;
  margin: 0 0 0.75rem;
  line-height: 1;
  unicode-bidi: isolate;
  direction: ltr;
}
#respond p.stars span { display: inline-flex; }
/* text-indent:-999em is unsafe here: on RTL it adds ~16000px of horizontal scroll and phones open on the blank area. */
#respond p.stars a {
  position: relative;
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  overflow: hidden;
  color: transparent;
  text-decoration: none;
  cursor: pointer;
}
#respond p.stars a::before {
  content: "★";
  position: absolute;
  inset: 0;
  text-indent: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: #e2e8f0;
}
#respond p.stars:hover a::before { color: #f59e0b; }
#respond p.stars a:hover ~ a::before { color: #e2e8f0; }
#respond p.stars.selected a.active::before,
#respond p.stars.selected a:not(.active)::before { color: #f59e0b; }
#respond p.stars.selected a.active ~ a::before { color: #e2e8f0; }
#respond p.stars.selected:hover a::before { color: #f59e0b; }
#respond p.stars.selected a:hover ~ a::before { color: #e2e8f0; }
#respond #rating { display: none; }

.mm-about-hero__split { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 800px) {
  .mm-about-hero__split { grid-template-columns: 1.2fr 0.8fr; }
}
.mm-about-store { margin: 0; }
.mm-about-store img { width: 100%; height: 100%; border-radius: 16px; object-fit: contain; background: #fff; }

.mm-pdp-related__title { font-size: 1.25rem; font-weight: 800; margin: 0 0 1rem; }

.woocommerce-account .mm-account-content {
  min-width: 0;
  overflow-x: auto;
}
.woocommerce-account table.shop_table {
  width: 100%;
  border-collapse: collapse;
}
@media (max-width: 700px) {
  .woocommerce-account table.shop_table thead { display: none; }
  .woocommerce-account table.shop_table tr {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  .woocommerce-account table.shop_table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: auto;
    border: 0;
    padding: 0.35rem 0;
  }
  .woocommerce-account table.shop_table td::before {
    content: attr(data-title);
    font-weight: 700;
    color: var(--mm-text-muted);
  }
}

/* Pay-for-order (pending payment) — reuses checkout cards */
.mm-order-pay .mm-checkout-pay-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mm-order-pay__lead {
  margin: 0 0 0.5rem;
  color: var(--mm-text-muted);
  line-height: 1.9;
}
.mm-order-pay__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mm-text-muted);
}
.mm-order-pay .mm-checkout-totals__row span:first-child {
  color: var(--mm-text-muted);
}
.mm-order-pay #place_order {
  width: 100%;
}
/* Reminder Novin coupon (hooked on woocommerce_pay_order_before_submit) */
.mm-order-pay .mm-checkout-place {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
}
.mm-order-pay .mm-checkout-place > *:not(.form-row-first):not(.form-row-last) {
  grid-column: 1 / -1;
}
.mm-order-pay .mm-checkout-place > .clear {
  display: none;
}
.mm-order-pay .mm-checkout-place > p.form-row-first,
.mm-order-pay .mm-checkout-place > p.form-row-last {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mm-order-pay .mm-checkout-place #coupon_code {
  width: 100%;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 12px !important;
  background: #fff;
}
.mm-order-pay .mm-checkout-place button[name="apply_coupon"] {
  border: 0 !important;
  border-radius: 0.5rem !important;
  background: var(--mm-steel-700, #1e3a5f) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 0.55rem 0.75rem !important;
  white-space: nowrap;
}
.mm-order-pay .mm-checkout-place #place_order {
  margin-top: 0.5rem !important;
}

/* Digits OTP form inside the account card (moonamo_digits_embed) */
.mm-account-auth--digits .digits_ui,
.mm-account-auth--digits .digits_embed-form {
  width: 100%;
  font-weight: 500;
}
.mm-account-auth--digits .digits-form_container {
  --dprimary: #1d3e61;
  --dtitle: #1d3e61;
  --dfield_bg: var(--mm-steel-50, #f8fafc);
  --daccent: #94a3b8;
  --dform_bg: #fff;
  --dbutton_text: #fff;
  position: relative;
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}
.mm-account-auth--digits .digits-form_container,
.mm-account-auth--digits .digits-form_container * {
  font-family: var(--mm-font-body) !important;
}
.mm-account-auth--digits .digits-form_wrapper {
  width: 100%;
}

/* Step heading: our card already titles step one; later steps keep a compact title + back */
.mm-account-auth--digits .digits-form_heading {
  margin: 0 0 1rem;
  padding-right: 2.25rem !important;
  min-height: 1.75rem;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--mm-steel-700);
}
.mm-account-auth--digits .digits-form_heading:has(.digits_hide_back) {
  display: none;
}
.mm-account-auth--digits .digits_back_icon {
  top: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  color: var(--mm-steel-600);
}

/* Single "با شماره موبایل" tab adds nothing */
.mm-account-auth--digits .digits-form_tab-bar:not(:has(.digits-form_tab-item + .digits-form_tab-item)) {
  display: none;
}
.mm-account-auth--digits .digits-form_tab-bar .digits-form_tab-item {
  font-size: 12px;
  font-weight: 800;
  padding-bottom: 0.35rem;
}

/* Fields — same rounded-xl shell as the theme inputs */
.mm-account-auth--digits .digits-form_input_row {
  margin-bottom: 1rem;
}
.mm-account-auth--digits .digits-form_input label {
  font-size: 12px;
  font-weight: 800;
  color: var(--mm-text-primary);
  margin-bottom: 0.4rem;
}
.mm-account-auth--digits .digits-form_border,
.mm-account-auth--digits .digits-form_input_row:not(.digits-form_border) .digits-form_input input {
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.75rem !important;
  background-color: var(--dfield_bg);
}
.mm-account-auth--digits .digits-form_border .digits-form_input input {
  border: 0 !important;
  background-color: transparent;
}
.mm-account-auth--digits .digits-form_input input,
.mm-account-auth--digits .digits-form_input input[type="text"],
.mm-account-auth--digits .digits-form_input input[type="tel"] {
  height: 2.875rem;
  line-height: 2.875rem;
  min-height: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mm-text-primary);
  box-shadow: none;
}
.mm-account-auth--digits .digits-form_input input::placeholder {
  color: var(--mm-text-muted);
  opacity: 1;
  font-weight: 500;
}
.mm-account-auth--digits .digits-form_border.digits-row_active,
.mm-account-auth--digits .digits-form_border:focus-within,
.mm-account-auth--digits .digits-form_input_row:not(.digits-form_border) .digits-form_input input:focus {
  border-color: var(--mm-steel-300, #94a3b8) !important;
  box-shadow: 0 0 0 3px rgba(41, 82, 127, 0.12);
  background-color: #fff;
}
.mm-account-auth--digits .digits_otp_info {
  font-size: 12px;
}

/* Remember me */
.mm-account-auth--digits .digits-form_rememberme {
  margin: 0.25rem 0 1.25rem;
}
.mm-account-auth--digits .digits-form_rememberme .dig_input_wrapper div {
  font-size: 12px;
  font-weight: 600;
  color: var(--mm-text-secondary);
}

/* CTA — theme gradient button */
.mm-account-auth--digits .digits-form_button,
.mm-account-auth--digits .digits-form_button[type="submit"] {
  height: 2.875rem;
  line-height: 1;
  border-radius: 0.75rem;
  background: linear-gradient(to left, #1d3e61, #29527f);
  color: #fff;
  box-shadow: 0 4px 14px rgba(29, 62, 97, 0.28);
}
.mm-account-auth--digits .digits-form_button:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(29, 62, 97, 0.34);
}
.mm-account-auth--digits .digits-form_button-text {
  font-size: 13px;
  font-weight: 800;
}
.mm-account-auth--digits .digits-form_button_ic {
  width: 1rem;
  height: 1rem;
}
.mm-account-auth--digits .digits-form_footer {
  font-size: 12px;
  text-align: center;
  color: var(--mm-text-secondary);
}
.mm-account-auth--digits .digits-form_footer:empty {
  display: none;
}
.mm-account-auth--digits .digits-form_footer a,
.mm-account-auth--digits .digits-form_resend_otp {
  color: var(--mm-steel-600);
  font-weight: 700;
}
.mm-account-auth--digits .protected_by_digits,
.mm-account-auth--digits .digits_site_logo {
  display: none !important;
}

/* All page 6: one active lightbox medium and consistent weight typography. */
.mm-lightbox__img[hidden], .mm-lightbox__video[hidden], .mm-pdp-player[hidden] { display: none !important; }
.mm-pdp-buybox__weight {
  margin: .4rem 0 .8rem; font-family: var(--mm-font-body); font-size: 12px;
  font-weight: 600; line-height: 1.75; color: var(--mm-text-secondary); font-variant-numeric: tabular-nums;
}
.mm-inline-products {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem;
  margin: 2rem 0; clear: both; text-align: right;
}
.mm-inline-products .mm-product-card { margin: 0; min-width: 0; font-size: 14px; }
.mm-blog-article__body .mm-inline-products a { text-decoration: none; }
.mm-blog-article__body .mm-inline-products img { margin: 0; border-radius: 0; }
.mm-blog-article__body .mm-inline-products p { margin: 0; }
.mm-inline-products .mm-product-card__media { aspect-ratio: 1; }
@media (max-width: 639px) { .mm-inline-products { grid-template-columns: minmax(0,1fr); } }

/* Category-specific sizing help, directly below the price details. */
.mm-pdp-size-guide-link { display: flex; width: fit-content; max-width: 100%; margin: 0.65rem auto 0; text-align: center; line-height: 1.8; }
.mm-pdp-size-guide-link svg { flex-shrink: 0; }
@media (min-width: 1024px) { .mm-pdp-size-guide-link { margin-inline: 0; text-align: start; } }
/* Edit 7.9: modal fits any viewport (phones 320px+, tablets, desktop) and scrolls inside. */
.mm-size-guide { z-index: 2147483647; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); }
.mm-size-guide__panel { width: min(44rem, 100%); max-width: 44rem; display: flex; flex-direction: column; overflow: hidden; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); }
.mm-size-guide .mm-modal__title { min-width: 0; line-height: 1.7; overflow-wrap: anywhere; }
.mm-size-guide .mm-modal__close { flex-shrink: 0; }
.mm-size-guide__content { overflow-wrap: anywhere; }
.mm-size-guide__content table { display: block; max-width: 100%; overflow-x: auto; }
.mm-size-guide__content iframe, .mm-size-guide__content video { max-width: 100%; }
.mm-size-guide .mm-modal__ok { width: auto; margin: 0.25rem 1rem 1rem; }
.mm-size-guide .mm-modal__head { flex-shrink: 0; gap: 0.75rem; }
.mm-size-guide__body { padding: 1.25rem; overflow: auto; overscroll-behavior: contain; min-height: 0; line-height: 2; font-size: 13px; }
.mm-size-guide__content > :first-child { margin-top: 0; }
.mm-size-guide__content ol, .mm-size-guide__content ul { padding-inline-start: 1.5rem; }
.mm-size-guide__content li { margin-bottom: 0.5rem; }
.mm-size-guide__content img { display: block; max-width: 100%; height: auto; margin: 1rem auto; border-radius: 0.5rem; }
.mm-size-guide__table-wrap { max-width: 100%; overflow-x: auto; margin-top: 1.25rem; border: 1px solid #e2e8f0; border-radius: 0.75rem; }
.mm-size-guide__table { width: 100%; border-collapse: collapse; margin: 0; text-align: center; font-size: 12px; }
.mm-size-guide__table th, .mm-size-guide__table td { padding: 0.65rem 0.75rem; border: 0; border-bottom: 1px solid #e2e8f0; min-width: 6rem; }
.mm-size-guide__table th { background: #f1f5f9; font-weight: 800; color: var(--mm-text-primary); }
.mm-size-guide__table tbody tr:nth-child(even) { background: #f8fafc; }
.mm-size-guide__table tbody tr:last-child td { border-bottom: 0; }
.mm-size-guide .mm-modal__ok { flex-shrink: 0; margin-top: 0.25rem; }
.mm-size-guide :focus-visible { outline: 2px solid var(--mm-steel-700); outline-offset: 3px; }
@media (max-width: 480px) {
  .mm-size-guide { padding: 0; align-items: flex-end; }
  .mm-size-guide__panel { max-height: 92vh; max-height: 92dvh; border-radius: 1rem 1rem 0 0; }
  .mm-size-guide__table th, .mm-size-guide__table td { min-width: 4.5rem; }
  .mm-size-guide .mm-modal__head, .mm-size-guide__body { padding: 1rem; }
  .mm-size-guide__table th, .mm-size-guide__table td { padding: 0.5rem; }
}

/* Edit 7.8 — Digikala-style stepper (+ / count / trash at 1, minus above 1), desktop + mobile bar */
.mm-pdp-stepper__trash { display: none; color: #dc2626; }
.is-one > .mm-pdp-stepper .mm-pdp-stepper__trash { display: inline-flex; }
.is-one > .mm-pdp-stepper .mm-pdp-stepper__minus { display: none; }
.mm-pdp-stepper__minus, .mm-pdp-stepper__trash { align-items: center; justify-content: center; }
.mm-pdp-stepper__minus { display: inline-flex; }
.mm-pdp-stepper__btn.is-capped { opacity: 0.35; cursor: not-allowed; }
.mm-pdp-stepper__val { color: var(--mm-steel-700, #1d3e61); }
.mm-pdp-mobile-bar__cart { display: flex; align-items: center; flex-shrink: 0; }
.mm-pdp-mobile-bar__cart .mm-pdp-stepper__btn { width: 2.5rem; height: 2.5rem; }
.mm-pdp-mobile-bar__cart.has-qty .mm-pdp-stepper { display: inline-flex; }
.mm-pdp-mobile-bar__cart.has-qty .mm-pdp-mobile-bar__btn { display: none !important; }

/* Edit 7.12 — weight in "your order": dd wraps its value in <p>; keep label and value on one baseline */
.mm-checkout-line__meta dl,
.mm-checkout-line__meta .variation { align-items: baseline; line-height: 1.6; }
.mm-checkout-line__meta dd p,
.mm-checkout-line__meta dt p { display: inline; margin: 0; padding: 0; }
.mm-checkout-line__meta dd { font-variant-numeric: tabular-nums; }

/* Edit 7.1-b — item data (weight) shared by cart, checkout and mini cart: one line, one baseline */
.mm-item-data { display: flex !important; flex-direction: column; gap: 0.15rem; margin: 0.35rem 0 0 !important; padding: 0; }
.mm-item-data__row { display: flex; align-items: baseline; gap: 0.3rem; flex-wrap: wrap; line-height: 1.7; font-size: 11px; }
.mm-item-data dt, .mm-item-data dd { display: inline !important; float: none !important; margin: 0 !important; padding: 0 !important; line-height: inherit !important; font-size: inherit; vertical-align: baseline; }
.mm-item-data dt { font-weight: 500; color: var(--mm-text-muted, #64748b); }
.mm-item-data dd { font-weight: 700; color: var(--mm-text-primary, #0f172a); font-variant-numeric: tabular-nums; }
.mm-item-data dd p { display: inline; margin: 0; }

/* Edit 7.1-b — cart rows: header columns match the row grid */
.mm-cart-lines__head span:empty { display: none; }
@media (min-width: 640px) {
  .mm-cart-lines__head,
  .mm-cart-line { grid-template-columns: 6rem minmax(0, 1fr) 6.5rem 7.5rem 3.5rem; column-gap: 1rem; }
  .mm-cart-lines__head { padding: 0 1rem; align-items: end; }
  .mm-cart-lines__head span:empty { display: block; }
  .mm-cart-lines__head span:nth-child(1) { grid-column: 1 / 3; text-align: right; }
  .mm-cart-lines__head span:nth-child(2) { grid-column: 3; text-align: center; }
  .mm-cart-lines__head span:nth-child(3) { grid-column: 4; text-align: center; }
  .mm-cart-lines__head span:nth-child(4) { grid-column: 5; }
  .mm-cart-line__controls { display: contents; }
  .mm-cart-line__controls > .mm-qty { grid-column: 3; justify-self: center; }
  .mm-cart-line__subtotal { grid-column: 4; justify-self: center; min-width: 0; white-space: nowrap; }
  .mm-cart-line__remove { grid-column: 5; justify-self: end; }
}
@media (max-width: 639.98px) {
  .mm-cart-line { display: grid; grid-template-columns: 5rem minmax(0, 1fr); align-items: start; }
  .mm-cart-line__controls { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.75rem; border-top: 1px dashed #e2e8f0; }
  .mm-cart-line__subtotal { margin-inline-start: auto; }
}
.mm-cart-line__subtotal .woocommerce-Price-amount { font-weight: 800; }
