@charset "UTF-8";
/* 商品詳細 (PC) */
/* 商品詳細。PC は 2 カラム、SP 側で 1 カラムに上書き */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.product-images img {
  border: 1px solid var(--border-light);
  margin-bottom: 8px;
}

/* 商品画像ギャラリー (メイン + サムネ切替) */
.gallery-main {
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
}

.gallery-thumbs {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-thumb {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-thumb:hover {
  border-color: var(--primary);
}

.gallery-thumb.is-active {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.add-to-cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-gray);
  border-radius: 6px;
}

.product-notes {
  background: var(--primary-light);
  padding: 12px 12px 12px 32px;
  font-size: 13px;
  border-radius: 4px;
}

.product-code {
  color: var(--muted);
  font-size: 12px;
}

.restock-form {
  border: 1px dashed var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
}

.product-detail {
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-info, .product-gallery {
  min-width: 0;
}

.gallery-main {
  background: var(--bg-sub);
  border: 0;
  padding: 20px;
}

.gallery-main img {
  mix-blend-mode: multiply;
}

.product-info .page-ttl {
  font-size: 25px;
  margin: 12px 0;
}

.add-to-cart {
  padding: 24px;
  border-radius: 4px;
  margin: 20px 0;
}

.add-to-cart label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.add-to-cart input[type=number] {
  width: 90px;
}

.add-to-cart .btn-cart {
  min-height: 52px;
}

.product-notes {
  line-height: 1.9;
  font-size: 12px;
}

.product-description {
  overflow-wrap: anywhere;
  overflow-x: auto;
}

.product-description img {
  max-width: 100%;
  height: auto;
}

.product-description table {
  max-width: 100%;
}

.product-stock {
  color: var(--primary);
  font-size: 12px;
}

/* お気に入りボタン。アイコンはヘッダーと同じ icon_heart.svg を使う */
.btn-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn-fav img {
  width: 18px;
  height: 18px;
}

/* 登録済みは btn-primary (濃い背景) になるため、黒いアイコンを白へ反転させる */
.btn-fav.btn-primary img {
  filter: brightness(0) invert(1);
}

/* 旧 MakeShop 商品説明内のレガシー要素 (Panasonic シリーズ紹介バナー等)。
   旧サイト user CSS の意匠を .product-description 配下に限定して再現する。PC 表示。 */
.product-description {
  /* PC では SP 専用要素 (見出しの「ー」装飾・SP用バナー) を隠す */
}
.product-description .display-only-sp {
  display: none !important;
}
.product-description .series-panasonic {
  margin-top: 50px;
}
.product-description .series-panasonic-hd {
  height: 35px;
  margin-bottom: 20px;
  padding-left: 10px;
  background-color: #eee;
  color: #555;
  font-size: 18px;
  font-weight: bold;
  line-height: 35px;
}
.product-description .series-panasonic-list {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.product-description .series-panasonic-list li {
  margin: 0;
}
.product-description .series-panasonic-list img,
.product-description .series-panasonic-bnr img {
  margin: 0;
  display: block;
}
