/* 商品一覧・特集・関連商品ブロック共通（list.twig / Feature/detail.twig / related_product_block.twig） */

/* カテゴリコンテンツ（アイキャッチ・導入テキスト・特集リンク） */
.category-content {
    margin-bottom: 24px;
}
@media only screen and (max-width: 767px) {
    .category-content {
        margin-left: 20px;
        margin-right: 20px;
    }
}
.category-content__image {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 16px;
}
.category-content__description {
    white-space: pre-line;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 16px;
}
.feature-child-categories {
    margin-bottom: 20px;
}
.feature-child-categories__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
}
.feature-child-categories__list li {
    margin: 0;
}
.feature-child-categories__list a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #337ab7;
    text-decoration: none;
    background: #fafafa;
    transition: background 0.15s, border-color 0.15s;
}
.feature-child-categories__list a:hover {
    background: #f0f7ff;
    border-color: #bcd;
    text-decoration: underline;
}
.category-features-accordion {
    margin-bottom: 20px;
}
.category-features-accordion__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}
.category-features-accordion__toggle:hover {
    background: #eee;
}
.category-features-accordion__toggle .toggle-icon {
    transition: transform 0.3s;
    font-size: 12px;
}
.category-features-accordion__toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}
.category-features-accordion__body {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 0;
}
.category-features-accordion__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.category-features-accordion__list li {
    border-bottom: 1px solid #eee;
}
.category-features-accordion__list li:last-child {
    border-bottom: none;
}
.category-features-accordion__list li a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: #337ab7;
    font-size: 14px;
    transition: background 0.15s;
}
.category-features-accordion__list li a:hover {
    background: #f9f9f9;
    text-decoration: underline;
}

/* 商品一覧カード（品番・単価/箱・カートン・説明文） */
.ec-shelfRole .product-list-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ec-shelfRole .product-list-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
    min-height: 0;
}
.ec-shelfRole .product-list-card__image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    overflow: hidden;
}
.ec-shelfRole .product-list-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* 完売：画像を暗くオーバーレイし、中央に赤文字で「完売」を表示 */
.ec-shelfRole .product-list-card__image-wrap--soldout::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}
.ec-shelfRole .product-list-card__image-wrap--soldout::after {
    content: '完売';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #DE5D50;
    font-weight: 900;
    font-size: 32px;
    letter-spacing: 0.2em;
    text-shadow: 0 0 4px #fff, 0 0 4px #fff;
    z-index: 2;
    pointer-events: none;
}
.ec-shelfRole .product-list-card__body {
    padding: 12px 14px 8px;
    display: flex;
    flex-direction: column;
}
.ec-shelfRole .product-list-card__code {
    font-size: 12px;
    color: #555;
    margin: 0 0 4px 0;
}
.ec-shelfRole .product-list-card__name {
    font-size: 15px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.35;
}
.ec-shelfRole .product-list-card__price-block {
    margin-bottom: 6px;
}
.product-list-card__description-outer {
    margin-top: 10px;
    padding: 0 14px 12px;
}
.ec-shelfRole .product-list-card__description {
    padding: 10px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.45;
    color: #333;
}
.ec-shelfRole .product-list-card__description-outer--accordion .js-product-desc-accordion {
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ec-shelfRole .product-list-card__description p {
    margin: 0;
}
.ec-shelfRole .product-list-card__description-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    background: #e8e8e8;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}
.ec-shelfRole .product-list-card__description-toggle:hover {
    background: #dedede;
}
.ec-shelfRole .product-list-card__description-toggle .toggle-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 10px;
}
.ec-shelfRole .product-list-card__description-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}
.ec-shelfRole .product-list-card__description-toggle-label--collapse {
    display: none;
}
.ec-shelfRole .product-list-card__description-toggle[aria-expanded="true"] .product-list-card__description-toggle-label--expand {
    display: none;
}
.ec-shelfRole .product-list-card__description-toggle[aria-expanded="true"] .product-list-card__description-toggle-label--collapse {
    display: inline;
}
/* 欠品・完売ラベル */
.ec-shelfRole .product-list-card__status-label,
.product-status-label {
    color: #DE5D50;
    font-weight: bold;
    font-size: inherit;
}

/* 商品一覧：完売表示トoggle（表示件数・並び順の横） */
.ec-searchnavRole .ec-searchnavRole__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 16px;
}
.ec-searchnavRole .ec-searchnavRole__actions > .ec-select {
    margin-bottom: 0;
}
.ec-searchnavRole .ec-searchnavRole__actions > .ec-select select + select {
    margin-left: 10px;
}
.product-list-include-soldout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.42857142;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}
@media only screen and (min-width: 768px) {
    .product-list-include-soldout {
        font-size: 0.875rem;
    }
}
.product-list-include-soldout input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}
.product-list-include-soldout .form-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    min-height: 0;
}
.product-list-include-soldout .form-check .form-check-input {
    float: none;
    margin: 0;
}
.product-list-include-soldout__text {
    line-height: 1.42857142;
}

/* お気に入り：トップ商品カード（ec-topProductCard）と同じ表記・デザイン */
.ec-favoriteRole .ec-favoriteRole__item .ec-closeBtn--circle {
    z-index: 10;
}
.ec-favoriteRole__item .ec-favoriteRole__productCard {
    height: auto;
}
.ec-favoriteRole .ec-topProductCard__status {
    color: #DE5D50;
}
.ec-favoriteRole .ec-topProductCard__img {
    width: 100%;
    height: 100%;
    max-height: none;
}
.ec-favoriteRole .ec-topProductCard__link {
    text-decoration: none;
    color: inherit;
}

/* 特集ページ：プルダウン行＋完売チェック行（2段・右寄せ） */
.ec-searchnavRole .ec-searchnavRole__actions.ec-searchnavRole__actions--feature {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    text-align: right;
    flex-wrap: nowrap;
    justify-content: flex-start;
}
@media only screen and (min-width: 768px) {
    .ec-searchnavRole .ec-searchnavRole__actions.ec-searchnavRole__actions--feature {
        width: 50%;
    }
}
.ec-searchnavRole .ec-searchnavRole__actions.ec-searchnavRole__actions--feature > .ec-select {
    margin-bottom: 0;
}
.ec-searchnavRole .ec-searchnavRole__actions.ec-searchnavRole__actions--feature .feature-category-select {
    max-width: 11em;
}
.ec-searchnavRole .ec-searchnavRole__actions.ec-searchnavRole__actions--feature > .product-list-include-soldout {
    margin: 0;
}

/* 特集ページ専用 */
.feature-category-topicpath {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}
.feature-category-topicpath a {
    color: #337ab7;
    text-decoration: none;
}
.feature-category-topicpath a:hover {
    text-decoration: underline;
}
