/*
Theme Name: Snow Monkey Child
Template: snow-monkey
Version: 1.0
*/

:root{
  /* 親と同じ */
  --accent-color: #528cbf;
  --wp--preset--color--accent-color: #528cbf;

  --sub-accent-color: #0062bf;
  --wp--preset--color--sub-accent-color: #0062bf;
}

/* サブメニュー背景を親と同じ（sub-accent）に寄せる */
.l-header .sub-menu{
  background: var(--sub-accent-color) !important;
}

/* ACF */
/* 商品詳細：画像（左）＋食品表示（右）  */
.product-detail__grid{
  display:flex !important;
  gap:24px;
  align-items:flex-start;
}

/* 1列目（画像）＝ grid直下の最初の要素 */
.product-detail__grid > :first-child{
  flex:0 0 40%;
  max-width:40%;
}

/* 2列目（dl側）＝ grid直下の2つ目の要素 */
.product-detail__grid > :nth-child(2){
  flex:1;
  border:1px solid #e6e6e6;
  border-radius:10px;
  padding:16px;
  background:#fff;
}

.product-detail__grid img{
  width:100%;
  height:auto;
  display:block;
  border-radius:10px;
}

/* dlを見やすく */
.product-detail__dl{ margin:0; }
.product-detail__row{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:12px;
  padding:10px 0;
  border-bottom:1px dashed #eee;
}
.product-detail__row:last-child{ border-bottom:none; }
.product-detail__dt{ font-weight:700; }
.product-detail__dd{ margin:0; white-space:pre-wrap; }

/* スマホは縦 */
@media (max-width: 768px){
  .product-detail__grid{ display:block !important; }
  .product-detail__grid > :first-child{
    max-width:none;
    margin-bottom:16px;
  }
  .product-detail__row{ grid-template-columns: 1fr; }
}

/*フレーバー*/

.product-flavor{
  margin: 0 0 14px;
}
.product-flavor__label{
  font-weight: 700;
  margin-bottom: 8px;
}
.product-flavor__chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.product-flavor__chip{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  font-size: 13px;
  line-height: 1.8;
  background:#fff;
}

/*サイド余白*/
/* 商品詳細ページでは右サイドバーを完全に消す */
.single-product .l-contents__sidebar {
  display: none !important;
}

/* メインコンテンツを横幅100%に */
.single-product .l-contents__main {
  width: 100% !important;
}

/* Flexの余白も解除 */
.single-product .l-contents__inner {
  display: block !important;
}