/* ============================================================
   QuickStore - ストアコンポーネント CSS
   テーマ変数(--primary-color 等)と共存する設計
   ============================================================ */

/* --- 共通 --- */
.store-empty-message {
  text-align: center;
  padding: 40px 20px;
  /* #888 は白地で 3.3:1 しかなく AA を割っていた（QS-44）。
     トークンなら明暗どちらのテーマでも読める。 */
  color: var(--qc-fg-muted, #6b7280);
}

.store-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}
.store-badge--sale {
  background: var(--danger-color, #dc3545);
  color: #fff;
}
.store-badge--out-of-stock {
  background: #999;
  color: #fff;
}

/* --- 価格 --- */
.store-price {
  font-weight: 700;
}
.store-price--current {
  color: var(--font-color, #222);
}
.store-price--current.store-price--large {
  font-size: 1.5rem;
}
.store-price--original {
  text-decoration: line-through;
  color: #999;
  margin-right: 6px;
}
.store-price-tax-note {
  font-size: 0.75rem;
  color: #888;
  margin-left: 4px;
}

/* --- 商品グリッド --- */
.store-product-grid {
  display: grid;
  gap: 20px;
}
.store-product-grid--col-2 { grid-template-columns: repeat(2, 1fr); }
.store-product-grid--col-3 { grid-template-columns: repeat(3, 1fr); }
.store-product-grid--col-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .store-product-grid--col-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .store-product-grid--col-4,
  .store-product-grid--col-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .store-product-grid--col-4,
  .store-product-grid--col-3,
  .store-product-grid--col-2 { grid-template-columns: 1fr; }
}

/* --- 商品カード --- */
.store-product-card {
  border: 1px solid #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: var(--bg-color, #fff);
}
.store-product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.store-product-card__image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f8f9fa;
}
.store-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-product-card__image .store-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}
.store-product-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.85rem;
}
.store-product-card__body {
  padding: 12px;
}
.store-product-card__name {
  display: block;
  font-weight: 600;
  color: var(--font-color, #222);
  text-decoration: none;
  margin-bottom: 4px;
  line-height: 1.3;
}
.store-product-card__name:hover {
  color: var(--primary-color, #007bff);
}
.store-product-card__desc {
  font-size: 0.8rem;
  color: #666;
  margin: 4px 0;
}
.store-product-card__price {
  margin-top: 6px;
}

/* --- フィルター --- */
.store-filters {
  margin-bottom: 24px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 6px;
}
.store-filters__form {
  margin: 0;
}
.store-filters__row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.store-filters__search {
  flex: 1;
  min-width: 200px;
}
.store-filters__select {
  width: auto;
  min-width: 140px;
}

/* --- ページネーション --- */
.store-pagination {
  margin: 30px 0;
  text-align: center;
}
.store-pagination ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 4px;
}
.store-pagination li a,
.store-pagination li span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  text-decoration: none;
  color: var(--font-color, #222);
}
.store-pagination li.active span {
  background: var(--primary-color, #007bff);
  color: #fff;
  border-color: var(--primary-color, #007bff);
}
.store-pagination li a:hover {
  background: #e9ecef;
}

/* --- 商品詳細 --- */
.store-product-detail__main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .store-product-detail__main {
    grid-template-columns: 1fr;
  }
}

/* ギャラリー */
.store-product-gallery__item {
  display: none;
}
.store-product-gallery__item--active {
  display: block;
}
.store-product-gallery__item img {
  width: 100%;
  border-radius: 6px;
}
.store-product-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.store-product-gallery__thumb {
  width: 60px;
  height: 60px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
}
.store-product-gallery__thumb:hover {
  border-color: var(--primary-color, #007bff);
}
.store-product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-product-gallery__placeholder {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-radius: 6px;
  color: #ccc;
}

/* 商品情報 */
.store-product-info__name {
  margin: 0 0 10px;
}
.store-product-info__rating {
  margin-bottom: 10px;
}
.store-rating-stars .star.filled {
  color: #ffc107;
}
.store-rating-stars .star {
  color: #ddd;
}
.store-rating-count {
  color: #888;
  font-size: 0.85rem;
  margin-left: 4px;
}
.store-product-info__price {
  margin: 16px 0;
}
.store-stock--available {
  color: var(--success-color, #28a745);
  font-weight: 600;
}
.store-stock--unavailable {
  color: var(--danger-color, #dc3545);
  font-weight: 600;
}
.store-product-info__short-desc {
  color: #555;
  margin: 12px 0;
}
.store-product-info__description {
  margin-top: 24px;
  line-height: 1.7;
}

/* バリエーション選択 */
.store-variant-selector {
  margin: 16px 0;
}
.store-variant-option {
  display: block;
  padding: 8px 12px;
  margin-bottom: 4px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
}
.store-variant-option:hover {
  border-color: var(--primary-color, #007bff);
}
.store-variant-option input[type="radio"] {
  margin-right: 8px;
}

/* 数量セレクター */
.store-quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin-right: 10px;
}
.store-quantity-selector--small {
  margin-right: 0;
}
.store-qty-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--font-color, #222);
}
.store-qty-btn:hover {
  background: #f8f9fa;
}
.store-qty-input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  padding: 6px 0;
  -moz-appearance: textfield;
}
.store-qty-input::-webkit-outer-spin-button,
.store-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.store-add-to-cart-form {
  display: flex;
  align-items: center;
  margin: 16px 0;
}
.store-add-to-cart-btn {
  min-width: 160px;
}

/* --- カート --- */
.store-cart-table {
  width: 100%;
  border-collapse: collapse;
}
.store-cart-table th,
.store-cart-table td {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}
.store-cart-table th {
  text-align: left;
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
}
.store-cart-item__product a {
  font-weight: 600;
  color: var(--font-color, #222);
  text-decoration: none;
}
.store-cart-item__product a:hover {
  color: var(--primary-color, #007bff);
}
.store-cart-item__variant {
  font-size: 0.8rem;
  color: #888;
}
.store-cart-remove-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #999;
  cursor: pointer;
}
.store-cart-remove-btn:hover {
  color: var(--danger-color, #dc3545);
}
.store-cart-coupon {
  margin: 20px 0;
}
.store-cart-coupon__form {
  display: flex;
  gap: 10px;
  max-width: 400px;
}
.store-cart-summary {
  margin-top: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
}
.store-cart-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 1.1rem;
}
.store-cart-summary__actions {
  margin-top: 16px;
  text-align: right;
}

/* --- ミニカート --- */
.store-mini-cart {
  position: relative;
  display: inline-block;
  text-decoration: none;
  font-size: 1.3rem;
}
.store-mini-cart__badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--danger-color, #dc3545);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50%;
}

/* --- カテゴリ一覧 --- */
.store-category-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.store-category-list--list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.store-category-item {
  display: block;
  text-decoration: none;
  color: var(--font-color, #222);
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 16px;
  text-align: center;
  transition: box-shadow 0.2s;
}
.store-category-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.store-category-item__image {
  margin-bottom: 8px;
}
.store-category-item__image img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}
.store-category-item__name {
  font-weight: 600;
}
.store-category-item__desc {
  font-size: 0.8rem;
  color: #888;
  margin-top: 4px;
}

/* --- パンくず --- */
.store-breadcrumb {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 16px;
}
.store-breadcrumb a {
  color: #888;
  text-decoration: none;
}
.store-breadcrumb a:hover {
  color: var(--primary-color, #007bff);
}

/* --- レビュー --- */
.store-reviews {
  margin-top: 40px;
}
.store-reviews__summary {
  display: flex;
  gap: 30px;
  margin-bottom: 24px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
}
.store-reviews__avg-number {
  font-size: 2rem;
  font-weight: 700;
  margin-right: 8px;
}
.store-reviews__count {
  color: #888;
  font-size: 0.85rem;
}
.store-reviews__distribution {
  flex: 1;
}
.store-reviews__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.8rem;
}
.store-reviews__bar-track {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}
.store-reviews__bar-fill {
  height: 100%;
  background: #ffc107;
  border-radius: 4px;
}
.store-reviews__form {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}
.store-rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.store-rating-input__star {
  cursor: pointer;
  font-size: 1.5rem;
  color: #ddd;
}
.store-rating-input__star input {
  display: none;
}
.store-rating-input__star:hover span,
.store-rating-input__star:hover ~ .store-rating-input__star span,
.store-rating-input__star input:checked ~ span {
  color: #ffc107;
}
.store-review {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.store-review__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.store-review__title {
  font-size: 0.95rem;
}
.store-review__date {
  font-size: 0.8rem;
  color: #999;
  margin-left: auto;
}
.store-review__comment {
  margin: 6px 0;
  line-height: 1.6;
}
.store-review__author {
  font-size: 0.8rem;
  color: #888;
}

/* --- 関連商品 --- */
.store-related-products {
  margin-top: 40px;
}

/* --- サブカテゴリリンク --- */
.store-subcategories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.store-subcategory-link {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  text-decoration: none;
  color: var(--font-color, #222);
  font-size: 0.85rem;
}
.store-subcategory-link:hover {
  border-color: var(--primary-color, #007bff);
  color: var(--primary-color, #007bff);
}

/* --- 管理画面: バリエーションマトリックス --- */
.variant-matrix-toolbar {
  margin: 20px 0;
  padding: 16px;
  background: #f0f4f8;
  border: 1px solid #d0d7de;
  border-radius: 4px;
}
.variant-matrix-toolbar h3 {
  margin-top: 0;
}
.variant-matrix-inputs {
  margin-bottom: 10px;
}
.variant-attr-input {
  margin-bottom: 8px;
}
.variant-attr-input label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.variant-matrix-actions {
  margin-bottom: 12px;
}
.variant-matrix-actions .button {
  margin-right: 8px;
}
.variant-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.variant-matrix-table th,
.variant-matrix-table td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  font-size: 0.85rem;
}
.variant-matrix-table th {
  background: #e8ecf0;
}
.variant-matrix-table input[type="text"],
.variant-matrix-table input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 3px;
}
.variant-matrix-save {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.matrix-count {
  font-size: 0.85rem;
  color: #666;
}

/* ============================================================
   Home ページ系コンポーネント追加（2026-04 追記）
   hero_banner / featured_products / new_arrivals / feature_banner /
   store_info_boxes / featured_sellers / category_list など
   ============================================================ */

/* --- Section Title (render_featured_products 等の見出し) --- */
.store-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--primary-color, #2d7a4f);
  display: inline-block;
}

.store-section-more-link {
  float: right;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-color, #2d7a4f);
  text-decoration: none;
  margin-top: 8px;
}
.store-section-more-link:hover { text-decoration: underline; }

/* --- Hero Banner (render_hero_banner) --- */
.store-hero-banner {
  position: relative;
  min-height: 320px;
  background: linear-gradient(135deg,
    var(--primary-color, #2d7a4f) 0%,
    var(--secondary-color, #c78c3d) 100%);
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  margin-bottom: 36px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.store-hero-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18) 0, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.12) 0, transparent 50%);
  pointer-events: none;
}
.store-hero-banner__content {
  position: relative;
  z-index: 2;
  padding: 56px 48px;
  max-width: 680px;
}
.store-hero-banner__title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.store-hero-banner__desc {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 24px;
  line-height: 1.6;
}
.store-hero-banner__btn {
  padding: 12px 32px;
  font-weight: 700;
  border-radius: 999px;
}

/* --- Featured Products / New Arrivals wrapper --- */
.store-featured-products,
.store-new-arrivals {
  margin-bottom: 48px;
}

/* --- Product Grid 列数バリエーション (product_list / featured / new_arrivals 共通) --- */
.store-product-grid {
  display: grid;
  gap: 20px;
}
.store-product-grid--col-1 { grid-template-columns: 1fr; }
.store-product-grid--col-2 { grid-template-columns: repeat(2, 1fr); }
.store-product-grid--col-3 { grid-template-columns: repeat(3, 1fr); }
.store-product-grid--col-4 { grid-template-columns: repeat(4, 1fr); }
.store-product-grid--col-5 { grid-template-columns: repeat(5, 1fr); }
.store-product-grid--col-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 991.98px) {
  .store-product-grid--col-3,
  .store-product-grid--col-4,
  .store-product-grid--col-5,
  .store-product-grid--col-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
  .store-product-grid--col-2,
  .store-product-grid--col-3,
  .store-product-grid--col-4,
  .store-product-grid--col-5,
  .store-product-grid--col-6 { grid-template-columns: repeat(2, 1fr); }
}
.store-product-list {
  /* product_list ページ全体の wrapper */
}

/* --- Product Card seller info（出品者名、モール特有） --- */
.store-product-card__seller {
  font-size: 0.78rem;
  color: var(--font-color, #777);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.store-product-card__seller .bi { color: var(--primary-color, #2d7a4f); }

/* --- Feature Banner (render_feature_banner: 特集・販促バナー) --- */
.store-feature-banner {
  background: linear-gradient(135deg,
    var(--secondary-color, #c78c3d) 0%,
    var(--accent-color, #d94f4f) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 28px 36px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.store-feature-banner .bi {
  font-size: 2.6rem;
  flex-shrink: 0;
  opacity: 0.95;
}
.store-feature-banner__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
}
.store-feature-banner__desc {
  font-size: 0.95rem;
  margin: 0;
  opacity: 0.95;
}
@media (max-width: 575.98px) {
  .store-feature-banner { flex-direction: column; text-align: center; padding: 24px 20px; }
}

/* --- Store Info Boxes (render_store_info_boxes: 配送無料、安心決済 等) --- */
.store-info-boxes {
  margin-bottom: 36px;
}
.store-info-boxes__grid {
  display: grid;
  gap: 16px;
}
.store-info-boxes__grid--2 { grid-template-columns: repeat(2, 1fr); }
.store-info-boxes__grid--3 { grid-template-columns: repeat(3, 1fr); }
.store-info-boxes__grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 767.98px) {
  .store-info-boxes__grid--3,
  .store-info-boxes__grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 475px) {
  .store-info-boxes__grid--2,
  .store-info-boxes__grid--3,
  .store-info-boxes__grid--4 { grid-template-columns: 1fr; }
}
.store-info-box {
  background: #fff;
  border: 1px solid var(--border-color, #e0dcd7);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.store-info-box:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.store-info-box__icon {
  font-size: 2.2rem;
  color: var(--primary-color, #2d7a4f);
  display: block;
  margin-bottom: 10px;
}
.store-info-box__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.store-info-box__desc {
  font-size: 0.85rem;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* --- Featured Sellers (render_featured_sellers: 出品者一覧) --- */
.store-featured-sellers {
  margin-bottom: 48px;
}
.store-seller-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 991.98px) {
  .store-seller-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
  .store-seller-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 475px) {
  .store-seller-grid { grid-template-columns: 1fr; }
}
.store-seller-card {
  background: #fff;
  border: 1px solid var(--border-color, #e0dcd7);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.store-seller-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.store-seller-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-color, #2d7a4f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
  overflow: hidden;
}
.store-seller-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.store-seller-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--font-color, #333);
}
.store-seller-card__location {
  font-size: 0.78rem;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.store-seller-card__rating {
  font-size: 0.82rem;
  color: var(--warning-color, #ffc107);
  font-weight: 600;
}
.store-seller-card__desc {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.5;
  margin: 4px 0 10px;
  min-height: 2.5em;
}
.store-seller-card__link {
  margin-top: auto;
  font-size: 0.82rem;
}

/* --- Category List (render_category_list: grid / list) --- */
.store-category-list {
  margin-bottom: 36px;
}
.store-category-list--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.store-category-list--list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (max-width: 767.98px) {
  .store-category-list--grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Category Nav (store_header.html のカテゴリバー) --- */
.store-category-bar__link {
  color: var(--font-color, #333);
  padding: 10px 16px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.store-category-bar__link:hover {
  color: var(--primary-color, #2d7a4f);
  border-bottom-color: var(--primary-color, #2d7a4f);
  text-decoration: none;
}

/* --- Seller Info (render_seller_info: 商品詳細内の出品者情報) --- */
.store-seller-info {
  background: var(--primary-color-light, #e8f5ee);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.store-seller-info__header {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}
.store-seller-info__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-color, #2d7a4f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  overflow: hidden;
}
.store-seller-info__avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-seller-info__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.store-seller-info__location {
  font-size: 0.82rem;
  color: #777;
}
.store-seller-info__meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
}
.store-seller-info__rating { display: inline-flex; align-items: center; gap: 4px; }
.store-seller-info__rating .bi { color: var(--warning-color, #ffc107); }
.store-seller-info__rating-value { font-weight: 700; }
.store-seller-info__desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #555;
  margin: 10px 0;
}
.store-seller-info__details {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
}

/* --- Product Detail --- */
.store-product-detail {
  margin-bottom: 48px;
}
.store-product-gallery {
  margin-bottom: 24px;
}
.store-product-info {
  padding-left: 0;
}
.store-product-info__stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.store-stock {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  background: #f0ece6;
  color: #555;
}
.store-stock--in { background: #e8f5ee; color: #1e5c3a; }
.store-stock--low { background: #fff4e0; color: #8b5a0c; }
.store-stock--out { background: #fde7e7; color: #8b1a1a; }
.store-stock--available { background: #e8f5ee; color: #1e5c3a; }
.store-stock--unavailable { background: #fde7e7; color: #8b1a1a; }

/* --- Product Reviews --- */
.store-reviews__avg {
  text-align: center;
  padding: 20px;
  background: #faf9f6;
  border-radius: 10px;
  margin-bottom: 24px;
}
.store-reviews__avg-stars {
  color: var(--warning-color, #ffc107);
  font-size: 1.4rem;
  margin: 8px 0;
}
.store-reviews__list { list-style: none; padding: 0; }
.store-review__stars { color: var(--warning-color, #ffc107); font-size: 0.95rem; }

/* --- Filters (product_list ページサイド) --- */
.store-filters__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}
@media (max-width: 767.98px) {
  .store-filters__layout { grid-template-columns: 1fr; }
}
.store-filters__sidebar {
  background: #fff;
  border: 1px solid var(--border-color, #e0dcd7);
  border-radius: 10px;
  padding: 16px;
  height: fit-content;
}
.store-filters__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.store-filters__heading {
  font-size: 0.95rem;
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color, #e0dcd7);
}
.store-filters__group { margin-bottom: 16px; }
.store-filters__check { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 0.88rem; }
.store-filters__count { color: #999; font-size: 0.78rem; }
.store-filters__main {}
.store-filters__search { flex: 0 1 280px; }

/* --- Cart --- */
.store-cart { margin-bottom: 40px; }
.store-cart-grouped { margin-bottom: 40px; }
.store-cart-grouped__notice {
  background: #fdf3e3;
  border-left: 4px solid var(--secondary-color, #c78c3d);
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 6px;
  font-size: 0.9rem;
}
.store-cart-vendor-group {
  background: #fff;
  border: 1px solid var(--border-color, #e0dcd7);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.store-cart-vendor-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color, #e0dcd7);
  font-weight: 700;
}
.store-cart-vendor-group__location { font-size: 0.82rem; color: #777; font-weight: normal; }
.store-cart-vendor-group__subtotal { font-weight: 700; color: var(--primary-color, #2d7a4f); }

.store-cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f2f0ec;
}
@media (max-width: 575.98px) {
  .store-cart-item { grid-template-columns: 72px 1fr; grid-template-rows: auto auto; }
  .store-cart-item__price,
  .store-cart-item__quantity,
  .store-cart-item__subtotal,
  .store-cart-item__remove { grid-column: 2; }
}
.store-cart-item__price { color: #555; font-size: 0.9rem; }
.store-cart-item__quantity { display: flex; align-items: center; gap: 4px; }
.store-cart-item__subtotal { font-weight: 700; color: var(--primary-color, #2d7a4f); }
.store-cart-item__remove { color: #999; background: none; border: none; font-size: 1.1rem; cursor: pointer; }
.store-cart-item__remove:hover { color: var(--danger-color, #dc3545); }
.store-cart-qty-form { display: inline-flex; gap: 4px; align-items: center; }
.store-cart-summary__row--note { font-size: 0.82rem; color: #777; }

/* --- Checkout --- */
.store-checkout { margin-bottom: 48px; }
.store-checkout-empty { text-align: center; padding: 60px 20px; }
.store-checkout-login {
  background: #faf9f6;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.store-checkout-login__actions { margin-top: 12px; display: flex; gap: 10px; justify-content: center; }
.store-checkout-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.store-checkout-step {
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  background: #f3f0ec;
  color: #888;
  font-weight: 600;
}
.store-checkout-step--active {
  background: var(--primary-color, #2d7a4f);
  color: #fff;
}
.store-checkout-step--done {
  background: #e8f5ee;
  color: var(--primary-color, #2d7a4f);
}
.store-checkout-step-divider { color: #ccc; padding: 0 4px; }
.store-checkout-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}
@media (max-width: 991.98px) {
  .store-checkout-grid { grid-template-columns: 1fr; }
}
.store-checkout-main {}
.store-checkout-sidebar {}
.store-checkout-section {
  background: #fff;
  border: 1px solid var(--border-color, #e0dcd7);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
}
.store-checkout-form {}
.store-checkout-fields-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 575.98px) {
  .store-checkout-fields-row { grid-template-columns: 1fr; }
}
.store-checkout-field { margin-bottom: 12px; }
.store-checkout-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.store-checkout-options { display: flex; flex-direction: column; gap: 10px; }
.store-checkout-option {
  border: 2px solid var(--border-color, #e0dcd7);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
}
.store-checkout-option--selected {
  border-color: var(--primary-color, #2d7a4f);
  background: #e8f5ee;
}
.store-checkout-option__price { font-weight: 700; color: var(--primary-color, #2d7a4f); }
.store-checkout-summary {
  background: #faf9f6;
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 20px;
}
.store-checkout-summary__item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.88rem; }
.store-checkout-summary__item-name { flex: 1; }
.store-checkout-summary__item-price { font-weight: 600; }
.store-checkout-summary__qty { color: #777; font-size: 0.78rem; }
.store-checkout-summary__row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.9rem; }
.store-checkout-summary__row--discount { color: var(--accent-color, #d94f4f); }
.store-checkout-summary__row--total {
  font-size: 1.1rem;
  font-weight: 700;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 2px solid var(--border-color, #e0dcd7);
}
.store-checkout-summary__shipping { color: #777; }
.store-checkout-summary__total { color: var(--primary-color, #2d7a4f); }
.store-checkout-submit {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  margin-top: 14px;
}
.store-checkout-trust {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
  font-size: 0.82rem;
  color: #777;
}
.store-checkout-no-address { padding: 14px; text-align: center; font-size: 0.9rem; color: #777; }

.store-address-list { display: flex; flex-direction: column; gap: 10px; }
.store-address-option {
  border: 2px solid var(--border-color, #e0dcd7);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
}
.store-address-option--selected {
  border-color: var(--primary-color, #2d7a4f);
  background: #e8f5ee;
}
.store-address-option__body { flex: 1; font-size: 0.88rem; }

.store-payment-methods { display: flex; flex-direction: column; gap: 10px; }
.store-payment-option {
  border: 2px solid var(--border-color, #e0dcd7);
  border-radius: 8px;
  padding: 14px;
  cursor: pointer;
  display: flex;
  gap: 10px;
}
.store-payment-option--selected {
  border-color: var(--primary-color, #2d7a4f);
  background: #e8f5ee;
}
.store-payment-option__body { flex: 1; }
.store-payment-option__desc { font-size: 0.82rem; color: #777; margin-top: 4px; }

/* --- MyPage --- */
.store-mypage { margin-bottom: 48px; }
.store-mypage-login { text-align: center; padding: 60px 20px; }
.store-mypage-login__actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.store-mypage-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}
@media (max-width: 767.98px) {
  .store-mypage-grid { grid-template-columns: 1fr; }
}
.store-mypage-sidebar {}
.store-mypage-main {}
.store-mypage-user {
  background: #fff;
  border: 1px solid var(--border-color, #e0dcd7);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}
.store-mypage-user__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-color, #2d7a4f);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 10px;
  overflow: hidden;
}
.store-mypage-user__avatar img { width: 100%; height: 100%; object-fit: cover; }
.store-mypage-user__name { font-size: 1rem; font-weight: 700; margin: 0; }
.store-mypage-user__email { font-size: 0.82rem; color: #777; margin: 4px 0 0; }
.store-mypage-nav { display: flex; flex-direction: column; gap: 2px; }
.store-mypage-nav__link {
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--font-color, #333);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s;
}
.store-mypage-nav__link:hover {
  background: var(--primary-color-light, #e8f5ee);
  color: var(--primary-color, #2d7a4f);
  text-decoration: none;
}
.store-mypage-nav__link--active {
  background: var(--primary-color, #2d7a4f);
  color: #fff;
}
.store-mypage-nav__link--active:hover { background: var(--primary-color, #2d7a4f); color: #fff; }
.store-mypage-nav__link--muted { color: #999; }
.store-mypage-nav__badge {
  margin-left: auto;
  background: var(--accent-color, #d94f4f);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
}
.store-mypage-all-orders { text-align: right; margin-top: 14px; }

/* --- Order Card (mypage / order_history 共通) --- */
.store-order-history {}
.store-order-history-login { text-align: center; padding: 60px 20px; }
.store-order-card {
  background: #fff;
  border: 1px solid var(--border-color, #e0dcd7);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.store-order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color, #e0dcd7);
  flex-wrap: wrap;
  gap: 6px;
}
.store-order-card__meta { font-size: 0.82rem; color: #777; }
.store-order-card__body { display: flex; flex-direction: column; gap: 8px; }
.store-order-card__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
}
.store-order-card__item img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}
.store-order-card__item-name { font-size: 0.9rem; }
.store-order-card__item-detail { font-size: 0.82rem; color: #777; }
.store-order-card__footer {
  padding-top: 12px;
  margin-top: 10px;
  border-top: 1px solid var(--border-color, #e0dcd7);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.store-order-card__footer-left { display: flex; gap: 10px; flex-wrap: wrap; }
.store-order-card__footer-actions { display: flex; gap: 8px; }
.store-order-card__actions { display: flex; gap: 8px; }
.store-order-card__more { font-size: 0.82rem; color: #777; }
.store-order-card__totals { font-weight: 700; }
.store-order-card__total { color: var(--primary-color, #2d7a4f); font-size: 1.05rem; }
.store-order-card__tracking { font-size: 0.82rem; color: #777; }

/* --- Status badge (order status) --- */
.store-status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f0ece6;
  color: #555;
}
.store-status-badge--pending { background: #fff4e0; color: #8b5a0c; }
.store-status-badge--paid { background: #e0e9ff; color: #2d4fa0; }
.store-status-badge--shipped { background: #e8f5ee; color: #1e5c3a; }
.store-status-badge--delivered { background: #d4f1de; color: #155a33; }
.store-status-badge--cancelled { background: #fde7e7; color: #8b1a1a; }
.store-status-badge--refunded { background: #f0f0f0; color: #666; }

