/* ================================================================
   WAVE SALAD - 生地サンプルカート機能のスタイル
   product.html(本番)と product-sample-test.html(確認用複製)の
   両方から読み込まれます。既存の products/css/product.css は
   一切変更していません。配色は product.css の --accent 等と揃えています。
   ================================================================ */

/* テスト版であることを示す目印バー */
.sample-test-banner {
  background: #6d5438; color: #fff; text-align: center;
  font-size: 12px; padding: 8px 12px; letter-spacing: 0.02em;
}

/* ヒーローの「生地サンプルを請求する」ボタン下に添える、上限点数の案内文 */
.sample-cart-hero-note { font-size: 11px; color: #999; margin-top: 8px; line-height: 1.6; }

/* 画面右下の常時表示バッジ(「生地サンプル 3 / 10」)。
   仕様・スタイルの選択ボタン等(--accent の茶色)と混同されないよう、
   ヒーローの「生地サンプルを請求する」ボタン(.btn-sample)と同じテラコッタ色にしている */
.sample-cart-badge {
  position: fixed; right: 20px; bottom: 20px; z-index: 850;
  display: flex; align-items: center; gap: 8px;
  background: #c17c65; color: #fff; border: none; border-radius: 30px;
  padding: 12px 18px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(0,0,0,0.2); cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.sample-cart-badge:hover { background: #ab6d59; transform: translateY(-2px); }
@media (max-width: 640px) {
  .sample-cart-badge { right: 14px; bottom: 14px; padding: 10px 14px; font-size: 11.5px; }
}

/* カートのポップアップ(オプション解説ポップアップと同じ構成) */
.sample-cart-overlay {
  display: none; position: fixed; inset: 0; z-index: 900;
  background: rgba(20,16,12,0.5); align-items: center; justify-content: center; padding: 20px;
}
.sample-cart-overlay.is-open { display: flex; }
.sample-cart-box {
  position: relative; background: #fff; border-radius: 10px; max-width: 420px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 32px 26px 26px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.sample-cart-close {
  position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: #f7f5f2; color: #666; font-size: 13px; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.sample-cart-close:hover { background: #8b6f47; color: #fff; }
.sample-cart-title { font-family: 'Shippori Mincho', serif; font-size: 18px; color: #2d2d2d; margin-bottom: 4px; }
.sample-cart-count { font-size: 12px; color: #888; margin-bottom: 6px; }
.sample-cart-limit-note { font-size: 11px; color: #999; line-height: 1.6; margin-bottom: 16px; }
.sample-cart-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.sample-cart-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #f7f5f2; border-radius: 6px; padding: 10px 12px;
}
.sample-cart-item-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sample-cart-item-product { font-size: 13px; color: #2d2d2d; font-weight: 600; }
.sample-cart-item-color { font-size: 11.5px; color: #6d5438; }
.sample-cart-qty-stepper { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.sample-cart-qty-btn {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #d8cfc0;
  background: #fff; color: #6d5438; font-size: 13px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sample-cart-qty-btn:hover { background: #8b6f47; border-color: #8b6f47; color: #fff; }
.sample-cart-qty-num { min-width: 14px; text-align: center; font-size: 13px; color: #2d2d2d; font-weight: 600; }
.sample-cart-item-remove {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #e0d8ce;
  background: #fff; color: #999; font-size: 11px; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.sample-cart-item-remove:hover { background: #a15c3f; border-color: #a15c3f; color: #fff; }
.sample-cart-empty { font-size: 12.5px; color: #999; line-height: 1.8; padding: 14px 0; }
.sample-cart-request-btn { display: block; width: 100%; text-align: center; margin-top: 18px; }
.sample-cart-request-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sample-cart-footnote { font-size: 11px; color: #999; line-height: 1.7; margin-top: 10px; }

/* 簡易トースト通知 */
.sample-toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 950; transform: translate(-50%, 12px);
  background: #2d2a26; color: #fff; font-size: 12.5px; padding: 12px 20px; border-radius: 30px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.25); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease; max-width: 90vw; text-align: center;
}
.sample-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
