/* ============================================================
   WORDS &#8212; 商品詳細 CSS
   カラーミー「商品詳細CSSを編集する」に貼り付けてください
   ============================================================ */

.pd { padding: 118px 32px 90px; }

/* ---------- パンくず ---------- */
.pd-bc { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-bc a { color: var(--muted); transition: color .2s; }
.pd-bc a:hover { color: var(--ink); }
.pd-bc span { color: var(--line); }
.pd-bc em { font-style: normal; color: var(--ink); }

/* ---------- レイアウト ---------- */
.pd-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; margin-top: 28px; align-items: start; }
.pd-grid > * { min-width: 0; }

/* ---------- ギャラリー ---------- */
.pd-main {
  position: relative; aspect-ratio: 1 / 1; background: #fff;
  border: 1px solid var(--cream2); border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
/* メイン画像の左右送りボタン（トップページ03/04と同じ丸ボタン） */
.pd-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: 1px solid var(--cream2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 3px 12px rgba(90,70,40,.12); transition: background .2s, transform .2s;
}
.pd-nav:hover { background: #fff; }
.pd-nav svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.6; }
.pd-prev { left: 12px; }
.pd-next { right: 12px; }
.pd-prev:hover { transform: translateY(-50%) translateX(-2px); }
.pd-next:hover { transform: translateY(-50%) translateX(2px); }
@media (max-width: 600px){ .pd-nav { width: 36px; height: 36px; } .pd-nav svg { width: 16px; height: 16px; } }
.pd-soldout-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(38,35,30,.85); color: #fff;
  font-family: var(--serif); font-size: 12px; letter-spacing: .18em; padding: 6px 14px;
}
.pd-thumbs {
  list-style: none; display: flex; gap: 10px; margin-top: 12px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.pd-thumbs::-webkit-scrollbar { display: none; }
.pd-thumbs li {
  flex: 0 0 76px; height: 76px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--cream2); cursor: pointer; background: #fff;
  transition: border-color .2s, opacity .2s;
}
.pd-thumbs li:hover { opacity: .75; }
.pd-thumbs li.on { border-color: var(--ink); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 商品情報 ---------- */
.pd-name { font-size: 22px; font-weight: 700; letter-spacing: .05em; line-height: 1.7; }
.pd-model { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: .06em; }
/* ブランド・カテゴリーの表示 */
.pd-meta { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.pd-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-meta .lb { font-size: 11px; color: var(--muted); letter-spacing: .08em; min-width: 58px; }
.pd-chip {
  display: inline-block; font-size: 11.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px;
  background: #fff; transition: background .2s, border-color .2s;
}
.pd-chip:hover { background: var(--cream); border-color: var(--beige-d); }

.pd-pricebox { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.pd-pricenote { font-size: 12px; color: var(--muted); }
.pd-price { font-size: 26px; font-weight: 700; letter-spacing: .02em; }
.pd-regular { font-size: 14px; color: var(--muted); text-decoration: line-through; }
.pd-off { font-size: 12px; color: #b0322c; font-weight: 700; }
.pd-teika { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- オプション ---------- */
.pd-options { margin-top: 26px; }
.pd-optlist { margin-top: 18px; }
.pd-optlist dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; margin-bottom: 7px; }
.pd-optlist dd { margin-bottom: 16px; }
.pd-optlist select, .pd-text-input {
  width: 100%; max-width: 320px; font-family: var(--jp); font-size: 13px;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  padding: 11px 12px; color: var(--ink);
}
.pd-optlist select {
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2326231e' stroke-width='1.6'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 13px;
  padding-right: 36px;
}
/* オプション表（表形式設定時） */
[data-product-opt="table"] table { border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
[data-product-opt="table"] th, [data-product-opt="table"] td { border: 1px solid var(--line); padding: 8px 10px; background: #fff; }

/* ---------- 購入数 ---------- */
.pd-qty { display: flex; align-items: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.pd-qty-ttl { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; }
.pd-stepper { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #fff; }
.pd-step {
  width: 40px; height: 44px; border: none; background: #fff; cursor: pointer;
  font-size: 16px; color: var(--ink); transition: background .2s;
}
.pd-step:hover { background: var(--cream); }
#pd-num {
  width: 56px; height: 44px; border: none;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  text-align: center; font-family: var(--jp); font-size: 15px; color: var(--ink);
}
#pd-num:focus { outline: none; background: var(--cream); }
.pd-unit { font-size: 12.5px; color: var(--muted); }
.pd-stock { font-size: 12px; color: var(--muted); }
.pd-num-disabled { width: 70px; padding: 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--cream); }

/* ---------- ボタン ---------- */
.pd-btns { list-style: none; margin-top: 22px; }
.pd-btns li + li { margin-top: 12px; }
.pd-cartbtn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: 420px; padding: 17px 20px;
  background: var(--gold); color: #fff; border: none; border-radius: 4px;
  font-family: var(--jp); font-size: 15px; font-weight: 700; letter-spacing: .1em;
  cursor: pointer; transition: background .25s, transform .15s;
}
.pd-cartbtn:hover { background: var(--gold-d); }
.pd-cartbtn:active { transform: scale(.98); }
.pd-cartbtn svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 1.6; }
.pd-quickbtn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 420px; padding: 15px 20px;
  background: #fff; color: var(--ink); border: 1px solid var(--ink); border-radius: 4px;
  font-size: 14px; font-weight: 500; letter-spacing: .1em;
  transition: background .25s, color .25s;
}
.pd-quickbtn:hover { background: var(--ink); color: #fff; }
.pd-soldbtn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 420px; padding: 16px 20px;
  background: var(--cream2); color: var(--muted); border-radius: 4px;
  font-family: var(--serif); font-size: 14px; letter-spacing: .18em;
}
.stock_error { color: #b0322c; font-size: 12.5px; }

/* ---------- 詳細情報のプルダウン（アコーディオン） ---------- */
.pd-acc { margin-top: 34px; border-top: 1px solid var(--line); }
.pd-acc-item { border-bottom: 1px solid var(--line); }
.pd-acc-head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 4px; background: none; border: none; cursor: pointer;
  font-family: var(--jp); font-size: 13.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--ink); text-align: left;
}
.pd-acc-ic { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.pd-acc-ic::before, .pd-acc-ic::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.pd-acc-ic::before { left: 0; top: 6.5px; width: 14px; height: 1px; }
.pd-acc-ic::after { left: 6.5px; top: 0; width: 1px; height: 14px; }
.pd-acc-item.open .pd-acc-ic::after { transform: rotate(90deg); }
.pd-acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.22,.61,.36,1);
}
.pd-acc-item.open .pd-acc-body { grid-template-rows: 1fr; }
.pd-acc-body .inner { min-height: 0; overflow: hidden; }
.pd-acc-item.open .pd-acc-body .inner { padding-bottom: 20px; }
.pd-acc-body .inner, .pd-acc-body p { font-size: 13px; line-height: 2; color: var(--ink); }
.pd-acc-body img { max-width: 100%; height: auto; margin: 10px 0; }
.pd-acc-body a { color: var(--gold-d); font-size: 12.5px; display: inline-block; margin-top: 8px; }

/* ---------- 参考コーデ（Instagram） ---------- */
.pd-styling { margin-top: 70px; }
.pd-stcard {
  flex: 0 0 200px; height: 250px; display: block;
  border-radius: 6px; overflow: hidden; background: var(--cream);
}
.pd-stcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.pd-stcard:hover img { transform: scale(1.05); }
.pd-styling .caro { padding-bottom: 50px; }

/* ---------- 補助リンク・シェア ---------- */
.pd-links { list-style: none; margin-top: 30px; border-top: 1px solid var(--line); }
.pd-links li { border-bottom: 1px solid var(--line); }
.pd-links a {
  display: block; font-size: 12.5px; color: var(--muted); padding: 12px 4px;
  transition: color .2s; position: relative;
}
.pd-links a::after { content: "→"; position: absolute; right: 6px; font-family: var(--serif); }
.pd-links a:hover { color: var(--ink); }
.pd-share { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- 商品説明 ---------- */
.pd-sec-ttl {
  font-size: 16px; font-weight: 700; letter-spacing: .08em;
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.pd-sec-ttl .serif { font-size: 13px; letter-spacing: .22em; color: var(--gold-d); font-weight: 600; }
.pd-desc { margin-top: 70px; }
.pd-desc-body { font-size: 14px; line-height: 2.1; color: var(--ink); max-width: 860px; }
.pd-desc-body img { max-width: 100%; height: auto; margin: 14px 0; }
.pd-desc-body table { max-width: 100%; }

/* ---------- 関連商品・最近チェックした商品・あわせておすすめ ---------- */
.pd-related, .pd-history, .pd-together { margin-top: 70px; }
.pd-tgcard .pr { font-size: 14.5px; font-weight: 700; margin-top: 5px; letter-spacing: .02em; }
.pd-related .caro, .pd-history .caro { padding-bottom: 50px; }
.pd-tgcard { flex: 0 0 180px; display: block; }
.pd-tgcard .ph {
  aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--cream2);
  border-radius: 6px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.pd-tgcard .ph img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.pd-tgcard:hover .ph img { transform: scale(1.05); }
.pd-tgcard .nm {
  font-size: 12.5px; font-weight: 500; margin-top: 10px; letter-spacing: .04em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pd-together .caro { padding-bottom: 50px; }

.pd-na { padding: 60px 0; color: var(--muted); }

/* スマホで商品名の直下に挿入される商品説明 */
.pd-desc--inline { margin: 24px 0 6px; }
.pd-desc--inline .pd-sec-ttl { font-size: 14px; margin-bottom: 16px; }
.pd-desc--inline .pd-desc-body { font-size: 13.5px; line-height: 2; }

/* ---------- レスポンシブ ---------- */
/* ---------- この帽子に関する読みもの（JOURNAL：常時表示） ---------- */
.pd-jn { margin-top: 70px; }
.pd-jn-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pd-jn-grid::-webkit-scrollbar { display: none; }
.pdj-card {
  flex: 0 0 200px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: block;
  transition: border-color .2s;
}
.pdj-card:hover { border-color: var(--gold); }
.pdj-thumb {
  aspect-ratio: 16 / 10;
  background: var(--cream);
}
.pdj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pdj-title {
  font-size: 12.5px;
  color: var(--ink);
  padding: 10px 12px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 980px) {
  .pd { padding: 92px 20px 70px; }
  .pd-grid { grid-template-columns: 1fr; gap: 30px; }
  .pd-name { font-size: 19px; }
  .pd-price { font-size: 23px; }
  .pd-thumbs li { flex: 0 0 64px; height: 64px; }
  .pd-desc, .pd-together { margin-top: 54px; }
}
