/*
 * 商品グループ一覧 (今月の特売 / 月間売れ筋ランキング)。旧 item_sale.php / item_ranking.php。
 * モバイルファースト。--genre-color は当該ジャンルのテーマ色 (見出し下線のアクセント)。
 * 商品カードグリッド (.product-grid / .product-card*) と ランキングバッジ (.product-card-rank) は
 * common.css の共有スタイルを使う。カテゴリ一覧 (category-list.css) と同じ骨格。
 */
.group-list {
    /* .site-main 上パディングを打ち消し、パンくず帯をヘッダ直下へ (旧 body_header 踏襲) */
    margin-top: calc(-1 * var(--shop-main-pad-block));
    padding-block: 0 32px;
}

/* ===== パンくず (ヘッダ直下の全幅グレー帯。テキストは中央 container) ===== */
.gl-breadcrumb {
    margin-bottom: 24px;
    padding-block: 10px;
    background: var(--shop-head-bg);
    font-size: 0.8rem;
    color: var(--shop-muted);
}

.gl-breadcrumb-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.gl-breadcrumb-item {
    color: var(--shop-muted);
    text-decoration: none;
}

.gl-breadcrumb-item:hover {
    color: var(--genre-color);
    text-decoration: underline;
}

.gl-breadcrumb-item[aria-current="page"] {
    color: var(--shop-text);
    font-weight: 700;
}

.gl-breadcrumb-sep {
    color: var(--shop-muted);
}

/* ===== レイアウト (左サイドバー + 本体) ===== */
.gl-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gl-content {
    min-width: 0; /* grid/flex 子のはみ出し防止 */
}

/* 横並びに切り替える条件は `.genre-sidebar` の表示条件と揃える (幅だけでなくホバー可否も見る)。
 * 揃えないと、幅 1000px 以上のホバー不可端末で「横並びだがサイドバーは order:2・幅指定なし」となり、
 * 販促ブロックが本文の右の細い列に出て本文幅も縮む。 */
@media (width >= 1000px) and (hover: hover) {
    .gl-layout {
        flex-direction: row;
        align-items: flex-start;
    }

    .gl-content {
        flex: 1 1 auto;
    }
}

/* ===== 見出し (旧 div.title > h1 + label。日本語見出しの下に英字ラベル) =====
 * 本番実測踏襲: 中央寄せ・和文 24px + 英字ラベル・4px double の下線 (トップのセクション見出しと同形式)。 */
.gl-head {
    padding-block: 20px;
    margin-bottom: 16px;
    line-height: 1.5rem;
    text-align: center;
    border-bottom: 4px double #9e9e9e;
}

.gl-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #434343;
}

.gl-title-alias {
    font-size: 0.8rem;
    color: #9e9e9e;
    letter-spacing: 1px;
}

/* ===== グループ説明文 (item_group_note・旧互換の生 HTML) ===== */
.gl-note {
    margin-bottom: 16px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--shop-muted);
}

/* ===== 0 件 ===== */
.gl-empty {
    padding-block: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--shop-muted);
}
