/* 製品カードのジャンルタグを右上にドックイヤー(折り返し)スタイルで表示 */

/* 製品カードに相対位置を設定してジャンルタグの基準にする */
.product-card {
    position: relative;
}

/* ジャンルコンテナを右上に配置 */
.product-genres {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 5; /* 上に表示されるようにz-indexを上げる */
    max-width: 70%; /* 最大幅を制限 */
}

/* ジャンルタグをドックイヤースタイルにする */
.product-genre-tag {
    font-size: 11px;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    margin-bottom: 5px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    transform-origin: right top;
}

/* ドックイヤーの折り目効果 */
.product-genre-tag:before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 0 solid transparent;
    border-right: 10px solid var(--primary-color);
    border-bottom: 10px solid transparent;
    filter: brightness(0.7);
}

/* +もっと表示用のタグ */
.product-genre-more {
    font-size: 11px;
    font-weight: 600;
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

/* +もっと表示用の折り目効果 */
.product-genre-more:before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 0 solid transparent;
    border-right: 10px solid var(--secondary-color);
    border-bottom: 10px solid transparent;
    filter: brightness(0.7);
}

/* product-info内のジャンル表示は非表示にする */
.product-info .product-genres {
    display: none;
}
