/* ==========================================================
   SMPS2 大カテゴリ選択グローバルメニュー（横並びタブバー風スタイル）
   ※影響範囲: .smps2-product-category-selector のみ限定
   ※他アルバム・台紙レイアウト、写真操作等への波及厳禁
   ========================================================== */

/* 大カテゴリ切り替えバーのみに閉じたスタイル */
.smps2-product-category-selector {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
    padding: 10px 0 !important;
    margin: 0 0 20px 0 !important;
    border-bottom: 1px solid #e5e5e5 !important;
    box-sizing: border-box !important;
    list-style: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* 旧グリッドプロパティの完全リセット */
.smps2-product-category-selector.smps2-tabs,
.smps2-product-category-selector.smps2-tabs-container {
    grid-template-columns: none !important;
}

/* カテゴリタブボタン */
.smps2-product-category-selector .category-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    border: 1px solid #ddd !important;
    background: #ffffff !important;
    color: #333333 !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    box-sizing: border-box !important;
}

/* 旧カード用の疑似要素（サムネイル画像・チェックバッジ）を完全無効化 */
.smps2-product-category-selector .category-tab-btn::before,
.smps2-product-category-selector .category-tab-btn::after {
    display: none !important;
    content: none !important;
}

/* タブ内テキスト要素 */
.smps2-product-category-selector .category-tab-btn .tab-text,
.smps2-product-category-selector .category-tab-btn > span {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: normal !important;
    pointer-events: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* ホバー時の効果 */
.smps2-product-category-selector .category-tab-btn:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* アクティブ（選択中）状態 */
.smps2-product-category-selector .category-tab-btn.is-active,
.smps2-product-category-selector .category-tab-btn.active {
    background: #f39800 !important; /* テーマカラー */
    color: #ffffff !important;
    border-color: #f39800 !important;
    font-weight: bold !important;
    box-shadow: 0 2px 6px rgba(243, 152, 0, 0.25) !important;
}

.smps2-product-category-selector .category-tab-btn.is-active .tab-text,
.smps2-product-category-selector .category-tab-btn.active .tab-text {
    color: #ffffff !important;
    font-weight: bold !important;
}

/* スマホ表示対応 (640px以下) */
@media screen and (max-width: 640px) {
    .smps2-product-category-selector {
        gap: 6px !important;
        padding: 8px 0 !important;
        margin-bottom: 16px !important;
    }
    .smps2-product-category-selector .category-tab-btn {
        padding: 6px 12px !important;
        font-size: 12.5px !important;
        border-radius: 16px !important;
    }
}
