/* 商品一覧ページ専用CSS（product_list page_type） */

.endo-product-list .layout_wrapper {
  width: 100%;
  max-width: none;
  background: transparent;
}
.endo-product-list .layout_header,
.endo-product-list .layout_footer {
  display: none;
}
.endo-product-list .layout_container {
  width: 100%;
  margin: 0;
}

/* ========== コンテナ ========== */
.pl-wrap {
  width: 1180px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 0 0 40px;
}

/* ========== パンくず ========== */
.pl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 0;
  font-size: 12px;
  color: #8d7770;
}
.pl-breadcrumb a:hover {
  text-decoration: underline;
}

/* ========== 2カラムレイアウト ========== */
.pl-layout {
  display: grid;
  grid-template-columns: 205px 1fr;
  gap: 28px;
  align-items: start;
}

/* ========== サイドバー ========== */
.pl-side .side-box {
  background: #fff;
  border: 1px solid #e3d5c9;
  margin-bottom: 16px;
  box-shadow: 0 3px 11px rgba(89, 47, 28, .03);
}
.pl-side .side-box h2 {
  margin: 0;
  padding: 10px 14px;
  background: linear-gradient(90deg, #420506, #2b0102);
  color: #fff;
  font-size: 14px;
  letter-spacing: .06em;
}
.pl-side .side-list {
  list-style: none;
  padding: 7px 14px;
  margin: 0;
}
.pl-side .side-list li + li {
  border-top: 1px solid #eee4dc;
}
.pl-side .side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 12.5px;
  color: #5e443d;
}
.pl-side .side-list a:after {
  content: "\203A";
  color: #9f8278;
}
.pl-side .side-list a:hover {
  color: #4b0e12;
}

/* スマホ用ナビ（PC非表示） */
.pl-sp-nav { display: none; }
.pl-sp-nav-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e3d5c9;
}
.pl-sp-tab {
  flex: 1;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 700;
  color: #9f8278;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  letter-spacing: .04em;
}
.pl-sp-tab.active {
  color: #4b0e12;
  border-bottom-color: #6d1c1f;
}
.pl-sp-panel {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0 4px;
}
.pl-sp-panel.active { display: flex; }
.pl-sp-panel a {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #5e443d;
  background: #fff;
  border: 1px solid #e3d5c9;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
}
.pl-sp-panel a:hover { background: #f8f3ee; }

/* ソムリエカード */
.pl-sommelier {
  min-height: 140px;
  padding: 18px 16px;
  color: #fff;
  background: radial-gradient(circle at 100% 30%, rgba(255, 255, 255, .22), transparent 18%),
              linear-gradient(135deg, #4d0709, #250102);
  border: 1px solid #3d0506;
  position: relative;
  overflow: hidden;
}
.pl-sommelier:after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -32px;
  width: 120px;
  height: 160px;
  background: linear-gradient(#dbd0c4, #36221d);
  opacity: .26;
  border-radius: 58% 42% 0 0;
}
.pl-sommelier p {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  line-height: 1.7;
  font-size: 15px;
}
.pl-sommelier a {
  position: relative;
  z-index: 1;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .7);
  padding: 6px 13px;
  font-size: 12px;
  color: #fff;
}

/* ========== メインコンテンツ ========== */
.pl-content {
  min-width: 0;
}

/* ページタイトル行 */
.pl-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pl-title-row h1 {
  margin: 0 0 4px;
  color: #4b0e12;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .08em;
}
.pl-title-row > p {
  margin: 0;
  color: #6b5550;
  font-size: 14px;
}
.pl-count {
  white-space: nowrap;
  font-size: 14px;
  color: #6b5550;
}

/* ========== ソートバー ========== */
.pl-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
}
.pl-sort a {
  color: #5a4640;
  padding: 5px 12px;
  border: 1px solid #d8c8bc;
  background: #fff;
}
.pl-sort a:hover {
  background: #fbf3e6;
}
.pl-sort strong {
  padding: 5px 12px;
  border: 1px solid #4b0e12;
  background: #4b0e12;
  color: #fff;
}

/* ========== カテゴリ説明 ========== */
.pl-desc {
  margin-bottom: 20px;
}
.pl-desc img {
  max-width: 100%;
  height: auto;
}

/* ========== サブカテゴリグリッド ========== */
.pl-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.pl-sub-grid a {
  display: block;
  background: #fff;
  border: 1px solid #e3d5c9;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  color: #5e443d;
  transition: .15s;
}
.pl-sub-grid a:hover {
  background: #fbf3e6;
  border-color: #4b0e12;
}
.pl-sub-grid img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  margin-bottom: 6px;
}

/* ========== 商品グリッド ========== */
.pl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

/* ========== 商品カード ========== */
.pl-card {
  position: relative;
  background: #fff;
  border: 1px solid #e4d8cd;
  padding: 14px 12px;
  box-shadow: 0 3px 10px rgba(100, 55, 29, .03);
  transition: .2s ease;
  display: flex;
  flex-direction: column;
}
.pl-card:hover {
  box-shadow: 0 8px 20px rgba(100, 55, 29, .12);
  transform: translateY(-2px);
}

.pl-card-img {
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 10px;
}
.pl-card-img img {
  max-height: 184px;
  width: auto;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .18));
}

.pl-card-noimg {
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5efe8;
  color: #bfaa9a;
  font-size: 12px;
}

.pl-card-brand {
  display: block;
  font-size: 10px;
  color: #8b5a43;
  letter-spacing: .04em;
  font-weight: 700;
  margin: 0 0 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.pl-card h3 {
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 40px;
  margin: 0 0 6px;
  color: #6a2625;
  font-weight: 700;
}
.pl-card h3 a:hover {
  color: #4b0e12;
}

.pl-card-meta {
  font-size: 11px;
  color: #7a665d;
  margin: 0 0 8px;
  line-height: 1.5;
}

.pl-card-price {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1;
  margin: 0;
  font-weight: 700;
  color: #7a1118;
  text-align: right;
  margin-top: auto;
  padding-top: 8px;
}
.pl-card-price .pl-card-price-num {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Times New Roman", serif;
  font-size: 22px;
  letter-spacing: .02em;
  color: #7a1118;
}
.pl-card-price .pl-card-price-unit {
  font-size: 12px;
  color: #7a1118;
  margin-left: 2px;
}

.pl-card-regular {
  text-decoration: line-through;
  color: #8a7568;
  font-size: 13px;
  margin: 0 0 2px;
}

.pl-card-off {
  display: inline-block;
  background: #b18a3a;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  margin-top: 4px;
}

.pl-card-soldout {
  color: #999;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

/* ========== ページネーション ========== */
.pl-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 28px 0 8px;
}
.pl-pager a {
  min-width: 42px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e0d3c9;
  background: #fff;
  display: grid;
  place-items: center;
  color: #6c554d;
  font-size: 13px;
}
.pl-pager a:hover {
  background: #fbf3e6;
}
.pl-pager .pl-pager-dis {
  color: #c9bdb5;
  pointer-events: none;
}

.pl-pager-info {
  text-align: center;
  margin: 0;
  font-size: 13px;
  color: #8d7770;
}

/* カテゴリ説明2（商品一覧の下） */
.pl-desc-2 {
  margin: 28px 0;
}
.pl-desc-2 img {
  max-width: 100%;
  height: auto;
}

/* 商品なし */
.pl-empty {
  padding: 60px 0;
  text-align: center;
  color: #8a7568;
  font-size: 16px;
}

/* ========================================
   レスポンシブ
   ======================================== */

/* タブレット */
@media (max-width: 1100px) {
  .pl-layout {
    grid-template-columns: 1fr;
  }
  .pl-side {
    display: none;
  }
  .pl-sp-nav {
    display: block;
    margin-bottom: 12px;
  }
  .pl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマートフォン */
@media (max-width: 760px) {
  .pl-wrap {
    max-width: calc(100% - 24px);
    padding-bottom: 28px;
  }
  .pl-breadcrumb {
    flex-wrap: wrap;
    gap: 3px 6px;
    padding: 12px 0;
    font-size: 11px;
  }
  .pl-title-row {
    display: block;
  }
  .pl-title-row h1 {
    font-size: 22px;
    letter-spacing: .06em;
  }
  .pl-count {
    margin-top: 4px;
    font-size: 13px;
  }
  .pl-sort {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
  }
  .pl-sort a,
  .pl-sort strong {
    padding: 6px 10px;
  }
  .pl-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .pl-card {
    padding: 10px 8px;
  }
  .pl-card-img {
    height: 140px;
    margin-bottom: 8px;
  }
  .pl-card-img img {
    max-height: 138px;
  }
  .pl-card h3 {
    font-size: 12px;
    min-height: 34px;
    line-height: 1.4;
    margin-bottom: 4px;
  }
  .pl-card-meta {
    font-size: 10px;
    margin-bottom: 6px;
  }
  .pl-card-price {
    font-size: 18px;
    padding-top: 6px;
  }
  .pl-card-price .pl-card-price-num {
    font-size: 18px;
  }
  .pl-card-price .pl-card-price-unit {
    font-size: 11px;
  }
  .pl-sub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .pl-sub-grid a {
    padding: 8px;
    font-size: 12px;
  }
  .pl-pager {
    margin: 20px 0 6px;
  }
  .pl-pager a {
    min-width: 48px;
    height: 42px;
    font-size: 14px;
  }
  .pl-pager-info {
    font-size: 12px;
  }
  .pl-empty {
    padding: 40px 0;
    font-size: 14px;
  }
}

/* 小型スマートフォン */
@media (max-width: 420px) {
  .pl-wrap {
    max-width: calc(100% - 16px);
  }
  .pl-title-row h1 {
    font-size: 20px;
  }
  .pl-card-img {
    height: 120px;
  }
  .pl-card-img img {
    max-height: 118px;
  }
  .pl-card h3 {
    font-size: 11px;
    min-height: 30px;
  }
  .pl-card-price {
    font-size: 16px;
  }
  .pl-card-price .pl-card-price-num {
    font-size: 16px;
  }
}
