/* SECTION: Base */
.mm2 {
  --mm2-bg: #ffffff;
  --mm2-card: #ffffff;
  --mm2-line: #ececec;
  --mm2-text: #171717;
  --mm2-muted: #6f7280;
  --mm2-black: #111111;
  --mm2-white: #ffffff;
  --mm2-success: #0b7a31;
  --mm2-error: #b42318;
  --mm2-info: #666666;

  --mm2-green: #008000;
  --mm2-green-hover: #006d00;
  --mm2-helper: #4f545b;
  --mm2-helper-hover: #44484e;
  --mm2-option-border: #9599ae;
  --mm2-option-bg: #ffffff;
  --mm2-option-active-text: #ffffff;
  --mm2-option-active-bg: #171717;
  --mm2-option-active-border: #171717;

  width: 100%;
  max-width: 1120px;
  margin: 0 0 24px;
  padding: 0;

  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* SECTION: Item */
.mm2 .mm2-item {
  margin: 0;
}

/* SECTION: Card */
.mm2 .mm2-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: start;

  padding: 22px;
  margin: 0;

  border: 1px solid var(--mm2-line);
  background: var(--mm2-card);
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(15, 15, 16, 0.04);
  transform: none;
  transition: none;

  pointer-events: none;
}

.mm2 .mm2-card.is-unavailable {
  border-color: #d9dde5;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 58%, #f1f3f6 100%);
  box-shadow: 0 8px 26px rgba(15, 15, 16, 0.07);
}

.mm2 .mm2-card.is-unavailable .mm2-media,
.mm2 .mm2-card.is-unavailable .mm2-price,
.mm2 .mm2-card.is-unavailable .mm2-specs,
.mm2 .mm2-card.is-unavailable .mm2-helper-slot {
  opacity: 0.56;
  filter: grayscale(1);
}

.mm2 .mm2-card.is-unavailable .mm2-title a {
  pointer-events: none;
  text-decoration: none;
}

.mm2 .mm2-card.is-unavailable .mm2-btn {
  opacity: 1;
  background: #eef0f4;
  color: #5f6673;
  box-shadow: inset 0 0 0 1px #d9dde5;
}

.mm2 .mm2-card.is-unavailable .mm2-btn:hover {
  background: #eef0f4;
  transform: none;
}

/* SECTION: Interactive */
.mm2 .mm2-card a,
.mm2 .mm2-card button {
  pointer-events: auto;
}

/* SECTION: Media */
.mm2 .mm2-media {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.mm2 .mm2-img,
.mm2 .mm2-ph {
  display: block;
  width: 100%;
  max-width: 170px;
  height: auto;
  margin: 0;

  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.mm2 .mm2-ph {
  min-height: 185px;
}

.mm2 .mm2-unavailable-art {
  position: relative;
  width: 100%;
  max-width: 170px;
  min-height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed #cfd4dd;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(238, 240, 244, 0.9)),
    repeating-linear-gradient(-45deg, rgba(23, 23, 23, 0.045) 0 8px, transparent 8px 16px);
}

.mm2 .mm2-unavailable-art-line {
  position: absolute;
  width: 150%;
  height: 2px;
  background: #b8bec9;
  transform: rotate(-35deg);
}

.mm2 .mm2-unavailable-art-text {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #5f6673;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 5px 14px rgba(15, 15, 16, 0.08);
}

/* SECTION: Main */
.mm2 .mm2-main {
  min-width: 0;
}

/* SECTION: Title */
.mm2 .mm2-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 8px;
}

.mm2 .mm2-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-transform: none;
  color: var(--mm2-text);
}

.mm2 .mm2-title a {
  color: inherit;
  text-decoration: none;
}

.mm2 .mm2-title a:hover {
  text-decoration: underline;
}

.mm2 .mm2-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-top: 2px;
  flex: 0 0 auto;
  border: 1px solid #d9dde5;
  border-radius: 999px;
  background: #ffffff;
  color: #596170;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* SECTION: Price */
.mm2 .mm2-price {
  margin: 0 0 20px;
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--mm2-text);
}

/* SECTION: Specs */
.mm2 .mm2-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 22px;
  margin: 0 0 24px;
}

.mm2 .mm2-spec {
  min-width: 0;
}

.mm2 .mm2-spec-label {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--mm2-text);
}

.mm2 .mm2-spec-value {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--mm2-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* SECTION: Variants */
.mm2 .mm2-variants {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 22px;
}

.mm2 .mm2-choice-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mm2 .mm2-choice-label {
  margin: 0;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #222222;
}

.mm2 .mm2-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mm2 .mm2-option {
  min-width: 64px;
  height: 46px;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--mm2-option-border);
  border-radius: 12px;
  background: var(--mm2-option-bg);
  color: #73778a;

  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;

  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mm2 .mm2-option:hover {
  border-color: #7f8499;
  transform: translateY(-1px);
}

.mm2 .mm2-option.is-active {
  border-color: var(--mm2-option-active-border);
  background: var(--mm2-option-active-bg);
  color: var(--mm2-option-active-text);
}

/* SECTION: Helper */
.mm2 .mm2-helper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  padding: 0 18px;
  margin-top: 2px;

  border: 0;
  border-radius: 999px;
  background: var(--mm2-helper);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);

  transition: background-color 0.18s ease, transform 0.18s ease;
  cursor: pointer;
}

.mm2 .mm2-helper-btn:hover {
  background: var(--mm2-helper-hover);
  transform: translateY(-1px);
}

.mm2 .mm2-helper-btn-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #ffffff;
}

.mm2 .mm2-helper-btn-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.mm2 .mm2-helper-btn-text {
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}


/* SECTION: Helper slot */
.mm2 .mm2-helper-slot {
  display: flex;
  align-items: center;
  min-height: 0;
  margin: 0 0 18px;
}

.mm2 .mm2-helper-slot:empty {
  display: none;
}

/* SECTION: Actions */
.mm2 .mm2-actions {
  display: flex;
  align-items: center;
}

.mm2 .mm2-btn {
  min-width: 260px;
  height: 58px;
  padding: 0 26px;

  border: 0;
  border-radius: 999px;
  background: var(--mm2-green);
  color: var(--mm2-white);

  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  text-transform: none;
  cursor: pointer;

  box-shadow: 0 8px 18px rgba(0, 128, 0, 0.16);
  transition: background-color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
}

.mm2 .mm2-btn:hover {
  background: var(--mm2-green-hover);
  transform: translateY(-1px);
}

.mm2 .mm2-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* SECTION: Message */
.mm2 .mm2-msg {
  margin-top: 10px;
  min-height: 20px;
  font-size: 13px;
  line-height: 1.4;
}

.mm2 .mm2-msg:empty {
  display: none;
}

.mm2 .mm2-msg[data-state="success"] {
  color: var(--mm2-success);
}

.mm2 .mm2-msg[data-state="error"] {
  color: var(--mm2-error);
}

.mm2 .mm2-msg[data-state="info"] {
  color: var(--mm2-info);
}

/* SECTION: Error */
.mm2 .mm2-err {
  padding: 16px 18px;
  border: 1px solid #efc2c2;
  background: #fff4f4;
  color: #9f1f1f;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 16px;
}

/* SECTION: Spacing */
.mm2 {
  margin-bottom: 24px !important;
}

/* SECTION: Parent product hide */
body.mm2-parent-product .mm2-hide-self {
  display: none !important;
}

/* SECTION: Helper modal */
body.mm2-modal-open {
  overflow: hidden;
}

.mm2-size-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.mm2-size-modal.is-open {
  display: block;
}

.mm2-size-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.mm2-size-modal__dialog {
  position: relative;
  width: min(1100px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.mm2-size-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.mm2-size-modal__body {
  padding: 24px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #ffffff;
  color: #171717;
}

.mm2-size-modal__body img {
  max-width: 100%;
  height: auto;
}

.mm2-size-modal__body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.mm2-size-modal__body td,
.mm2-size-modal__body th {
  vertical-align: top;
}

.mm2-size-modal__body h1,
.mm2-size-modal__body h2,
.mm2-size-modal__body h3,
.mm2-size-modal__body h4 {
  color: #171717;
}

.mm2-size-modal__body .modal-content {
  max-width: 100%;
}

/* SECTION: Tablet */
@media (max-width: 980px) {
  .mm2 .mm2-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    border-radius: 20px;
  }

  .mm2 .mm2-media {
    justify-content: flex-start;
  }

  .mm2 .mm2-img,
  .mm2 .mm2-ph,
  .mm2 .mm2-unavailable-art {
    max-width: 170px;
  }

  .mm2 .mm2-title {
    font-size: 24px;
  }

  .mm2 .mm2-price {
    margin-bottom: 18px;
    font-size: 21px;
  }

  .mm2 .mm2-specs {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px 18px;
    margin-bottom: 22px;
  }

  .mm2 .mm2-btn {
    width: 100%;
    min-width: 0;
  }
}

/* SECTION: Mobile */
@media (max-width: 640px) {
  .mm2 {
    gap: 16px;
  }

  .mm2 .mm2-card {
    padding: 16px;
    border-radius: 18px;
    gap: 18px;
  }

  .mm2 .mm2-title {
    font-size: 22px;
  }

  .mm2 .mm2-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .mm2 .mm2-status-badge {
    min-height: 26px;
    font-size: 11px;
  }

  .mm2 .mm2-unavailable-art {
    min-height: 150px;
  }

  .mm2 .mm2-price {
    font-size: 20px;
  }

  .mm2 .mm2-specs {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }

  .mm2 .mm2-spec-label {
    font-size: 12px;
  }

  .mm2 .mm2-spec-value {
    font-size: 15px;
  }

  .mm2 .mm2-option-grid {
    gap: 8px;
  }

  .mm2 .mm2-option {
    min-width: 58px;
    height: 42px;
    padding: 0 12px;
    font-size: 15px;
    border-radius: 10px;
  }

  .mm2 .mm2-helper-slot {
    margin-bottom: 16px;
  }

  .mm2 .mm2-helper-btn {
    width: 100%;
    justify-content: center;
    padding: 0 16px;
    min-height: 40px;
  }

  .mm2 .mm2-helper-btn-text {
    font-size: 14px;
  }

  .mm2 .mm2-btn {
    width: 100%;
    min-width: 0;
    height: 54px;
    font-size: 16px;
    padding: 0 22px;
  }

  .mm2-size-modal__dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 16px;
  }

  .mm2-size-modal__body {
    padding: 18px;
    max-height: calc(100vh - 16px);
  }

  .mm2-size-modal__close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }
}


body.mm2-parent-product .product-detail-info{
  display:none!important;
}
