/* =========================================================
   products page
========================================================= */

/* 変数の補完 */
:root{
  --products-line: #e4dfd5;
  --products-shadow: 0 10px 24px rgba(59,40,29,.08);
  --products-kamone: #35c6c9;
  --products-pink: #f3a3c0;
}

/* メイン */
.page-main{
  padding: 44px 0 90px;
}

/* 一覧ページの共通幅 */
.page-main .container{
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* パンくず */
.breadcrumb{
  font-size: 12px;
  color: #aaa193;
  margin-bottom: 18px;
  letter-spacing: .04em;
}
.breadcrumb span{
  margin: 0 8px;
}

/* 見出し */
.page-head{
  margin-bottom: 28px;
}
.page-head__eyebrow{
  font-size: 13px;
  color: #c5a56a;
  letter-spacing: .18em;
  margin-bottom: 10px;
}
.page-head h1{
  font-family: 'Noto Serif JP', serif;
  font-size: 44px;
  line-height: 1.3;
  margin-bottom: 18px;
}
.page-head__line{
  width: 54px;
  height: 2px;
  background: #d8c09a;
  border-radius: 999px;
}

/* フィルター */
.filter-tabs{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 34px;
}
.filter-tabs a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--products-line);
  color: var(--sub);
  font-size: 13px;
  transition: .2s ease;
  text-decoration: none;
}
.filter-tabs a.is-active{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.filter-tabs a.is-kamone{
  color: var(--products-kamone);
  border-color: rgba(53,198,201,.25);
}

/* 商品グリッド */
.products-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  margin-top: 8px;
}

.product-card{
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(229,221,210,.9);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--products-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}
.product-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(59,40,29,.12);
}

.product-card__thumb{
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f1ece5;
  overflow: hidden;
}
.product-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  background: #efe4c7;
  color: #b38d3f;
}
.badge.is-new{
  left: 12px;
  right: auto;
  background: var(--products-pink);
  color: #fff;
}

.product-card__body{
  padding: 16px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card__title{
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}
.product-card__meta{
  font-size: 12px;
  color: #9d9388;
}
.product-card__price{
  margin-top: auto;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
.product-card__price small{
  font-size: 12px;
  font-weight: 500;
  margin-left: 4px;
  color: #8f857a;
}
.product-card__note{
  font-size: 12px;
  color: #f08ab2;
  margin-top: 6px;
}

/* CTA */
.products-cta{
  text-align: center;
  padding: 72px 0 16px;
}
.products-cta p{
  font-size: 22px;
  font-family: 'Noto Serif JP', serif;
  margin-bottom: 20px;
}
.products-cta a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* レスポンシブ */
@media (max-width: 1100px){
  .products-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px){
  .page-head h1{
    font-size: 34px;
  }

  .products-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .page-main{
    padding: 28px 0 64px;
  }

  .page-main .container{
    width: min(1120px, calc(100% - 28px));
  }

  .page-head h1{
    font-size: 28px;
  }

  .products-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .products-cta p{
    font-size: 18px;
    line-height: 1.7;
  }
}
/* =========================
   商品カード内リンクの崩れ修正
========================= */
.products-grid .product-card > a{
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.products-grid .product-card > a:hover,
.products-grid .product-card > a:focus,
.products-grid .product-card > a:active,
.products-grid .product-card > a:visited{
  color: inherit;
  text-decoration: none;
}

/* タイトルや価格もリンク色を継承させる */
.product-card__title,
.product-card__meta,
.product-card__price,
.product-card__price small{
  color: inherit;
  text-decoration: none;
}

/* カード全体の文字色を安定させる */
.product-card{
  color: var(--text);
}

/* 価格だけは少し強調を維持 */
.product-card__price{
  color: var(--text);
}

.product-card__price small{
  color: #8f857a;
}