/* 商品一覧の商品カード（2026-11-13 list / theme / トップで共通化）
   前半: product_list.css から商品カード部分のみ抜粋 / 後半: list.twig のカード用スタイル */
.product-list__wrap { margin-top: 24px; }
.product-list__item__title--tag { font-size: 1rem; border: 1px solid #323233; border-radius: 4px; padding: 3px 5px; overflow: hidden; width: 90%; -webkit-line-clamp: 1; -webkit-box-orient: vertical; display: -webkit-box; text-overflow: ellipsis; }
.product-list__item__title--name { margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 46px; }
.product-list__item__img { display: block; }
.product-list__item__img img { -o-object-fit: contain; object-fit: contain; object-position: center; background-position: center; }
.product-list__item__point { margin-top: 8px; text-align: center; font-size: 19.2px; font-size: 1.2rem; }
.product-list__item__point--strong { font-size: 25.6px; font-size: 1.6rem; color: #e10041; font-weight: bold; }
.product-list__item__wrap { display: -ms-flexbox; display: flex; -ms-flex-align: start; align-items: flex-start; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-pack: justify; justify-content: space-between; }
.product-list__item__wrap--left { width: 100%; }
.product-list__item__wrap--right { width: 100%; }
.product-list__item__table { width: 100%; margin-top: 15px; }
.product-list__item__table tr:nth-child(odd) { background-color: #f0f2f5; }
.product-list__item__table tr { display: block; }
.product-list__item__table tr:nth-child(even) { background-color: #ffffff; }
.product-list__item__table th,
.product-list__item__table td { padding: 4px; }
.product-list__item__table--type { font-size: 19.2px; font-size: 1.2rem; width: 24%; text-align: left; vertical-align: middle; }
.product-list__item__table--price { font-size: 22.4px; font-size: 1.4rem; color: #e10041; font-weight: bold; white-space: nowrap; margin-left: auto; text-align: right; vertical-align: middle; }
.product-list__item__table--count { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; -ms-flex-wrap: nowrap; flex-wrap: nowrap; -ms-flex-pack: start; justify-content: flex-start; margin-right: 0; font-size: 19.2px; font-size: 1.2rem; }
.product-list__item__table--count input { font-size: 25.6px; font-size: 1.6rem; height: 35px; width: 100px; margin-right: 4px; padding: 0 2px; text-align: center; }
.product-list__item__table--none { width: 40px; text-align: center; display: block; margin-right: 4px; }
.product-list__item__button { height: 40px; width: 100%; margin-top: 16px; }
.product-list__item__message { margin-top: 16px; color: #e10041; font-weight: bold; text-align: center; line-height: 1.5; }
@media screen and (max-width: 1023px) {
  .product-list__wrap { display: -ms-flexbox; display: flex; -ms-flex-align: stretch; align-items: stretch; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-pack: justify; justify-content: flex-start; }
  .product-list__item { padding-bottom: 24px; border-bottom: 1px solid #bebfc2; }
  .product-list__item { width: calc((100% - 36px) / 4); display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; margin-right: 12px; }
  .product-list__item:nth-of-type(4n) { margin-right: 0; }
  .product-list__item:nth-child(n + 5) { margin-top: 25px; }
  .product-list__item__wrap { margin-top: 16px; }
  .product-list__item__wrap { display: -ms-flexbox; display: flex; -ms-flex-align: start; align-items: flex-start; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-pack: justify; justify-content: space-between; }
  .product-list__item__table--count input { width: 100px; }
  h2.product-list__item__title { font-size: 14px; }
  .product-list__item__table { overflow-x: scroll; }
  .product-list__item__table tr:nth-child(odd) { display: block; }
  .product-list__item__img img { height: 32vw; }
}
@media all and (min-width: 1024px) {
  .product-list__wrap { display: -ms-flexbox; display: flex; -ms-flex-align: stretch; align-items: stretch; -ms-flex-wrap: wrap; flex-wrap: wrap; -ms-flex-pack: justify; justify-content: flex-start; }
  .product-list__item { width: calc(( 100% - 48px) / 7); display: -ms-flexbox; display: flex; -ms-flex-direction: column; flex-direction: column; margin-right: 6px; margin-top: 6px; }
  .product-list__item:last-child { margin-right: 0; }
  .product-list__item__title--name { margin-bottom: 16px; }
  .product-list__item__img { cursor: pointer; transition: opacity 0.3s; }
  .product-list__item__img img { height: 220px; }
  .product-list__item__img:hover { opacity: 0.6; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)"; }
  .product-list__item__table th,
  .product-list__item__table td { padding: 4px 8px; }
}
@media all and (max-width: 767px) {
  .product-list__item__wrap { margin-top: 0; }
  .product-list__item__img img { height: 32.8vw; }
  .product-list__item__message { margin-top: 0; }
  .product-list__item__button .button-fill-arrow:after { content: none; }
  .product-list__wrap .product-list__item { width: calc((100% - 24px) / 4); margin-right: 8px; }
  .product-list__item:nth-of-type(4n) { margin-right: 0; }
  .product-list__item__table .product-list__item__table--price { font-size: 3.73vw; text-align: left; }
  .product-list__item__table--count input { width: 10.6vw; }
  .product-list__item__button .button-fill-arrow { font-size: 1.2rem; }
  .product-list__item__wrap
    .product-list__item__wrap--right
    .product-list__item__message { font-size: 3vw; }
}

/* 数量プルダウン共通 */
.list-qty-select {
    width: 50px;
    height: 28px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    background: #fff;
    text-align: center;
}
/* ===== 商品カード PC/SP共通デザイン ===== */
.product-list__item__title--tag {
    font-size: 10px !important;
    padding: 1px 5px !important;
    border-color: #ce0000 !important;
    border-radius: 10px !important;
    width: auto !important;
}
.product-list__item__title--tag a { color: #ce0000; text-decoration: none; }
h2.product-list__item__title { font-size: 12px; margin: 4px 0 2px !important; }
.product-list__item__title--name { height: auto !important; font-size: 11px !important; line-height: 1.3; margin: 0 !important; }
.product-list__item__img img { border-radius: 4px; }
.product-list__item__table { overflow-x: visible !important; margin-top: 4px !important; }
.product-list__item__table tr,
.product-list__item__table tr:nth-child(odd) { background: none !important; }
.product-list__item { border-bottom: 1px solid #eee !important; padding-bottom: 12px !important; margin-bottom: 12px !important; }
.product-list__item__table th,
.product-list__item__table td { padding: 2px 4px !important; font-size: 12px; }
.product-list__item__table--price {
    font-size: 14px !important; color: #ce0000 !important; font-weight: bold !important;
}
.list-qty-select,
.product-list__item__table--count input,
.ec-productRole__actions .quantity {
    width: 40px !important; height: 26px !important; font-size: 13px !important;
    text-align: center; border: 1px solid #ddd !important; border-radius: 4px !important;
    padding: 0 !important; color: #333 !important; background: #fff !important;
    -webkit-appearance: menulist !important; appearance: menulist !important;
    -webkit-text-fill-color: #333 !important;
}
.ec-productRole__actions span { font-size: 11px; color: #999; }
.product-list__item__button { margin-top: 4px !important; }
.product-list__item__button .button-fill-arrow {
    background: #ce0000 !important; border-radius: 6px !important;
    font-size: 12px !important; font-weight: bold !important;
    padding: 6px 8px !important; border: none !important; color: #fff !important;
    white-space: nowrap !important;
}
.product-list__item__button .button-fill-arrow::after { display: none !important; }
.product-list__item__message { font-size: 12px; }

/* ===== トップページだけ PC は8列（修正前のトップと同じ列数）。スマホは一覧と同じ4列 ===== */
@media all and (min-width: 1024px) {
  .top-product-list .product-list__item { width: calc((100% - 42px) / 8); margin-right: 6px; }
  .top-product-list .product-list__item:nth-of-type(8n),
  .top-product-list .product-list__item:last-child { margin-right: 0; }
}
