/* ================================================
   FESN ONLINE SHOP &#8212; 商品詳細ページ CSS
   Direction: Editorial Luxury Minimal
   ================================================ */

/* --- Product container --- */
.p-product { margin-bottom: 0; }

/* --- Breadcrumb top spacing --- */
/* .c-breadcrumbs { padding-top: 15px; } */
/* 全画面で非表示（復活時は上のpadding-topも戻す） */
.c-breadcrumbs { display: none; }
/* @media screen and (max-width: 768px) {
  .c-breadcrumbs { display: none; }
} */

/* --- Form elements --- */
.p-product select {
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  padding: 0 20px;
  font-family: var(--font-main);
  font-size: 13px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-bg);
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.p-product select:focus {
  border-color: var(--color-text);
  outline: none;
}
.p-product input[type=text] {
  box-sizing: border-box;
  height: 48px;
  padding: 0 16px;
  font-family: var(--font-main);
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: border-color var(--transition);
}
.p-product input[type=text]:focus {
  border-color: var(--color-text);
  outline: none;
}

/* --- Main layout: image + info --- */
.p-product-main {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: 80px;
  padding: 40px 0 80px;
}
@media screen and (max-width: 1024px) {
  .p-product-main {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 24px 0 60px;
  }
}
@media screen and (max-width: 768px) {
  .p-product-main {
    padding-bottom: 24px;
  }
}

/* --- Gallery --- */
.p-product-img {
  width: auto;
  min-width: 0;
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-height) + var(--nav-height) + 24px);
  align-self: start;
}
/* デスクトップ: 画像セクション全体をビューポート内に収める */
@media screen and (min-width: 1025px) {
  /* ビューポート高さ依存をやめ、画像は1:1の固定比で表示（PC差による下部切れ防止） */
  .p-product-img { display: block; }
}
@media screen and (max-width: 1024px) {
  .p-product-img {
    position: static;
    margin-bottom: 0;
  }
}
@media screen and (max-width: 768px) {
  .p-product-img {
    margin-left: -20px;
    margin-right: -20px;
  }
}

.p-product-img__main { text-align: center; overflow: hidden; }
/* デスクトップ: 残り縦空間をすべてメイン画像に割り当て */
@media screen and (min-width: 1025px) {
  .p-product-img__main {
    flex: 1;
    min-height: 0;
  }
}
@media screen and (max-width: 1024px) {
  .p-product-img__main { width: auto; margin: 0; }
}
.p-product-img__main-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-subtle);
}
/* デスクトップ: aspect-ratio を解除して親の高さに追従 */
@media screen and (min-width: 1025px) {
  .p-product-img__main-item { aspect-ratio: 1 / 1; height: auto; }
}
.p-product-img__main-item:before { display: none; }
.p-product-img__main-item img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 100%;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  margin: 0;
}
@keyframes kbEnter {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}
.p-product-img__main-item.is-entering img {
  animation: kbEnter 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
/* Fade mode: スライダーコンテナの高さ（モバイル/タブレットはアスペクト比維持） */
.p-product-img__main .slick-list {
  aspect-ratio: 1 / 1;
}
/* デスクトップ: aspect-ratio を解除して flex 高さに追従 */
@media screen and (min-width: 1025px) {
  .p-product-img__main .slick-list { aspect-ratio: 1 / 1 !important; height: auto !important; }
}

/* Thumbnails */
.p-product-thumb-list-wrap {
  position: relative;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* デスクトップはアローボタンがあるのでフェードグラジェント不要 */
@media screen and (min-width: 1025px) {
  .p-product-thumb-list-wrap::after { display: none; }
}
@media screen and (max-width: 1024px) {
  .p-product-thumb-list-wrap::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 32px; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.85));
    pointer-events: none;
    transition: opacity .2s;
  }
}

/* サムネイル矢印ボタン */
.p-thumb-arrow {
  flex-shrink: 0;
  width: 26px;
  height: 72px;
  background: none;
  border: 1px solid var(--color-border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
  color: var(--color-text);
  padding: 0;
}
.p-thumb-arrow:hover:not(:disabled) {
  border-color: var(--color-text);
  background: var(--color-text);
  color: #fff;
}
.p-thumb-arrow:disabled {
  opacity: 0.22;
  cursor: default;
}
.p-thumb-arrow svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
/* モバイル: 非表示（自然スクロール） */
@media screen and (max-width: 1024px) {
  .p-thumb-arrow { display: none; }
}
.p-product-thumb-list {
  display: flex;
  gap: 6px;
  margin-top: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.p-product-thumb-list::-webkit-scrollbar { display: none; }
.p-product-thumb-list__item {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transform: scale(0.94);
  transition: opacity 0.25s ease, transform 0.25s ease;
  position: relative;
}
.p-product-thumb-list__item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--color-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.p-product-thumb-list__item:hover {
  opacity: 0.82;
  transform: scale(1) translateY(-2px);
}
.p-product-thumb-list__item.is-current {
  opacity: 1;
  transform: scale(1);
}
.p-product-thumb-list__item.is-current::after {
  transform: scaleX(1);
}
.p-product-thumb-list__img {
  position: relative;
  width: 100%;
  height: 100%;
}
.p-product-thumb-list__img:before { display: none; }
.p-product-thumb-list__img img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 100%;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  margin: 0;
}

/* Slider arrows &#8212; カスタムHTML（Slickデフォルト完全置換） */
.fesn-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 72px;
  background: rgba(255,255,255,0.88);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease, background 0.18s ease;
  padding: 0;
}
.fesn-arrow--prev { left: 0; }
.fesn-arrow--next { right: 0; }
.p-product-img__main:hover .fesn-arrow { opacity: 1; }
.fesn-arrow:hover { background: rgba(255,255,255,1); }
.fesn-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  overflow: visible;
}
.fesn-arrow svg polyline {
  stroke: #111;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Slickがfesnアローにslick-prev/nextクラスを追加するため上書きリセット */
.fesn-arrow.slick-prev,
.fesn-arrow.slick-next {
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 40px !important;
  height: 72px !important;
  background: rgba(255,255,255,0.88) !important;
  border: none !important;
  border-radius: 0 !important;
  font-size: 0 !important;
}
.fesn-arrow--prev.slick-prev { left: 0 !important; }
.fesn-arrow--next.slick-next { right: 0 !important; }
.fesn-arrow.slick-prev:before,
.fesn-arrow.slick-next:before {
  content: none !important;
  display: none !important;
}

/* --- Product info --- */
.p-product-info {
  width: auto;
  min-width: 0;
  padding-top: 8px;
}
.p-product-info__ttl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.p-product-brand {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #111;
  background: transparent;
  border: 1.5px solid #111;
  padding: 4px 10px 3px;
  line-height: 1;
}
.p-product-badges {
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-product-id-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #777;
  border-bottom: 1px solid #aaa;
  padding: 4px 2px 3px;
  line-height: 1;
  text-transform: uppercase;
}
.p-product-name-text {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.03em;
}
@media screen and (max-width: 768px) {
  .p-product-info__ttl { font-size: 17px; }
}
.p-product-info__ttl img { vertical-align: middle; }
.p-product-info__id {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 16px;
}

/* --- Price --- */
.p-product-price {
  margin-bottom: 20px;
  padding-bottom: 0;
}
.p-product-price__sell {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.p-product-price__sell span { margin-left: 8px; }
.p-product-price__yen {
  font-size: 0.72em;
  font-weight: 500;
  margin-right: 1px;
  vertical-align: baseline;
}
.p-product-price__tax {
  font-size: 11px;
  font-weight: 400;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  margin-left: 5px;
}
.p-product-price__normal {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 6px;
}

/* --- Option: sr-only hide (display:none禁止) --- */
.p-product-option {
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid #C0C0BE;
}
#prd-opt-table,
#prd-opt-select,
.p-product-option-tbl,
.p-product-option-select {
  /* JS変換後に非表示。JSが読み込まれない場合はフォールバック表示 */
}
.opt-buttons-ready .p-product-option-tbl,
.opt-buttons-ready .p-product-option-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* --- Option Button UI --- */
.opt-picker { margin-bottom: 16px; }
.opt-picker:last-child { margin-bottom: 0; }
.opt-picker__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  color: var(--color-text);
  text-transform: uppercase;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.opt-picker__label-name {
  color: var(--color-text);
  font-size: 11px;
}
.opt-picker__label-name::after {
  content: ':';
  color: var(--color-text-muted);
  font-weight: 400;
}
.opt-picker__selected-name {
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.04em;
  font-size: 13px;
  text-transform: none;
}
.opt-picker__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.opt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 40px;
  padding: 0 16px;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid #C0C0BE;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  position: relative;
}
.opt-btn:hover {
  border-color: var(--color-text);
  background: #F0F0EE;
}
.opt-btn:active {
  transform: scale(0.94);
}
.opt-btn.is-selected {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
}
.opt-btn.is-soldout {
  color: var(--color-text-muted);
  border-color: var(--color-border);
  position: relative;
  cursor: default;
}
.opt-btn.is-soldout::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 6px;
  right: 6px;
  height: 1px;
  background: var(--color-text-muted);
  opacity: 0.6;
}
.opt-btn.is-soldout:hover {
  border-color: var(--color-text-muted);
}
.opt-btn.is-soldout.is-selected {
  background: var(--color-text-muted);
  color: var(--color-bg);
  border-color: var(--color-text-muted);
}

/* 価格・在庫結果表示 */
.opt-result {
  margin-top: 16px;
  min-height: 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.opt-result__price {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.opt-result__stock {
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.opt-result__stock.is-soldout {
  color: var(--color-soldout, #c00);
  font-weight: 500;
}

/* Option select &#8212; フォールバック（JS無効時に表示） */
.p-product-option-select { margin: 0 0 24px; }
.p-product-option-select__box { margin-top: 16px; }
.p-product-option-select__box:first-child { margin-top: 0; }
.p-product-option-select__ttl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* --- Name input --- */
.p-product-name { margin: 0 0 28px; }
.p-product-name__ttl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.p-product-name__body input { width: 100%; }

/* --- Cart Form --- */
.p-product-form { margin-top: 20px; }

/* --- Cart button --- */
.p-product-form-btn { margin-bottom: 0; }
.p-product-form-btn__cart { width: 100%; }
.p-product-form-btn__cart .c-btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.p-product-form__error-message {
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-soldout);
}

/* --- Sub Actions (問い合わせ / お気に入り) --- */
.p-product-sub-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.p-product-sub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 14px 8px;
  border: 1px solid #999;
  color: #111;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
  transition: border-color 0.15s, color 0.15s, font-weight 0s;
  /* button要素用リセット */
  background: none;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
}
.p-product-sub-btn.is-fav-added {
  border-color: #D4587A;
  color: #fff;
  background: #D4587A;
}
.p-product-sub-btn.is-fav-added .p-product-sub-btn__icon {
  fill: none;
  stroke: #fff;
}
.p-product-sub-btn__icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
}
.p-product-sub-btn:hover {
  border-color: #111;
}
/* メールアイコン（左・<a>）: グリーン */
a.p-product-sub-btn:hover .p-product-sub-btn__icon {
  stroke: #59C87E;
  fill: none;
}
/* ハートアイコン（右・<button>）: 桃色 */
button.p-product-sub-btn:hover .p-product-sub-btn__icon {
  stroke: #D4587A;
  fill: none;
}
.p-product-sub-btn.is-fav-added:hover {
  color: #fff;
  font-weight: 700;
}
.p-product-sub-btn.is-fav-added:hover .p-product-sub-btn__icon {
  fill: #fff;
  stroke: #fff;
}

/* --- Category + Brand nav --- */
.p-product-nav-links {
  margin-top: 20px;
  padding: 10px 13px;
  background: #F4F3F1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.p-product-nav-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.p-product-nav-key {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  min-width: 54px;
  flex-shrink: 0;
  line-height: 1.8;
}
.p-product-nav-key::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background: currentColor;
  flex-shrink: 0;
}
.p-product-nav-key::after {
  content: ':';
}
.p-product-nav-val {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1px 0;
}
.p-product-nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #444;
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}
.p-product-nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.p-product-nav-link:hover {
  color: #111;
}
.p-product-nav-link:hover::after {
  transform: scaleX(1);
}
.p-product-nav-sep {
  font-size: 10px;
  color: #bbb;
  margin: 0 4px;
  font-weight: 300;
}
.p-product-nav-plain {
  font-size: 11px;
  color: #888;
}

/* --- Share --- */
.p-product-share {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 0;
}
.p-product-share__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.p-product-share__icons {
  display: flex;
  gap: 4px;
}
.p-product-share__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-secondary);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.p-product-share__link:hover {
  color: var(--color-text);
  text-decoration: none;
}
.p-product-share__link[data-share="x"]:hover { color: #000; }
.p-product-share__link[data-share="line"]:hover { color: #06C755; }
.p-product-share__link[data-share="facebook"]:hover { color: #1877F2; }

/* --- Links --- */
.p-product-link-list {
  margin-top: 20px;
  padding-top: 0;
}
.p-product-link-list__item {
  margin-bottom: 0;
}
.p-product-link-list__item a {
  display: block;
  font-size: 11px;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  padding: 7px 0;
  transition: color var(--transition);
}
.p-product-link-list__item a:hover {
  color: var(--color-text);
  opacity: 1;
  text-decoration: none;
}
.p-product-link-list__item a::before {
  content: '→';
  margin-right: 8px;
  font-size: 10px;
  color: var(--color-text-muted);
  transition: margin-right 0.2s ease, color 0.2s ease;
}
.p-product-link-list__item a:hover::before {
  margin-right: 12px;
  color: var(--color-text);
}

/* ================================================
   Detail Section (説明 + 関連商品 + レビュー)
   ================================================ */
.p-product-detail {
  margin-top: 24px;
  padding-top: 24px;
}
@media screen and (max-width: 1024px) {
  .p-product-detail {
    margin-top: 16px;
    padding-top: 16px;
  }
}

.p-product__ttl {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  line-height: 1.4;
  color: var(--color-text);
  padding-top: 14px;
  padding-bottom: 0;
  border-top: 2px solid var(--color-text);
  border-bottom: none;
}
@media screen and (max-width: 768px) {
  .p-product__ttl {
    font-size: 15px;
    letter-spacing: 0.10em;
    margin-bottom: 20px;
    padding-top: 12px;
  }
}

/* --- Description --- */
.p-product-explain {
  width: auto;
  margin-bottom: 0;
}
.p-product-explain__body {
  font-size: 13px;
  line-height: 2.1;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}
.p-product-explain__body img {
  margin: 24px 0;
}



/* ================================================
   Review
   ================================================ */
.p-product-review { margin-bottom: 40px; }
.p-product-review__item {
  box-sizing: border-box;
  margin-bottom: 1px;
  padding: 28px 0;
  background: transparent;
  border-bottom: 1px solid var(--color-border);
}
.p-product-review__item:first-of-type {
  border-top: none;
}
.p-product-review__heading { margin-bottom: 14px; }
.p-product-review__ttl {
  font-size: 14px;
  font-weight: 500;
  margin: 8px 0;
  line-height: 1.5;
}
.p-product-review-info { margin: 8px 0; }
.p-product-review-info__item {
  display: inline-block;
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}
.p-product-review-info__item.is-type { margin-right: 24px; }
.p-product-review__img {
  margin-bottom: 14px;
  text-align: left;
}
.p-product-review__img img {
  max-width: 200px;
}
.p-product-review__body {
  font-size: 13px;
  line-height: 2;
  color: var(--color-text-secondary);
}
.p-product-review__rates { display: flex; gap: 1px; }
.p-product-review__rate {
  width: 14px;
  height: 14px;
  fill: var(--color-border);
}
.p-product-review__rate.is-color { fill: var(--color-text); }

.p-product-review-reply {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--color-bg-subtle);
  border: none;
}
.p-product-review-reply__ttl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}
.p-product-review-reply__body {
  font-size: 12px;
  line-height: 1.9;
  color: var(--color-text-secondary);
}
.p-product-review-reply__date {
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.p-product-review__btn {
  margin-top: 28px;
  text-align: left;
}

/* --- Input number (quantity spinner from カラーミー) --- */
.input-prepend.input-append input {
  font-family: var(--font-main);
  font-size: 16px;
  padding: 8px;
  width: 80px;
  text-align: center;
}

/* --- YouTube iframe responsive --- */
.iframe-wrap {
  position: relative;
  width: 100%;
  padding: calc(480 / 854 * 100%) 0 0;
}
.iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ================================================
   Recently Viewed
   ================================================ */
.p-product-history .u-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.p-product-history .p-product__ttl {
  border-top: none;
  padding-top: 0;
}
.p-product-history {
  margin-top: 72px;
  padding: 48px 0 64px;
  overflow: hidden;
}
.p-product-history__header {
  margin-bottom: 24px;
  border-top: 2px solid var(--color-text);
  padding-top: 14px;
}
.p-product-history-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.p-product-history-list::-webkit-scrollbar { display: none; }
.p-product-history-list__item {
  flex: 0 0 160px;
  scroll-snap-align: start;
}
@media screen and (max-width: 768px) {
  .p-product-history-list__item {
    flex: 0 0 120px;
  }
}
.p-product-history-list__price {
  display: none;
}
.p-product-history-list__item { }
.p-product-history-list__link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
}
.p-product-history-list__link:hover {
  text-decoration: none;
}
.p-product-history-list__img {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-bg-subtle);
  margin-bottom: 10px;
}
.p-product-history-list__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.p-product-history-list__link:hover .p-product-history-list__img img {
  transform: scale(1.03);
}
.p-product-history-list__badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  background: var(--color-text);
  color: #fff;
}
.p-product-history-list__name {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.p-product-history-list__price {
  font-size: 11px;
  font-weight: 500;
}



/* ================================================
   Popup Mode (iframe内で表示時、ヘッダー・フッター非表示)
   ================================================ */
/* ポップアップ: レイアウト */
.is-popup .p-product {
  padding: 20px;
  margin: 0;
}
.is-popup .p-product-main {
  grid-template-columns: 1fr !important;
  gap: 16px !important;
  max-width: 100%;
  overflow: hidden;
}
/* ポップアップ: 画像90% 正方形 中央寄せ */
.is-popup .p-product-main__img {
  width: 90%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.is-popup .p-product-main__img img,
.is-popup .p-product-main .slick-slide img,
.is-popup .slide-item img {
  max-width: 100% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.is-popup .slick-slide {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
/* ポップアップ: サムネイル・余白調整 */
.is-popup .p-product-thumb-list {
  width: 90%;
  margin: 0 auto;
}
.is-popup body,
.is-popup {
  background: #fff;
  margin: 0;
}

/* --- 商品詳細では共通テンプレートの Checked Items を非表示 --- */
.p-checked { display: none; }

/* --- Recently Viewed: 矢印ナビ --- */
.p-product-history__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.p-product-history__header .p-product__ttl {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.p-product-history__nav {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.p-product-history__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
  color: var(--color-text);
}
.p-product-history__arrow:hover {
  border-color: var(--color-text);
  background: var(--color-text);
  color: #fff;
}
.p-product-history__arrow:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}
.p-product-history__arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
}
@media screen and (max-width: 768px) {
  .p-product-history__nav { display: none; }
}

/* ================================================
   Sticky Purchase Bar
   ================================================ */
.p-sticky-bar {
  display: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}
.p-sticky-bar.is-visible {
  transform: translateY(0);
}
.p-sticky-bar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.p-sticky-bar__info {
  flex: 1;
  min-width: 0;
}
.p-sticky-bar__name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-text);
}
.p-sticky-bar__price {
  display: block;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.p-sticky-bar__btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 28px;
  background: var(--color-text);
  color: #fff;
  border: none;
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.p-sticky-bar__btn:hover { opacity: 0.82; }
.p-sticky-bar__btn:active { transform: scale(0.97); }
@media screen and (max-width: 480px) {
  .p-sticky-bar__inner { padding: 10px 16px; gap: 12px; }
  .p-sticky-bar__btn { padding: 0 20px; font-size: 10px; }
}

/* --- Not found message --- */
.c-not-found {
  text-align: center;
  padding: 80px 0;
  font-size: 13px;
  color: var(--color-text-secondary);
}

/* ================================================
   こちらもおすすめ（YOU MIGHT ALSO LIKE）
   ================================================ */
.p-product-related {
  margin-top: 56px;
  padding: 40px 0 24px;
}
.p-product-related__header {
  margin-bottom: 24px;
  border-top: 2px solid var(--color-text);
  padding-top: 14px;
}
.p-product-related .p-product__ttl {
  border-top: none;
  padding-top: 0;
}
/* グリッド: デスクトップ4列、タブレット3列、モバイル2列 */
.p-product-related .c-item-list {
  grid-template-columns: repeat(4, 1fr);
}
@media screen and (max-width: 1024px) {
  .p-product-related .c-item-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .p-product-related .c-item-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
