/**
 * POD セット（PODミックス）の商品ページ（template-parts/pod-mix/pdp.php と対）。
 * XD mymoods_detail6 の PC_detail（1440 幅・中身 1200）と SP_detail_1・2・– 2（375 幅）。
 * 購入バーとフレーバー選択は assets/pod-mix-builder.css。
 */

.mymoods-pdp.mm-pmx {
  display: flex;
  flex-direction: column;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  color: #111;
}

/* パンくず（PC は上、SP は下＝SP_detail_1 の並び） */
.mm-pmx-crumb {
  order: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin: 0 0 14px;
  font-size: 11px;
  line-height: 14px;
  color: #6b6b6b;
}

.mm-pmx-crumb a {
  color: inherit;
  text-decoration: none;
}

.mm-pmx-crumb a:hover {
  text-decoration: underline;
}

.mm-pmx-top {
  order: 1;
  display: grid;
  grid-template-columns: minmax(0, 660fr) minmax(0, 480fr);
  gap: 60px;
  align-items: start;
}

.mm-pmx-about {
  order: 2;
}

.mm-pmx-reviews {
  order: 3;
}

.mm-pmx .mm-review-form {
  order: 5;
}

/* ─────────── ギャラリー ─────────── */

.mm-pmx-media {
  position: sticky;
  top: 24px;
  min-width: 0;
}

.mm-pmx .mm-pmx-gallery .mymoods-pdp__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

/* PC はサムネイルで送るので、矢印とドットは出さない（PC_detail）。フリック・キーボードは効く。 */
.mm-pmx .mm-pmx-gallery .mymoods-pdp__dots,
.mm-pmx .mm-pmx-gallery .mymoods-pdp__nav {
  display: none;
}

.mm-pmx-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.mm-pmx-thumbs__btn {
  display: block;
  width: 66px;
  height: 66px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #e9e9e9;
  cursor: pointer;
}

.mm-pmx-thumbs__btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mm-pmx-thumbs__btn.is-active {
  outline: 2px solid #111;
  outline-offset: 2px;
}

/* ─────────── 商品の情報 ─────────── */

.mm-pmx-info {
  min-width: 0;
}

.mm-pmx-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mm-pmx-badge {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 14px;
  border-radius: 14px;
  background: #1a1818;
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.mm-pmx-badge--sale {
  background: #f93232;
}

.mm-pmx-title {
  margin: 18px 0 8px;
  font-size: 32px;
  font-weight: 600;
  line-height: 39px;
  letter-spacing: -0.01em;
  color: #111;
}

.mm-pmx-lead {
  margin: 0;
  font-size: 13px;
  line-height: 16px;
  color: #989898;
}

.mm-pmx-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 22px 0 0;
}

.mm-pmx-price__amount {
  font-size: 32px;
  font-weight: 800;
  line-height: 39px;
  letter-spacing: -0.02em;
}

.mm-pmx-price__amount .woocommerce-Price-amount {
  font: inherit;
}

.mm-pmx-price__note {
  font-size: 11px;
  color: #989898;
}

.mm-pmx-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: #222;
  text-decoration: none;
}

.mm-pmx-rating__avg {
  padding-right: 10px;
  border-right: 1px solid #222;
  line-height: 14px;
}

.mm-pmx-rating__count {
  text-decoration: underline;
}

.mm-pmx-buy {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}

.mm-pmx-buy .mm-pm {
  margin: 0;
}

/* 特典（PC は 2×2・SP は 1 列） */
.mm-pmx-perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.mm-pmx-perk {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #000;
  text-decoration: none;
}

.mm-pmx-perk:hover .mm-pmx-perk__text {
  text-decoration: underline;
}

.mm-pmx-perk__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.mm-pmx-perk__icon img {
  display: block;
  max-width: 100%;
  max-height: 34px;
  width: auto;
  height: auto;
}

.mm-pmx-perk__text {
  font-size: 12px;
  line-height: 18px;
}

.mm-pmx-perk__text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* 割引率の表（＋で開く） */
.mm-pmx-tiers {
  margin-top: 32px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  background: #fff;
}

.mm-pmx-tiers__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px;
  font-size: 12px;
  line-height: 16px;
  color: #2c2c2c;
  list-style: none;
  cursor: pointer;
}

.mm-pmx-tiers__summary::-webkit-details-marker {
  display: none;
}

.mm-pmx-tiers__icon,
.mm-pmx-tiers__icon:empty {
  position: relative;
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
}

.mm-pmx-tiers__icon::before,
.mm-pmx-tiers__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 1.5px;
  background: #2c2c2c;
  transform: translateY(-50%);
}

.mm-pmx-tiers__icon::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.2s;
}

.mm-pmx-tiers[open] .mm-pmx-tiers__icon::after {
  transform: translateY(-50%) rotate(0deg);
}

.mm-pmx-tiers__list {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0 18px 22px;
  list-style: none;
}

.mm-pmx-tiers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.mm-pmx-tiers__qty {
  font-size: 11px;
  line-height: 14px;
  color: #6b7280;
}

.mm-pmx-tiers__off {
  font-size: 10px;
  line-height: 12px;
  color: #f93232;
  white-space: nowrap;
}

/* 割引後の金額の端数（切り上げ）の注記。2026-11-21 */
.mm-pmx-tiers__note {
  margin: -10px 0 0;
  padding: 0 18px 18px;
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
}

/* 送料の注記 */
.mm-pmx-shipnote {
  margin: 12px 0 0;
  padding: 16px 18px;
  border: 1px solid #d9d9d9;
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
  line-height: 18px;
  color: #1a1a1a;
}

.mm-pmx-shipnote strong {
  display: block;
  margin-bottom: 2px;
  color: #ba2f2f;
}

.mm-pmx-shipnote a {
  color: inherit;
}

/* ─────────── 商品について（PC_detail: 2 列・行の高さ 64px・上の線 #e3e3e3） ─────────── */

.mm-pmx-about {
  margin-top: 96px;
}

.mm-pmx-h2,
.mm-pmx .mm-pmx-h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 26px;
  color: #111;
}

.mm-pmx-acc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 60px;
  align-items: start;
}

.mm-pmx-acc__col {
  border-bottom: 1px solid #e3e3e3;
}

.mm-pmx .mm-pmx-acc .product__accordion {
  margin: 0;
  border: 0;
  border-top: 1px solid #e3e3e3;
}

.mm-pmx .mm-pmx-acc .summary__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0;
  list-style: none;
  cursor: pointer;
}

.mm-pmx .mm-pmx-acc .summary__title::-webkit-details-marker {
  display: none;
}

.mm-pmx .mm-pmx-acc .summary__title .h5 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 19px;
  letter-spacing: 0;
  color: #111;
}

/* ＋ / − （開くと − ） */
.mm-pmx .mm-pmx-acc .accordion__icon,
.mm-pmx .mm-pmx-acc .accordion__icon:empty,
.mm-pmx-acc-icon,
.mm-pmx-acc-icon:empty {
  position: relative;
  display: block;
  flex: none;
  width: 14px;
  height: 14px;
  margin: 0 0 0 16px;
  background: none;
  transform: none;
}

.mm-pmx .mm-pmx-acc .accordion__icon::before,
.mm-pmx .mm-pmx-acc .accordion__icon::after,
.mm-pmx-acc-icon::before,
.mm-pmx-acc-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 1.6px;
  background: #111;
  transform: translateY(-50%);
}

.mm-pmx .mm-pmx-acc .accordion__icon::after,
.mm-pmx-acc-icon::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 0.2s;
}

.mm-pmx .mm-pmx-acc details[open] .accordion__icon::after,
.mm-pmx-reviews[open] .mm-pmx-acc-icon::after {
  transform: translateY(-50%) rotate(0deg);
}

.mm-pmx .mm-pmx-acc .accordion__content {
  padding: 0 0 24px;
  font-size: 13px;
  line-height: 1.8;
}

/* ─────────── レビュー（PC_detail: 左 360px に集計・右 780px に一覧） ─────────── */

.mm-pmx-reviews {
  margin-top: 64px;
}

.mm-pmx-reviews__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.mm-pmx-reviews__summary::-webkit-details-marker {
  display: none;
}

.mm-pmx-reviews__summary .mm-pmx-h2 {
  margin: 0;
}

.mm-pmx .mm-reviews {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  grid-template-areas:
    "summary list"
    "toolbar list"
    ".       list"
    ".       more";
  grid-template-rows: auto auto 1fr auto;
  gap: 0 60px;
  align-items: start;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.mm-pmx .mm-reviews__title,
.mm-pmx .mm-reviews__tabs,
.mm-pmx .mm-reviews__score-of {
  display: none;
}

.mm-pmx .mm-reviews__summary {
  grid-area: summary;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
}

.mm-pmx .mm-reviews__score {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.mm-pmx .mm-reviews__score-value {
  margin: 0;
}

.mm-pmx .mm-reviews__score-num {
  font-size: 38px;
  font-weight: 400;
  line-height: 55px;
  color: #111;
}

.mm-pmx .mm-reviews__score-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.mm-pmx .mm-reviews__score-head .mm-stars {
  color: #fb8904;
}

.mm-pmx .mm-reviews__total {
  font-size: 11px;
  color: #6b6b6b;
}

.mm-pmx .mm-reviews__bars {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.mm-pmx .mm-reviews__bar-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

.mm-pmx .mm-reviews__bar-label,
.mm-pmx .mm-reviews__bar-count {
  font-size: 12px;
  line-height: 17px;
  color: #6b6b6b;
}

.mm-pmx .mm-reviews__bar-count {
  text-align: right;
}

.mm-pmx .mm-reviews__bar-track {
  height: 10px;
  border-radius: 5px;
  background: #eaeaea;
}

.mm-pmx .mm-reviews__bar-fill {
  height: 100%;
  border-radius: 5px;
  background: #111;
}

/* いちばん上（★5）だけ橙（XD どおり） */
.mm-pmx .mm-reviews__bar-row:first-child .mm-reviews__bar-fill {
  background: #fb8904;
}

.mm-pmx .mm-reviews__toolbar {
  grid-area: toolbar;
  display: block;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.mm-pmx .mm-reviews__actions {
  display: block;
}

.mm-pmx .mm-reviews__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.mm-pmx .mm-reviews__action:hover {
  opacity: 0.85;
  color: #fff;
}

.mm-pmx .mm-reviews__write-note {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  color: #6b6b6b;
}

.mm-pmx .mm-reviews__list {
  grid-area: list;
  display: grid;
  gap: 12px;
  margin: 0;
}

.mm-pmx .mm-reviews__empty {
  grid-area: list;
  margin: 0;
}

.mm-pmx .mm-review,
.mm-pmx .mm-review + .mm-review {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fff;
}

.mm-pmx .mm-review__rating .mm-stars {
  color: #fb8904;
}

.mm-pmx .mm-review__title {
  margin: 10px 0 6px;
  font-size: 15px;
  font-weight: 400;
  line-height: 21px;
  color: #111;
}

.mm-pmx .mm-review__body {
  font-size: 12px;
  line-height: 17px;
  color: #6b6b6b;
}

.mm-pmx .mm-review__meta {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 16px;
  color: #9a9a9a;
}

.mm-pmx .mm-reviews__more {
  grid-area: more;
  justify-self: center;
  width: 335px;
  max-width: 100%;
  height: 48px;
  margin: 24px 0 0;
  border: 1px solid #707070;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 14px;
}

@media screen and (min-width: 990px) {
  .mm-pmx-pc {
    display: inline;
  }

  /* PC のレビューは見出し付きの欄。見出しを押しても閉じない（開いたまま）。 */
  .mm-pmx-reviews__summary {
    pointer-events: none;
  }

  .mm-pmx-reviews__summary .mm-pmx-acc-icon {
    display: none;
  }
}

/* ─────────── SP ─────────── */
@media screen and (max-width: 989px) {
  .mymoods-pdp.mm-pmx {
    padding: 0 20px 40px;
  }

  .mm-pmx-crumb {
    order: 4;
    margin: 28px 0 0;
  }

  .mm-pmx-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  /* 画面の端から端まで（外側のページの余白にかかわらず、ビューポート基準で広げる）。 */
  .mm-pmx-media {
    position: static;
    margin: 0 calc(50% - 50vw);
  }

  .mm-pmx .mm-pmx-gallery .mymoods-pdp__image {
    border-radius: 0;
  }

  .mm-pmx-thumbs {
    display: none;
  }

  .mm-pmx .mm-pmx-gallery .mymoods-pdp__dots {
    display: flex;
    margin-top: 8px;
  }

  .mm-pmx-info {
    padding-top: 40px;
  }

  .mm-pmx-title {
    margin-top: 12px;
    font-size: 26px;
    line-height: 31px;
  }

  .mm-pmx-lead {
    font-size: 11px;
    line-height: 14px;
  }

  .mm-pmx-price {
    margin-top: 26px;
  }

  .mm-pmx-price__amount {
    font-size: 25px;
    line-height: 30px;
  }

  /* SP の購入バーは画面下に固定なので、ここに残るのはモーダルの起点だけ。 */
  .mm-pmx-buy {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .mm-pmx-pc {
    display: none;
  }

  .mm-pmx-perks {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 40px;
  }

  .mm-pmx-perk {
    gap: 12px;
  }

  .mm-pmx-perk__icon {
    width: 30px;
    height: 30px;
  }

  .mm-pmx-perk__text {
    letter-spacing: -0.02em;
  }

  .mm-pmx-perk__icon img {
    max-height: 24px;
  }

  .mm-pmx-tiers {
    margin-top: 28px;
  }

  .mm-pmx-tiers__summary {
    padding: 18px 18px 18px 18px;
    font-size: 12px;
  }

  .mm-pmx-tiers__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .mm-pmx-about {
    margin-top: 40px;
  }

  /* SP は見出し無しで説明のアコーディオンが 1 列に続き、最後の行が「お客様のレビュー」（SP_detail_1）。 */
  .mm-pmx-about > .mm-pmx-h2 {
    display: none;
  }

  .mm-pmx-acc {
    grid-template-columns: minmax(0, 1fr);
  }

  .mm-pmx-acc__col {
    border-bottom: 0;
  }

  .mm-pmx-reviews {
    margin-top: 0;
    border-top: 1px solid #e3e3e3;
  }

  .mm-pmx-reviews__summary {
    min-height: 64px;
    cursor: pointer;
  }

  .mm-pmx-reviews__summary .mm-pmx-h2 {
    font-size: 15px;
    font-weight: 400;
    line-height: 19px;
  }

  .mm-pmx .mm-reviews {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "summary"
      "toolbar"
      "list"
      "more";
    grid-template-rows: none;
    margin-top: 8px;
  }

  .mm-pmx .mm-reviews__toolbar {
    margin: 24px 0 24px;
  }

  .mm-pmx .mm-reviews__more {
    width: 100%;
  }
}

/* ─────────── 2026-11-20: 特典 4 つを「押せるカード」に（枠・右端の矢印・ホバー） ─────────── */

.mm-pmx-perks {
  gap: 10px;
}

.mm-pmx-perk {
  height: 100%;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  gap: 10px;
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.mm-pmx-perk__text {
  flex: 1 1 auto;
  min-width: 0;
}

.mm-pmx-perk__arrow {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  transition: transform 0.15s;
}

.mm-pmx-perk__arrow svg {
  display: block;
  width: 9px;
  height: 9px;
}

.mm-pmx-perk:hover,
.mm-pmx-perk:focus-visible {
  border-color: #111;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.mm-pmx-perk:hover .mm-pmx-perk__text {
  text-decoration: none;
}

.mm-pmx-perk:hover .mm-pmx-perk__arrow {
  transform: translateX(2px);
}

.mm-pmx-perk__icon {
  width: 36px;
  height: 36px;
}

.mm-pmx-perk__icon img {
  max-height: 28px;
}

@media screen and (max-width: 989px) {
  .mm-pmx-perks {
    gap: 8px;
  }

  .mm-pmx-perk {
    min-height: 52px;
    padding: 8px 12px;
  }

  .mm-pmx-perk__icon {
    width: 30px;
    height: 30px;
  }

  .mm-pmx-perk__icon img {
    max-height: 24px;
  }
}
