/*============================================================
  ショップ（商品一覧）セクション表示用
  編集・プレビュー・公開で共通のデザイン
  - タイトル: 横中央寄せ、weight 700、size 32px
  - カード: 横230px・縦370px、radius 4px
  - 画像: 縦横230px
  - 商品名: weight 700、size 16px
  - 価格: weight 400、size 16px
  - カート追加ボタン: #0AC4DD、86px×32px、左寄せ
  - 商品同士の間隔: gap 32px
*============================================================*/

/* セクション両端の余白はグリッドを中央寄せで確保。商品同士は32px */
.maqe-shop .shop-products-inner {
  padding: 16px 24px;
  max-width: 1016px;
  margin-left: auto;
  margin-right: auto;
}

.maqe-shop .shop-products-title {
  text-align: center;
  font-weight: 700;
  font-size: 32px;
  margin: 0 0 40px;
  padding: 0 8px;
  color: #000;
}

/* 4列×230px + 間隔32px×3 = 1016px（プレビュー・公開ではメディアクエリでレスポンシブ） */
.maqe-shop .shop-products-grid {
  display: grid;
  gap: 32px !important;
  grid-template-columns: repeat(4, 230px);
  justify-content: center;
  width: 1016px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.maqe-shop .shop-products-grid--single {
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 230px;
  width: 230px;
  margin-left: auto;
  margin-right: auto;
}

.maqe-shop .shop-products-grid--row {
  grid-template-columns: repeat(4, 230px);
  width: 1016px;
  margin-left: auto;
  margin-right: auto;
}

.maqe-shop .shop-product-card {
  width: 230px;
  height: 370px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.maqe-shop .shop-product-card-img-wrap {
  width: 230px;
  height: 230px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f5f5;
}

.maqe-shop .shop-product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.maqe-shop .shop-product-card-body {
  flex: 1;
  padding: 8px 8px 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.maqe-shop .shop-product-card-name,
.maqe-shop .shop-product-card-link.shop-product-card-name {
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 8px;
  line-height: 1.4;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.maqe-shop .shop-product-card-link {
  text-decoration: none;
  color: inherit;
}

.maqe-shop .shop-product-card-link:hover {
  text-decoration: underline;
  color: inherit;
}

.maqe-shop .shop-product-card-price {
  font-weight: 400;
  font-size: 16px;
  margin: 0 0 12px;
  color: #000;
}

.maqe-shop .shop-product-card-btn {
  width: 86px;
  height: 32px;
  padding: 0;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  background: #0AC4DD;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
}
.maqe-shop .shop-product-card-btn:hover {
  color: #fff;
  opacity: 0.9;
}

/* 商品一覧ページへの導線（「最新4つまで」+ チェック時のみ表示） */
.maqe-shop .shop-products-list-link-wrap {
  text-align: center;
  margin-top: 32px;
}

.maqe-shop .shop-products-list-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 44px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #0AC4DD;
  border-radius: 8px;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.2s;
}

.maqe-shop .shop-products-list-link-btn:hover {
  background: #09a9bf;
  color: #fff;
}

/*============================================================
  プレビュー・公開サイト用レスポンシブ（gap 32px 維持）
*============================================================*/

/* タブレット: 2列（230×2 + 32 = 492px） */
@media (max-width: 1024px) {
  .maqe-shop .shop-products-inner {
    max-width: 492px;
  }

  .maqe-shop .shop-products-grid,
  .maqe-shop .shop-products-grid--row {
    grid-template-columns: repeat(2, 230px);
    width: 492px;
    max-width: 100%;
  }
}

/* スマホ: 1列（230px） */
@media (max-width: 560px) {
  .maqe-shop .shop-products-inner {
    max-width: 230px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .maqe-shop .shop-products-grid,
  .maqe-shop .shop-products-grid--row {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 230px;
    justify-items: center;
  }

  .maqe-shop .shop-products-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .maqe-shop .shop-product-card {
    width: 100%;
    max-width: 230px;
  }

  .maqe-shop .shop-product-card-img-wrap {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
  }
}

/*============================================================
  ショップ用フッター法務リンク（特定商取引法に基づく表記 | 利用規約）
  フッター背景が白・明るい場合は濃い色、黒帯の場合は .footer-dark で上書き可能
*============================================================*/
.shop-footer-legal-links {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
}

.shop-footer-legal-links a {
  color: inherit;
  text-decoration: none;
}

.shop-footer-legal-links a:hover {
  text-decoration: underline;
}

.shop-footer-legal-sep {
  margin: 0 8px;
  opacity: 0.85;
}
