/* ---- 一覧のカード（2026-10-13・Amazon の 2 列の形・2026-10-16 listing-page.css から切り出し） ----
 * js/utils/list-card.js が作る（タイムセール・新着・閲覧履歴・ショップのページ）。写真の右上にお気に入り、右下にカートの丸いボタン（2026-10-30 ホームと同じ置き方）。商品ページのおすすめの棚でも使う。
 * 写真の下には白を敷く（Section 9-0: 商品写真の下は白）。 */
.gl-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gl-ph {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--geal-border, #e5e7eb);
    border-radius: 8px;
    overflow: hidden;
}

.gl-ph-link {
    display: block;
    width: 100%;
    height: 100%;
}

.gl-ph-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* お気に入りは右上（共通の .fav-heart のまま）・カートは右下（2026-10-30 ホームの 2×2 と同じ置き方・大きさにそろえた）。
 * 丸いボタンの見た目は components.css の .card-cart。ここは置き場所だけ */
.gl-cart {
    right: 6px;
    bottom: 6px;
}

.gl-soldout,
.gl-low {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 7px;
    border-radius: 2px;
    font-size: 0.72rem;
    font-weight: 700;
    pointer-events: none;
}

.gl-soldout { background: #374151; color: #fff; }
.gl-low { background: #f97316; color: #fff; }
/* 棚のカードの割引率（写真の左下・カートの丸の反対側・2026-11-01） */
.gl-off--photo {
    position: absolute;
    left: 6px;
    bottom: 8px;
    pointer-events: none;
}

.gl-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.gl-sale {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.gl-off {
    background: #C8102E;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
}

.gl-sale-label {
    color: #C8102E;
    font-size: 0.78rem;
    font-weight: 700;
}

.gl-price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.gl-now {
    font-family: var(--font-num, "Space Grotesk", sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--geal-text-primary, #111);
}

.gl-now.is-sale { color: #C8102E; }

.gl-was {
    font-size: 0.8rem;
    color: var(--geal-text-muted, #6b7280);
}

.gl-name {
    color: var(--geal-text-primary, #111);
    font-size: 0.9rem;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gl-brand {
    color: var(--geal-accent, #6B21A8);
    font-size: 0.82rem;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gl-brand:hover,
.gl-name:hover { text-decoration: underline; }


/* 全ページ共通の「スマホではリンクを 44px 以上」が名前とブランドの行に効いて、1 行の名前でも
 * 下に空きができていた。名前は写真と同じ商品ページへのリンクなので高さを中身に合わせ、
 * ブランドの行は押しやすさのため 28px を残す（WCAG 2.2 の最小 24px は満たす） */
.gl-card .gl-name {
    min-height: 0;
    display: -webkit-box;
}

.gl-card .gl-brand {
    min-height: 28px;
    display: flex;
    align-items: center;
}
