/* ==============================================
   商品詳細 (product-detail.html) ページ専用スタイル
   ============================================== */

/* ─── 2カラム レイアウト（Figma 1:1562: 1440 幅・左 48px・主図 785px・列間 ~61px）─ */

.pd-two-col {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 4.25vw, 61px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px clamp(20px, 3.33vw, 48px) 0;
  min-height: 100px;
  box-sizing: border-box;
}
.pd-xftc{
   width: 100%;
   background: white;
       padding: 24px clamp(20px, 3.33vw, 48px);
   display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4.25vw, 61px);
    box-sizing: border-box;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 12px;
    position: relative;
   position: fixed;
   left: 0;
   top: -100%;
   z-index: 1001;
}
.pd-xftc.on{
    top: 0;
}
.pd-xftc1{
    display: flex;
    align-items: center; 
    text-transform: uppercase;
    font-family: BigNoodleTitling-Oblique;
    font-size: 30px;
    font-style: oblique;
    letter-spacing: 3.4px;
    line-height: 60px;
    font-weight: 100;
}
.pd-xftc1 img{
    width: 100px;
    margin-right: 20px;
}
.pd-xftc1 div{
    width: calc(100% - 120px);
}
.pd-xftc2{
     display: flex;
    align-items: center;
    justify-content:center;
}
.pd-xftc2_1{
    margin-right: 60px;
        font-family: TradeGothicLTPro-Bold;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.34px;
    line-height: 20px;
    text-align: center;
    color: #0d171d;
    cursor: pointer;
    display: block;
}
.pd-xftc2_1:last-child{
    margin-right: 0;
}
.pd-xftc3{
     display: flex;
    align-items: center;
    justify-content:center;
}
.pd-xftc3_1{
        line-height: 28px;
    font-size: 20px;
    color: #0d171d;
}
.pd-xftc3_2{
    width: 245px;
    height: 50px;
    margin-left: 25px;
        background: #000;
    border: 2px solid #000;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
}
/* ─── 左: 画像ギャラリー ─────────────────────── */

.pd-gallery {
  flex: 0 0 min(785px, 54.514%);
  max-width: 785px;
  width: 100%;
  align-self: flex-start;
}

/* 画像＋サムネイルだけ sticky で追従 */
.pd-gallery-sticky {
  /* position: sticky;
  top: 76px; */
  padding: 32px 0 24px;
}

.pd-main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
}

.pd-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.35s ease;
  transform-origin: center center;
}

.pd-badge-sale {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background: #ff3a3a;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

/* サムネイル（Figma: ~123×124、角丸 10px） */
.pd-thumbnails {
  display: flex;
  gap: 18px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pd-thumb {
  width: 123px;
  height: 124px;
  border: 1.5px solid #d0d0d0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #f8fafb;
  padding: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.pd-thumb.active {
  border: 2px solid #000;
  box-shadow: none;
}

.pd-thumb:hover:not(.active) {
  border-color: #888;
}

.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.pd-thumb:hover img {
  transform: scale(1.06);
}

/* ─── 右カラム (info + description まとめ) ───── */

.pd-right-col {
  flex: 1;
  min-width: 0;
  padding: 0;
}

/* ─── 商品情報パネル ─────────────────────────── */

.pd-info {
  padding: 32px 0 28px;
}

/* パンくずリスト */
.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 0 20px;
  font-size: 12px;
  color: #4a4a4a;
  letter-spacing: 0.8px;
  flex-wrap: wrap;
}

.pd-breadcrumb a {
  color: #4a4a4a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.pd-breadcrumb a:hover {
  color: #000;
  text-decoration: underline;
}

.pd-breadcrumb img {
  width: 16px;
  height: 16px;
  display: block;
  opacity: 0.5;
}

/* 商品名・価格（Figma: 同一行に商品名＋価格） */
.pd-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 6px;
}

.pd-product-name {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1.25;
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.pd-title-row .pd-price-wrap {
  flex-shrink: 0;
}

.pd-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.pd-price-strike {
  font-size: 20px;
  font-weight: 500;
  color: #888;
  text-decoration: line-through;
}

.pd-price-sale {
  font-size: 24px;
  font-weight: 500;
  color: #b80000;
}

.pd-subtitle {
  font-size: 13px;
  font-weight: 500;
  color: #8e8e8e;
  margin: 6px 0 14px;
}

/* 星レーティング */
.pd-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.pd-stars {
  display: flex;
  gap: 1px;
}

.pd-review-count {
  font-size: 13px;
  color: #6c6c6c;
  text-decoration: underline;
  cursor: pointer;
}

/* ─── オプショングループ ─────────────────────────── */
.pd-option-group {
  margin-bottom: 22px;
}

/* Figma: 16px bold */
.pd-option-label {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
  letter-spacing: .02em;
}

.pd-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

/* ─── カラースウォッチ ─────────────────────────── */
.pd-color-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 56px;
  cursor: pointer;
  /* アイテム全体の transition */
  transition: transform 0.2s cubic-bezier(.34,1.56,.64,1);
  word-break: break-all; /* 在任何字符边界处断开单词 */
  overflow-wrap: break-word; /* 另一种方式来确保单词在必要时断开 */
}

/* hover: アイテム全体をわずかに浮かせる */
.pd-color-item:hover {
  transform: translateY(-2px);
}
.pd-color-item:active {
  transform: translateY(0) scale(0.96);
}

/* 画像：デフォルト */
.pd-color-item img {
  border-radius: 50%;
  /* 透明な白い間隔（2px）+ 透明な外枠（2px） */
  outline: 2px solid transparent;
  outline-offset: 3px;
  box-shadow: 0 0 0 2px transparent;
  display: block;
  transition:
    outline-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.22s cubic-bezier(.34,1.56,.64,1);
}

/* hover（非active）: 薄いグレー外環 */
.pd-color-item:hover:not(.active) img {
  transform: scale(1.08);
  outline-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}

/* active: 白い間隔 ＋ 黒い外環（Figma デザイン） */
.pd-color-item.active>img {
  transform: scale(1.06);
  outline-color: #000;
  box-shadow:
    0 0 0 2px #fff,       /* 白い間隔 */
    0 0 0 4px #000;       /* 黒い外環 */
}

/* ラベルテキスト */
.pd-color-item span {
  /*font-size: 8px;*/
  font-size: 12px;
  font-weight: 400;
  /*color: #888;*/
  color: white;
  text-align: center;
  line-height: 1.35;
  word-break: keep-all;
  transition: color 0.18s ease, font-weight 0.18s ease;
  margin-top: 10px;
}

/* hover 時: ラベルをより鮮明に */
.pd-color-item:hover span {
  /*color: #111;*/
  color: white;
}

/* active 時: ラベルを太字・黒に */
.pd-color-item.active span {
  color: #000;
  /*color: white;*/
  font-weight: 700;
}
.pd-color-item.active .pd-lens-tooltip span {
  /*color: #000;*/
  color: white;
  font-weight: 700;
}
/* NEW ラベル */
.pd-color-new-label {
  color: #ff3a3a !important;
  font-weight: 700 !important;
}

/* active NEW アイテムのラベルは赤のまま維持 */
.pd-color-item.active .pd-color-new-label {
  color: #ff3a3a !important;
}

/* ─── レンズ仕様 ホバーツールチップ ─────────────── */
.pd-has-tooltip {
   position: relative;
    z-index: 100 !important;
    overflow: visible !important;
    isolation: isolate; /* 创建新的堆叠上下文 */
}
/* 1. 确保所有父级都不裁剪内容 */
.pd-color-item,
.product-item,
[class*="product"],
[class*="card"],
[class*="item"] {
    overflow: visible !important;
}
.pd-lens-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 218px;
  background: #11171C;
  /*border: 1px solid #e2e2e2;*/
  border-radius: 8px;
  /*box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);*/
  padding: 10px 13px 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
   z-index: 2147483647 !important; /* 最大 z-index */
  pointer-events: none;
  white-space: nowrap;
  
  /* 修复：确保不被裁剪 */
    overflow: visible;
}
/* .pd-has-tooltip:nth-child(2) .pd-lens-tooltip{
    opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}*/
/* 矢印（下向き） */
.pd-lens-tooltip::before,
.pd-lens-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
}
.pd-lens-tooltip::before {
  top: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #11171C;
}
.pd-lens-tooltip::after {
  top: -7px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #11171C;
}

/* ホバーで表示 */
.pd-has-tooltip:hover .pd-lens-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  z-index: 99999 !important;
}

/* 最初と最後のアイテムがはみ出さないよう左右調整 */
.pd-color-options .pd-has-tooltip:first-child .pd-lens-tooltip {
  left: 0;
  transform: translateX(0) translateY(4px);
}
.pd-color-options .pd-has-tooltip:first-child .pd-lens-tooltip::before,
.pd-color-options .pd-has-tooltip:first-child .pd-lens-tooltip::after {
  left: 28px;
  transform: none;
}
.pd-color-options .pd-has-tooltip:first-child:hover .pd-lens-tooltip {
  transform: translateX(0) translateY(0);
}

.pd-color-options .pd-has-tooltip:last-child .pd-lens-tooltip {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(4px);
}
.pd-color-options .pd-has-tooltip:last-child .pd-lens-tooltip::before,
.pd-color-options .pd-has-tooltip:last-child .pd-lens-tooltip::after {
  left: auto;
  right: 22px;
  transform: none;
}
.pd-color-options .pd-has-tooltip:last-child:hover .pd-lens-tooltip {
  transform: translateX(0) translateY(0);
}

/* ツールチップ 行レイアウト */
.plt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  /*border-bottom: 1px solid #f2f2f2;*/
  gap: 8px;
}
.plt-last {
  border-bottom: none;
  padding-bottom: 6px;
}

.plt-label {
  font-size: 10px;
  font-weight: 500;
  color: #888;
  flex-shrink: 0;
}

.plt-value {
  font-size: 10px;
  font-weight: 600;
  color: #111;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Light condition ドット */
.plt-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #bbb;
}
.plt-dot.on {
  background: #111;
  border-color: #111;
}
.plt-dot.half {
  background: linear-gradient(90deg, #111 50%, transparent 50%);
  border-color: #777;
}
.plt-dot.off {
  background: transparent;
}


.plt-cross {
  color: #bbb;
  font-size: 12px;
}

/* 区切り線 */
.pd-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 16px 0;
}

/* ─── 数量セレクター ─────────────────────────── */

.pd-qty-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pd-qty-label {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  white-space: nowrap;
}

.pd-qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  overflow: hidden;
}

.pd-qty-minus,
.pd-qty-plus {
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 300;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  user-select: none;
  line-height: 1;
}

.pd-qty-minus:hover,
.pd-qty-plus:hover {
  background: #e0e0e0;
}

.pd-qty-input {
  width: 52px;
  height: 40px;
  border: none;
  border-left: 1.5px solid #d0d0d0;
  border-right: 1.5px solid #d0d0d0;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  color: #000;
  background: #fff;
  -moz-appearance: textfield;
}

.pd-qty-input::-webkit-inner-spin-button,
.pd-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* ─── ボタン ─────────────────────────────────── */

.pd-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.pd-btn-cart,
.pd-btn-buy {
  width: 100%;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.12s ease, border-color 0.22s ease, box-shadow 0.2s ease;
  line-height: 1;
  position: relative;
  overflow: hidden;
  font-family: inherit;
}

.pd-btn-cart {
  background: #fff;
  border: 2px solid #000;
  color: #000;
}

.pd-btn-cart:hover {
  background: #000;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.pd-btn-buy {
  background: #000;
  border: 2px solid #000;
  color: #fff;
}

.pd-btn-buy:hover {
  background: #222;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.pd-btn-cart:active,
.pd-btn-buy:active {
  transform: scale(0.97);
}

/* リップルエフェクト */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-anim 0.55s linear;
  background: rgba(255, 255, 255, 0.3);
  width: 120px;
  height: 120px;
  top: 50%;
  left: 50%;
  margin-top: -60px;
  margin-left: -60px;
  pointer-events: none;
}

@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ─── 商品詳細テキスト ───────────────────────── */

.pd-description {
  padding: 36px 0 48px;
  border-top: 1px solid #e8e8e8;
}

.pd-desc-title {
  font-size: 24px;
  font-weight: 500;
  color: #000;
  margin-bottom: 22px;
  display: block;
  text-align: center;
  width: 100%;
}

.pd-desc-text {
  font-size: 14px;
  font-weight: 400;
  color: #111;
  line-height: 2.14;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── フルスクリーンバナー ───────────────────── */

.pd-banner {
  width: 100%;
  overflow: hidden;
}

.pd-banner-inner {
  position: relative;
  height: 520px;
}

.pd-banner-inner > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pd-banner-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding-left: 64px;
  gap: 18px;
  background: linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 60%);
}

.pd-banner-line {
  width: 5px;
  height: 110px;
  background: #9ee26c;
  flex-shrink: 0;
}

.pd-banner-caption {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.8;
  text-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ─── 機能セクション ─────────────────────────── */

.pd-feature {
  display: flex;
  align-items: stretch;
}

.pd-feature-image {
  flex: 0 0 46.5%;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.pd-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.pd-feature:hover .pd-feature-image img {
  transform: scale(1.03);
}

.pd-feature-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  background: #fff;
}

.pd-feature-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.pd-feature-bar {
  width: 6px;
  height: 24px;
  background: #9ee26c;
  flex-shrink: 0;
  margin-top: 4px;
  border-radius: 3px;
}

.pd-feature-heading h2 {
  font-size: 24px;
  font-weight: 500;
  color: #000;
  line-height: 1.3;
}

.pd-feature-text > p {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  line-height: 1.9;
  max-width: 480px;
}

.pd-feature-left .pd-feature-text {
  padding-left: 80px;
  padding-right: 80px;
}

.pd-feature-right .pd-feature-text {
  padding-left: 80px;
  padding-right: 80px;
}

/* ─── バリアント・サイズセクション ──────────── */

.pd-variants-section {
  background: #000;
  padding: 120px 0 72px;
}

.pd-variants-images {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 40px;
  padding: 0 180px;
}

.pd-variant-img {
  flex: 0 0 calc(50% - 40px);
  max-width: 500px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
}

.pd-variant-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pd-variant-img:hover img {
  transform: scale(1.04);
}

.pd-size-spec {
  text-align: center;
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  letter-spacing: 0.5px;
}

/* ─── レビューセクション ─────────────────────── */

.pd-reviews {
  padding: 56px 48px 60px;
  background: #fff;
}

/* ギャラリー内に配置する場合のオーバーライド（Figma 1:1663） */
.pd-reviews-in-gallery {
  padding: 6px 0 56px;
  background: #fff;
  /* border-top: 1px solid #e3e3e3;
  border-bottom: 1px solid #e3e3e3; */

}

.pd-reviews-in-gallery .pd-reviews-inner {
  max-width: 100%;
}

.pd-reviews-inner {
  max-width: 900px;
}

/* 見出し行：左タイトル + 右「レビューを書く」 */
.pd-reviews-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 0 0 2px;
}

.pd-reviews-in-gallery .pd-reviews-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0;
  padding: 0;
  border: none;
  display: block;
}

.pd-reviews-title {
  font-size: 22px;
  font-weight: 700;
  color: #000;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid #000;
  display: inline-block;
}

.pd-reviews-write-btn,.pd-reviews-write-btn-login {
  flex-shrink: 0;
  min-width: 173px;
  padding: 10px 20px;
  min-height: 42px;
  box-sizing: border-box;
  background: #000;
  border: 1px solid #000;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.pd-reviews-write-btn:hover,.pd-reviews-write-btn-login:hover {
  background: #333;
}

.pd-reviews-write-btn:active ,.pd-reviews-write-btn-login:active{
  transform: scale(0.98);
}

/* レビューサマリー */
.pd-review-summary {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 25px 0 18px;
  border-top: 1px solid #e3e3e3;
  border-bottom: 1px solid #e3e3e3;
  margin-bottom: 0;
  flex-wrap: nowrap;
}

.pd-reviews-in-gallery .pd-review-summary {
  min-height: 0;
}

.pd-review-avg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  flex: 0 0 auto;
  padding-right: 20px;
}

.pd-review-avg-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pd-review-stars-big {
  display: flex;
  gap: 2px;
}

.pd-review-score {
  font-size: 24px;
  font-weight: 700;
  color: #6c6c6c;
  line-height: 1;
}

.pd-review-total {
  font-size: 14px;
  font-weight: 500;
  color: #a2a2a2;
}

/* サマリー中央の縦区切り（Figma） */
.pd-review-summary-divider {
  width: 1px;
  align-self: stretch;
  min-height: 86px;
  background: #e3e3e3;
  flex-shrink: 0;
  margin: 0 20px 0 8px;
}

/* レーティングバー：星行 | 件数 | グラフ */
.pd-review-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  max-width: 320px;
  padding-left: 16px;
}

.pd-review-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pd-bar-stars {
  font-size: 11px;
  color: #f5a623;
  width: 75px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  line-height: 1;
}

.pd-bar-count {
  font-size: 11px;
  color: #3085c7;
  width: 30px;
  flex-shrink: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.pd-bar-track {
  flex: 1;
  min-width: 72px;
  max-width: 103px;
  height: 10px;
  background: #ededed;
  border-radius: 0;
  overflow: hidden;
}

.pd-bar-fill {
  height: 100%;
  background: #3085c7;
  border-radius: 0;
  transition: width 0.8s ease;
}

/* レビュー一覧 */
.pd-review-list {
  display: flex;
  flex-direction: column;
}

.pd-reviews-in-gallery .pd-review-list {
  padding-top: 8px;
}

.pd-reviews-in-gallery .pd-review-item:first-child {
  border-top: none;
}

.pd-review-item {
  padding: 24px 0 28px;
  border-top: 1px solid #e3e3e3;
}

.pd-review-header {
  margin-bottom: 14px;
}

.pd-reviewer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pd-reviewer-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: none;
  background: #ccc;
}

.pd-reviewer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.pd-reviewer-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.pd-reviewer-name {
  font-size: 12px;
  font-weight: 500;
  color: #000;
  margin: 0;
}

.pd-review-date {
  font-size: 12px;
  font-weight: 400;
  color: #6a6c77;
  flex-shrink: 0;
}

.pd-review-stars-small {
  display: flex;
  gap: 1px;
  align-items: center;
}

.pd-review-text {
  font-size: 14px;
  font-weight: 500;
  color: #4f4f4f;
  line-height: 24px;
  margin: 0 0 16px;
}

.pd-review-images {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.pd-review-images img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1px solid #cfd7e3;
  background: #f8fafb;
  box-sizing: border-box;
}

.pd-review-images img:hover {
  transform: scale(1.02);
}

/* レビュー 投票（Figma: 右寄せ・参考文） */
.pd-review-vote {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pd-reviews-in-gallery .pd-review-vote {
  width: 100%;
}

.pd-vote-label {
  font-size: 13px;
  color: #6a6c77;
}

.pd-vote-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid #ddd;
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
  font-family: inherit;
}

.pd-vote-btn:hover {
  background: #f5f5f5;
  border-color: #aaa;
  color: #000;
}

.pd-vote-btn.voted {
  background: #000;
  border-color: #000;
  color: #fff;
}

.pd-vote-btn svg {
  flex-shrink: 0;
}

/* ─── おすすめ商品 ───────────────────────────── */

.pd-recommended {
  padding: 56px 48px 72px;
  background: #fafafa;
  border-top: 1px solid #f0f0f0;
}

.pd-rec-title {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  text-align: center;
  margin-bottom: 36px;
}

.pd-rec-grid {
  /*display: grid;*/
  /*grid-template-columns: repeat(3, 1fr);
  gap: 24px;*/
  max-width: 1040px;
  margin: 0 auto;
position: relative;
}
.pd-rec-grid .swiper-father{
width:100%;
height:100%;
position: relative;
}
.pd-rec-grid .swiper{
width:calc(100% - 20px - 76px);
height:100%;
}
.pd-rec-grid .swiper-slide{
width:100%;
height:100%;
}
.pd-rec-grid .swiper-button-prev::after,
.pd-rec-grid .swiper-button-next::after {
	display: none;
}

.pd-rec-grid .swiper-button-prev {
	width: 48px;
	height: 48px;
	background-image: url(../img/9ee08c53-f92e-42da-862d-0667a9d4c7b8.svg);
transform: rotate(180deg);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	left: 0;
}

.pd-rec-grid .swiper-button-next {
	width: 48px;
	height: 48px;
	background-image: url(../img/5a3c77fd-1e24-44d4-8364-585cd8bb8c03.svg);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	right: 0;
}
/* 推薦カード共通スタイル */
.pd-rec-grid .pl-card {
width:100%;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.pd-rec-grid .pl-card:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  border-color: #000;
}

.pd-rec-grid .pl-card-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  z-index: 2;
  min-height: 32px;
}

.pd-rec-grid .pl-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
}

.pd-rec-grid .pl-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  margin-top: 40px;
  overflow: hidden;
}

.pd-rec-grid .pl-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.pd-rec-grid .pl-card:hover .pl-card-image img {
  transform: scale(1.06);
}

.pd-rec-grid .pl-card-info {
  padding: 0 16px 18px;
}

.pd-rec-grid .pl-card-name {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
}

.pd-rec-grid .pl-card-sub {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.pd-rec-grid .pl-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.pd-rec-grid .pl-price-sale {
  font-size: 17px;
  font-weight: 700;
  color: #b80000;
}

.pd-rec-grid .pl-price-strike {
  font-size: 13px;
  color: #bbb;
  text-decoration: line-through;
}

.pd-rec-grid .pl-card-swatches {
  display: flex;
  gap: 6px;
}

.pd-rec-grid .pl-card-swatches img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #eee;
}

/* タグ */
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  line-height: 1;
  white-space: nowrap;
}

.tag-black {
  background: #000;
  color: #fff;
}

.tag-outline {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

.tag-sale-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff3a3a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 99px;
}

/* ─── スティッキー購入バー (モバイル) ──────── */

.pd-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  padding: 14px 20px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

.pd-sticky-bar.visible {
  transform: translateY(0);
}

.pd-sticky-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pd-sticky-name {
  font-size: 15px;
  font-weight: 700;
  color: #000;
}

.pd-sticky-price {
  font-size: 15px;
  font-weight: 700;
  color: #b80000;
}

.pd-sticky-cart-btn {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.12s ease;
}

.pd-sticky-cart-btn:hover {
  background: #333;
}

.pd-sticky-cart-btn:active {
  transform: scale(0.97);
}

/* デスクトップでは非表示 */
@media (min-width: 961px) {
  .pd-sticky-bar { display: none; }
}

/* ナビゲーション アクティブ状態 */
.nav-active {
  font-weight: 700 !important;
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
}
/* Swiper コンテナ */
.products-swiper {
  flex: 1;
  overflow: hidden;
  /* 上下に hover shadow が見えるよう余白を確保 */
  padding: 6px 2px 10px;
}

/* Swiper スライド — 内部カードに幅を委ねる */
.products-swiper .swiper-slide {
  width: auto;
  height: auto;
}
/* ─── レスポンシブ ───────────────────────────── */

@media (max-width: 1280px) {
  .pd-gallery {
    flex-basis: 52%;
    max-width: none;
  }

  .pd-gallery-sticky {
    padding: 28px 0 24px;
  }

  .pd-reviews-in-gallery {
    padding: 36px 0 48px;
  }

  .pd-info {
    padding: 28px 0 24px;
  }

  .pd-description {
    padding: 28px 0 36px;
  }

  .pd-variants-section {
    padding: 80px 0 60px;
  }

  .pd-variants-images {
    padding: 0 80px;
    gap: 40px;
  }
}

@media (max-width: 960px) {
  /* モバイル固定購入バー分の余白（本文が隠れないように） */
  main {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .pd-two-col {
    flex-direction: column;
    gap: 0;
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .pd-gallery {
    flex: none;
    max-width: none;
    width: 100%;
    min-width: 0;
  }

  .pd-gallery-sticky {
    position: static;
    padding: 20px 0 0;
  }

  .pd-reviews-in-gallery {
    padding: 32px 0 40px;
  }

  .pd-main-image-wrap {
    aspect-ratio: 1 / 0.85;
  }

  .pd-right-col {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .pd-info {
    padding: 24px 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* オプション群：親幅を超えないよう制約（flex 子の min-width:auto 対策） */
  .pd-option-group {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .pd-description {
    padding: 24px 0 32px;
  }

  .pd-desc-text {
    max-width: none;
    margin: 0;
  }

  .pd-desc-title {
    text-align: left;
  }

  .pd-feature {
    flex-direction: column;
  }

  .pd-feature-image {
    flex: none;
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .pd-feature-text {
    padding: 40px 32px;
  }

  .pd-feature-left .pd-feature-text,
  .pd-feature-right .pd-feature-text {
    padding-left: 32px;
    padding-right: 32px;
  }

  .pd-feature-left {
    flex-direction: column-reverse;
  }

  .pd-banner-inner {
    height: 360px;
  }

  .pd-banner-caption {
    font-size: 16px;
  }

  .pd-variants-section {
    padding: 60px 0 50px;
  }

  .pd-variants-images {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
  }

  .pd-variant-img {
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .pd-reviews {
    padding: 40px 20px;
  }

  .pd-recommended {
    padding: 40px 20px 56px;
  }

  .pd-rec-grid {
    /*grid-template-columns: repeat(3, 1fr);*/
    gap: 16px;
        
  }
  
  .pd-xftc {
    padding: 10px clamp(20px, 3.33vw, 48px);
    flex-wrap: wrap;
}
.pd-xftc1 {
    width: 100%;
    font-size: 18px;
    line-height: normal;
}
.pd-xftc1 img {
    width: 50px;
    margin-right: 10px;
}
.pd-xftc1 div {
    width: calc(100% - 60px);
}
.pd-xftc2{
    width: 100%;
}
  
}

@media (max-width: 768px) {
  .pd-thumbnails {
    gap: 10px;
  }

  .pd-thumb {
    width: 88px;
    height: 88px;
  }

  .pd-banner-inner {
    height: 280px;
  }

  .pd-banner-text {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pd-banner-caption {
    font-size: 14px;
    line-height: 1.7;
    max-width: 100%;
  }

  .pd-rec-grid {
    /*grid-template-columns: 1fr 1fr;*/
  }

  .pd-reviews-in-gallery .pd-review-summary {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0 16px;
  }

  .pd-review-summary-divider {
    width: 100%;
    height: 1px;
    min-height: 0;
    margin: 0;
    align-self: stretch;
  }

  .pd-review-avg {
    padding-right: 0;
  }

  .pd-review-bar-wrap {
    max-width: none;
    padding-left: 0;
  }

  .pd-reviews-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .pd-reviews-write-btn {
    width: 100%;
    min-width: 0;
  }

  .pd-review-vote {
    justify-content: flex-start;
  }

  /* 商品詳細：長文の可読性（モバイル） */
  .pd-desc-text {
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: 0.02em;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .pd-desc-title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .pd-breadcrumb {
    font-size: 11px;
    letter-spacing: 0.04em;
    gap: 4px;
  }

  .pd-feature-text {
    padding: 32px 20px;
  }

  .pd-feature-left .pd-feature-text,
  .pd-feature-right .pd-feature-text {
    padding-left: 20px;
    padding-right: 20px;
  }

  .pd-feature-heading h2 {
    font-size: 20px;
  }

  .pd-feature-text > p {
    font-size: 15px;
    line-height: 1.75;
    max-width: none;
  }

  /* オプション（色・レンズ）：ラベル重なり防止 — グリッド化 */
  .pd-color-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 10px;
    align-items: start;
    justify-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .pd-color-item {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 2px;
    box-sizing: border-box;
  }

  .pd-color-item span {
    display: block;
    /*width: 100%;*/
    max-width: 100%;
    font-size: 11px;
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .pd-option-group {
    overflow-x: clip;
    margin-bottom: 20px;
  }

  .pd-option-label {
    font-size: 15px;
    margin-bottom: 10px;
    max-width: 100%;
    word-break: break-word;
  }

  /* レンズツールチップ：nowrap による横スクロール幅拡張を防ぐ */
  .pd-lens-tooltip {
    width: min(218px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    white-space: normal;
    overflow-wrap: anywhere;
    box-sizing: border-box;
  }

  .pd-color-options .pd-has-tooltip:first-child .pd-lens-tooltip,
  .pd-color-options .pd-has-tooltip:last-child .pd-lens-tooltip {
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(4px);
  }

  .pd-color-options .pd-has-tooltip:first-child .pd-lens-tooltip::before,
  .pd-color-options .pd-has-tooltip:first-child .pd-lens-tooltip::after,
  .pd-color-options .pd-has-tooltip:last-child .pd-lens-tooltip::before,
  .pd-color-options .pd-has-tooltip:last-child .pd-lens-tooltip::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .pd-color-options .pd-has-tooltip:first-child:hover .pd-lens-tooltip,
  .pd-color-options .pd-has-tooltip:last-child:hover .pd-lens-tooltip {
    transform: translateX(-50%) translateY(0);
  }

  .plt-row {
    min-width: 0;
flex-wrap: wrap;
  }

  .plt-value {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
  }
.pd-xftc2_1{
margin-right: 10px;
    font-size: 10px;
}
.pd-rec-grid .pl-card{
        width: 200px;
}

}

@media (max-width: 480px) {
  .pd-two-col {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .pd-product-name {
    font-size: 20px;
  }

  .pd-desc-title {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .pd-desc-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .pd-info {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .pd-gallery-sticky {
    padding-top: 12px;
  }

  .pd-recommended {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* 極窄屏：2列でセルを広げラベルを読みやすく */
  .pd-color-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .pd-color-item {
    max-width: none;
  }

  .pd-color-item span {
    font-size: 10px;
    line-height: 1.5;
  }

  .pd-qty-wrap {
    flex-wrap: wrap;
    gap: 12px;
  }

  .pd-buttons {
    gap: 10px;
  }

  .pd-btn-cart,
  .pd-btn-buy {
    padding: 16px 18px;
    font-size: 15px;
  }

  .pd-rec-grid {
    /*grid-template-columns: 1fr;*/
  }

  .pd-variants-section {
    padding: 48px 0 40px;
  }

  .pd-variants-images {
    padding: 0 16px;
  }

  .pd-feature-image {
    aspect-ratio: 4 / 3;
  }

  .pd-feature-text {
    padding: 28px 16px;
  }

  .pd-feature-left .pd-feature-text,
  .pd-feature-right .pd-feature-text {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ─── 商品レビュー投稿モーダル（Figma 1:2230） ─── */

.pd-review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  box-sizing: border-box;
}

.pd-review-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.pd-review-modal-overlay.is-open .pd-review-modal {
  transform: translateY(0) scale(1);
}

body.pd-modal-open {
  overflow: hidden;
}

.pd-review-modal {
  position: relative;
  width: 100%;
  max-width: min(1130px, 100%);
  max-height: min(85vh, 1105px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.28s ease;
  outline: none;
}

.pd-review-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 20px 24px 18px;
  border-bottom: 2px solid #7c8790;
}

.pd-review-modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  color: #000;
  line-height: 1.2;
}

.pd-review-modal-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.pd-review-modal-close:hover {
  background: #f0f0f0;
}

.pd-review-modal-close img {
  display: block;
}

.pd-review-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 20px 24px 24px;
  overflow-y: auto;
}

.pd-review-modal-product {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

.pd-review-modal-thumb-wrap {
  flex-shrink: 0;
  width: 142px;
  height: 142px;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafb;
}

.pd-review-modal-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pd-review-modal-product-text {
  padding-top: 8px;
}

.pd-review-modal-name {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1.1;
}

.pd-review-modal-sub {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #8e8e8e;
}

.pd-rm-required-note {
  margin: 0 0 16px;
  font-size: 16px;
  color: #000;
  line-height: 1.5;
}

.pd-rm-req {
  color: #ff1616;
  font-weight: 500;
}

.pd-rm-field {
  margin-bottom: 22px;
}

.pd-rm-label {
  margin: 0 0 10px;
  font-size: 16px;
  color: #000;
  line-height: 1.5;
}

.pd-rm-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pd-rm-star {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 4px;
  transition: transform 0.12s ease;
}

.pd-rm-star:hover {
  transform: scale(1.08);
}

.pd-rm-star:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.pd-rm-star img {
  display: block;
  width: 26px;
  height: 26px;
}

.pd-rm-photo-block {
  margin-bottom: 22px;
}

.pd-rm-photo-heading {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

.pd-rm-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pd-rm-photo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 24px;
}

.pd-rm-photo-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pd-rm-photo-item {
  position: relative;
  width: 146px;
  height: 146px;
  border: 1px solid #a0a0a0;
  border-radius: 10px;
  overflow: hidden;
  background: #f8fafb;
  flex-shrink: 0;
}

.pd-rm-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pd-rm-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.pd-rm-photo-remove:hover {
  background: #000;
}

.pd-rm-photo-empty-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pd-rm-photo-empty-col.is-max {
  display: none;
}

.pd-rm-photo-placeholder {
  width: 146px;
  height: 146px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f7;
  border: 1px solid #a0a0a0;
  border-radius: 10px;
  box-sizing: border-box;
}

.pd-rm-photo-add-btn {
  width: 146px;
  min-height: 32px;
  padding: 4px 8px;
  box-sizing: border-box;
  border: 1px solid #000;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}

.pd-rm-photo-add-btn:hover {
  background: #333;
}

.pd-rm-photo-add-btn:active {
  transform: scale(0.98);
}

.pd-rm-field-text {
  margin-bottom: 20px;
}

.pd-rm-textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  box-sizing: border-box;
  min-height: 178px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 400;
  font-family: inherit;
  color: #3c3c3c;
  line-height: 1.6;
  resize: vertical;
  transition: border-color 0.15s ease;
}

.pd-rm-textarea::placeholder {
  color: #3c3c3c;
  opacity: 0.7;
}

.pd-rm-textarea:focus {
  outline: none;
  border-color: #000;
}

.pd-review-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
  flex-shrink: 0;
}

.pd-rm-submit {
  min-width: 120px;
  min-height: 40px;
  padding: 8px 20px;
  border: none;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease;
}

.pd-rm-submit:hover {
  background: #333;
}

.pd-rm-submit:active {
  transform: scale(0.98);
}

@media (max-width: 480px) {
  .pd-review-modal-form {
    padding: 16px 16px 20px;
  }

  .pd-review-modal-header {
    padding: 16px 16px 14px;
  }

  .pd-review-modal-product {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pd-review-modal-product-text {
    padding-top: 0;
  }

  .pd-rm-photo-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
