/* ========================================
   商品カード選択スタイル
   ======================================== */

/* カテゴリタブ */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background: white;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: #ff6f00;
    color: #ff6f00;
    box-shadow: 0 2px 8px rgba(255, 111, 0, 0.1);
}

.category-tab.active {
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
    border-color: #ff6f00;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 111, 0, 0.3);
}

/* 商品選択グリッド */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* 商品カード */
.product-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-card:hover {
    border-color: #ff6f00;
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.2);
    transform: translateY(-4px);
}

.product-card.selected {
    border-color: #ff6f00;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    box-shadow: 0 0 0 4px rgba(255, 111, 0, 0.15);
}

.product-card.hidden {
    display: none;
}

/* 商品アイコン */
.product-icon {
    font-size: 48px;
    margin-bottom: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* 商品画像 */
.product-card-image {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: 8px;
    background: #fafafa;
    padding: 10px;
}

/* 商品名 */
.product-card-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 商品価格 */
.product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff6f00;
    margin-bottom: 10px;
}

/* 加工方法バッジ */
.product-card-methods {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: auto;
    flex-wrap: wrap;
}

.method-badge {
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.method-badge.laser {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
    border: 1px solid #90caf9;
}

.method-badge.uvdtf {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #7b1fa2;
    border: 1px solid #ce93d8;
}

.method-badge.sublimation {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #388e3c;
    border: 1px solid #81c784;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .product-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }
    
    .product-card-name {
        font-size: 12px;
        min-height: 32px;
    }
    
    .product-card-price {
        font-size: 14px;
    }
    
    .category-tab {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        padding: 12px;
    }
    
    .product-icon {
        font-size: 36px;
    }
    
    .category-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .category-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
}
